:root {
    --st-green: #008e46;
    --st-green-deep: #006c39;
    --st-ink: #0a1d29;
    --st-muted: #637085;
    --st-line: #e6ebee;
    --st-surface: #fff;
}
[x-cloak] { display: none !important; }
* { -webkit-tap-highlight-color: transparent; }
.st-authenticated {
    background: #f5f7f8;
    color: #172536;
}
.st-main { min-height: 100vh; padding-top: 70px !important; }
.st-main-inner { padding: 20px 22px 34px; max-width: 1920px; margin: 0 auto; }
.st-authenticated .st-main-inner > div { overflow: visible; }
.st-authenticated a, .st-authenticated button { transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
.st-authenticated :focus-visible { outline: 3px solid #2fc56b; outline-offset: 3px; }

/* Navigation shell */
.st-sidebar {
    background: radial-gradient(circle at -40% 100%, #073e32 0, transparent 48%), linear-gradient(153deg, #0b292d 0%, #061a23 62%, #092b29 100%) !important;
    border: 0 !important;
    color: #f6fbfa;
    padding-top: 154px !important;
    box-shadow: 8px 0 35px rgba(5, 23, 34, .08);
    display: flex;
    flex-direction: column;
}
.st-sidebar-brand {
    height: 154px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px 11px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.st-sidebar-brand-link { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; }
.st-sidebar-brand img { width: 200px; max-height: 134px; object-fit: contain; filter: drop-shadow(0 8px 15px rgba(0,0,0,.25)); }
.st-sidebar-scroll { flex: 1; min-height: 0; margin: 0 !important; padding: 9px 11px 12px !important; scrollbar-color: #366458 transparent; }
.st-sidebar-scroll ul.space-y-2 { display: flex; flex-direction: column; gap: 3px; }
.st-sidebar-scroll ul.space-y-2 > li { margin: 0 !important; }
.st-sidebar-scroll ul.space-y-2 > li:empty { display: none; }
.st-sidebar-scroll ul.space-y-2 > li > a,
.st-sidebar-scroll ul.space-y-2 > li > button {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 10px 15px !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #f1f7f7 !important;
    font-size: 14px !important;
    font-weight: 520 !important;
    text-align: left;
}
.st-sidebar-scroll ul.space-y-2 > li > a:hover,
.st-sidebar-scroll ul.space-y-2 > li > button:hover,
.st-sidebar-scroll ul.space-y-2 > li > a.bg-gray-100 {
    background: linear-gradient(90deg, #087f48, #115341) !important;
    color: white !important;
}
.st-sidebar-scroll ul.space-y-2 > li > a[href$="/dashboard"].bg-gray-100 {
    background: linear-gradient(90deg, #006d42, #104a3e) !important;
    box-shadow: inset 4px 0 #29e65a;
}
.st-sidebar-scroll ul.space-y-2 > li > a > svg,
.st-sidebar-scroll ul.space-y-2 > li > button > svg {
    flex: 0 0 22px; width: 22px; height: 22px;
    color: #e8f4f3 !important;
}
.st-sidebar-scroll ul.space-y-2 > li > button > svg:last-child { width: 15px; height: 15px; flex-basis: 15px; margin-left: auto; opacity: .85; }
.st-sidebar-scroll ul.space-y-2 > li > a span,
.st-sidebar-scroll ul.space-y-2 > li > button span { color: inherit !important; }
.st-sidebar-scroll ul.space-y-2 > li > ul { margin: 0 0 4px 16px; padding: 3px 0 7px 8px !important; border-left: 1px solid rgba(97, 224, 143, .34); }
.st-sidebar-scroll ul.space-y-2 > li > ul a {
    color: #c9dcd9 !important;
    font-size: 13px !important;
    padding: 8px 10px 8px 13px !important;
    min-height: 34px;
    border-radius: 8px !important;
    background: transparent !important;
}
.st-sidebar-scroll ul.space-y-2 > li > ul a:hover,
.st-sidebar-scroll ul.space-y-2 > li > ul a.bg-gray-100 { background: rgba(15, 171, 86, .19) !important; color: white !important; }
.st-sidebar-foot {
    position: relative;
    margin: 12px 20px 21px;
    min-height: 105px;
    padding: 20px 14px 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(128, 236, 171, .2);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(19,91,75,.58), rgba(10,38,53,.9));
    color: #e8f7f1;
    font-size: 13px;
    line-height: 1.45;
}
.st-sidebar-foot-icon { font-size: 29px; color: #2ded68; line-height: 1; }
.st-sidebar-foot i { position: absolute; bottom: 15px; left: 15px; width: 48px; height: 4px; border-radius: 8px; background: #2bef64; box-shadow: 0 0 12px #1cbd62; }

/* Header */
.st-header {
    height: 70px !important;
    width: calc(100% - 16rem) !important;
    z-index: 35 !important;
    background: rgba(255,255,255,.97) !important;
    border-bottom: 1px solid #e9edef;
    box-shadow: 0 2px 16px rgba(15,34,44,.035) !important;
}
.st-header-inner { height: 100%; padding: 0 21px; display: flex; align-items: center; gap: 22px; }
.st-icon { width: 21px; height: 21px; }
.st-icon-button { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 44px; border-radius: 10px; color: #415368; }
.st-icon-button:hover { background: #eef4f1; color: #007b40; }
.st-menu-toggle { background: #f2f5f6; }
.st-search {
    width: min(520px, 42vw);
    height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    position: relative;
    border-radius: 10px;
    background: #f0f3f5;
    color: #526377;
}
.st-search input { background: transparent; border: 0; outline: none; box-shadow: none !important; padding: 0; flex: 1; min-width: 0; font-size: 14px; color: #172b3c; }
.st-search input:focus { outline: none; border: 0; }
.st-search input::placeholder { color: #66758a; }
.st-search-results { position: absolute; z-index: 70; top: 51px; left: 0; right: 0; padding: 8px; border-radius: 12px; border: 1px solid var(--st-line); background: #fff; box-shadow: 0 20px 45px rgba(14,39,45,.17); }
.st-search-results p { color: #738196; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin: 6px 9px; }
.st-search-results a { display: block; padding: 9px 10px; border-radius: 7px; color: #24384a; font-size: 14px; }
.st-search-results a:hover { background: #e9f7ed; color: #006f39; }
.st-search-result-type { display: inline-block; margin-right: 9px; padding: 2px 6px; border-radius: 5px; background: #e5f7ec; color: #087d44; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.st-search-tip { display: block; padding: 7px 9px; color: #82909a; font-size: 11px; }
.st-header-actions { margin-left: auto; display: flex; align-items: center; gap: 15px; min-width: 0; }
.st-notice-wrap, .st-profile { position: relative; }
.st-profile-button { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.st-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: #e5f1ea; color: #006e3e; border: 2px solid #f6f9f7; font-weight: 800; font-size: 17px; }
.st-profile-copy { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; max-width: 180px; overflow: hidden; }
.st-profile-copy strong { font-size: 13px; color: #152638; overflow: hidden; text-overflow: ellipsis; }
.st-profile-copy small { margin-top: 4px; font-size: 12px; color: #49607d; }
.st-chevron { width: 15px; height: 15px; color: #4d6172; flex: 0 0 15px; }
.st-primary-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 18px; border-radius: 10px; background: linear-gradient(110deg,#006e39,#009b50); color: #fff !important; font-size: 13px; font-weight: 700; box-shadow: 0 5px 12px rgba(0,119,58,.2); white-space: nowrap; }
.st-primary-button:hover { transform: translateY(-1px); background: linear-gradient(110deg,#005b31,#008c49); }
.st-primary-button span { font-size: 22px; line-height: .7; font-weight: 400; }
.st-popover { position: absolute; z-index: 65; top: 51px; right: 0; width: 255px; border-radius: 12px; padding: 16px; background: white; border: 1px solid var(--st-line); box-shadow: 0 18px 38px rgba(11,29,35,.15); color: #36485a; font-size: 13px; }
.st-profile-popover { display: flex; flex-direction: column; gap: 4px; }
.st-profile-popover small { color: #738397; overflow-wrap: anywhere; }
.st-profile-popover a { color: #007e43; padding-top: 11px; margin-top: 8px; border-top: 1px solid #edf0f1; font-weight: 700; }

/* Dashboard */
.st-dashboard { display: grid; gap: 15px; }
.st-dashboard-hero { min-height: 170px; border-radius: 12px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 28px 42px; background: radial-gradient(circle at 63% 45%, rgba(10,207,69,.4), transparent 21%), radial-gradient(circle at 0% 140%, rgba(13,119,65,.7), transparent 30%), linear-gradient(105deg,#102836 0%,#052e29 52%,#102d36 100%); color: white; box-shadow: 0 4px 16px rgba(8,40,35,.13); }
.st-dashboard-hero::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 62% 60%, transparent 0 31px, rgba(21,247,77,.11) 32px 33px, transparent 34px 57px); opacity: .9; pointer-events: none; }
.st-dashboard-hero::after { content: ""; position: absolute; top: -60px; right: 16%; width: 1px; height: 280px; transform: rotate(-14deg); box-shadow: 12px 0 90px 65px rgba(0,255,80,.16); pointer-events: none; }
.st-hero-copy { position: relative; z-index: 1; max-width: 570px; }
.st-hero-copy h1 { font-size: clamp(25px, 2.1vw, 36px); line-height: 1.2; font-weight: 800; letter-spacing: -.03em; }
.st-hero-copy p { margin-top: 9px; max-width: 565px; color: #e3eded; font-size: clamp(14px, 1.1vw, 18px); line-height: 1.5; }
.st-hero-logo { position: absolute; z-index: 1; top: -43px; right: 17%; width: 290px; height: 260px; object-fit: contain; opacity: .94; filter: drop-shadow(0 0 21px rgba(32,233,71,.34)); }
.st-hero-side { position: relative; z-index: 1; margin-left: auto; padding-left: 20px; border-left: 3px solid #37d558; text-transform: uppercase; font-size: 11px; letter-spacing: .26em; line-height: 2; color: #c7d4d6; white-space: nowrap; }
.st-kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.st-kpi { display: flex; align-items: center; min-height: 112px; gap: 18px; border: 1px solid #edf0f2; border-radius: 12px; background: #fff; box-shadow: 0 4px 17px rgba(35,62,69,.05); padding: 20px 22px; }
.st-kpi-icon { width: 62px; height: 62px; flex: 0 0 62px; display: grid; place-items: center; border-radius: 12px; }
.st-kpi-icon svg { width: 29px; height: 29px; stroke-width: 2; }
.st-kpi-green { color: #009348; background: #def7e8; }
.st-kpi-blue { color: #0066ed; background: #e8f2ff; }
.st-kpi-amber { color: #bc7300; background: #fff2d2; }
.st-kpi-content { min-width: 0; }
.st-kpi-content p { font-size: 14px; line-height: 1.25; color: #526077; }
.st-kpi-content strong { display: block; font-size: clamp(22px, 1.85vw, 30px); line-height: 1.15; color: #0e1725; margin-top: 8px; white-space: nowrap; font-weight: 800; letter-spacing: -.025em; }
.st-kpi-content small { display: block; margin-top: 4px; color: #8591a2; font-size: 11px; }
.st-data-grid { display: grid; grid-template-columns: 1.42fr 1.02fr .9fr; gap: 14px; align-items: stretch; }
.st-panel { min-width: 0; border: 1px solid #eaf0f2; border-radius: 12px; background: #fff; box-shadow: 0 4px 17px rgba(35,62,69,.05); padding: 17px 19px; }
.st-panel-title { min-height: 31px; display: flex; align-items: center; gap: 10px; color: #111f2c; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.st-panel-title svg { width: 21px; height: 21px; color: #008e49; }
.st-panel-title small { margin-left: auto; font-size: 11px; font-weight: 500; border: 1px solid #e8edf1; padding: 7px 9px; border-radius: 7px; color: #677485; white-space: nowrap; }
.st-panel-chart { height: 210px; position: relative; margin-top: 11px; }
.st-panel-activities { padding-left: 16px; padding-right: 16px; }
.st-activity-list { margin-top: 8px; }
.st-activity { display: flex; align-items: center; gap: 10px; min-height: 58px; border-top: 1px solid #edf0f3; text-decoration: none; }
.st-activity:first-child { border-top: 0; }
.st-activity-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 9px; background: #e4f6e9; color: #008e4b; }
.st-activity-icon svg { width: 20px; height: 20px; }
.st-activity-copy { flex: 1; min-width: 0; }
.st-activity-copy strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: #172633; }
.st-activity-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 3px; font-size: 11px; color: #6d7a88; }
.st-activity-time { font-size: 10px; color: #8993a1; white-space: nowrap; }
.st-empty { padding: 23px 10px; color: #788793; text-align: center; font-size: 13px; }
.st-shortcuts { padding: 14px 17px 12px; }
.st-shortcuts-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-top: 10px; }
.st-shortcut { min-height: 58px; display: flex; align-items: center; gap: 11px; padding: 9px 13px; border-radius: 10px; border: 1px solid #dcf0e4; background: #ecfbf1; color: #075e33; }
.st-shortcut:nth-child(2) { background: #eaf3ff; border-color: #e1efff; color: #185ba9; }
.st-shortcut:nth-child(3) { background: #fff7e8; border-color: #fff0d3; color: #aa6400; }
.st-shortcut:nth-child(4) { background: #eaf8f1; border-color: #d9f2e7; color: #086b4c; }
.st-shortcut:nth-child(5) { background: #f1efff; border-color: #eae5ff; color: #6453b7; }
.st-shortcut:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(4,47,36,.09); }
.st-shortcut-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.8); font-size: 21px; font-weight: 600; }
.st-shortcut strong { display: block; font-size: 12px; line-height: 1.25; }
.st-shortcut small { display: block; font-size: 10px; margin-top: 3px; opacity: .85; line-height: 1.25; }

/* Shared pages */
.st-authenticated .st-main .fi-ta-ctn,
.st-authenticated .st-main .fi-section,
.st-authenticated .st-main .fi-fo-section { border-radius: 12px; box-shadow: 0 4px 17px rgba(35,62,69,.045); }
.st-authenticated .st-main .bg-white.rounded-xl,
.st-authenticated .st-main .bg-white.rounded-lg { border: 1px solid #eaf0f2; box-shadow: 0 4px 17px rgba(35,62,69,.045); }
.st-authenticated .st-main h1 { color: #152637; }
.st-authenticated .st-dashboard-hero h1 { color: #fff; }
.st-authenticated .st-main .bg-primary-600,
.st-authenticated .st-main .hover\:bg-primary-700:hover { background-color: var(--st-green) !important; }
.st-authenticated .st-main .text-primary-600 { color: #007f42 !important; }
.st-authenticated .st-main .focus\:ring-primary-500:focus { --tw-ring-color: rgba(0,145,70,.4) !important; }
.st-authenticated .st-main .focus\:border-primary-500:focus { border-color: #008e46 !important; }
.st-guest { background: #edf4f0; }
.st-guest section.min-h-screen { background: radial-gradient(circle at 15% 15%, #d8f7e2, transparent 38%), linear-gradient(135deg,#eaf3f0,#d9e6e4); }
.st-login-top { background: radial-gradient(circle at 80% 20%, rgba(21,201,83,.36), transparent 40%), linear-gradient(130deg,#0b302e,#06202b); }
.st-login-logo { height: 113px; max-width: 240px; object-fit: contain; filter: drop-shadow(0 8px 15px rgba(0,0,0,.3)); }
.st-guest form button[type="submit"] { background: linear-gradient(110deg,#006b3c,#00a452) !important; }

@media (max-width: 1390px) {
    .st-hero-logo { right: 14%; width: 245px; }
    .st-hero-side { display: none; }
    .st-data-grid { grid-template-columns: 1.2fr 1fr; }
    .st-panel-activities { grid-column: 1 / -1; }
    .st-activity-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 15px; }
}
@media (max-width: 1023px) {
    .st-header { width: 100% !important; left: 0; }
    .st-sidebar { z-index: 46 !important; width: min(84vw, 280px) !important; }
    .st-sidebar:not(.\-translate-x-full) { transform: translateX(0) !important; }
    .st-main { margin-left: 0 !important; padding-top: 70px !important; }
    .st-main-inner { padding: 16px; }
    .st-hero-logo { right: 2%; opacity: .42; }
    .st-search { width: min(440px, 40vw); }
}
@media (max-width: 700px) {
    .st-header { height: 62px !important; }
    .st-header-inner { padding: 0 11px; gap: 9px; }
    .st-menu-toggle { flex-basis: 40px; width: 40px; height: 40px; }
    .st-header-actions { gap: 3px; }
    .st-search { flex: 1; width: auto; padding: 0 10px; height: 40px; gap: 7px; }
    .st-search .st-icon { width: 18px; height: 18px; flex: 0 0 18px; }
    .st-search input { font-size: 12px; }
    .st-profile-copy, .st-chevron, .st-bell, .st-top-action { display: none; }
    .st-avatar { width: 35px; height: 35px; flex-basis: 35px; }
    .st-main { padding-top: 62px !important; }
    .st-main-inner { padding: 12px; }
    .st-dashboard { gap: 12px; }
    .st-dashboard-hero { padding: 23px 20px; min-height: 157px; }
    .st-hero-copy h1 { font-size: 23px; max-width: 270px; }
    .st-hero-copy p { font-size: 13px; max-width: 280px; }
    .st-hero-logo { width: 185px; height: 200px; top: -19px; right: -32px; opacity: .4; }
    .st-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .st-kpi { min-height: 95px; padding: 13px; gap: 10px; }
    .st-kpi-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 9px; }
    .st-kpi-icon svg { width: 23px; height: 23px; }
    .st-kpi-content p { font-size: 11px; }
    .st-kpi-content strong { margin-top: 5px; font-size: clamp(17px,4.8vw,23px); white-space: normal; word-break: break-word; }
    .st-kpi-content small { font-size: 9px; }
    .st-data-grid { grid-template-columns: minmax(0,1fr); }
    .st-panel-activities { grid-column: auto; }
    .st-activity-list { display: block; }
    .st-panel-chart { height: 245px; }
    .st-shortcuts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .st-shortcut:last-child { grid-column: 1 / -1; }
    .st-sidebar-foot { margin-top: 5px; }
}
@media (max-width: 380px) {
    .st-kpi { flex-direction: column; align-items: flex-start; }
    .st-hero-copy h1 { max-width: 250px; font-size: 21px; }
    .st-hero-copy p { max-width: 245px; }
    .st-shortcuts-grid { grid-template-columns: 1fr; }
    .st-shortcut:last-child { grid-column: auto; }
}

.st-privacy-toolbar{display:flex;justify-content:flex-end;margin-bottom:12px}.st-privacy-toolbar button{display:flex;align-items:center;gap:8px;border:1px solid #c4e5d2;border-radius:12px;background:#eefbf3;color:#067b43;padding:10px 14px;font-size:13px;font-weight:600;min-height:44px}.st-privacy-toolbar svg{width:23px;height:23px}.st-privacy-toolbar .privacy-slash{display:none}.st-values-hidden .privacy-slash{display:block}.st-values-hidden [data-private-chart]{position:relative}.st-values-hidden [data-private-chart] canvas{visibility:hidden}.st-values-hidden [data-private-chart]:after{content:"****** · Valores ocultos";position:absolute;inset:0;display:grid;place-items:center;color:#07854a;background:linear-gradient(120deg,#effbf3,#f6faf8);border-radius:12px;font-weight:700;letter-spacing:2px}

.st-service-menu summary{cursor:pointer;list-style:none;color:#e1f6eb;display:flex;align-items:center;min-height:48px;border-radius:12px}.st-service-menu summary::-webkit-details-marker{display:none}.st-service-menu[open] summary{background:#0b623f;border-left:3px solid #26ed72}.st-service-submenu{padding:7px 8px 7px 30px}.st-service-submenu a{display:block;color:#bbdbcb!important;padding:10px 12px;border-radius:9px;font-size:13px}.st-service-submenu a:hover{background:#116443;color:white!important}

.st-privacy-toolbar{margin-bottom:4px;height:36px}.st-privacy-toolbar [data-toggle-values]{width:36px!important;height:36px!important;min-height:36px!important;padding:6px!important;border:0!important;background:transparent!important;color:#6b8277;box-shadow:none!important}.st-privacy-toolbar [data-toggle-values]:hover{background:#e6f5ec!important;color:#008c46}.st-privacy-toolbar [data-toggle-values] svg{width:22px!important;height:22px!important}.st-service-submenu a{display:block!important;line-height:1.5;min-height:42px}.st-service-menu summary{list-style:none!important}.st-service-menu summary::-webkit-details-marker{display:none!important}
/* V5: acesso ao app e banner financeiro com menor altura. */
.st-dashboard-hero{min-height:130px;padding:20px 32px}
.st-hero-copy h1{font-size:clamp(23px,2vw,32px)}
.st-hero-copy p{font-size:14px;margin-top:7px}
.st-hero-logo{width:240px;height:215px;top:-40px}
a.st-app-download{min-height:65px;padding:14px;align-items:center;text-decoration:none;color:#e8f7f1}
.st-app-download>svg{width:24px;height:24px;flex-shrink:0;fill:none;stroke:#6bffa0;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.st-app-download strong{display:block;font-size:13px;font-weight:700;color:#f0fff7}
.st-app-download small{display:block;margin-top:3px;font-size:10px;color:#aad4c0}
a.st-app-download:hover{border-color:#48d88a;background:#14563d}
a.st-app-download:focus-visible{outline:2px solid #6bffa0;outline-offset:3px}
@media(max-width:640px){.st-dashboard-hero{min-height:122px;padding:16px 18px}.st-hero-copy h1{font-size:21px}.st-hero-copy p{font-size:12px}.st-hero-logo{height:170px;width:165px;top:-20px}.st-sidebar-foot.st-app-download{margin:10px 16px 18px;min-height:60px}}
