:root {
    --bg: #070b17;
    --surface: rgba(17, 23, 43, .72);
    --surface-2: rgba(23, 31, 56, .82);
    --border: rgba(255, 255, 255, .09);
    --text: #f7f8fc;
    --muted: #8d96af;
    --primary: #7c6df2;
    --primary-2: #9b8cff;
    --green: #53e6b0;
    --danger: #ff7085;
    --shadow: 0 30px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
.is-hidden { display: none !important; }

.ambient { position: fixed; border-radius: 50%; pointer-events: none; filter: blur(2px); opacity: .55; }
.ambient-one { width: 650px; height: 650px; left: -320px; top: -240px; background: radial-gradient(circle, rgba(92, 77, 209, .25), transparent 68%); }
.ambient-two { width: 700px; height: 700px; right: -310px; bottom: -360px; background: radial-gradient(circle, rgba(28, 154, 155, .15), transparent 68%); }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.app-shell { position: relative; z-index: 1; min-height: 100vh; }
.view { min-height: 100vh; }
.glass { background: linear-gradient(145deg, rgba(26, 34, 60, .83), rgba(12, 17, 34, .8)); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(22px); }

.login-view { max-width: 1280px; margin: auto; padding: 36px 54px 28px; display: flex; flex-direction: column; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 16px/1 "Manrope", sans-serif; letter-spacing: 1.8px; width: fit-content; }
.brand > span > span, .brand > span:last-child span { color: var(--green); }
.brand-mark { width: 32px; height: 32px; display: inline-flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 7px; border-radius: 9px; background: linear-gradient(145deg, var(--primary-2), #5d50d4); box-shadow: 0 8px 25px rgba(124, 109, 242, .3); }
.brand-mark span { width: 4px; border-radius: 4px; background: white; transform: rotate(24deg); }
.brand-mark span:nth-child(1) { height: 7px; }.brand-mark span:nth-child(2) { height: 13px; }.brand-mark span:nth-child(3) { height: 18px; }

.login-layout { flex: 1; display: grid; grid-template-columns: 1.05fr .78fr; align-items: center; gap: clamp(50px, 9vw, 130px); padding: 64px 30px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--primary-2); text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 700; }
.eyebrow > span { width: 20px; height: 1px; background: currentColor; }
.login-copy h1, .welcome h1 { margin: 18px 0; font: 700 clamp(44px, 5vw, 68px)/1.08 "Manrope", sans-serif; letter-spacing: -3px; }
.login-copy h1 em, .welcome h1 em { color: var(--green); font-style: normal; }
.login-copy > p { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.trust-row { display: flex; gap: 38px; margin-top: 42px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item div:last-child { display: flex; flex-direction: column; gap: 3px; }
.trust-item strong { font-size: 13px; }.trust-item span { color: var(--muted); font-size: 11px; }
.mini-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(83, 230, 176, .08); color: var(--green); border: 1px solid rgba(83, 230, 176, .12); }
.bolt-icon { background: rgba(124, 109, 242, .1); color: var(--primary-2); border-color: rgba(124, 109, 242, .15); }

.login-card { position: relative; overflow: hidden; border-radius: 24px; padding: 39px; max-width: 430px; width: 100%; justify-self: end; }
.card-glow { position: absolute; width: 190px; height: 190px; right: -80px; top: -100px; background: rgba(124, 109, 242, .18); filter: blur(50px); border-radius: 50%; }
.card-heading { position: relative; }.card-kicker { color: var(--green); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; }
.card-heading h2 { margin: 9px 0 7px; font: 700 27px/1.2 "Manrope", sans-serif; }.card-heading p { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
label { display: block; color: #b5bdd1; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 9px; }
.input-wrap { position: relative; }
.input-wrap input, .date-field input { width: 100%; color: var(--text); border: 1px solid rgba(255,255,255,.1); background: rgba(4, 8, 20, .48); outline: none; transition: .25s; }
.input-wrap input { height: 55px; border-radius: 13px; padding: 0 44px; font-size: 16px; letter-spacing: 1px; }
.input-wrap input:focus, .date-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,109,242,.12); }
.input-wrap.has-error input { border-color: var(--danger); }.input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.valid-icon { display: none; position: absolute; right: 17px; top: 50%; transform: translateY(-50%); color: var(--green); }
.input-wrap.is-valid .valid-icon { display: block; }.field-error { min-height: 18px; margin: 6px 0 5px; color: var(--danger); font-size: 11px; }
.primary-btn, .search-btn { border: 0; cursor: pointer; background: linear-gradient(135deg, #8173f4, #6859de); box-shadow: 0 11px 28px rgba(91, 74, 209, .28); transition: transform .2s, box-shadow .2s; }
.primary-btn { width: 100%; height: 54px; border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; }
.primary-btn:hover, .search-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(91, 74, 209, .38); }.primary-btn:active, .search-btn:active { transform: translateY(0); }
.btn-arrow { transition: transform .2s; }.primary-btn:hover .btn-arrow { transform: translateX(4px); }
.spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }.is-loading .btn-label, .is-loading .btn-arrow, .is-loading .search-icon { display: none; }
.demo-box { margin-top: 21px; padding-top: 18px; text-align: center; border-top: 1px solid var(--border); }.demo-box > span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; }.demo-cpf { margin-top: 7px; border: 0; background: none; color: var(--primary-2); cursor: pointer; font-size: 12px; }
.login-footer { display: flex; justify-content: space-between; color: #626c86; font-size: 11px; border-top: 1px solid rgba(255,255,255,.05); padding-top: 20px; }.status { display: flex; align-items: center; gap: 7px; }.status i, .secure-badge i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 8px var(--green); }

.reveal { animation: reveal .7s both; }.delay-1 { animation-delay: .12s; }.delay-2 { animation-delay: .24s; }.delay-3 { animation-delay: .36s; }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

.dashboard-view { padding-bottom: 60px; }
.topbar { height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(40px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(7,11,23,.72); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.brand.compact { color: white; text-decoration: none; }.brand.compact .brand-mark { width: 29px; height: 29px; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }.secure-badge { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }.logout-btn { border: 1px solid var(--border); border-radius: 9px; padding: 9px 14px; background: rgba(255,255,255,.03); cursor: pointer; font-size: 12px; transition: .2s; }.logout-btn:hover { background: rgba(255,255,255,.08); }.logout-btn span { color: var(--primary-2); margin-left: 6px; }
.dashboard-content { width: min(1240px, calc(100% - 80px)); margin: auto; }
.welcome { padding: 55px 0 32px; }.welcome h1 { font-size: clamp(34px, 4vw, 48px); margin: 13px 0 8px; letter-spacing: -2px; }.welcome p { color: var(--muted); margin: 0; }
.filter-card { position: relative; display: grid; grid-template-columns: 1.35fr 1fr 30px 1fr auto; align-items: end; gap: 18px; padding: 22px 24px; border-radius: 17px; box-shadow: 0 18px 55px rgba(0,0,0,.22); }
.filter-title { display: flex; align-items: center; gap: 13px; align-self: center; }.filter-title div:last-child { display: flex; flex-direction: column; gap: 4px; }.filter-title strong { font: 700 14px "Manrope", sans-serif; }.filter-title span { color: var(--muted); font-size: 11px; }.calendar-symbol { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--primary-2); background: rgba(124,109,242,.1); border: 1px solid rgba(124,109,242,.15); }
.date-field label { margin-bottom: 7px; font-size: 9px; }.date-field input { height: 43px; border-radius: 10px; padding: 0 12px; color-scheme: dark; font-size: 12px; }.date-separator { align-self: center; color: #59627b; text-align: center; }
.search-btn { height: 43px; padding: 0 23px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700; }.filter-error { position: absolute; right: 25px; bottom: -23px; color: var(--danger); font-size: 11px; margin: 0; }
.results-section { margin-top: 55px; }.results-head { display: flex; align-items: end; margin-bottom: 20px; }.results-title-line { display: flex; align-items: baseline; gap: 14px; }.results-head h2 { margin: 8px 0 0; font: 700 25px "Manrope", sans-serif; }.results-count { display: flex; align-items: baseline; gap: 7px; }.results-count strong { font: 700 23px "Manrope", sans-serif; color: var(--green); }.results-count span { color: var(--muted); font-size: 11px; }
.summary-grid { display: none; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }.summary-grid.has-data { display: grid; animation: summaryIn .35s ease both; }.summary-card { position: relative; overflow: hidden; padding: 17px 20px; border-radius: 13px; border: 1px solid var(--border); background: rgba(18,24,45,.6); display: grid; grid-template-columns: 1fr auto; align-items: baseline; }.summary-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -40px; top: -55px; border-radius: 50%; background: rgba(124,109,242,.15); filter: blur(15px); }.summary-card.green::after { background: rgba(83,230,176,.15); }.summary-card span { grid-column: 1/-1; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }.summary-card strong { font: 700 21px "Manrope", sans-serif; margin-top: 7px; }.summary-card small { color: #626c86; font-size: 9px; }
@keyframes summaryIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.table-card { overflow: hidden; border-radius: 16px; box-shadow: 0 22px 65px rgba(0,0,0,.28); }.table-scroll { overflow-x: auto; }.table-scroll::-webkit-scrollbar { height: 7px; }.table-scroll::-webkit-scrollbar-thumb { background: #303958; border-radius: 10px; }
table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 11px; } th { padding: 15px 14px; text-align: left; color: #77819d; background: rgba(5,9,20,.45); text-transform: uppercase; letter-spacing: .75px; font-size: 8px; white-space: nowrap; } td { padding: 14px; color: #cbd1df; border-top: 1px solid rgba(255,255,255,.045); white-space: nowrap; } tbody tr { transition: background .2s; animation: rowIn .35s both; } tbody tr:hover { background: rgba(124,109,242,.055); } td:first-child { color: var(--primary-2); font-weight: 700; }.type-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 20px; background: rgba(83,230,176,.08); color: var(--green); }.type-pill::before { content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }.type-pill.negative { color: var(--danger); background: rgba(255,112,133,.08); }.positive { color: var(--green); }.negative-text { color: var(--danger); }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
.empty-state { min-height: 225px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }.empty-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--primary-2); background: rgba(124,109,242,.08); border: 1px solid rgba(124,109,242,.12); font-size: 22px; }.empty-state strong { margin-top: 5px; font-size: 13px; }.empty-state span { color: var(--muted); font-size: 11px; text-align: center; padding: 0 20px; }
.toast { position: fixed; z-index: 30; right: 25px; bottom: 25px; display: flex; align-items: center; gap: 10px; padding: 13px 18px; border: 1px solid rgba(83,230,176,.18); border-radius: 12px; background: #121a2c; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .3s; }.toast.show { opacity: 1; transform: none; }.toast > span { color: var(--green); }.toast p { margin: 0; font-size: 12px; }

.ios-install-tip {
    display: none;
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 40;
    width: min(370px, calc(100vw - 28px));
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(184, 0, 6, .15);
    border-radius: 18px;
    padding: 13px;
    background: rgba(255, 255, 255, .97);
    color: #656a74;
    text-align: left;
    box-shadow: 0 20px 50px rgba(37, 36, 37, .18);
    backdrop-filter: blur(14px);
    transform: translate(-50%, 18px);
    opacity: 0;
    pointer-events: none;
}
.ios-install-tip.show { display: flex; animation: iosTipIn .35s ease forwards; }
.ios-install-tip.hide { animation: iosTipOut .25s ease forwards; }
.ios-install-tip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,.97);
    border-right: 1px solid rgba(184,0,6,.15);
    border-bottom: 1px solid rgba(184,0,6,.15);
    transform: translateX(-50%) rotate(45deg);
}
.ios-install-icon {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: linear-gradient(135deg, #d60009, #ad0005);
    box-shadow: 0 10px 22px rgba(184,0,6,.22);
}
.ios-install-icon::before {
    content: "";
    position: absolute;
    left: 11px;
    bottom: 8px;
    width: 14px;
    height: 12px;
    border: 2px solid #fff;
    border-top: 0;
    border-radius: 0 0 3px 3px;
}
.ios-install-icon::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 8px;
    width: 2px;
    height: 13px;
    background: #fff;
}
.ios-install-icon i::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 8px;
    width: 7px;
    height: 7px;
    border-left: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: rotate(45deg);
}
.ios-install-title { margin: 1px 0 3px; color: #252425; font: 800 13px/1.25 "Nunito Sans", sans-serif; }
.ios-install-text { margin: 0; font-size: 11px; line-height: 1.45; }
.ios-install-text strong { color: #b80006; }
@keyframes iosTipIn { to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes iosTipOut { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, 14px); } }

@media (max-width: 960px) {
    .login-view { padding: 28px 32px; }.login-layout { grid-template-columns: 1fr; padding: 55px 10px; gap: 45px; }.login-copy { text-align: center; }.login-copy .eyebrow { justify-content: center; }.login-copy > p { margin-left: auto; margin-right: auto; }.trust-row { justify-content: center; }.login-card { justify-self: center; }.filter-card { grid-template-columns: 1fr 1fr; }.filter-title { grid-column: 1/-1; }.date-separator { display: none; }.search-btn { grid-column: 1/-1; }.dashboard-content { width: min(100% - 40px, 800px); }
}
@media (max-width: 620px) {
    .login-view { padding: 24px 18px; }.login-layout { padding: 45px 0 30px; }.login-copy h1 { font-size: 39px; letter-spacing: -2px; }.login-copy > p { font-size: 14px; }.trust-row { flex-direction: column; gap: 15px; width: fit-content; margin: 30px auto 0; align-items: start; }.login-card { padding: 28px 22px; }.login-footer { flex-direction: column; align-items: center; gap: 9px; }
    .topbar { height: 68px; padding: 0 18px; }.secure-badge { display: none; }.dashboard-content { width: calc(100% - 28px); }.welcome { padding: 40px 3px 26px; }.welcome h1 { font-size: 35px; }.welcome p { font-size: 13px; line-height: 1.55; }.filter-card { grid-template-columns: 1fr; padding: 19px; gap: 14px; }.filter-title, .search-btn { grid-column: auto; }.filter-error { position: static; grid-column: 1/-1; }.results-section { margin-top: 43px; }.results-head { align-items: center; }.results-count span { display: none; }.summary-grid { grid-template-columns: 1fr; }.summary-card { padding: 14px 17px; }.table-card { margin-left: -14px; margin-right: -14px; border-radius: 0; border-left: 0; border-right: 0; }.empty-state { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Identidade visual Centro Elétrico */
:root {
    --bg: #f5f6f8;
    --surface: rgba(255, 255, 255, .94);
    --surface-2: #fff;
    --border: #e6e7eb;
    --text: #252425;
    --muted: #6b7280;
    --primary: #b80006;
    --primary-2: #df0010;
    --green: #b80006;
    --danger: #b80006;
    --yellow: #f2d33a;
    --orange: #fd7e14;
    --shadow: 0 24px 70px rgba(37, 36, 37, .11);
}

body {
    color: var(--text);
    background: #f5f6f8;
    font-family: "Inter", sans-serif;
}

.ambient-one {
    width: 760px;
    height: 760px;
    left: -390px;
    top: -390px;
    opacity: .75;
    background: radial-gradient(circle, rgba(184, 0, 6, .11), transparent 68%);
}

.ambient-two {
    width: 660px;
    height: 660px;
    right: -320px;
    bottom: -320px;
    opacity: .65;
    background: radial-gradient(circle, rgba(242, 211, 58, .18), transparent 67%);
}

.noise { opacity: .012; }
.glass { background: rgba(255,255,255,.92); border-color: #e5e7eb; backdrop-filter: blur(22px); }
h1, h2, .card-heading h2, .filter-title strong, .summary-card strong, .results-count strong { font-family: "Nunito Sans", sans-serif !important; }

.ce-brand { gap: 14px; letter-spacing: 0; }
.ce-brand img { display: block; width: 160px; height: auto; }
.ce-brand .brand-divider { width: 1px; height: 30px; background: #d8d9dd; }
.ce-brand .portal-label { color: #51545b; font: 800 10px/1.25 "Nunito Sans", sans-serif; letter-spacing: 1px; text-transform: uppercase; max-width: 65px; }
.brand.compact.ce-brand img { width: 126px; }
.brand.compact.ce-brand .brand-divider { height: 24px; }
.brand.compact.ce-brand .portal-label { font-size: 8px; }

.eyebrow { color: var(--primary); }
.login-copy h1, .welcome h1 { color: #252425; }
.login-copy h1 em, .welcome h1 em { color: var(--primary); }
.login-copy > p { color: #646872; }
.trust-item strong { color: #303030; }
.trust-item span { color: #7b808a; }
.mini-icon {
    color: var(--primary);
    background: #fff1f1;
    border-color: #f4cdd0;
}
.bolt-icon { color: #9b7d00; background: #fff9d9; border-color: #f3e59a; }

.login-card {
    border-top: 4px solid var(--primary);
    box-shadow: 0 30px 90px rgba(37,36,37,.14);
}
.card-glow { background: rgba(184,0,6,.1); }
.card-kicker { color: var(--primary); }
.card-heading h2 { color: #252425; }
.card-heading p, .demo-box > span { color: #777d88; }
label { color: #50545c; }
.input-wrap input, .date-field input {
    color: #252425;
    border-color: #dcdfe4;
    background: #f8f9fa;
}
.input-wrap input::placeholder { color: #a1a6af; }
.input-wrap input:focus, .date-field input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184,0,6,.09);
}
.input-icon { color: #8c919b; }
.valid-icon { color: var(--primary); }
.demo-box { border-color: #ececef; }

.primary-btn, .search-btn {
    color: #fff;
    background: linear-gradient(135deg, #d60009, #ad0005);
    box-shadow: 0 12px 28px rgba(184,0,6,.2);
}
.primary-btn:hover, .search-btn:hover { box-shadow: 0 16px 34px rgba(184,0,6,.3); }
.login-footer { color: #858a94; border-color: #e3e4e7; }
.status i, .secure-badge i { background: #259a57; box-shadow: 0 0 8px rgba(37,154,87,.45); }

.topbar {
    background: rgba(255,255,255,.94);
    border-bottom-color: #e5e7eb;
    box-shadow: 0 5px 22px rgba(37,36,37,.045);
}
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #b80006 0 72%, #f2d33a 72% 86%, #fd7e14 86%); }
.secure-badge { color: #747983; }
.logout-btn { color: #4b4e55; border-color: #dedfe3; background: #fff; }
.logout-btn:hover { color: var(--primary); border-color: #e7b8ba; background: #fff5f5; }
.logout-btn span { color: var(--primary); }

.welcome p, .filter-title span, .results-count span { color: #727782; }
.filter-card { box-shadow: 0 15px 45px rgba(37,36,37,.075); }
.calendar-symbol { position: relative; color: var(--primary); background: #fff0f1; border-color: #f3c8cb; }
.calendar-symbol::before {
    content: "";
    width: 16px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 3px;
    background: linear-gradient(currentColor, currentColor) 0 4px / 100% 2px no-repeat;
}
.calendar-symbol::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 13px;
    width: 2px;
    height: 5px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 8px 0 currentColor;
}
.date-field input { color-scheme: light; }
.date-separator { color: #9a9ea6; }
.results-count strong { color: var(--primary); }

.summary-card { background: #fff; border-color: #e4e5e9; box-shadow: 0 8px 24px rgba(37,36,37,.035); }
.summary-card::after { background: rgba(184,0,6,.12); }
.summary-card.green::after { background: rgba(242,211,58,.22); }
.summary-card span { color: #727782; }
.summary-card small { color: #989ca5; }
.table-card { background: #fff; border-color: #e4e5e9; box-shadow: 0 18px 55px rgba(37,36,37,.08); }
table { background: #fff; }
th { color: #61666f; background: #f2f3f5; }
td { color: #484c54; border-top-color: #ececef; }
tbody tr:hover { background: #fff7f7; }
td:first-child { color: var(--primary); }
.type-pill { color: #177846; background: #ecf8f2; }
.type-pill.negative { color: #b80006; background: #fff0f1; }
.positive { color: #177846; }
.negative-text { color: #b80006; }
.empty-icon { color: var(--primary); background: #fff0f1; border-color: #f3c8cb; }
.empty-state span { color: #7a7f89; }
.toast { color: #303030; background: #fff; border-color: #e3c6c8; }
.toast > span { color: var(--primary); }
.table-scroll::-webkit-scrollbar-thumb { background: #b8bbc2; }

@media (max-width: 620px) {
    .ce-brand img { width: 134px; }
    .ce-brand .portal-label { font-size: 8px; }
    .brand.compact.ce-brand img { width: 104px; }
    .brand.compact.ce-brand .brand-divider, .brand.compact.ce-brand .portal-label { display: none; }
    .login-view { min-height: 100svh; }
    .login-view > .ce-brand { align-self: center; }
    .login-view .login-layout {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 28px 0 22px;
        gap: 0;
    }
    .login-view .login-copy { display: none; }
    body.login-active { height: 100svh; min-height: 0; overflow: hidden; }
    body.login-active .app-shell,
    body.login-active .login-view { height: 100svh; min-height: 0; overflow: hidden; }
    .filter-card { overflow: visible; gap: 10px; }
    .date-field { position: relative; width: 100%; min-width: 0; }
    .date-field input[type="date"] {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 44px;
        padding: 0 42px 0 12px;
        font-size: 16px;
        line-height: 44px;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
    }
    .date-field input[type="date"]::-webkit-date-and-time-value {
        display: flex;
        align-items: center;
        height: 44px;
        min-height: 44px;
        margin: 0;
        padding: 0;
        line-height: 44px;
        text-align: left;
    }
    .date-field input[type="date"]::-webkit-calendar-picker-indicator {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        opacity: 0;
        cursor: pointer;
    }
    .date-field::after {
        content: "";
        position: absolute;
        right: 14px;
        bottom: 14px;
        width: 14px;
        height: 13px;
        border: 1.5px solid #656a74;
        border-radius: 2px;
        background: linear-gradient(#656a74, #656a74) 0 3px / 100% 1.5px no-repeat;
        pointer-events: none;
    }
    .date-field::before {
        content: "";
        position: absolute;
        z-index: 1;
        right: 23px;
        bottom: 25px;
        width: 1.5px;
        height: 4px;
        border-radius: 2px;
        background: #656a74;
        box-shadow: 7px 0 #656a74;
        pointer-events: none;
    }
}

@media (max-width: 620px) and (max-height: 650px) {
    .login-active .login-footer { display: none; }
    .login-active .login-view .login-layout { padding: 12px 0; }
    .login-active .login-card { padding-top: 22px; padding-bottom: 22px; }
}
