/* Gestagi Cloud v4 — progressive UI refinement for Huraga / FOSSBilling 0.8.9 */
body.gestagicloud-theme{--gc-navy:#0b172a;--gc-navy2:#14263d;--gc-cyan:#00c9c8;--gc-text:#17243b;--gc-muted:#64748b;--gc-border:#e2e8f0;--gc-surface:#fff;--gc-bg:#f4f7fb;background:var(--gc-bg)!important;color:var(--gc-text);font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
.gestagicloud-theme .gc-topbar{box-shadow:0 1px 0 rgba(15,23,42,.06);background:#fff}
.gestagicloud-theme .gc-topbar .navbar{min-height:76px;padding:10px 24px!important}
.gestagicloud-theme .gc-brand-logo{width:190px;height:58px;max-height:58px;object-fit:contain;object-position:center;background:var(--gc-navy);padding:7px 18px;border-radius:12px}
.gestagicloud-theme .gc-main-container{padding:28px 32px 42px}
.gestagicloud-theme .gc-main-row{--bs-gutter-x:24px}
.gestagicloud-theme .gc-sidebar-column{width:244px;flex:0 0 244px}
.gestagicloud-theme .gc-content-column{width:calc(100% - 244px);flex:0 0 calc(100% - 244px);min-width:0}
.gestagicloud-theme .gc-authenticated #sidebarMenu{background:var(--gc-navy)!important;border-radius:18px;padding:14px 10px;box-shadow:0 14px 32px rgba(11,23,42,.10);top:24px}
.gestagicloud-theme .gc-authenticated #sidebarMenu .nav-link{border-radius:10px;margin:2px 0;padding:11px 12px!important;min-height:44px;display:flex;align-items:center;gap:10px;color:#d4e0ee!important;font-weight:560;transition:background-color .18s,color .18s}
.gestagicloud-theme .gc-authenticated #sidebarMenu .nav-link:hover{background:#1b324b!important;color:#fff!important}
.gestagicloud-theme .gc-authenticated #sidebarMenu .nav-link.active{background:#087f8d!important;color:#fff!important;font-weight:700}
.gestagicloud-theme .gc-authenticated #sidebarMenu .nav-link svg{color:#71d8da!important;flex-shrink:0}
.gestagicloud-theme .gc-authenticated #sidebarMenu .nav-link.active svg{color:#fff!important}
.gestagicloud-theme .gc-authenticated #sidebarMenu .nav-link:focus-visible,.gestagicloud-theme a:focus-visible,.gestagicloud-theme button:focus-visible{outline:3px solid #00bfc3!important;outline-offset:3px}
.gestagicloud-theme .gc-authenticated #sidebarMenu hr{opacity:.14;margin:7px 0}
.gestagicloud-theme .gc-content-block .card{border:1px solid var(--gc-border);border-radius:18px;box-shadow:0 4px 18px rgba(15,23,42,.035);overflow:hidden}
.gestagicloud-theme .gc-content-block .card-header{padding:18px 22px}
.gestagicloud-theme .gc-content-block .card-body{padding:22px}
.gestagicloud-theme .btn-primary,.gestagicloud-theme .btn-info{background:var(--gc-cyan);border-color:var(--gc-cyan);color:#062d35;font-weight:700}
.gestagicloud-theme .btn-primary:hover,.gestagicloud-theme .btn-info:hover{background:#00b5b5;border-color:#00b5b5;color:#062d35}
.gestagicloud-theme .gc-dashboard .gc-head{margin-bottom:24px;gap:16px}
.gestagicloud-theme .gc-dashboard .gc-eyebrow{color:#007c83;letter-spacing:1.6px;font-size:11px;font-weight:800}
.gestagicloud-theme .gc-dashboard .gc-head h1{font-size:clamp(26px,2.2vw,34px);letter-spacing:-.8px;line-height:1.2;margin:7px 0 6px}
.gestagicloud-theme .gc-dashboard .gc-head p{font-size:14px;color:var(--gc-muted)}
.gestagicloud-theme .gc-dashboard .gc-stats{gap:16px;margin-bottom:20px}
.gestagicloud-theme .gc-dashboard .gc-stat{padding:22px;border:1px solid var(--gc-border);border-radius:18px;box-shadow:0 3px 14px rgba(15,23,42,.035);gap:6px;min-width:0;transition:transform .18s,box-shadow .18s,border-color .18s}
.gestagicloud-theme .gc-dashboard .gc-stat:hover{transform:translateY(-2px);border-color:#a8dfe0;box-shadow:0 10px 24px rgba(15,23,42,.07)}
.gestagicloud-theme .gc-dashboard .gc-stat-icon{width:42px;height:42px;border-radius:12px;background:#dcf7f6;color:#006f78;font-size:23px}
.gestagicloud-theme .gc-dashboard .gc-stat>span:nth-child(2){color:#52647c;font-size:13px;font-weight:550}
.gestagicloud-theme .gc-dashboard .gc-stat strong{font-size:32px;font-weight:800;letter-spacing:-.7px;color:#101e33}
.gestagicloud-theme .gc-dashboard .gc-stat .gc-money{font-size:clamp(21px,2vw,29px);overflow-wrap:anywhere}
.gestagicloud-theme .gc-dashboard .gc-stat small{font-size:12px;color:#64748b}
.gestagicloud-theme .gc-dashboard .gc-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;align-items:stretch}
.gestagicloud-theme .gc-dashboard .gc-panel{border:1px solid var(--gc-border);border-radius:18px;box-shadow:0 3px 14px rgba(15,23,42,.035)}
.gestagicloud-theme .gc-dashboard .gc-panel-title{padding:20px 22px;border-color:#eaf0f6}
.gestagicloud-theme .gc-dashboard .gc-panel-title h2{font-size:18px;letter-spacing:-.3px}
.gestagicloud-theme .gc-dashboard .gc-panel-title p{font-size:12px;color:#64748b}
.gestagicloud-theme .gc-dashboard .gc-panel-title>a{color:#007f87;font-weight:750}
.gestagicloud-theme .gc-dashboard .gc-panel-body{padding:20px 22px}
.gestagicloud-theme .gc-dashboard .gc-mini-grid>div{background:#f3f7fa;border:1px solid #edf2f6;padding:16px;border-radius:12px}
.gestagicloud-theme .gc-dashboard .gc-mini-grid span{color:#586a80}
.gestagicloud-theme .gc-dashboard .gc-mini-grid strong{font-size:26px}
.gestagicloud-theme .gc-dashboard .gc-finance>strong{font-size:44px;letter-spacing:-1px}
.gestagicloud-theme .gc-dashboard .gc-quick>a{color:#007e88;min-height:52px}
.gestagicloud-theme .gc-dashboard .gc-quick>a:hover span:nth-child(1){color:#007f87}
.gestagicloud-theme .gc-dashboard .gc-action{background:var(--gc-cyan);color:#062d35!important;border-radius:11px;font-weight:750;min-height:44px}
.gestagicloud-theme .gc-dashboard .gc-action:hover{background:#00b5b5}
.gestagicloud-theme .gc-dashboard .gc-empty{color:#64748b;padding:12px 0}
.gestagicloud-theme .gc-content-block .table{--bs-table-bg:transparent}
.gestagicloud-theme .gc-content-block .table thead th{background:#f3f6fa;color:#53647b;font-size:12px;font-weight:750;letter-spacing:.03em}
.gestagicloud-theme .gc-content-block .table td{vertical-align:middle}
.gestagicloud-theme .form-control:focus,.gestagicloud-theme .form-select:focus{border-color:#00a7ab;box-shadow:0 0 0 .2rem rgba(0,201,200,.14)}
/* The existing back-to-top widget should not cover primary actions */
.gestagicloud-theme #back-to-top,.gestagicloud-theme .back-to-top{bottom:16px!important;right:16px!important;opacity:.88}
@media(max-width:1199px){.gestagicloud-theme .gc-dashboard .gc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.gestagicloud-theme .gc-dashboard .gc-grid{grid-template-columns:1fr}}
@media(max-width:991.98px){.gestagicloud-theme .gc-main-container{padding:18px 16px 32px}.gestagicloud-theme .gc-sidebar-column,.gestagicloud-theme .gc-content-column{width:100%;flex:0 0 100%}.gestagicloud-theme .gc-authenticated #sidebarMenu{position:static}.gestagicloud-theme .gc-topbar .navbar{padding:10px 14px!important}.gestagicloud-theme .gc-brand-logo{width:150px;height:50px}}
@media(max-width:575.98px){.gestagicloud-theme .gc-dashboard .gc-head{align-items:stretch}.gestagicloud-theme .gc-dashboard .gc-head .gc-action{width:100%}.gestagicloud-theme .gc-dashboard .gc-stats{gap:10px}.gestagicloud-theme .gc-dashboard .gc-stat{padding:15px}.gestagicloud-theme .gc-dashboard .gc-stat strong{font-size:27px}.gestagicloud-theme .gc-dashboard .gc-grid{gap:12px}.gestagicloud-theme .gc-dashboard .gc-mini-grid{gap:7px}.gestagicloud-theme .gc-dashboard .gc-mini-grid>div{padding:11px}.gestagicloud-theme .gc-dashboard .gc-panel-title,.gestagicloud-theme .gc-dashboard .gc-panel-body{padding:16px}}
@media(prefers-reduced-motion:reduce){.gestagicloud-theme .gc-dashboard .gc-stat,.gestagicloud-theme .gc-authenticated #sidebarMenu .nav-link{transition:none}.gestagicloud-theme .gc-dashboard .gc-stat:hover{transform:none}}
