:root {
 --forest:#123f32;
 --emerald:#22b573;
 --maize:#f6c945;
 --blue:#4285f4;
 --purple:#9265db;
 --coral:#ff766b;
 --surface:#ffffff;
 --page:#f2f6f5;
 --ink:#233b35;
 --line:#e1e9e5;
}

body {
 background:var(--page);
 color:var(--ink);
}

.sidebar {
 background:linear-gradient(165deg,#123f32,#195a43);
 width:230px;
 padding:24px 16px;
 box-shadow:5px 0 25px #123f3210;
}

.brand {
 color:#f6c945;
 font-size:30px;
 letter-spacing:3px;
}

.sidebar nav a {
 border-radius:12px;
 margin-bottom:5px;
 min-height:48px;
}

.sidebar nav a.active {
 background:#ffffff20;
 border-left:3px solid #f6c945;
}

.workspace {margin-left:230px}

.topbar {
 background:var(--surface);
 padding:14px 25px;
 border-color:var(--line);
}

main {
 max-width:1550px;
 padding:24px 28px;
}

main section,main article {
 background:var(--surface);
 border:1px solid var(--line);
 border-radius:20px;
 box-shadow:0 5px 20px #163b2d08;
}

button,.btn {
 border-radius:12px;
 min-height:42px;
}

button:focus-visible,a:focus-visible {
 outline:3px solid #f6c945;
 outline-offset:3px;
}

.v3-welcome {
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:15px;
 padding:25px 32px;
 border-radius:24px;
 color:white;
 background:linear-gradient(115deg,#123f32,#21885d);
 overflow:hidden;
}

.v3-welcome h1 {
 font-size:32px;
 margin:8px 0;
}

.v3-welcome p {
 color:#d6f0e1;
 line-height:1.5;
}

.v3-welcome .btn {
 background:#f6c945;
 color:#123f32;
}

.v3-illustration {
 width:245px;
 flex-shrink:0;
}

.v3-toolbar {
 display:flex;
 align-items:center;
 justify-content:space-between;
 flex-wrap:wrap;
 gap:15px;
 margin:22px 0;
}

.v3-toolbar form {
 display:flex;
 align-items:center;
 gap:10px;
 flex-wrap:wrap;
}

.v3-toolbar input {margin:0}

.v3-actions {
 display:flex;
 gap:10px;
 flex-wrap:wrap;
}

.v3-kpis {
 display:grid;
 grid-template-columns:repeat(6,minmax(0,1fr));
 gap:14px;
}

.v3-kpi {
 position:relative;
 padding:19px;
 border-radius:20px;
 min-height:145px;
 color:#173b32;
 overflow:hidden;
 transition:transform .2s;
}

.v3-kpi:hover {
 transform:translateY(-3px);
}

.v3-kpi:after {
 content:"";
 position:absolute;
 width:105px;
 height:105px;
 border-radius:50%;
 background:#ffffff40;
 right:-35px;
 bottom:-40px;
 pointer-events:none;
}

.v3-kpi strong {
 display:block;
 font-size:36px;
 margin:9px 0 3px;
}

.v3-kpi small {
 font-size:13px;
 font-weight:600;
}

.v3-icon {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 width:40px;
 height:40px;
 background:#ffffffb0;
 border-radius:13px;
 font-size:21px;
}

.v3-charts {
 display:grid;
 grid-template-columns:1fr 1.7fr;
 gap:18px;
 margin-top:18px;
}

.v3-charts section {margin:0}

.v3-ring {
 width:155px;
 height:155px;
 border-radius:50%;
 background:conic-gradient(
 #22b573 calc(var(--pct)*1%),
 #e4eee9 0
 );
 display:grid;
 place-items:center;
 margin:22px auto;
}

.v3-ring-inner {
 width:120px;
 height:120px;
 border-radius:50%;
 background:var(--surface);
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;
}

.v3-ring-inner strong {
 font-size:31px;
}

.v3-bars {
 display:flex;
 align-items:flex-end;
 justify-content:space-around;
 gap:10px;
 height:195px;
 padding:12px 0 0;
}

.v3-bar-col {
 flex:1;
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:flex-end;
 height:100%;
 gap:7px;
}

.v3-bar-track {
 height:145px;
 width:100%;
 display:flex;
 align-items:flex-end;
 justify-content:center;
}

.v3-bar {
 width:65%;
 max-width:38px;
 min-height:3px;
 border-radius:8px 8px 3px 3px;
 background:linear-gradient(#22b573,#16845b);
}

.v3-bar-col:last-child .v3-bar {
 background:#f6c945;
}

.v3-services {
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:14px;
}

.v3-service {
 background:var(--surface);
 border:1px solid var(--line);
 border-radius:18px;
 padding:18px;
 text-decoration:none;
 color:var(--ink);
 transition:transform .2s,box-shadow .2s;
}

.v3-service:hover {
 transform:translateY(-3px);
 box-shadow:0 8px 20px #123f3215;
}

.v3-service h3 {margin:12px 0 6px}

.v3-service .v3-icon {
 background:var(--tile);
}

.v3-status {
 display:inline-block;
 font-size:12px;
 font-weight:650;
 margin-top:12px;
 padding:5px 10px;
 border-radius:20px;
 background:#e9efec;
 color:#52645b;
}

.v3-status.ok {
 background:#d9f5e5;
 color:#176440;
}

.v3-status.wait {
 background:#fff0c7;
 color:#855200;
}

.v3-status.alert {
 background:#ffe1e1;
 color:#a52b26;
}

.v3-theme {
 background:#e8f2eb;
 color:#174a34;
 padding:8px 12px;
}

body.dark {
 --surface:#20352f;
 --page:#142620;
 --ink:#e4f0e9;
 --line:#345046;
}

body.dark input,
body.dark textarea,
body.dark select {
 background:#172c24;
 color:#e4f0e9;
 border-color:#456358;
}

body.dark .muted {color:#afc5b9}
body.dark a:not(.btn):not(nav a) {color:#a5dfc1}
body.dark .v3-service {color:var(--ink)}
body.dark .service-row:hover {background:#294238}

body.nav-mini .sidebar {width:76px}
body.nav-mini .workspace {margin-left:76px}
body.nav-mini .sidebar .subtitle,
body.nav-mini .sidebar .brand,
body.nav-mini .sidebar .sidebar-bottom,
body.nav-mini .sidebar .navlabel,
body.nav-mini .sidebar #count {display:none}

body.nav-mini .sidebar nav a {
 font-size:0;
 justify-content:center;
 padding:12px 4px;
}

body.nav-mini .sidebar .navicon {
 font-size:22px;
}

@media(max-width:1200px) {
 .v3-kpis {
  grid-template-columns:repeat(3,minmax(0,1fr));
 }
 .v3-services {
  grid-template-columns:repeat(3,minmax(0,1fr));
 }
}

@media(max-width:760px) {
 .sidebar {width:100%;position:relative}
 .workspace {margin-left:0}
 main {padding:14px}
 .v3-welcome {padding:20px}
 .v3-welcome h1 {font-size:24px}
 .v3-illustration {width:105px}
 .v3-kpis,.v3-services {
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 .v3-kpi {padding:14px}
 .v3-charts {grid-template-columns:1fr}
 #navCollapse {display:none}
}

@media(max-width:400px) {
 .v3-illustration {display:none}
}

@media(prefers-reduced-motion:reduce) {
 * {transition:none!important}
}

@media print {
 .workspace {margin:0!important}
 .v3-toolbar,.v3-theme {display:none!important}
}

/* SCIAP V3.0.1 - Soft Green */

body:not(.dark) {
 --forest:#426b51;
 --emerald:#83b597;
 --maize:#f5d675;
 --page:#f7f9f7;
 --surface:#ffffff;
 --ink:#30483b;
 --line:#e1eae3;
}

body:not(.dark) .sidebar {
 background:linear-gradient(165deg,#e4eee6,#d4e4d8);
 box-shadow:3px 0 18px #426b5110;
}

body:not(.dark) .brand {
 color:#426b51;
}

body:not(.dark) .sidebar .subtitle {
 color:#65806c;
}

body:not(.dark) .sidebar nav a {
 color:#355c43;
}

body:not(.dark) .sidebar nav a.active {
 background:#c6dccd;
 border-left:3px solid #83ad90;
}

body:not(.dark) .sidebar nav a:hover {
 background:#d0e2d4;
}

body:not(.dark) .v3-welcome {
 background:linear-gradient(115deg,#e6f1e8,#c5dfcc);
 color:#355c43;
 padding:20px 30px;
}

body:not(.dark) .v3-welcome p {
 color:#52735d;
}

body:not(.dark) .v3-welcome .btn {
 background:#f5d675;
 color:#514522;
}

body:not(.dark) button,
body:not(.dark) .btn {
 background:#527e60;
 color:#ffffff;
}

body:not(.dark) .v3-theme {
 background:#e4eee6;
 color:#426b51;
}

body:not(.dark) .v3-ring {
 background:conic-gradient(
 #83b597 calc(var(--pct)*1%),
 #e4eee6 0
 );
}

body:not(.dark) .v3-bar {
 background:linear-gradient(#a4cbb0,#79a98a);
}

body:not(.dark) .v3-bar-col:last-child .v3-bar {
 background:#f5d675;
}

.v3-toolbar form {
 display:flex;
 align-items:center;
 gap:10px;
}

.v3-toolbar form label {
 width:auto!important;
 margin:0!important;
}

.v3-toolbar form input {
 width:160px!important;
 margin:0!important;
}

.v3-toolbar form button {
 margin:0!important;
}

.v3-illustration {
 width:190px;
}

@media(max-width:760px) {
 .v3-illustration {
  width:100px;
 }
}

@media(max-width:400px) {
 .v3-illustration {
  display:none;
 }
}


/* SCIAP V3.0.2 - Pastel Buttons */

body:not(.dark) button,
body:not(.dark) .btn,
body:not(.dark) input[type="submit"] {
 background:#dcece0;
 color:#355c43;
 border:1px solid #c8ddce;
 border-radius:12px;
 font-weight:600;
 box-shadow:none;
 transition:background .18s,transform .18s,
 box-shadow .18s;
}

body:not(.dark) button:hover,
body:not(.dark) .btn:hover {
 filter:brightness(.96);
 box-shadow:0 3px 10px #426b5112;
 transform:translateY(-1px);
}

body:not(.dark) .v3-welcome .btn {
 background:#f9e8af;
 color:#70571d;
 border-color:#eddb9e;
}

body:not(.dark) a[href*="/pdf"] {
 background:#dce8fa;
 color:#345c96;
 border-color:#cadcf3;
}

body:not(.dark) a.btn[href*="/export"] {
 background:#dcefeb;
 color:#326e60;
 border-color:#c9e1db;
}

body:not(.dark) .v3-theme {
 background:#e8f0e9;
 color:#426b51;
 border-color:#d8e6db;
}

body:not(.dark) form[action="/logout"] button {
 background:#e8ece9;
 color:#52655a;
 border-color:#d6dfd8;
}

body:not(.dark) .sidebar button {
 background:#e8ece9;
 color:#52655a;
}

body:not(.dark) .soft-yellow {
 background:#fcf0cc!important;
 color:#80601e!important;
 border-color:#f0e1b5!important;
}

body:not(.dark) .soft-blue {
 background:#dce8fa!important;
 color:#345c96!important;
 border-color:#cadcf3!important;
}

body:not(.dark) .soft-purple {
 background:#eae2f7!important;
 color:#70529b!important;
 border-color:#dbceef!important;
}

body:not(.dark) .soft-red {
 background:#f9e1df!important;
 color:#a34842!important;
 border-color:#efcdca!important;
}

body:not(.dark) .soft-green {
 background:#cce9d6!important;
 color:#306747!important;
 border-color:#b9dcc6!important;
}

button:disabled,
input[type="submit"]:disabled {
 opacity:.5;
 cursor:not-allowed;
 transform:none!important;
 box-shadow:none!important;
}

[hidden] {
 display:none!important;
}

