/* Small-screen layout, loaded after the shared dashboard styles. */
.mobile-navigation,
.mobile-group-picker {
  display: none;
}
.brand .brand-copy {
  min-width: 0;
}
.brand .brand-copy strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.45px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.brand .brand-copy small {
  margin-top: 5px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  aside {
    position: static;
    width: 100%;
    height: auto;
    padding: 19px 16px 17px;
  }
  aside nav,
  aside .workspace,
  aside .side-bottom {
    display: none;
  }
  .brand {
    gap: 11px;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }
  .brand b {
    flex: 0 0 auto;
    font-size: 37px;
  }
  .brand .brand-copy strong {
    max-width: 100%;
    font-size: 22px;
    line-height: 1.2;
  }
  .brand .brand-copy small {
    font-size: 1rem;
    letter-spacing: 1px;
  }
  .mobile-navigation {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    min-width: 0;
  }
  .mobile-navigation label {
    color: #cedaca;
    font-size: 1rem;
    letter-spacing: .6px;
  }
  .mobile-navigation select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    color: var(--green);
    background: #f4f7ec;
    border-color: #8ba280;
    font-weight: 600;
  }
  main {
    margin-left: 0;
    width: 100%;
    min-width: 0;
  }
  header {
    height: auto;
    min-height: 54px;
    padding: 12px 16px;
    gap: 10px;
    align-items: center;
    font-size: 1rem;
    letter-spacing: .5px;
  }
  header > span:first-child {
    min-width: 0;
  }
  header i {
    margin: 0 7px;
  }
  header strong {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }
  header .demo {
    flex: 0 0 auto;
    padding: 5px 8px;
    font-size: 1rem;
  }
  .content {
    width: 100%;
    min-width: 0;
    padding: 24px 14px;
  }
  .heading {
    gap: 17px;
    align-items: stretch;
  }
  .heading > div,
  .panelhead > div,
  .sectionhead > div,
  .sourcetop > *,
  .groupgrid > *,
  .twocol > * {
    min-width: 0;
  }
  h1 {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -.8px;
    margin: 8px 0 10px;
    overflow-wrap: anywhere;
  }
  h2 {
    font-size: 18px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  h3 {
    overflow-wrap: anywhere;
  }
  .eyebrow {
    font-size: 1rem;
    letter-spacing: 1px;
  }
  .heading p {
    font-size: 1rem;
    line-height: 1.55;
  }
  button,
  input:not([type="checkbox"]),
  select {
    min-height: 44px;
  }
  input:not([type="checkbox"]),
  select {
    font-size: 1rem;
  }
  button {
    font-size: 1rem;
    padding: 10px 12px;
    white-space: normal;
  }
  .heading > button {
    align-self: flex-start;
  }
  .notice {
    margin: 20px 0;
    padding: 11px 12px;
    line-height: 1.65;
    font-size: 1rem;
    overflow-wrap: anywhere;
  }
  .tabs {
    display: none;
  }
  .mobile-group-picker {
    display: grid;
    gap: 8px;
    margin: 20px 0 9px;
    min-width: 0;
  }
  .mobile-group-picker label {
    font-size: 1rem;
    font-weight: 600;
  }
  .mobile-group-picker select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: #fff;
  }
  .mobile-group-picker .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px;
    margin-top: 2px;
  }
  .mobile-group-picker .actions button {
    flex: 1 1 auto;
    padding: 8px 10px;
    font-size: 1rem;
  }
  .toolbar {
    gap: 12px;
    margin: 20px 0 16px;
  }
  .segmented {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    padding: 4px;
  }
  .segmented button {
    min-width: 0;
    padding: 8px 4px;
    font-size: 1rem;
    line-height: 1.3;
  }
  .refreshmeta {
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 22px;
  }
  .cards .card {
    min-width: 0;
    padding: 16px 13px;
    border-radius: 11px;
  }
  .cards .card.feature {
    grid-column: 1 / -1;
    padding: 20px;
  }
  .cards .card small {
    font-size: 1rem;
    letter-spacing: .6px;
    line-height: 1.55;
  }
  .cards .card .value {
    margin: 10px 0 4px;
    font-size: clamp(22px, 6.2vw, 28px);
    line-height: 1.2;
    letter-spacing: -.8px;
    overflow-wrap: anywhere;
  }
  .cards .card.feature .value {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .cards .card p {
    font-size: 1rem;
    line-height: 1.5;
  }
  .cards .card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: center;
  }
  .cards .card:last-child .value {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    font-size: 28px;
  }
  .cards .card:last-child p {
    grid-column: 1;
    margin-top: 3px;
  }
  .panel {
    min-width: 0;
    border-radius: 11px;
    margin-bottom: 18px;
  }
  .panelhead {
    gap: 12px;
    padding: 17px 15px;
  }
  .panelhead p {
    line-height: 1.5;
  }
  .panelhead > strong {
    font-size: 19px;
    overflow-wrap: anywhere;
  }
  .textbutton {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
  }
  .filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 13px;
    gap: 9px;
  }
  .filters input,
  .filters select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 1rem;
  }
  .order-table {
    table-layout: fixed;
  }
  .order-table tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px 12px;
    padding: 17px 15px;
  }
  .order-table td {
    min-width: 0;
    max-width: 100%;
    padding: 0;
    font-size: 1rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  .order-table td:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .order-table td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 5px;
    padding: 9px 0;
    border-top: 1px solid #edf0e8;
    border-bottom: 1px solid #edf0e8;
    color: #52675b;
  }
  .order-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .order-table td:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
    align-self: center;
  }
  .order-table td:last-child {
    grid-column: 2;
    grid-row: 3;
    text-align: right;
    align-self: center;
    font-size: 1rem;
  }
  .order-table td small,
  .order-payment {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .order-table td .badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
    font-size: 1rem;
    padding: 5px 8px;
  }
  .order-table td[colspan] {
    grid-column: 1 / -1;
    text-align: center;
    padding: 15px 0;
    font-size: 1rem;
  }
  .tablefoot {
    padding: 14px 15px;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.5;
    font-size: 1rem;
  }
  .tablefoot > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  /* Keep column meaning with each value when the company table becomes cards. */
  .tablewrap {
    overflow: visible;
  }
  .tablewrap table,
  .tablewrap tbody {
    display: block;
    width: 100%;
  }
  .tablewrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .tablewrap tbody tr {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 12px 6px;
    padding: 17px 15px;
    border-bottom: 1px solid var(--line);
  }
  .tablewrap tbody td {
    min-width: 0;
    border: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .tablewrap tbody td:first-child {
    grid-column: 1 / -1;
    font-size: 1rem;
  }
  .tablewrap tbody td.subrow {
    padding-left: 11px;
    border-left: 2px solid #d9e3cb;
    color: #52684a;
  }
  .tablewrap tbody td small {
    font-size: 1rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .tablewrap tbody td:not(:first-child)::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 1rem;
    letter-spacing: .25px;
    font-weight: 400;
    line-height: 1.4;
  }
  .tablewrap tbody td:nth-child(2)::before {
    content: "ORDERS";
  }
  .tablewrap tbody td:nth-child(3)::before {
    content: "INCLUDED PAID";
  }
  .tablewrap tbody td:nth-child(4)::before {
    content: "PAID SALES";
  }
  .source {
    padding: 15px;
  }
  .sourcetop {
    gap: 10px;
    align-items: flex-start;
  }
  .sourcetop > span,
  .sourcetop > strong {
    overflow-wrap: anywhere;
  }
  .sourcetop > :last-child {
    flex: 0 0 auto;
  }
  .source small {
    overflow-wrap: anywhere;
    line-height: 1.5;
  }
  .sectionhead {
    flex-wrap: wrap;
    gap: 10px;
  }
  .sectionhead button {
    padding: 9px 11px;
    min-height: 44px;
    font-size: 1rem;
  }
  .siteitem {
    padding: 17px 15px;
  }
  .siteitem p,
  .members {
    overflow-wrap: anywhere;
    line-height: 1.6;
  }
  .siteitem .actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px;
  }
  .badge {
    max-width: 100%;
    white-space: normal;
  }
  .setting {
    padding: 18px 15px;
  }
  .setting dd,
  .setting p {
    overflow-wrap: anywhere;
  }
  .payment-summary {
    padding: 15px 13px;
  }
  .payment-tools {
    gap: 10px;
  }
  .payment-tools label {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    font-size: 1rem;
  }
  .payment-tools select {
    width: 100%;
    font-size: 1rem;
  }
  .payment-totals {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 12px 0;
  }
  .payment-totals > span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .payment-totals strong {
    margin-left: auto;
  }
  .payment-summary p {
    line-height: 1.6;
  }
  .payment-setup {
    padding: 8px 15px;
  }
  .gateway-row {
    padding: 14px 15px 20px;
  }
  .gateway-origin,
  .gateway-origin code,
  .gateway-row legend {
    overflow-wrap: anywhere;
    line-height: 1.6;
  }
  .gateway-switches {
    display: grid;
    gap: 7px;
  }
  .gateway-switches label {
    min-height: 44px;
    padding: 5px 0;
    font-size: 1rem;
  }
  .gateway-switches input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
  }
  .gateway-effect {
    line-height: 1.6;
  }
  .payment-save {
    padding: 0 15px 20px;
  }
  .payment-save .actions {
    gap: 9px;
  }
  .payment-save .actions button {
    flex: 1 1 auto;
  }
  .payment-history p,
  .payment-history small {
    overflow-wrap: anywhere;
  }
  dialog {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    max-height: calc(100dvh - 32px);
    padding: 19px 16px;
  }
  .dialoghead {
    gap: 12px;
  }
  .dialoghead h2 {
    min-width: 0;
  }
  .dialoghead button {
    min-width: 44px;
    flex: 0 0 auto;
  }
  .check {
    min-height: 44px;
    align-items: flex-start;
    padding: 11px 8px;
    overflow-wrap: anywhere;
  }
  .check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
  }
  .actions {
    gap: 9px;
  }
  footer {
    gap: 9px;
    flex-direction: column;
    font-size: 1rem;
    line-height: 1.5;
    margin: 22px 0 4px;
  }
  #toast {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
    padding: 14px 16px;
    font-size: 1rem;
    overflow-wrap: anywhere;
  }
}
/* Order pagination keeps large order lists bounded on every screen. */
#order-results{scroll-margin-top:18px}#order-results:focus{outline:none}#order-results:focus-visible{outline:2px solid #80945f;outline-offset:4px}
.order-list-options{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 22px;border-bottom:1px solid var(--line);font-size: 1rem;color:var(--muted)}.order-list-options label{display:flex;gap:9px;align-items:center;color:var(--ink)}.order-list-options select{min-width:65px;min-height:42px}.order-footer{flex-direction:column;align-items:stretch;gap:15px}.order-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px}.page-numbers{display:flex;align-items:center;gap:5px}.order-pagination button{min-height:44px;font-size: 1rem;white-space:nowrap}.page-numbers button{min-width:40px;padding:9px}.page-numbers button[aria-current="page"]{background:var(--green);border-color:var(--green);color:white;font-weight:600}.page-gap{padding:0 3px}.page-count{flex-basis:100%;text-align:center;font-size: 1rem;color:var(--muted)}
@media(max-width:700px){.order-list-options{padding:13px 15px;align-items:flex-start;flex-direction:column;gap:10px}.order-list-options label{width:100%;justify-content:space-between;font-size: 1rem}.order-list-options select{min-width:90px;font-size: 1rem}.order-pagination{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:100%;min-width:0}.page-numbers{grid-column:1/-1;grid-row:1;justify-content:center;gap:4px;min-width:0;flex-wrap:wrap}.page-numbers button{min-width:36px;padding:7px}.page-previous{grid-column:1;grid-row:2}.page-next{grid-column:2;grid-row:2}.page-count{grid-column:1/-1}.order-pagination button{font-size: 1rem}.page-gap{padding:0 2px}}
.analytics-site-picker{display:flex;align-items:center;gap:12px;margin:20px 0;font-size: 1rem}.analytics-site-picker label{font-weight:600}.analytics-site-picker select{max-width:100%;min-width:260px}aside #nav a{line-height:1.4}#nav a svg{align-self:center}@media(max-width:700px){.analytics-site-picker{display:grid;gap:7px}.analytics-site-picker select{width:100%;min-width:0;font-size: 1rem}.mobile-navigation select{font-size: 1rem}}
.pull-request-dialog p{font-size: 1rem;line-height:1.6}.pull-request-dialog .notice{margin:12px 0}.pull-sources{padding:0;list-style:none;max-height:200px;overflow:auto;margin:17px 0}.pull-sources li{display:flex;flex-direction:column;gap:3px;padding:10px 0;border-bottom:1px solid var(--line);font-size: 1rem}.pull-sources span{font-size: 1rem;color:var(--muted)}.pull-request-dialog .actions{flex-wrap:wrap}.pull-request-dialog strong{overflow-wrap:anywhere}
