/* Customer account presentation. Shared dashboard tokens own the palettes. */
body.sgco-app.sgca-body{margin:0;min-width:0;background:var(--sg-bg);color:var(--sg-ink);font:14px/1.8 SGDashboard,Vazirmatn,Tahoma,Arial,sans-serif;-webkit-font-smoothing:antialiased}
html body.sgco-app.sgca-body{color-scheme:inherit;--font-family-base:SGDashboard,Vazirmatn,Tahoma,Arial,sans-serif}
.sgca-body>.sgco-app-header,.sgca-body>.sgco-app-footer,.sgca-body>.sgco-skip{display:none}
.sgca-body .sgco-account-page{width:100%;max-width:none;margin:0;padding:0;background:transparent}
.sgca-body :is(button,input,select,textarea){font-family:inherit}
.sgca-body .sgco-auth__trap{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
.sgca{isolation:isolate;font-family:inherit;color:var(--sg-ink)}
.sgca :is(h1,h2,h3,p,ol){font-family:inherit}
/* The live site sets global heading colors with !important. Keep account palettes readable. */
body.sgca-body .sgca :is(h1,h2,h3){color:var(--sg-ink)!important;font-family:inherit;letter-spacing:0}
.sgca :is(button,a){font-family:inherit}
.sgca :is(button,a,input){-webkit-tap-highlight-color:transparent}
.sgca p{margin:0}
.sgca [data-account-section]{min-width:0}
.sgca-skip{position:fixed;z-index:100;top:10px;right:20px;transform:translateY(-150%);padding:10px 15px;border-radius:8px;background:var(--sg-panel);color:var(--sg-ink)}
.sgca-skip:focus{transform:translateY(0)}
.sgca-sidebar-heading { display: contents; }
.sgca .sgca-menu-close { display: none; }
.sgca .sgca-brand{grid-template-columns:42px minmax(0,1fr);padding-inline:4px;gap:6px 9px;text-decoration:none}
.sgca .sgca-brand strong{font-size:24px;white-space:nowrap;letter-spacing:-.4px}
.sgca .sgca-brand small{grid-column:2;font-size:13px;line-height:1.5;text-align:right}
.sgca-brand-mark{display:flex;align-items:center;justify-content:center;border:1px solid #ffffff24;border-radius:12px;background:#ffffff0c;color:#c2dfd2}
.sgca-brand-mark svg{width:27px;height:27px}
.sgca-sidebar-links{border-top:1px solid #ffffff12;padding-top:16px;margin-top:20px}
.sgca .sgd-sidebar-note{line-height:1.7;padding-inline:7px}
.sgca .sgd-sidebar-note svg{width:20px;min-width:20px}
.sgca-user-copy{min-width:0;flex:1}
.sgca-user-copy strong{overflow-wrap:anywhere}
.sgca-logout{margin:0;flex-shrink:0;position:relative}
.sgca-logout .sgd-icon-button{margin:0}
.sgca .sgd-main{max-width:1460px;min-height:calc(100vh - 70px);display:flex;flex-direction:column}
.sgca .sgd-main>[data-account-section]{flex:1}
.sgca-panel-help {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 18px;
    margin-block-start: 24px;
    padding: 18px 24px;
    background: #16463f;
    background-image: linear-gradient(110deg, var(--sg-sidebar), #16594d);
    color: #fff;
}
.sgca-panel-help > svg { width: 32px; height: 32px; color: #abe6ce; }
.sgca-panel-help strong { display: block; font-size: 17px; line-height: 1.6; }
.sgca-panel-help p { margin-block-start: 2px; color: #d5ebe2; font-size: 13px; }
.sgca-panel-help .sgca-help-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    gap: 10px;
    min-height: 44px;
    padding: 6px 18px;
    border-radius: 2em;
    background: #d1f4dd;
    color: #103e32;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
}
.sgca-panel-help .sgca-help-call:hover { background: #fff; text-decoration: underline; }
@media (max-width: 600px) {
    .sgca-panel-help { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 10px 14px; }
    .sgca-panel-help .sgca-help-call { grid-column: 2; }
}
.sgca .sgd-page-heading h1{font-size:28px;line-height:1.7;overflow-wrap:anywhere}
.sgca .sgd-page-heading p{max-width:620px;line-height:1.9}
.sgca .sgd-page-heading>.sgca-button{flex-shrink:0}
.sgca-button,.sgca .sgj-documents__button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:9px 16px;border:1px solid var(--sg-line);border-radius:9px;background:var(--sg-panel);color:var(--sg-ink);font:inherit;font-size:13px;font-weight:600;line-height:1.8;cursor:pointer;text-decoration:none;transition:background var(--sg-ease),border-color var(--sg-ease)}
.sgca-button:hover,.sgca .sgj-documents__button:hover{background:var(--sg-soft,#f3f6f1);border-color:var(--sg-border-strong,#c0cec2)}
.sgca-button:disabled{opacity:.5;cursor:default}
.sgca-record-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;min-width:0}.sgca-record-actions .sgca-button{font-size:11px;padding:7px 10px;white-space:normal}.sgca-order-reorder{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.sgca-order-reorder small{font-size:12px}
@media(min-width:541px) and (max-width:1100px){.sgca-orders-card .sgca-record{grid-template-columns:minmax(0,1fr) auto auto}.sgca-record-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:540px){.sgca-record-actions{grid-column:1/-1;grid-row:3;justify-content:stretch}.sgca-record-actions .sgca-record-action{flex:1;justify-self:stretch}.sgca-order-reorder .sgca-button{width:100%}}
.sgca-button.sgca-primary{background:var(--sg-primary-bg,var(--sg-teal));border-color:transparent;color:var(--sg-on-primary,#fff)!important;box-shadow:0 3px 8px #21756c13}
.sgca-button.sgca-primary:hover{background:var(--sg-primary-hover,var(--sg-teal-dark))}
.sgca-text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:7px 0;background:transparent;border:0;color:var(--sg-teal);font:inherit;font-size:12px;font-weight:650;cursor:pointer;text-decoration:none}
.sgca-text-button:hover{text-decoration:underline;text-underline-offset:4px}
.sgca-text-button svg{width:17px;height:17px}
.sgca-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:25px}
.sgca-stat{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:right;min-width:0;padding:21px 22px 15px;border:1px solid var(--sg-line);border-radius:var(--sg-radius);background:var(--sg-panel);box-shadow:var(--sg-shadow);color:var(--sg-ink);font:inherit;line-height:1.7;transition:border-color var(--sg-ease)}
button.sgca-stat:hover{border-color:var(--sg-border-strong,#b4c9bc)}
.sgca-stat-label{font-size:12px;color:var(--sg-muted);padding-left:45px;min-height:34px;display:flex;align-items:center}
.sgca-stat>strong{display:block;font-size:33px;line-height:1.5;font-weight:700;margin:7px 0 8px;min-height:50px}
.sgca-stat>strong.sgca-access-value{display:flex;align-items:center;font-size:19px;line-height:1.8;overflow-wrap:anywhere}
.sgca-stat-icon{position:absolute;left:20px;top:20px;width:35px;height:35px;display:flex;align-items:center;justify-content:center;color:var(--sg-success-text,#33735e);background:var(--sg-green-bg,#eaf3ed);border-radius:10px}
.sgca-stat-icon--warm{color:var(--sg-warm-text,#9c7043);background:var(--sg-warm-bg,#f7eddf)}
.sgca-stat-icon--blue{color:var(--sg-blue-text,#55788e);background:var(--sg-blue-bg,#ecf1f5)}
.sgca-stat-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;color:var(--sg-muted);font-size:11px;border-top:1px solid var(--sg-line);padding-top:11px;margin-top:auto}
.sgca-stat-foot svg{width:16px;height:16px;color:var(--sg-teal)}
.sgca-overview-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:22px;align-items:start}
.sgca-overview-aside{display:grid;gap:18px;min-width:0}
.sgca-card{min-width:0;padding:23px;border:1px solid var(--sg-line);border-radius:var(--sg-radius);background:var(--sg-panel);box-shadow:var(--sg-shadow)}
.sgca-card h2{margin:0;font-size:16px;font-weight:700;line-height:1.8}
.sgca-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.sgca-card-heading p{margin:4px 0 0;font-size:12px;color:var(--sg-muted)}
.sgca-card-heading>.sgca-text-button{flex-shrink:0}
.sgca-recent{padding-bottom:16px;min-height:340px}
.sgca-recent .sgca-card-heading{padding-bottom:16px;border-bottom:1px solid var(--sg-line);margin-bottom:0}
.sgca-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:220px;padding:34px 20px;text-align:center;color:var(--sg-muted)}
.sgca-empty>svg{width:35px;height:35px;margin-bottom:6px;color:var(--sg-teal);opacity:.75}
.sgca-empty strong{font-size:14px;color:var(--sg-ink);font-weight:600;line-height:1.8}
.sgca-empty p{max-width:360px;font-size:12px;line-height:1.9}
.sgca-access-card .sgca-card-heading{margin-bottom:15px}
.sgca-access-card .sgca-card-heading>svg{color:var(--sg-teal)}
.sgca-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:7px;color:var(--sg-warm-text,#90612e);background:var(--sg-warm-bg,#fbf0df);font-size:11px;font-weight:600;line-height:1.8}
.sgca-access-card[data-access-status="approved"] .sgca-badge,.sgca-access-card[data-access-status="staff"] .sgca-badge{color:var(--sg-success-text,#2e7152);background:var(--sg-green-bg,#e9f4ec)}
.sgca-access-card:is([data-access-status="rejected"],[data-access-status="suspended"]) .sgca-badge{color:var(--sg-red-text,#9f463c);background:var(--sg-red-bg,#f9eae6)}
.sgca-access-card>p{font-size:12px;line-height:2;color:var(--sg-muted);margin:12px 0 4px}
.sgca-help ol{list-style:none;display:grid;gap:17px;margin:19px 0 0;padding:0}
.sgca-help li{display:flex;align-items:flex-start;gap:11px;margin:0;padding:0}
.sgca-help li>span{display:flex;align-items:center;justify-content:center;flex:0 0 25px;height:25px;margin-top:2px;border:1px solid var(--sg-line);border-radius:7px;background:var(--sg-soft,#f5f7f3);color:var(--sg-teal);font-size:12px}
.sgca-help li strong{display:block;font-size:12px;font-weight:600;color:var(--sg-ink)}
.sgca-help li small{display:block;font-size:11px;color:var(--sg-muted);line-height:1.9;margin-top:2px}
.sgca-footnote{font-size:12px;line-height:2;color:var(--sg-muted);margin-top:16px!important}
.sgca .sgd-footer{margin-top:32px}
.sgca-notice,.sgca .sgco-auth__notice{padding:12px 16px;margin:0 0 20px;border:1px solid var(--sg-line);border-radius:10px;background:var(--sg-soft,#f4f7f0);color:var(--sg-ink);font-size:13px}
.sgca .sgco-auth__notice--success{background:var(--sg-green-bg,#eef6ee);color:var(--sg-success-text,#2f7153)}
.sgca .sgco-auth__notice--error{background:var(--sg-red-bg,#fbeeea);color:var(--sg-red-text,#a44339)}
.sgca .sgco-auth__notice ul{margin:0;padding-right:18px}
.sgca-list-status{color:var(--sg-muted);font-size:13px;line-height:1.9;margin-bottom:12px!important}
.sgca-list-status:empty{display:none}
.sgca-list-status[role="alert"]{color:var(--sg-danger)}
.sgca-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--sg-line);font-size:12px;color:var(--sg-muted)}
.sgca-pagination>div{display:flex;gap:8px}
.sgca-order-detail{margin-top:24px;padding-top:22px;border-top:1px solid var(--sg-line);min-width:0}
.sgca-order-detail h2,.sgca-order-detail h3{margin:0 0 12px;font-size:18px}
.sgca-order-row,.sgca-recent-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-width:0;text-align:right;padding:16px 0;border:0;border-bottom:1px solid var(--sg-line);background:transparent;color:var(--sg-ink);font:inherit}
.sgca-order-row:last-child,.sgca-recent-row:last-child{border-bottom:0}
.sgca-order-row strong,.sgca-recent-row strong{font-size:13px;display:block;overflow-wrap:anywhere}
.sgca-order-row small,.sgca-recent-row small{font-size:11px;display:block;color:var(--sg-muted);margin-top:4px}
.sgca-order-row:hover,.sgca-recent-row:hover{color:var(--sg-teal)}
.sgca-row-main{min-width:0;flex:1}
.sgca-row-amount{font-size:13px;white-space:nowrap;text-align:left}
.sgca-row-amount small{font-size:10px;color:var(--sg-muted)}
.sgca-row-arrow{color:var(--sg-teal);flex-shrink:0}
.sgca-record-list{display:grid;min-width:0}
.sgca-record{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:15px;align-items:center;min-width:0;padding:17px 0;border-bottom:1px solid var(--sg-line)}
.sgca-record:last-child{border-bottom:0}
.sgca-record-main{min-width:0}
.sgca-record-main strong{display:block;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.sgca-record-main small{display:block;margin-top:3px;color:var(--sg-muted);font-size:11px;line-height:1.8}
.sgca-record-amount{display:flex;align-items:baseline;gap:5px;white-space:nowrap;font-size:13px}
.sgca-record-amount strong{font-weight:650;color:var(--sg-ink)}
.sgca-record-amount small{font-size:10px;color:var(--sg-muted)}
.sgca-record-status{display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;padding:4px 9px;border-radius:7px;font-size:10px;line-height:1.7;color:var(--sg-success-text,#33765a);background:var(--sg-green-bg,#edf4ee)}
.sgca-record-action{min-height:44px;white-space:nowrap;font-size:11px;padding:8px 11px;color:var(--sg-teal);background:transparent}
.sgca-record-next{grid-column:1/-1;font-size:12px;line-height:1.9;color:var(--sg-muted);overflow-wrap:anywhere}
.sgca-stats--tracking{grid-template-columns:repeat(4,minmax(0,1fr))}
.sgca-request{min-width:0;padding:19px 0;border-bottom:1px solid var(--sg-line);display:grid;gap:10px;overflow-wrap:anywhere}
.sgca-request:last-child{border-bottom:0}
.sgca-request-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sgca-request-identity{min-width:0;display:grid;gap:2px}
.sgca-request-identity small{color:var(--sg-muted);font-size:10px}
.sgca-request-identity strong{font-size:14px;direction:ltr;text-align:right;unicode-bidi:isolate}
.sgca-request-dates{display:flex;gap:4px 20px;flex-wrap:wrap;color:var(--sg-muted);font-size:11px;line-height:1.9}
.sgca-request-next{padding:11px 13px;background:var(--sg-soft,#f4f6f1);border-inline-start:3px solid var(--sg-teal);border-radius:7px;color:var(--sg-ink);font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.sgca-request-actions{display:flex;flex-wrap:wrap;gap:8px}
.sgca-request[data-status="new"] .sgca-record-status,.sgca-request[data-status="reviewing"] .sgca-record-status{background:var(--sg-warm-bg,#fbf0df);color:var(--sg-warm-text,#90612e)}
.sgca-request[data-status="lost"] .sgca-record-status{background:var(--sg-soft,#f4f6f1);color:var(--sg-muted)}
.sgca-request-detail{min-width:0;margin-bottom:22px;padding:18px;border:1px solid var(--sg-border-strong,#b8cbbb);border-radius:var(--sg-radius);background:var(--sg-panel);scroll-margin-top:15px}
.sgca-request-detail>.sgca-request-next{margin:12px 0!important}
.sgca-request-detail>.sgca-muted{margin-top:12px!important}
.sgca-request-preview {
    container: request-preview / inline-size;
    margin: 18px 0;
}
.sgca-request-preview h3 {
    margin: 0;
    font-size: 16px;
}
.sgca-request-preview > p {
    margin: 5px 0 14px;
}
.sgca-request-preview .sgca-order-table {
    min-width: 0;
    table-layout: fixed;
    overflow-wrap: anywhere;
}
.sgca-request-preview th:first-child { width: 31%; }
.sgca-request-preview th:nth-child(2),
.sgca-request-preview th:nth-child(3) { width: 8%; }
.sgca-request-preview .sgca-order-totals {
    margin-top: 10px;
    overflow-wrap: anywhere;
}
.sgca-request-adjustments {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-top: 12px;
    color: var(--sg-muted);
    font-size: 12px;
}
.sgca-request-preview > [data-account-request-edit] { margin-top: 14px; }
.sgca-request-editor {
    min-width: 0;
    margin: 18px 0;
    container: request-editor / inline-size;
}
.sgca-request-editor > h3 { margin: 0; font-size: 16px; }
.sgca-request-editor > p { margin: 6px 0 16px; }
.sgca-request-editor fieldset { min-inline-size: 0; padding: 0; margin: 0; border: 0; }
.sgca-request-edit-line, .sgca-request-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(95px, 130px) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--sg-line);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}
.sgca-request-editor :is(strong, small, label > span) { display: block; }
.sgca-request-editor :is(small, label > span) { font-size: 12px; color: var(--sg-muted); }
.sgca-request-editor input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin-top: 4px;
    padding: 7px 10px;
    border: 1px solid var(--sg-border-strong, #b8cbbb);
    border-radius: 7px;
    background: var(--sg-panel);
    color: var(--sg-ink);
    font: inherit;
}
.sgca-request-editor input[aria-invalid="true"] { border-color: var(--sg-danger); }
.sgca-request-editor [data-request-item-remove],
.sgca-request-editor [role="alert"] { color: var(--sg-danger); }
.sgca-request-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    border-top: 1px solid var(--sg-line);
    padding-top: 12px;
    margin-top: 15px;
}
.sgca-request-product-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid var(--sg-line);
    border-radius: 9px;
    background: var(--sg-soft, #f4f6f1);
}
.sgca-request-filter { position: relative; min-width: 0; }
.sgca-request-filter > label {
    display: block;
    color: var(--sg-ink);
    font-size: 12px;
    font-weight: 600;
}
.sgca-request-filter [role="combobox"] {
    padding-inline-end: 28px;
    text-overflow: ellipsis;
}
.sgca-request-filter [aria-expanded="true"] { border-color: var(--sg-teal); }
.sgca-request-filter input:disabled { opacity: .68; cursor: default; }
.sgca-request-filter::after {
    content: "";
    position: absolute;
    inset-inline-end: 12px;
    bottom: 19px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--sg-muted);
    border-bottom: 1.5px solid var(--sg-muted);
    transform: rotate(45deg);
    pointer-events: none;
}
.sgca-request-filter-options {
    position: absolute;
    z-index: 8;
    inset-inline: 0;
    top: calc(100% + 3px);
    max-height: min(230px, 40dvh);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 4px;
    border: 1px solid var(--sg-border-strong, #b8cbbb);
    border-radius: 7px;
    background: var(--sg-panel);
    box-shadow: var(--sg-shadow);
}
.sgca-request-filter-options [role="option"] {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--sg-ink);
    font: inherit;
    font-size: 13px;
    line-height: 1.65;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.sgca-request-filter-options [role="option"]:is(:hover, [data-active="true"]) {
    background: var(--sg-soft, #f4f6f1);
}
.sgca-request-filter-options [aria-selected="true"] {
    color: var(--sg-teal-dark);
    font-weight: 700;
}
.sgca-request-product-filters ~ .sgca-request-search {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0;
    margin-top: 10px;
    border: 0;
}
.sgca-request-filter-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-block: 6px;
    color: var(--sg-muted);
    font-size: 12px;
}
.sgca-request-filter-status:empty { display: none; }
.sgca-request-product { grid-template-columns: minmax(0, 1fr) auto; }
.sgca-request-editor .sgca-record-action {
    grid-row: auto;
    grid-column: auto;
    justify-self: auto;
}
.sgca-request-editor .sgca-list-status:empty { display: none; }
.sgca-request-editor fieldset > .sgca-request-actions:last-child { margin-top: 14px; }
@container request-editor (max-width: 790px) {
    .sgca-request-product-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container request-editor (max-width: 520px) {
    .sgca-request-edit-line { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
    .sgca-request-edit-line > div { grid-column: 1 / -1; }
    .sgca-request-editor input { font-size: 16px; }
    .sgca-request-product-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 9px;
        gap: 8px;
    }
    .sgca-request-filter:first-child { grid-column: 1 / -1; }
    .sgca-request-product-filters ~ .sgca-request-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sgca-request-product-filters ~ .sgca-request-search > label { grid-column: 1 / -1; }
}
@container request-editor (max-width: 255px) {
    .sgca-request-product-filters { grid-template-columns: minmax(0, 1fr); }
}
@container request-preview (max-width: 620px) {
    .sgca-request-preview .sgca-order-table,
    .sgca-request-preview tbody {
        display: block;
        border: 0;
    }
    .sgca-request-preview thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .sgca-request-preview tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
        border: 1px solid var(--sg-line);
        border-radius: 8px;
        padding: 12px;
        margin-block: 8px;
    }
    .sgca-request-preview .sgca-order-table td {
        border: 0;
        padding: 0;
    }
    .sgca-request-preview td:first-child {
        grid-column: 1 / -1;
        font-weight: 700;
    }
    .sgca-request-preview td:not(:first-child)::before {
        display: block;
        content: attr(data-label);
        content: attr(data-label) / "";
        color: var(--sg-muted);
        font-size: 11px;
    }
}
.sgca-order-detail>.sgca-request-next{margin-bottom:16px!important}
@media(max-width:1200px){.sgca-stats--tracking{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sgca-stats--tracking .sgca-stat--access{grid-column:auto;display:flex;padding:17px 15px 13px}.sgca-stats--tracking .sgca-stat--access .sgca-stat-icon{display:none}.sgca-stats--tracking .sgca-stat--access>strong.sgca-access-value{min-height:43px}.sgca-request-detail{padding:14px}.sgca-request-actions>.sgca-button{flex:1;white-space:normal}.sgca-request-dates{display:grid;gap:3px}}
.sgca-recent .sgca-record{grid-template-columns:minmax(0,1fr) auto;gap:8px 15px}
.sgca-recent .sgca-record-main{grid-column:1;grid-row:1}
.sgca-recent .sgca-record-amount{grid-column:2;grid-row:1}
.sgca-recent .sgca-record > .sgca-record-status{grid-column:1;grid-row:2}
.sgca-recent .sgca-record-action{grid-column:2;grid-row:2;justify-self:end;border:0;padding:4px 0;min-height:36px}
.sgca-order-detail-header{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:16px}
.sgca-order-detail-header h2,.sgca-order-detail-header h3{margin:0;font-size:18px}
.sgca-order-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px;margin:16px 0;padding:16px;border:1px solid var(--sg-line);border-radius:9px;background:var(--sg-soft,#f4f6f1);font-size:12px;overflow-wrap:anywhere}
.sgca-order-meta dt,.sgca-order-meta small{display:block;color:var(--sg-muted);font-size:11px}
.sgca-order-meta dd,.sgca-order-meta strong{display:block;margin:2px 0 0;color:var(--sg-ink);font-weight:600}
.sgca-order-table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.sgca-order-table{width:100%;min-width:650px;border-collapse:collapse;font-size:12px;line-height:1.9;border:1px solid var(--sg-line)}
.sgca-order-table th,.sgca-order-table td{padding:11px 10px;border:1px solid var(--sg-line);text-align:right;vertical-align:top;color:var(--sg-ink)}
.sgca-order-table th{background:var(--sg-soft,#f3f6f1);font-weight:600}
.sgca-order-table td small{display:block;font-size:10px;color:var(--sg-muted)}
.sgca-order-totals{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:17px;padding:16px;border:1px solid var(--sg-line);border-radius:9px;background:var(--sg-soft,#f4f6f1);font-size:13px;color:var(--sg-ink)}
.sgca-order-totals strong{font-size:18px;color:var(--sg-teal-dark)}
.sgca-order-timeline{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:9px;font-size:12px}
.sgca-order-timeline li{padding:9px 13px;border-right:2px solid var(--sg-border-strong,#b8cbbb);background:var(--sg-soft,#f5f7f2);border-radius:7px 0 0 7px}
.sgca-order-timeline small{display:block;font-size:10px;color:var(--sg-muted)}
.sgca-order-note{font-size:12px;line-height:2;overflow-wrap:anywhere;margin-top:15px!important;color:var(--sg-muted)}
.sgca-muted{color:var(--sg-muted);font-size:12px}
.sgca-profile-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr);align-items:start;gap:22px}
.sgca .sgca-profile-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0;max-width:none;width:100%;padding:0}
.sgca-profile-form label{display:grid;gap:8px;margin:0;font-size:13px;color:var(--sg-ink)}
.sgca-profile-form input:not([type="hidden"]){width:100%;min-width:0;min-height:46px;border:1px solid var(--sg-border-strong,#cfd8cf);border-radius:9px;padding:10px 12px;background:var(--sg-panel);color:var(--sg-ink);font:inherit;font-size:14px;box-shadow:none}
.sgca-profile-form input:is([type="tel"],[type="email"]){direction:ltr;text-align:left}
.sgca-profile-form input[readonly]{background:var(--sg-soft,#f3f6f0);color:var(--sg-muted)}
.sgca-profile-form label small{font-size:11px;color:var(--sg-muted)}
.sgca-full-row{grid-column:1/-1}
.sgca-form-actions{padding-top:8px;display:flex;justify-content:flex-start}
.sgca-profile-note>svg{width:28px;height:28px;color:var(--sg-teal);margin-bottom:10px}
.sgca-profile-note h2{font-size:15px;margin-bottom:12px}
.sgca-profile-note p{font-size:12px;line-height:2;color:var(--sg-muted);margin:10px 0 0}
/* The issued-document renderer is shared with the purchasing panel. */
.sgca .sgj-documents{margin:0;padding:23px;border-color:var(--sg-line);border-radius:var(--sg-radius);background:var(--sg-panel);color:var(--sg-ink);box-shadow:var(--sg-shadow);font-family:inherit}
.sgca .sgj-documents h2{font-size:16px;color:var(--sg-ink);line-height:1.8}
.sgca .sgj-documents h3{color:var(--sg-ink);font-size:18px}
.sgca .sgj-documents__header{margin-bottom:9px}
.sgca .sgj-documents__hint{color:var(--sg-muted);font-size:12px;line-height:2;margin:8px 0}
.sgca .sgj-documents__status{color:var(--sg-muted);font-size:12px;margin:12px 0}
.sgca .sgj-documents__status[role="alert"]{color:var(--sg-danger)}
.sgca .sgj-documents__list{gap:0;margin-top:18px}
.sgca .sgj-documents__list>.sgj-documents__button{width:100%;justify-content:space-between;text-align:right;border:0;border-top:1px solid var(--sg-line);border-radius:0;padding:17px 4px;background:transparent;box-shadow:none}
.sgca .sgj-documents__list>.sgj-documents__button:hover{background:var(--sg-soft,#f5f7f2)}
.sgca .sgj-documents__list>.sgj-documents__button:first-child{border-top:0}
.sgca .sgj-documents__number{font-weight:700;color:var(--sg-ink);font-size:13px;overflow-wrap:anywhere}
.sgca .sgj-documents__date{color:var(--sg-muted);font-size:11px}
.sgca .sgj-documents__amount{font-size:13px;color:var(--sg-ink)}
.sgca .sgj-documents__state{font-size:11px;color:var(--sg-success-text,#317859);background:var(--sg-green-bg,#ecf5ee);border-radius:6px;padding:3px 8px}
.sgca .sgj-documents__row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:22px;align-items:center;white-space:normal;min-width:0}
.sgca .sgj-documents__identity{display:grid;gap:4px;min-width:0}
.sgca .sgj-documents__amount{justify-items:end;gap:6px}
.sgca .sgj-documents__amount strong{font-size:13px}
.sgca .sgj-documents__badge{display:inline-flex;justify-content:center;align-items:center;width:max-content;font-size:10px;font-weight:500;line-height:1.8;color:var(--sg-success-text,#317859);background:var(--sg-green-bg,#ecf5ee);border-radius:6px;padding:3px 8px}
.sgca .sgj-documents__open{font-size:11px;color:var(--sg-teal);white-space:nowrap}
.sgca .sgj-documents__empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:35px 20px;text-align:center;min-height:180px;color:var(--sg-muted);background:var(--sg-soft,#f5f7f2);border-color:var(--sg-line);font-size:12px;line-height:1.9}
.sgca .sgj-documents__empty strong,.sgca .sgj-documents__empty h3{font-size:14px;font-weight:600;color:var(--sg-ink)}
.sgca .sgj-documents__empty--error{color:var(--sg-danger)}
.sgca .sgj-documents__nav{padding-top:16px;border-top:1px solid var(--sg-line);font-size:12px;color:var(--sg-muted)}
.sgca .sgj-documents__detail{border-color:var(--sg-teal);padding-top:22px}
.sgca .sgj-documents__meta{font-size:12px;color:var(--sg-muted);padding:15px;border-radius:9px;background:var(--sg-soft,#f5f7f2);border:1px solid var(--sg-line)}
.sgca .sgj-documents :is(th,td){border-color:var(--sg-line);color:var(--sg-ink);font-size:12px}
.sgca .sgj-documents th{background:var(--sg-soft,#f3f6f0)}
.sgca .sgj-documents th{white-space:nowrap}.sgj-documents__scroll-hint{display:none}.sgca .sgj-documents__table-wrap:focus-visible{outline:2px solid var(--sg-focus,#62b4a7);outline-offset:3px}
@media(max-width:760px){.sgca .sgj-documents__scroll-hint{display:block;margin:0 0 8px;color:var(--sg-muted);font-size:11px;line-height:1.9}}
.sgca .sgj-documents td small{color:var(--sg-muted)}
.sgca .sgj-documents__totals{padding:16px;background:var(--sg-soft,#f5f7f2);border:1px solid var(--sg-line);border-radius:9px;font-size:12px}
.sgca .sgj-documents__totals strong{color:var(--sg-teal-dark);font-size:17px;padding-top:7px;border-top:1px solid var(--sg-line)}
/* Authentication keeps the same palette and type as the signed-in workspace. */
.sgca-auth-shell{width:100%;min-height:100vh;padding:42px 24px;display:flex;align-items:center;justify-content:center;background:var(--sg-bg);box-sizing:border-box}
body.sgca-body .sgco-account-page.sgca-auth-shell{padding:42px 24px;min-height:100vh;background:var(--sg-bg)}
.sgca-auth-shell *{box-sizing:border-box}
.sgca-auth-shell .sgco-auth{width:100%;max-width:490px;margin:0;padding:0;color:var(--sg-ink);font-family:inherit}
.sgca-auth-shell .sgco-auth__hero{display:block;margin:0 0 24px;padding:0;text-align:center;background:none;border:0;box-shadow:none}
.sgca-auth-shell .sgco-auth__hero h1{font:750 27px/1.65 SGDashboard,Vazirmatn,Tahoma,sans-serif;color:var(--sg-ink);margin:7px 0}
body.sgca-body .sgca-auth-shell .sgco-auth__hero p{font-size:13px;line-height:1.9;color:var(--sg-muted);margin:0}
.sgca-auth-shell .sgco-auth__hero [data-sgd-theme-switch]{margin-top:12px}
body.sgca-body .sgca-auth-shell .sgco-auth__hero .sgco-panel__eyebrow{font-size:17px;color:var(--sg-teal);font-weight:700}
.sgca-auth-shell .sgco-auth__card{padding:28px;border:1px solid var(--sg-line);border-radius:var(--sg-radius);background:var(--sg-panel);box-shadow:var(--sg-shadow);margin:0}
.sgca-auth-shell .sgco-auth__tabs{display:flex;gap:4px;padding:4px;margin:0 0 16px;border:1px solid var(--sg-line);border-radius:11px;background:var(--sg-raised,#e9ede6)}
.sgca-auth-shell .sgco-auth__tabs a{flex:1;min-height:44px;text-align:center;padding:10px 16px;font-size:13px;font-weight:600;color:var(--sg-muted);border:0;border-radius:8px;background:transparent;text-decoration:none}
.sgca-auth-shell .sgco-auth__tabs a[aria-current="page"]{color:var(--sg-teal-dark);background:var(--sg-panel);box-shadow:0 1px 3px #10292312}
.sgca-auth-shell .sgco-auth__form{display:grid;gap:17px;padding:0;margin:0;max-width:none}
.sgca-auth-shell .sgco-auth__form-heading h2{font-size:20px;line-height:1.7;color:var(--sg-ink);margin:0 0 6px}
body.sgca-body .sgca-auth-shell :is(h1,h2){color:var(--sg-ink)!important}
.sgca-auth-shell .sgco-auth__form-heading p,.sgca-auth-shell .sgco-auth__hint{font-size:12px;line-height:1.9;color:var(--sg-muted);margin:0}
.sgca-auth-shell .sgco-auth__form>label{display:grid;gap:6px;font-size:13px;margin:0;color:var(--sg-ink)}
.sgca-auth-shell .sgco-auth__form input:not([type="hidden"]):not([type="checkbox"]){width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid var(--sg-border-strong,#cfd8cf);border-radius:8px;background:var(--sg-panel);color:var(--sg-ink);font:inherit;font-size:14px;box-shadow:none}
.sgca-auth-shell .sgco-auth__form input:is([type="email"],[type="tel"],[name="login"],[type="password"]){direction:ltr;text-align:left}
.sgca-auth-shell .sgco-auth__form .sgco-auth__check{display:flex;align-items:center;gap:8px;font-size:12px;min-height:30px}
.sgca-auth-shell input[type="checkbox"]{width:17px;height:17px;accent-color:var(--sg-teal)}
.sgca-auth-shell .sgco-auth__primary{min-height:46px;border:0;border-radius:9px;padding:11px 16px;font:600 14px/1.8 SGDashboard,Vazirmatn,Tahoma,sans-serif;background:var(--sg-primary-bg,var(--sg-teal));color:var(--sg-on-primary,#fff);text-decoration:none;text-align:center;cursor:pointer}
.sgca-auth-shell .sgco-auth__primary:hover{background:var(--sg-primary-hover,var(--sg-teal-dark))}
.sgca-auth-shell .sgco-auth__text-link{font-size:12px;min-height:32px;display:flex;align-items:center;color:var(--sg-teal);text-decoration:none}
.sgca-auth-shell .sgco-auth__notice{padding:12px 15px;margin:0 0 16px;background:var(--sg-soft,#f4f7f1);border:1px solid var(--sg-line);border-radius:9px;font-size:12px;color:var(--sg-ink)}
.sgca-auth-shell .sgco-auth__notice p{margin:0}
.sgca-auth-shell .sgco-auth__notice--error{background:var(--sg-red-bg,#fbece8);color:var(--sg-red-text,#9e443b)}
.sgca-auth-shell .sgco-auth__notice--success{background:var(--sg-green-bg,#eaf4ec);color:var(--sg-success-text,#357655)}
.sgca-auth-shell :is(button,a,input):focus-visible{outline:3px solid var(--sg-focus,#62b4a7);outline-offset:3px}
.sgca-auth-back{text-align:center;margin:18px 0 0;font-size:12px}
body.sgca-body .sgca-auth-back :is(a,button){display:inline-flex;align-items:center;min-height:44px;margin:0;padding:4px 10px;border:0;border-radius:8px;background:transparent;color:var(--sg-teal);box-shadow:none;text-decoration:none}
body.sgca-body .sgca-auth-back :is(a,button):hover{background:var(--sg-soft,#eef2ed);color:var(--sg-teal-dark);text-decoration:underline}
@media(max-width:1200px){.sgca .sgd-main{padding:28px 26px 15px}.sgca .sgd-page-heading{gap:16px}.sgca .sgd-page-heading h1{font-size:25px}.sgca-stats{gap:12px}.sgca-stat{padding:18px 17px 14px}.sgca-stat-icon{left:15px;top:18px}.sgca-overview-grid{grid-template-columns:minmax(0,1.45fr) minmax(245px,1fr);gap:16px}.sgca-card{padding:20px}.sgca-profile-grid{grid-template-columns:minmax(0,1.4fr) minmax(230px,1fr);gap:16px}}
@media(min-width:761px) and (max-width:1020px){.sgca .sgd-page-heading{align-items:flex-start;flex-direction:column}.sgca-overview-grid,.sgca-profile-grid{grid-template-columns:1fr}.sgca-overview-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.sgca-stats{gap:10px}.sgca-stat{padding:16px 12px 12px}.sgca-stat-label{font-size:11px;padding-left:30px}.sgca-stat-icon{left:10px;top:16px;width:28px;height:28px}.sgca-stat-icon svg{width:17px;height:17px}.sgca-stat>strong.sgca-access-value{font-size:16px}.sgca-stat-foot{font-size:10px}.sgca-card-heading{align-items:flex-start}}
@media(max-width:760px){.sgca .sgd-main{padding:23px 18px 15px}.sgca .sgd-page-heading{align-items:flex-start;margin-bottom:20px;gap:15px}.sgca .sgd-page-heading h1{font-size:24px}.sgca .sgd-page-heading p{font-size:12px}.sgca .sgd-page-heading>.sgca-primary{width:100%}.sgca-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:19px}.sgca-stat{padding:17px 15px 13px}.sgca-stat-label{font-size:11px;padding-left:29px}.sgca-stat-icon{left:13px;top:17px;width:28px;height:28px}.sgca-stat-icon svg{width:17px;height:17px}.sgca-stat>strong{font-size:29px;min-height:43px;margin:4px 0 8px}.sgca-stat--access{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:0 10px;padding:14px 17px}.sgca-stat--access .sgca-stat-icon{position:static;grid-row:1/3;grid-column:2;align-self:center}.sgca-stat--access .sgca-stat-label{padding:0;min-height:0}.sgca-stat--access>strong.sgca-access-value{font-size:17px;min-height:0;margin:4px 0 0}.sgca-stat--access .sgca-stat-foot{display:none}.sgca-overview-grid,.sgca-profile-grid{grid-template-columns:1fr;gap:17px}.sgca-overview-aside{gap:17px}.sgca-card{padding:19px}.sgca-card h2{font-size:15px}.sgca-card-heading{gap:8px}.sgca-card-heading p{font-size:11px}.sgca-recent{min-height:300px}.sgca-empty{padding:28px 12px;min-height:190px}.sgca .sgj-documents{padding:18px}.sgca .sgj-documents__header>*{width:auto}.sgca .sgj-documents__header{align-items:center;gap:10px}.sgca .sgj-documents__header h2{font-size:15px}.sgca .sgj-documents__header .sgj-documents__button{font-size:11px;padding:8px 12px}.sgca .sgj-documents__meta{grid-template-columns:1fr;padding:13px}.sgca .sgj-documents__totals strong{font-size:15px}.sgca .sgd-footer{margin-top:25px}.sgca-auth-shell{padding:30px 18px}.sgca-auth-shell .sgco-auth__card{padding:24px}.sgca-auth-shell .sgco-auth__hero h1{font-size:25px}}
@media(max-width:540px){#sgca-theme-switch{display:flex;width:100%}.sgca .sgd-main{min-height:calc(100vh - 108px)}.sgca .sgca-profile-form{grid-template-columns:1fr;gap:17px}.sgca-profile-form .sgca-form-actions>.sgca-button{width:100%}.sgca-order-row,.sgca-recent-row{gap:10px;flex-wrap:wrap}.sgca-order-row strong,.sgca-recent-row strong{font-size:12px}.sgca-row-amount{font-size:12px}.sgca-record{grid-template-columns:minmax(0,1fr) auto;gap:8px 10px}.sgca-record-main{grid-column:1;grid-row:1}.sgca-record-amount{grid-column:2;grid-row:1;font-size:12px}.sgca-record-status{grid-column:1;grid-row:2}.sgca-record-action{grid-column:2;grid-row:2;justify-self:end}.sgca-order-meta{grid-template-columns:1fr}.sgca-order-totals strong{font-size:16px}.sgca .sgj-documents__list>.sgj-documents__button{flex-wrap:wrap;gap:7px 12px}.sgca .sgj-documents__number{font-size:12px}.sgca .sgj-documents__row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}.sgca .sgj-documents__identity{grid-column:1;grid-row:1}.sgca .sgj-documents__amount{grid-column:2;grid-row:1;font-size:12px}.sgca .sgj-documents__open{grid-column:1/-1;grid-row:2;justify-self:stretch;border-color:var(--sg-line);padding-top:8px}.sgca .sgj-documents__actions{justify-content:stretch}.sgca .sgj-documents__actions>.sgj-documents__button{flex:1}}
@media(max-width:360px){.sgca .sgd-main{padding-inline:13px}.sgca .sgd-page-heading h1{font-size:22px}.sgca-stat{padding:15px 12px 12px}.sgca-stat-label{font-size:10px;padding-left:25px}.sgca-stat-icon{left:10px;width:24px;height:24px}.sgca-stat-foot{font-size:10px}.sgca-card{padding:16px}.sgca-card-heading{flex-wrap:wrap}.sgca-auth-shell{padding-inline:13px}.sgca-auth-shell .sgco-auth__card{padding:20px}.sgca-auth-shell .sgco-auth__hero h1{font-size:23px}}
@media print{.sgca{display:none!important}}
@media(max-width:760px){body.sgca-body .sgco-account-page.sgca-auth-shell{padding:30px 18px}}
@media(max-width:360px){body.sgca-body .sgco-account-page.sgca-auth-shell{padding-inline:13px}}

/* Customer overview */
.sgca .sgca-overview-heading {
    flex-flow: row wrap;
    align-items: center;
    gap: 8px 18px;
    margin-bottom: 16px;
}
.sgca-overview-title, .sgca-access-link, .sgca-access-notice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.sgca .sgca-overview-heading > .sgca-primary { width: auto; min-height: 44px; }
.sgca-access-link {
    min-height: 44px;
    gap: 5px;
    padding: 0 3px;
    border: 0;
    background: none;
    color: var(--sg-success-text, #33735e);
    font-size: 12px;
}
.sgca-access-link svg { width: 15px; height: 15px; }
.sgca-access-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sgca-access-notice {
    margin: 0 0 14px;
    padding: 6px 14px;
    border-inline-start: 3px solid var(--sg-copper);
    background: var(--sg-warm-bg, #fbf0df);
    color: var(--sg-warm-text, #80521f);
    font-size: 13px;
}
.sgca .sgca-overview-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 18px;
    padding: 8px 0;
    gap: 0;
    border: 1px solid var(--sg-line);
    border-radius: var(--sg-radius);
    background: var(--sg-panel);
}
.sgca-total {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 46px;
    padding: 4px clamp(10px, 1.7vw, 24px);
    border: 0;
    background: transparent;
    color: var(--sg-muted);
    font-size: 13px;
}
.sgca-total + .sgca-total { border-inline-start: 1px solid var(--sg-line); }
.sgca-total svg { width: 19px; height: 19px; color: var(--sg-teal); }
.sgca-total strong { margin-inline-start: auto; color: var(--sg-ink); font-size: 22px; line-height: 1.5; }
.sgca-total:hover { background: var(--sg-soft, #f4f6f1); color: var(--sg-ink); }
.sgca .sgca-overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    align-items: start;
    gap: 16px;
}
.sgca-overview-grid > .sgca-card {
    min-height: 0;
    padding: 0 16px;
    box-shadow: none;
}
.sgca-overview-grid .sgca-card-heading {
    align-items: center;
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px solid var(--sg-line);
}
.sgca-overview-grid .sgca-card-heading h2 { font-size: 16px; line-height: 1.7; }
.sgca-overview-grid .sgca-empty { min-height: 76px; padding: 13px 0; }
.sgca-overview-grid .sgca-empty strong { color: var(--sg-muted); font-size: 13px; font-weight: 500; }
.sgca-activity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 62px;
    padding: 8px 2px;
    border: 0;
    background: transparent;
    color: var(--sg-ink);
    text-align: start;
}
.sgca-activity-row + .sgca-activity-row { border-top: 1px solid var(--sg-line); }
.sgca-activity-row:hover { background: var(--sg-soft, #f4f6f1); }
.sgca-activity-id { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.sgca-activity-id bdi { justify-self: start; font-size: 14px; font-weight: 650; }
.sgca-activity-id small { color: var(--sg-muted); font-size: 12px; }
.sgca-activity-row .sgca-record-status { grid-area: auto; border-radius: 99px; font-size: 11px; }
.sgca-activity-row:is([data-status="new"], [data-status="reviewing"]) .sgca-record-status {
    background: var(--sg-warm-bg, #fbf0df); color: var(--sg-warm-text, #80521f);
}
.sgca-activity-row:is([data-status="lost"], [data-status="trash"], [data-status="unknown"]) .sgca-record-status {
    background: var(--sg-soft, #f4f6f1); color: var(--sg-muted);
}
.sgca-activity-row::after {
    content: "";
    width: 6px;
    height: 6px;
    border: solid var(--sg-teal);
    border-width: 0 0 1.5px 1.5px;
    transform: rotate(45deg);
}
@media (max-width: 580px) {
    .sgca-overview-title { width: 100%; justify-content: space-between; }
    .sgca .sgca-overview-heading > .sgca-primary { width: 100%; }
    .sgca-total { flex-direction: column-reverse; justify-content: center; gap: 0; padding: 3px 4px; font-size: 12px; }
    .sgca-total strong { margin: 0; }
    .sgca-total svg { display: none; }
    .sgca-overview-grid > .sgca-card { padding-inline: 14px; }
}

/* Request history inside the account page and the purchase dialog. */
.sgca #sgca-quote-hub { flex: 1; min-width: 0; }
.sgca .sgca-quote-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--sg-line);
}
.sgca .sgca-quote-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 10px;
    border-bottom: 3px solid transparent;
    color: var(--sg-muted);
    text-decoration: none;
}
.sgca .sgca-quote-nav a[aria-current="page"] {
    border-bottom-color: var(--sg-teal);
    color: var(--sg-ink);
    font-weight: 700;
}
.sgca .sgca-quote-nav a:focus-visible {
    outline: 2px solid var(--sg-teal);
    outline-offset: -2px;
}
.sgca-tracking-toolbar { display: flex; justify-content: flex-end; padding: 10px 16px; }
.sgca .sgca-requests-card { padding: 0; box-shadow: none; }
.sgca-requests-card > .sgca-request-detail { margin: 14px; }
.sgca-requests-card > .sgca-list-status:not(:empty) { margin: 14px 18px !important; }
.sgca-requests-card > .sgca-pagination { margin: 0; padding: 12px 18px; }
.sgca-requests-card > .sgca-pagination[hidden] { display: none; }
.sgca [data-account-requests] { container-type: inline-size; }
.sgca .sgca-tracking-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--sg-ink);
    font-size: 13px;
    line-height: 1.6;
}
.sgca-tracking-table :is(th, td) {
    padding: 8px 16px;
    border: 0;
    background: transparent;
    text-align: start;
    vertical-align: middle;
}
.sgca-tracking-table thead th {
    padding-block: 10px;
    background: var(--sg-soft, #f4f6f1);
    color: var(--sg-muted);
    font-size: 12px;
    font-weight: 500;
}
.sgca-tracking-table thead th:first-child { border-start-start-radius: var(--sg-radius); }
.sgca-tracking-table thead th:last-child { border-start-end-radius: var(--sg-radius); text-align: end; }
.sgca-tracking-table tbody :is(th, td) { border-top: 1px solid var(--sg-line); }
.sgca-tracking-number { font-weight: 650; overflow-wrap: anywhere; }
.sgca-tracking-date { color: var(--sg-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.sgca-mobile-date-label { display: none; }
.sgca-tracking-stage .sgca-record-status { border-radius: 999px; font-size: 11px; }
.sgca-tracking-row:is([data-status="new"], [data-status="reviewing"]) .sgca-record-status {
    background: var(--sg-warm-bg, #fbf0df); color: var(--sg-warm-text, #80521f);
}
.sgca-tracking-row:is([data-status="lost"], [data-status="trash"], [data-status="unknown"]) .sgca-record-status {
    background: var(--sg-soft, #f4f6f1); color: var(--sg-muted);
}
.sgca-tracking-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0 8px; }
.sgca-tracking-actions .sgca-button { min-height: 44px; padding: 5px 10px; font-size: 12px; }
.sgca-tracking-actions [data-account-request-id] {
    gap: 8px;
    border-color: transparent;
    background: transparent;
    color: var(--sg-teal);
}
.sgca-tracking-actions [data-account-request-id]::after {
    content: "";
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 0 1.5px 1.5px;
    transform: rotate(45deg);
}
.sgca-tracking-actions [data-account-request-id]:hover { text-decoration: underline; text-underline-offset: 3px; }
@container (max-width: 600px) {
    .sgca-tracking-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .sgca-tracking-table tbody { display: block; }
    .sgca-tracking-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 4px 8px;
        padding: 12px 14px 8px;
    }
    .sgca-tracking-row + .sgca-tracking-row { border-top: 1px solid var(--sg-line); }
    .sgca-tracking-table tbody :is(th, td) { padding: 0; border: 0; }
    .sgca-tracking-stage { justify-self: end; }
    .sgca-mobile-date-label { display: block; font-size: 10px; }
    .sgca-tracking-actions { gap: 0 4px; }
    .sgca-tracking-actions .sgca-button { padding-inline: 6px; }
}

/* Issued quotes: one page title, a quiet list toolbar, and a single empty state. */
.sgca #sgca-quote-hub > .sgd-page-heading{margin-bottom:16px}
.sgca #sgca-quote-hub > .sgd-page-heading h1{font-size:26px!important;line-height:1.6}
.sgca #sgca-section-quotes .sgj-documents{padding:0;overflow:hidden;box-shadow:none}
.sgca #sgca-section-quotes .sgj-documents__header{padding:14px 20px;margin:0;border-bottom:1px solid var(--sg-line);gap:12px}
.sgca #sgca-section-quotes .sgj-documents__header h2{font-size:13px!important;font-weight:600}
.sgca #sgca-section-quotes .sgj-documents__header .sgj-documents__button{font-size:12px;min-height:40px;padding:6px 12px}
.sgca #sgca-section-quotes .sgj-documents__list{margin:0;padding:0 20px}
.sgca #sgca-section-quotes .sgj-documents__empty{border:0;background:transparent;padding:32px 12px;min-height:220px;gap:10px}
.sgca #sgca-section-quotes .sgj-documents__empty h3{font-size:17px!important;line-height:1.8}
.sgca #sgca-section-quotes .sgj-documents__empty p{font-size:13px!important;max-width:390px;margin:0}
.sgca #sgca-section-quotes .sgj-documents__empty .sgj-documents__button{margin-top:8px;color:var(--sg-teal);font-size:12px}
.sgca #sgca-section-quotes .sgj-documents__status{margin:12px 20px;font-size:12px!important}
.sgca #sgca-section-quotes .sgj-documents__hint{font-size:12px!important}
.sgca #sgca-section-quotes .sgj-documents__nav{margin:0;padding:14px 20px}
.sgca #sgca-section-quotes .sgj-documents__detail{border:0;margin:0;padding:20px}
.sgca #sgca-section-quotes .sgj-documents__detail h3{font-size:18px!important}
.sgca #sgca-section-quotes .sgca-footnote{font-size:11px!important;line-height:1.9;margin-top:13px}

/* The containing purchase dialog already supplies the outer application chrome. */
.sgca-embedded .sgca .sgd-sidebar{width:218px;padding:24px 14px 16px}
.sgca-embedded .sgca .sgd-workspace{margin-right:218px}
.sgca-embedded .sgca .sgd-sidebar-user{margin-top:auto}
.sgca-embedded .sgca .sgca-brand{margin-bottom:20px}
.sgca-embedded .sgca .sgca-brand strong{font-size:22px}
.sgca-embedded .sgca .sgd-workspace-label,.sgca-embedded .sgca .sgd-sidebar-note,.sgca-embedded .sgca .sgd-footer{display:none}
.sgca-embedded .sgca .sgd-nav{gap:4px}
.sgca-embedded .sgca .sgd-nav-item{min-height:44px;padding:10px 12px;font-size:13px;gap:10px}
.sgca-embedded .sgca .sgca-sidebar-links{margin-top:14px;padding-top:12px}
.sgca-embedded .sgca .sgd-topbar{height:60px;min-height:60px;padding:10px 24px;gap:12px}
.sgca-embedded .sgca .sgd-today,.sgca-embedded .sgca .sgd-product-name,.sgca-embedded .sgca .sgd-slash{display:none}
.sgca-embedded .sgca .sgd-breadcrumb{font-size:13px}
.sgca-embedded .sgca .sgd-main{min-height:calc(100dvh - 60px);padding:24px;max-width:1320px}
@media(max-width:760px){
  .sgca #sgca-quote-hub > .sgd-page-heading h1{font-size:23px!important}
  .sgca #sgca-section-quotes .sgj-documents__header{padding:12px 14px}
  .sgca #sgca-section-quotes .sgj-documents__list{padding:0 14px}
  .sgca #sgca-section-quotes .sgj-documents__empty{padding:26px 4px;min-height:210px}
  .sgca #sgca-section-quotes .sgj-documents__empty h3{font-size:16px!important}
  .sgca #sgca-section-quotes .sgj-documents__detail{padding:14px}
  .sgca-embedded .sgca .sgd-sidebar{width:min(284px,calc(100vw - 32px))}
  .sgca-embedded .sgca .sgd-workspace{margin-right:0}
  .sgca-embedded .sgca .sgd-topbar{padding:10px 14px;flex-wrap:nowrap}
  .sgca-embedded .sgca .sgd-main{padding:20px 14px}
  .sgca-embedded .sgca .sgd-topbar-end{width:auto}
  .sgca-embedded .sgca .sgd-breadcrumb{gap:8px;min-width:0}
  .sgca-embedded .sgca #sgca-current-view{font-size:12px}
}

/* Keep action surfaces legible inside the site's theme and the embedded sales tools. */
#sgca-app {
    --action-solid: #12574e;
    --action-on-solid: #fff;
    --action-soft: #e4f1ed;
    --action-ink: #164f48;
    --action-edge: #49796d;
    --action-hover: #cee6de;
    --action-danger-bg: #faeae8;
    --action-danger-ink: #802d28;
    --action-danger-edge: #9d5c53;
    --action-off-bg: #e8e9e5;
    --action-off-ink: #535952;
    --action-off-edge: #747a73;
}
[data-sgs-theme="dusk"] #sgca-app {
    --action-solid: #305840;
    --action-soft: #e7ebdc;
    --action-ink: #284e3b;
    --action-edge: #57745b;
    --action-hover: #d5e0ca;
}
[data-sgs-theme="night"] #sgca-app {
    --action-solid: #a5ddcb;
    --action-on-solid: #102e28;
    --action-soft: #274941;
    --action-ink: #e6fff7;
    --action-edge: #85b9aa;
    --action-hover: #315b50;
    --action-danger-bg: #4a3032;
    --action-danger-ink: #ffcfca;
    --action-danger-edge: #d99490;
    --action-off-bg: #2b3436;
    --action-off-ink: #bbc3c0;
    --action-off-edge: #788880;
}
#sgca-app :is(.sgca-button, .sgca-text-button, .sgca-access-link, .sgqr-button, .sgqa-button,
              .sgjt-button, .sgj-documents__button, .sgj-documents__open, .sgd-icon-button,
              .sgjt-notification-button, .sgjt-notification-open, .sgjt-notification-close,
              .sgca-total, .sg-request-project :where(button)) {
    min-height: 44px;
    min-inline-size: 44px;
    border: 1px solid var(--btn-edge, var(--action-edge));
    border-radius: 8px;
    background: var(--btn-bg, var(--action-soft));
    color: var(--btn-ink, var(--action-ink)) !important;
    box-shadow: none;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.6;
    text-decoration: none;
}
#sgca-app :is(.sgca-button, .sgca-text-button, .sgca-access-link, .sgqr-button, .sgqa-button,
              .sgjt-button:not(.sgjt-ticket-row, .sgjt-summary-card), .sgj-documents__button:not(.sgj-documents__row),
              .sgj-documents__open, .sg-request-project :where(button)) { padding: 7px 13px; }
#sgca-app :is(.sgca-primary, .sgqr-primary, .sgjt-primary, [data-sgj-document-print],
              .sgjt-summary-card[aria-pressed="true"]) {
    --btn-bg: var(--action-solid);
    --btn-ink: var(--action-on-solid);
    --btn-edge: var(--action-solid);
    --btn-hover: color-mix(in srgb, var(--action-solid) 88%, var(--action-on-solid));
}
#sgca-app .sgca-next-document .sgca-button {
    --btn-bg: var(--action-soft);
    --btn-ink: var(--action-ink);
    --btn-edge: var(--action-edge);
    --btn-hover: var(--action-hover);
}
#sgca-app :is(.sgcp-danger, .sgjt-close-ticket, .sgjt-file-remove, [data-shopping-delete], [data-shopping-remove], [data-request-item-remove]) {
    --btn-bg: var(--action-danger-bg);
    --btn-ink: var(--action-danger-ink);
    --btn-edge: var(--action-danger-edge);
    --btn-hover: color-mix(in srgb, var(--action-danger-bg) 89%, var(--action-danger-edge));
}
#sgca-app :is(.sgca-button, .sgca-text-button, .sgca-access-link, .sgqr-button, .sgqa-button,
              .sgjt-button, .sgj-documents__button, .sgd-icon-button, .sgjt-notification-button,
              .sgjt-notification-open, .sgjt-notification-close, .sgca-total, .sg-request-project :where(button)):enabled:hover,
#sgca-app a:is(.sgca-button, .sgqr-button, .sgqa-button):hover {
    background: var(--btn-hover, var(--action-hover));
}
#sgca-app :is(button, a, [tabindex="0"]):focus-visible {
    outline: 3px solid var(--action-solid);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--sg-panel);
}
#sgca-app :is(button, a)[aria-disabled="true"],
#sgca-app button:disabled {
    --btn-bg: var(--action-off-bg);
    --btn-ink: var(--action-off-ink);
    --btn-edge: var(--action-off-edge);
    border-style: dashed;
    opacity: 1;
    cursor: not-allowed;
}
#sgca-app .sgca-tracking-actions { gap: 5px; }
#sgca-app .sgca-overview-totals { gap: 6px; padding: 0; border: 0; background: none; }
#sgca-app .sgca-total :is(strong, svg), #sgca-app .sgjt-summary-card :is(strong, span) { color: inherit; }
#sgca-app .sgjt-summary-card strong { background: transparent; }
#sgca-app .sgca-next-action { padding-block: 10px; }
#sgca-app .sgca-next-content { margin-top: 6px; }
#sgca-app .sgca-activity-row,
#sgca-app .sgj-documents__row {
    color: var(--sg-ink) !important;
    background: var(--sg-panel);
}
#sgca-app .sgj-documents__row {
    border: 0;
    border-bottom: 1px solid var(--sg-line);
    border-radius: 0;
}
#sgca-app .sgca-activity-row:hover, #sgca-app .sgj-documents__row:hover { background: var(--sg-soft); }
#sgca-app .sgj-documents__row .sgj-documents__date { color: var(--action-ink); }
#sgca-app .sgca-activity-row::after {
    content: "‹";
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    transform: none;
    border: 1px solid var(--action-edge);
    border-radius: 7px;
    background: var(--action-soft);
    color: var(--action-ink);
    font: 24px/1 Arial, sans-serif;
    direction: ltr;
}
#sgca-app .sgj-documents__open { display: inline-flex; align-items: center; justify-content: center; justify-self: start; }
#sgca-app .sgjt-ticket-row {
    --btn-bg: var(--sg-panel);
    --btn-ink: var(--sg-ink);
}
#sgca-app .sgjt-ticket-row.is-selected { --btn-bg: var(--action-soft); box-shadow: inset -4px 0 var(--action-solid); }
#sgca-app .sgjt-ticket-row :is(time, .sgjt-number, .sgjt-row-excerpt, .sgjt-quote-tag), #sgca-app .sgjt-download small { color: var(--action-ink); }
#sgca-app .sgjt-ticket-row .sgjt-priority { color: var(--action-danger-ink); }
#sgca-app .sgjt-row-bottom .sgjt-badge, #sgca-app .sgjt-badge[data-status="closed"] { color: var(--sg-ink); }
#sgca-app .sgjt[data-ticket-view="list"] .sgjt-workspace { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
#sgca-app .sgjt[data-ticket-view="list"] .sgjt-inbox { height: auto; border-inline-end: 0; }
#sgca-app .sgjt-list:has(.sgjt-ticket-row) { padding: 6px; gap: 5px; }
#sgca-app .sgjt[data-ticket-view="list"] .sgjt-content { display: none; }
#sgca-app .sgjt .sgjt-back { display: inline-flex; }
#sgca-app .sgca-profile-card { max-width: 800px; }
#sgca-app .sgqa-contact-options a.sgqa-button { display: inline-flex; align-items: center; }
#sgca-app .sgqa-sms-fallback { min-height: 44px; }
#sgca-app .sgqa-contact-options :is(input, select):focus-visible { outline: 3px solid var(--action-solid); outline-offset: 2px; }
#sgca-app .sgca-form-actions { flex-wrap: wrap; align-items: center; gap: 8px 16px; }
#sgca-app .sgca-form-actions small { color: var(--sg-muted); font-size: 12px; }
#sgca-app .sgca-pagination[hidden] { display: none; }
#sgca-app #sgca-section-quotes .sgj-documents__header .sgj-documents__button { min-height: 44px; }
#sgca-app [data-account-orders-status]:empty, #sgca-app [data-shopping-status]:empty { display: none; }
#sgca-app .sgca-order-detail { margin: 0 0 16px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--sg-line); }
@media (max-width: 600px) {
    #sgca-app .sgj-documents__row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "identity open" "amount open";
        gap: 5px 12px;
    }
    #sgca-app .sgj-documents__identity { grid-area: identity; }
    #sgca-app .sgj-documents__amount { grid-area: amount; display: flex; flex-wrap: wrap; align-items: center; }
    #sgca-app .sgj-documents__open { grid-area: open; }
}
@media (max-width: 440px) {
    #sgca-app .sgd-topbar { min-height: 60px; height: auto; flex-wrap: wrap; padding: 6px 8px; gap: 5px; }
    #sgca-app .sgd-breadcrumb { flex: 1 1 44px; overflow: visible; }
    #sgca-app .sgd-topbar-end { width: auto; margin-inline-start: auto; gap: 5px; flex-wrap: nowrap; }
    #sgca-app #sgca-current-view, #sgca-app .sgd-product-name, #sgca-app .sgd-slash, #sgca-app #sgca-today { display: none; }
    #sgca-app .sgca-tracking-actions .sgca-button { padding-inline: 8px; }
}

@media screen and (max-width: 960px) and (max-height: 500px) {
    #sgca-app .sgd-sidebar {
        width: min(284px, calc(100vw - 48px));
        visibility: hidden;
        transform: translateX(100%);
        transition: transform .2s ease;
    }
    #sgca-app.menu-open .sgd-sidebar { visibility: visible; transform: translateX(0); }
    #sgca-app .sgd-workspace { margin-right: 0; }
    #sgca-app .sgd-mobile-menu { display: inline-flex; }
    #sgca-app.menu-open .sgd-sidebar-shade {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 25;
        border: 0;
        background: #152c2a70;
    }
}
@media screen and (max-width: 760px), screen and (max-width: 960px) and (max-height: 500px) {
    html:has(#sgca-app) { scroll-padding-top: 72px; }
    html:has(#sgca-app.menu-open) { overflow-y: hidden; }
    #sgca-app .sgca-profile-form input:not([type="hidden"]),
    .sgca-body .sgca-auth-shell .sgco-auth__form input:not([type="hidden"]):not([type="checkbox"]) {
        font-size: 16px;
    }
    #sgca-app .sgd-topbar { position: sticky; top: 0; z-index: 12; }
    #sgca-app .sgd-mobile-menu { width: auto; gap: 5px; padding-inline: 9px; }
    #sgca-app .sgd-sidebar {
        height: 100dvh;
        padding-top: 0;
        overscroll-behavior: contain;
    }
    #sgca-app .sgd-sidebar-shade { touch-action: none; }
    #sgca-app.menu-open > .sgjt-notification-notice { visibility: hidden; }
    #sgca-app .sgca-sidebar-heading {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding-block: 8px;
        margin-bottom: 8px;
        border-bottom: 1px solid #ffffff24;
    }
    #sgca-app .sgca-sidebar-heading .sgca-brand {
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 8px;
        row-gap: 0;
        margin: 0;
        padding: 0;
        border: 0;
    }
    #sgca-app .sgca-brand-mark { grid-row: span 2; }
    #sgca-app .sgca-brand strong { font-size: 18px; line-height: 1.5; }
    #sgca-app .sgca-menu-close { display: inline-flex; }
}

.sgca-picker { width: min(100%, 820px); margin: 0 auto; padding: clamp(16px, 4vw, 40px); box-sizing: border-box; color: var(--sg-ink); }
.sgca-picker h1 { margin: 0 0 8px; font-size: clamp(20px, 4vw, 28px); }
.sgca-picker-list { list-style: none; padding: 0; margin: 20px 0; border: 1px solid var(--sg-line); border-radius: 12px; background: var(--sg-panel); }
.sgca-picker-list li { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding: 12px 16px; }
.sgca-picker-list li + li { border-top: 1px solid var(--sg-line); }
.sgca-picker-list li > div { display: flex; flex-wrap: wrap; gap: 8px; }
.sgca-picker-list strong { overflow-wrap: anywhere; }
.sgca-picker-status:empty { display: none; }
