/* Shared presentation only; no checkout or public-site selectors. */
:root{--fg-ink:#17243a;--fg-muted:#728097;--fg-blue:#2166e8;--fg-line:#e5eaf1;--fg-navy:#0d1b38}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--fg-ink)}
.content-wrapper,.right-side,body.addtabs{background:#f3f5f8!important}
.main-sidebar,.skin-blue .main-sidebar,.skin-black-blue .main-sidebar{background:var(--fg-navy)!important}
.main-sidebar .sidebar-menu>li>a{color:#c5d1e8!important;border:0!important;border-radius:5px;margin:4px 10px;padding:12px 14px;font-size:14px}
.main-sidebar .sidebar-menu>li.active>a,.main-sidebar .sidebar-menu>li>a:hover{background:var(--fg-blue)!important;color:white!important}
.main-sidebar .sidebar-menu .header{color:#8d9bb4;background:transparent}
.main-sidebar .user-panel,.main-sidebar .sidebar-form{border-color:#24334e}
.main-header .logo{background:var(--fg-navy)!important;color:white!important;font-weight:700}
.main-header .navbar{background:#fff!important;border-bottom:1px solid var(--fg-line)}
.main-header .navbar .nav>li>a,.main-header .sidebar-toggle{color:#536278!important}
.panel,.fg-box{border:1px solid var(--fg-line);box-shadow:none;border-radius:6px;background:white}
.fg-home{max-width:1600px;margin:0 auto;padding:4px 8px 24px}.fg-home-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:6px 0 20px}.fg-home-heading h1{font-size:23px;margin:0 0 7px;font-weight:600}.fg-home-heading p{margin:0;color:var(--fg-muted)}.fg-home-filter{display:flex;align-items:center;gap:14px}.fg-home-filter select{min-width:180px;max-width:260px}.fg-env{white-space:nowrap;padding:6px 10px;background:#eaf1ff;color:#285aaf;border-radius:4px;font-size:12px}
.fg-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.fg-summary>div{background:#fff;border:1px solid var(--fg-line);border-radius:6px;padding:18px 20px}.fg-summary span,.fg-summary em{display:block;color:var(--fg-muted);font-style:normal;font-size:12px}.fg-summary strong{display:block;font-size:27px;font-weight:600;line-height:1.45;margin:8px 0}.fg-summary strong small{font-size:22px;display:block;color:var(--fg-ink)}
.fg-box{margin-bottom:20px;overflow:hidden}.fg-box-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--fg-line)}.fg-box-head h2{font-size:16px;margin:0;font-weight:600}.fg-box-head>a{font-size:13px}.fg-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.fg-shortcuts>a{display:block;padding:20px;color:var(--fg-ink);border-right:1px solid var(--fg-line);position:relative}.fg-shortcuts>a:last-child{border-right:0}.fg-shortcuts>a:hover{background:#f8faff}.fg-shortcuts>a>i{display:block;color:var(--fg-blue);font-size:19px;margin-bottom:12px}.fg-shortcuts b{display:block;font-size:15px;margin-bottom:7px}.fg-shortcuts span{display:block;font-size:12px;color:var(--fg-muted);line-height:1.7}.fg-shortcuts em{display:block;font-style:normal;color:var(--fg-blue);margin-top:15px;font-size:12px}
.fg-data{margin:0!important;min-width:560px}.fg-data th{background:#fafbfd;color:#6c798d;font-size:12px;font-weight:500;border-bottom:1px solid var(--fg-line)!important;padding:12px 20px!important}.fg-data td{vertical-align:middle!important;padding:13px 20px!important;border-top:1px solid #edf0f5!important;font-size:13px}.fg-data small{display:block;color:var(--fg-muted);margin-top:3px}.fg-badge{display:inline-block;border-radius:4px;padding:4px 9px;font-size:12px;white-space:nowrap}.fg-badge.ok{color:#167c60;background:#eaf7f2}.fg-badge.warn{color:#996211;background:#fff6e2}.fg-badge.off{color:#69778d;background:#eff2f6}.fg-badge.bad{color:#b44646;background:#feeeee}.fg-empty{text-align:center!important;padding:30px!important;color:var(--fg-muted)}.fg-status-line{display:flex;gap:24px;flex-wrap:wrap;color:var(--fg-muted);font-size:12px}.fg-status-line b{margin-left:5px}.fg-status-line>span:last-child{margin-left:auto}
.fg-site-admin .panel-heading{padding:16px 20px;background:#fff;border-bottom:1px solid var(--fg-line)}.fg-site-admin .panel-lead em{font-size:19px;font-style:normal;font-weight:600}.fg-site-admin .panel-lead span{color:var(--fg-muted);font-size:13px}.fg-site-admin .panel-body{padding:16px 20px}.fg-site-admin .table td,.fg-site-admin .table th{padding:12px 14px;vertical-align:middle}.fg-site-admin .table th{background:#fafbfd;font-weight:500;color:#6c798d}.fg-site-admin .toolbar{margin-bottom:15px}.fg-simple-form{padding:22px 16px 70px;max-width:1000px}.fg-simple-form .form-control{border-radius:4px;border-color:#dce2ea;min-height:36px}.fg-simple-form .help-block{font-size:12px;color:#7a8798;margin-top:7px}.fg-simple-form .control-label{font-weight:500}.fg-advanced{border:1px solid var(--fg-line);border-radius:5px;margin:16px 20px;padding:12px}.fg-advanced summary{cursor:pointer;font-size:13px;color:#65758a;margin-bottom:12px}.fg-simple-form .alert{font-size:13px;border:0;background:#f1f5fb;color:#576b87}.btn{border-radius:4px}.btn-primary,.btn-success{background:var(--fg-blue);border-color:var(--fg-blue)}.btn-primary:hover,.btn-success:hover{background:#1856c9;border-color:#1856c9}
@media(max-width:1000px){.fg-shortcuts,.fg-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.fg-shortcuts>a:nth-child(2){border-right:0}.fg-shortcuts>a:nth-child(-n+2){border-bottom:1px solid var(--fg-line)}}
@media(max-width:600px){.fg-home{padding:4px 0 20px}.fg-home-heading{align-items:flex-start;flex-direction:column;gap:12px}.fg-home-filter{width:100%}.fg-home-filter select{min-width:0;flex:1}.fg-summary{gap:10px}.fg-summary>div{padding:14px}.fg-summary strong{font-size:24px}.fg-summary strong small{font-size:17px}.fg-shortcuts>a{padding:16px}.fg-box-head{padding:14px}.fg-status-line{gap:12px}.fg-status-line>span:last-child{margin-left:0}.fg-site-admin .panel-body{padding:12px}.fg-simple-form{padding:14px 8px 70px}.fg-advanced{margin:12px 0}}

.fg-chart-grid{display:grid;grid-template-columns:1.4fr 1fr .9fr;gap:16px}.fg-chart{height:280px}.fg-provider-list{max-height:280px;overflow:auto}.fg-provider-list>div{padding:14px 18px;border-bottom:1px solid #edf0f5}.fg-provider-list small{display:block;color:#728097;margin-top:8px}.fg-provider-list .fg-badge{float:right}.fg-box>summary{cursor:pointer}@media(max-width:1100px){.fg-chart-grid{grid-template-columns:1fr 1fr}.fg-chart-grid>section:last-child{grid-column:1/-1}}@media(max-width:650px){.fg-chart-grid{grid-template-columns:1fr}}

.fg-nowrap{white-space:nowrap;min-width:60px}.fg-group-options{border:1px solid #dce2ea;border-radius:5px;padding:10px 12px;background:#fff}.fg-group-options label{display:block;font-weight:400;margin:5px 0;font-size:13px}.fg-group-options input{margin-right:6px}

.main-header .logo-lg{font-size:16px}.fg-brand-role{font-weight:500}.fg-role-item{padding:16px 8px}.fg-role-badge{display:block;padding:4px 9px;font-size:12px;line-height:18px;border-radius:4px;white-space:nowrap}.fg-role-badge.is-child{background:#eaf1ff;color:#235cb9}.fg-role-badge.is-total{background:#fff3df;color:#946018}.fg-user-fallback{font-size:20px;vertical-align:middle;margin-right:7px}@media(max-width:767px){.fg-role-item{padding:10px 5px}.fg-role-badge{font-size:11px;padding:3px 6px}}

/* The shell already has a 64px top offset. Do not reserve a second toolbar. */
body.fixed > .wrapper > .content-wrapper.tab-addtabs {
    padding-top:0!important;
    height:calc(100vh - 64px)!important;
    min-height:0!important;
    overflow:hidden;
}
.content-wrapper.tab-addtabs > .tab-pane {height:100%}
.content-wrapper.tab-addtabs > .tab-pane > iframe {display:block;height:100%!important}
body.inside-header:not(.is-dialog) .content {padding:12px 22px!important}

/* Fit the overview into the usable window. Long lists scroll in their cards. */
body.fg-dashboard-page {overflow:hidden!important}
body.fg-dashboard-page #main,
body.fg-dashboard-page #main > .tab-addtabs,
body.fg-dashboard-page #content,
body.fg-dashboard-page #content > .row,
body.fg-dashboard-page #content > .row > div,
body.fg-dashboard-page #content .content {height:100%;min-height:0}
body.fg-dashboard-page #main {height:100vh}
.fg-dashboard-page .fg-home {
    display:grid;grid-template-rows:auto auto auto minmax(130px,1fr) auto minmax(80px,.7fr) auto;
    gap:clamp(6px,1vh,10px);height:100%;padding:0 4px;min-height:0;
}
.fg-dashboard-page .fg-home-heading {margin:0;gap:12px}
.fg-dashboard-page .fg-home-heading h1 {font-size:21px;margin-bottom:4px}
.fg-dashboard-page .fg-home-heading p {font-size:12px}
.fg-dashboard-page .fg-summary {gap:12px;margin:0}
.fg-dashboard-page .fg-summary > div {padding:clamp(7px,1.2vh,12px) 16px}
.fg-dashboard-page .fg-summary strong {margin:3px 0;font-size:24px;line-height:1.25}
.fg-dashboard-page .fg-summary strong small {font-size:19px}
.fg-dashboard-page .fg-box {margin:0;min-height:0}
.fg-dashboard-page .fg-box-head {padding:8px 16px;min-height:34px;flex:none}
.fg-dashboard-page .fg-box-head h2 {font-size:14px}
.fg-dashboard-page .fg-shortcuts > a {padding:8px 16px}
.fg-dashboard-page .fg-shortcuts > a > i {margin-bottom:4px;font-size:16px}
.fg-dashboard-page .fg-shortcuts b {margin-bottom:3px;font-size:14px}
.fg-dashboard-page .fg-shortcuts span {line-height:1.3}
.fg-dashboard-page .fg-shortcuts em {margin-top:4px}
.fg-dashboard-page .fg-chart-grid {grid-template-columns:1.4fr 1fr .9fr;gap:12px;min-height:0}
.fg-dashboard-page .fg-chart-grid > section {grid-column:auto;display:flex;flex-direction:column;min-height:0}
.fg-dashboard-page .fg-chart {height:auto;min-height:0;flex:1}
.fg-dashboard-page .fg-provider-list {max-height:none;min-height:0;overflow:auto;flex:1}
.fg-dashboard-page .fg-provider-list > div {padding:9px 14px}
.fg-dashboard-page .fg-provider-list small {margin-top:4px}
.fg-dashboard-page .fg-home > section:last-of-type {display:flex;flex-direction:column}
.fg-dashboard-page .fg-home > section:last-of-type .table-responsive {overflow:auto;min-height:0;flex:1}
.fg-dashboard-page .fg-home > section:first-of-type .table-responsive {max-height:100px;overflow:auto}
.fg-dashboard-page .fg-data th,.fg-dashboard-page .fg-data td {padding:6px 16px!important}
.fg-dashboard-page .fg-data thead {position:sticky;top:0;z-index:1;background:#fafbfd}
.fg-dashboard-page .fg-badge {padding:3px 7px}
.fg-dashboard-page .fg-status-line {gap:12px;line-height:18px}
.fg-dashboard-page details[open] .table-responsive {max-height:120px;overflow:auto}
body.fg-dashboard-page:has(.fg-home > details[open]) {overflow-y:auto!important}
.fg-dashboard-page .fg-home:has(> details[open]) {height:auto;min-height:100%;grid-template-rows:auto auto auto 220px auto 180px auto}
@media(max-width:950px),(max-height:580px) {
    body.fg-dashboard-page {overflow:auto!important}
    .fg-dashboard-page .fg-home {height:auto;display:block}
    .fg-dashboard-page .fg-home > * {margin-bottom:10px}
    .fg-dashboard-page .fg-chart {height:190px;flex:none}
    .fg-dashboard-page .fg-provider-list {max-height:190px}
    .fg-dashboard-page .fg-home > section:last-of-type .table-responsive {max-height:200px}
}

/* List pages keep the approved colours and columns, with a visible footer. */
body.fg-list-page {overflow:hidden!important}
body.fg-list-page #main,
body.fg-list-page #main > .tab-addtabs,
body.fg-list-page #content,
body.fg-list-page #content > .row,
body.fg-list-page #content > .row > div {height:100%;min-height:0}
body.fg-list-page #main {height:100vh}
body.fg-list-page.inside-header .content {height:100%;min-height:0;padding:12px 22px!important}
.fg-paged-panel {height:100%;margin-bottom:0;display:flex;flex-direction:column;min-height:0}
.fg-paged-panel > .panel-heading {flex:none}
.fg-paged-panel > .panel-body {display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto}
.fg-paged-panel > .panel-body > * {flex-shrink:0}
.fg-paged-panel .bootstrap-table {display:flex;flex-direction:column;flex:1;min-height:120px}
.fg-paged-panel .fixed-table-toolbar {flex:none}
.fg-paged-panel .fixed-table-container {display:flex;flex-direction:column;flex:1;min-height:0;height:auto!important;padding-bottom:0!important}
.fg-paged-panel .fixed-table-header {flex:none}
.fg-paged-panel .fixed-table-body {flex:1;min-height:0;height:auto;overflow:auto;overscroll-behavior:contain}
.fg-paged-panel .fixed-table-body table {margin-bottom:0!important}
.fg-paged-panel .fixed-table-body thead {position:sticky;top:0;z-index:2;background:#f8faff}
.fg-paged-panel .fixed-table-body th {background:#f8faff}
.fg-paged-panel .fixed-table-pagination {
    flex:none;display:flex!important;align-items:center;justify-content:space-between;gap:10px;
    flex-wrap:wrap;min-height:58px;padding:10px 0 0;margin-top:8px;
    border-top:1px solid #e5eaf1;background:#fff;color:#334560;
}
.fg-paged-panel .fixed-table-pagination::before,
.fg-paged-panel .fixed-table-pagination::after {display:none}
.fg-paged-panel .fixed-table-pagination > div {float:none!important;margin:0!important}
.fg-paged-panel .fixed-table-pagination > div.pagination {display:flex!important;align-items:center;gap:10px;flex-wrap:wrap}
.fg-paged-panel .fixed-table-pagination .pagination {margin:0;white-space:nowrap}
.fg-page-position {white-space:nowrap;font-size:13px;font-weight:600;color:#334560}
.fg-paged-panel .fixed-table-pagination .pagination > li > a {min-width:34px;min-height:34px;text-align:center;line-height:20px}
.fg-paged-panel .fixed-table-pagination .pagination > .active > a {background:#2166e8;border-color:#2166e8;color:#fff}
.fg-paged-panel #merchant-order-summary {margin-bottom:0}
.fg-paged-panel .table-responsive:has(#merchant-order-summary) {max-height:clamp(70px,12vh,150px);overflow:auto}
.fg-paged-panel #bsite-groups {display:flex;flex:1;min-height:0;flex-direction:column}
.fg-paged-panel .bsite-table td {white-space:normal}
@media(max-width:1100px) {
    .fg-paged-panel .order-summary {grid-template-columns:repeat(3,minmax(0,1fr))}
    .fg-paged-panel .order-summary-card {padding:8px 12px}
}
@media(max-width:767px) {
    body.fixed > .wrapper > .content-wrapper.tab-addtabs {top:128px!important;height:calc(100vh - 128px)!important}
    body.fg-list-page.inside-header .content {padding:10px!important}
    .fg-paged-panel .fixed-table-pagination {gap:8px;padding-bottom:4px}
    .fg-paged-panel .fixed-table-pagination > div.pagination {gap:6px}
}
