 :root {
     --ink: #1C1B19;
     --ink-2: #26241F;
     --ink-3: #332F28;
     --paper: #F6F4EF;
     --paper-2: #EFEBE2;
     --card: #FFFFFF;
     --orange: #FF914C;
     --orange-deep: #DE6B26;
     --orange-ghost: #FFE6D3;
     --line: #E3DDD0;
     --line-dark: #403C34;
     --text: #232019;
     --text-muted: #7A756A;
     --text-inverse: #F3EFE6;
     --text-inverse-muted: #B4AC9D;
     --green: #2F6B4F;
     --green-ghost: #E4EFE9;
     --red: #C1443A;
     --red-ghost: #FBE7E5;
     --blue-plate: #0033A0;
     --radius: 14px;
     --radius-sm: 8px;
     --shadow: 0 1px 2px rgba(28, 27, 25, 0.04), 0 8px 24px rgba(28, 27, 25, 0.06);
     --shadow-lg: 0 4px 12px rgba(28, 27, 25, 0.08), 0 20px 48px rgba(28, 27, 25, 0.14);
 }

 * {
     box-sizing: border-box;
 }

 svg {
     width: 1em;
     height: 1em;
 }

 html,
 body {
     margin: 0;
     padding: 0;
 }

 body {
     font-family: 'Public Sans', -apple-system, sans-serif;
     background: var(--paper);
     color: var(--text);
     font-size: 14px;
     line-height: 1.5;
     -webkit-font-smoothing: antialiased;
 }

 h1,
 h2,
 h3,
 h4 {
     font-family: 'Oswald', sans-serif;
     font-weight: 600;
     letter-spacing: 0.01em;
     margin: 0;
     color: var(--text);
 }

 .mono {
     font-family: 'JetBrains Mono', monospace;
 }

 ::selection {
     background: var(--orange-ghost);
 }

 button {
     font-family: inherit;
     cursor: pointer;
 }

 input,
 select,
 textarea {
     font-family: inherit;
 }

 a {
     color: inherit;
 }

 ::-webkit-scrollbar {
     width: 10px;
     height: 10px;
 }

 ::-webkit-scrollbar-thumb {
     background: #D9D2C3;
     border-radius: 8px;
 }

 ::-webkit-scrollbar-track {
     background: transparent;
 }

 /* ---------- layout ---------- */
 #app {
     display: flex;
     min-height: 100vh;
     width: 100%;
 }

 .sidebar {
     width: 232px;
     flex-shrink: 0;
     background: var(--ink);
     color: var(--text-inverse);
     display: flex;
     flex-direction: column;
     padding: 22px 16px;
     position: sticky;
     top: 0;
     height: 100vh;
 }

 .brand {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 4px 8px 20px 8px;
     border-bottom: 1px solid var(--line-dark);
     margin-bottom: 18px;
 }

 .logo-circle {
     width: 44px;
     height: 44px;
     border-radius: 50%;
     background: var(--paper);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
     box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
 }

 .logo-circle img {
     width: 30px;
     height: 30px;
     object-fit: contain;
     filter: none;
 }

 .brand img {
     width: 40px;
     height: 40px;
     object-fit: contain;
     filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
 }

 .brand-text {
     display: flex;
     flex-direction: column;
     line-height: 1.15;
 }

 .brand-text b {
     font-family: 'Oswald';
     font-size: 15px;
     letter-spacing: .03em;
     color: var(--text-inverse);
 }

 .brand-text span {
     font-size: 10.5px;
     color: var(--text-inverse-muted);
     letter-spacing: .08em;
     text-transform: uppercase;
 }

 .nav {
     display: flex;
     flex-direction: column;
     gap: 2px;
     flex: 1;
 }

 .nav-item {
     display: flex;
     align-items: center;
     gap: 11px;
     padding: 10px 12px;
     border-radius: 9px;
     color: var(--text-inverse-muted);
     background: transparent;
     border: none;
     text-align: left;
     font-size: 13.5px;
     font-weight: 500;
     transition: background .15s, color .15s;
 }

 .nav-item svg {
     width: 17px;
     height: 17px;
     flex-shrink: 0;
 }

 .nav-item:hover {
     background: var(--ink-3);
     color: var(--text-inverse);
 }

 .nav-item.active {
     background: var(--orange);
     color: #241505;
     font-weight: 600;
 }

 .nav-divider {
     height: 1px;
     background: var(--line-dark);
     margin: 10px 4px;
 }

 .sidebar-foot {
     padding: 10px 8px 2px;
     font-size: 10.5px;
     color: var(--text-inverse-muted);
     border-top: 1px solid var(--line-dark);
     margin-top: 8px;
 }

 .main {
     flex: 1;
     min-width: 0;
     padding: 26px 34px 60px;
     max-width: 1240px;
 }

 .view {
     animation: fadeIn .28s ease;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(4px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* ---------- top bar ---------- */
 .topbar {
     display: flex;
     align-items: flex-start;
     justify-content: space-between;
     gap: 24px;
     margin-bottom: 22px;
     flex-wrap: wrap;
 }

 .date-block .eyebrow {
     font-size: 11px;
     text-transform: uppercase;
     letter-spacing: .12em;
     color: var(--text-muted);
     font-weight: 600;
     margin-bottom: 2px;
 }

 .date-block h1 {
     font-size: 26px;
 }

 .searchbar {
     display: flex;
     align-items: center;
     gap: 8px;
     background: var(--card);
     border: 1px solid var(--line);
     border-radius: 11px;
     padding: 9px 14px;
     min-width: 340px;
     box-shadow: var(--shadow);
 }

 .searchbar input {
     border: none;
     outline: none;
     background: transparent;
     font-size: 13.5px;
     flex: 1;
     color: var(--text);
 }

 .searchbar svg {
     width: 16px;
     height: 16px;
     color: var(--text-muted);
     flex-shrink: 0;
 }

 .searchbar-wrap {
     position: relative;
 }

 .search-dropdown {
     position: absolute;
     top: calc(100% + 6px);
     left: 0;
     right: 0;
     background: var(--card);
     border: 1px solid var(--line);
     border-radius: 11px;
     box-shadow: var(--shadow-lg);
     z-index: 40;
     max-height: 340px;
     overflow: auto;
 }

 .search-dropdown .sres {
     padding: 10px 14px;
     border-bottom: 1px solid var(--line);
     cursor: pointer;
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: 10px;
 }

 .search-dropdown .sres:last-child {
     border-bottom: none;
 }

 .search-dropdown .sres:hover {
     background: var(--paper-2);
 }

 .search-dropdown .sres b {
     font-size: 13px;
 }

 .search-dropdown .sres .meta {
     font-size: 11.5px;
     color: var(--text-muted);
 }

 .search-empty {
     padding: 14px;
     font-size: 12.5px;
     color: var(--text-muted);
 }

 /* ---------- buttons ---------- */
 .btn {
     display: inline-flex;
     align-items: center;
     gap: 7px;
     border-radius: 9px;
     border: 1px solid transparent;
     padding: 9px 15px;
     font-size: 13px;
     font-weight: 600;
     transition: transform .1s, box-shadow .15s, background .15s;
 }

 .btn svg {
     width: 15px;
     height: 15px;
 }

 .btn:active {
     transform: scale(0.97);
 }

 .btn-primary {
     background: var(--orange);
     color: #251506;
 }

 .btn-primary:hover {
     background: var(--orange-deep);
 }

 .btn-dark {
     background: var(--ink);
     color: var(--text-inverse);
 }

 .btn-dark:hover {
     background: var(--ink-3);
 }

 .btn-ghost {
     background: transparent;
     color: var(--text);
     border-color: var(--line);
 }

 .btn-ghost:hover {
     background: var(--paper-2);
 }

 .btn-danger-ghost {
     background: transparent;
     color: var(--red);
     border-color: var(--red-ghost);
 }

 .btn-danger-ghost:hover {
     background: var(--red-ghost);
 }

 .btn-sm {
     padding: 6px 11px;
     font-size: 12px;
 }

 .btn:disabled {
     opacity: .5;
     cursor: not-allowed;
 }

 .icon-btn {
     background: transparent;
     border: 1px solid var(--line);
     border-radius: 8px;
     width: 32px;
     height: 32px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     color: var(--text-muted);
 }

 .icon-btn:hover {
     background: var(--paper-2);
     color: var(--text);
 }

 .icon-btn svg {
     width: 15px;
     height: 15px;
 }

 /* ---------- cards / grid ---------- */
 .grid {
     display: grid;
     gap: 18px;
 }

 .grid-3 {
     grid-template-columns: repeat(3, 1fr);
 }

 .grid-2 {
     grid-template-columns: 1.3fr 1fr;
 }

 @media(max-width:980px) {
     .grid-3 {
         grid-template-columns: 1fr;
     }

     .grid-2 {
         grid-template-columns: 1fr;
     }
 }

 .card {
     background: var(--card);
     border: 1px solid var(--line);
     border-radius: var(--radius);
     padding: 20px;
     box-shadow: var(--shadow);
 }

 .card-head {
     display: flex;
     align-items: center;
     justify-content: space-between;
     margin-bottom: 14px;
     gap: 10px;
 }

 .card-head h3 {
     font-size: 14px;
     text-transform: uppercase;
     letter-spacing: .06em;
     color: var(--text-muted);
     font-weight: 600;
 }

 .stat-value {
     font-family: 'Oswald';
     font-size: 36px;
     font-weight: 600;
     color: var(--text);
     line-height: 1;
 }

 .stat-value.green {
     color: var(--green);
 }

 .stat-sub {
     font-size: 12px;
     color: var(--text-muted);
     margin-top: 6px;
 }

 .period-tabs {
     display: flex;
     gap: 4px;
     background: var(--paper-2);
     padding: 3px;
     border-radius: 9px;
 }

 .period-tabs button {
     border: none;
     background: transparent;
     padding: 6px 11px;
     border-radius: 7px;
     font-size: 12px;
     font-weight: 600;
     color: var(--text-muted);
 }

 .period-tabs button.active {
     background: var(--card);
     color: var(--text);
     box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
 }

 /* agenda list */
 .agenda-item {
     display: flex;
     gap: 12px;
     align-items: flex-start;
     padding: 11px 0;
     border-bottom: 1px solid var(--line);
 }

 .agenda-item:last-child {
     border-bottom: none;
 }

 .agenda-time {
     font-family: 'JetBrains Mono';
     font-size: 12.5px;
     font-weight: 600;
     color: var(--orange-deep);
     background: var(--orange-ghost);
     border-radius: 6px;
     padding: 3px 7px;
     white-space: nowrap;
     min-width: 52px;
     text-align: center;
 }

 .agenda-desc b {
     font-size: 13px;
     display: block;
 }

 .agenda-desc span {
     font-size: 12px;
     color: var(--text-muted);
 }

 .agenda-empty {
     padding: 18px 0;
     text-align: center;
     color: var(--text-muted);
     font-size: 12.5px;
 }

 .day-group-label {
     font-size: 11px;
     text-transform: uppercase;
     letter-spacing: .08em;
     color: var(--text-muted);
     font-weight: 700;
     margin: 18px 0 6px;
 }

 .day-group-label:first-child {
     margin-top: 0;
 }

 /* client table / list */
 .table-wrap {
     background: var(--card);
     border: 1px solid var(--line);
     border-radius: var(--radius);
     overflow: hidden;
     box-shadow: var(--shadow);
 }

 table {
     width: 100%;
     border-collapse: collapse;
     font-size: 13px;
 }

 th {
     text-align: left;
     font-size: 11px;
     text-transform: uppercase;
     letter-spacing: .06em;
     color: var(--text-muted);
     font-weight: 700;
     padding: 12px 16px;
     border-bottom: 1px solid var(--line);
     background: var(--paper-2);
 }

 td {
     padding: 12px 16px;
     border-bottom: 1px solid var(--line);
     vertical-align: middle;
 }

 tr:last-child td {
     border-bottom: none;
 }

 tr.row-click {
     cursor: pointer;
 }

 tr.row-click:hover {
     background: var(--paper-2);
 }

 .empty-state {
     padding: 50px 20px;
     text-align: center;
     color: var(--text-muted);
 }

 .empty-state svg {
     width: 38px;
     height: 38px;
     margin-bottom: 10px;
     opacity: .5;
 }

 .empty-state b {
     display: block;
     color: var(--text);
     font-size: 14.5px;
     margin-bottom: 4px;
 }

 /* plate chip - signature element */
 .plate {
     display: inline-flex;
     align-items: stretch;
     border-radius: 5px;
     overflow: hidden;
     border: 1.5px solid #22242A;
     box-shadow: 0 1px 0 rgba(0, 0, 0, .15);
     height: 26px;
 }

 .plate .flag {
     width: 14px;
     background: linear-gradient(to bottom, var(--blue-plate) 0 33%, #FFCC29 33% 66%, #009739 66% 100%);
     position: relative;
 }

 .plate .flag::after {
     content: 'BR';
     position: absolute;
     bottom: 1px;
     left: 50%;
     transform: translateX(-50%) rotate(90deg);
     font-size: 5px;
     color: #fff;
     font-weight: 700;
     display: none;
 }

 .plate .num {
     background: #F0F2F5;
     color: #111;
     font-family: 'JetBrains Mono';
     font-weight: 700;
     font-size: 13px;
     letter-spacing: .09em;
     padding: 0 8px;
     display: flex;
     align-items: center;
 }

 .plate.empty .num {
     color: #9AA0A8;
     font-weight: 500;
 }

 /* badges */
 .badge {
     display: inline-flex;
     align-items: center;
     gap: 5px;
     font-size: 11px;
     font-weight: 700;
     padding: 4px 9px;
     border-radius: 100px;
     letter-spacing: .02em;
 }

 .badge-orange {
     background: var(--orange-ghost);
     color: var(--orange-deep);
 }

 .badge-green {
     background: var(--green-ghost);
     color: var(--green);
 }

 .badge-gray {
     background: var(--paper-2);
     color: var(--text-muted);
 }

 /* client detail header */
 .client-hero {
     background: var(--ink);
     color: var(--text-inverse);
     border-radius: var(--radius);
     padding: 22px 26px;
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     gap: 20px;
     margin-bottom: 20px;
     flex-wrap: wrap;
 }

 .client-hero ::selection {
     background: var(--orange);
     color: var(--ink);
 }

 .client-hero ::-moz-selection {
     background: var(--orange);
     color: var(--ink);
 }

 .client-hero h2 {
     color: var(--text-inverse);
     font-size: 22px;
 }

 .client-hero .meta-row {
     display: flex;
     gap: 18px;
     flex-wrap: wrap;
     margin-top: 10px;
 }

 .client-hero .meta-item {
     font-size: 12.5px;
     color: var(--text-inverse-muted);
 }

 .client-hero .meta-item b {
     color: var(--text-inverse);
     font-weight: 600;
     display: block;
     font-size: 13px;
     margin-top: 1px;
 }

 .client-hero .meta-item span {
     text-transform: uppercase;
     font-size: 10px;
     letter-spacing: .08em;
 }

 .service-card {
     background: var(--card);
     border: 1px solid var(--line);
     border-radius: var(--radius);
     padding: 18px 20px;
     margin-bottom: 12px;
     box-shadow: var(--shadow);
 }

 .service-card-top {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     gap: 14px;
     flex-wrap: wrap;
 }

 .service-title {
     display: flex;
     align-items: center;
     gap: 10px;
     flex-wrap: wrap;
 }

 .service-title h4 {
     font-size: 15px;
 }

 .service-meta-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
     gap: 12px 20px;
     margin-top: 14px;
 }

 .smeta span {
     display: block;
     font-size: 10.5px;
     text-transform: uppercase;
     letter-spacing: .06em;
     color: var(--text-muted);
     margin-bottom: 2px;
 }

 .smeta b {
     font-size: 13px;
     font-weight: 600;
 }

 .service-detail {
     margin-top: 12px;
     font-size: 13px;
     color: var(--text);
     background: var(--paper-2);
     border-radius: 9px;
     padding: 10px 13px;
 }

 .infracao-row {
     display: flex;
     gap: 8px;
     align-items: center;
     margin-bottom: 8px;
 }

 .infracao-row-grid {
     display: grid;
     grid-template-columns: 1fr 1fr 1fr;
     gap: 8px;
     flex: 1;
 }

 .infracao-row-grid input {
     border: 1.5px solid var(--line);
     border-radius: 8px;
     padding: 8px 10px;
     font-size: 12.5px;
     background: var(--card);
     color: var(--text);
     outline: none;
 }

 .infracao-row-grid input:focus {
     border-color: var(--orange);
 }

 @media(max-width:520px) {
     .infracao-row-grid {
         grid-template-columns: 1fr;
     }
 }

 .infracoes-box {
     border: 1px solid var(--line);
     border-radius: 10px;
     padding: 12px;
     background: var(--paper-2);
 }

 .cobranca-row {
     display: flex;
     gap: 8px;
     align-items: center;
     margin-bottom: 8px;
 }

 .cobranca-row input {
     border: 1.5px solid var(--line);
     border-radius: 8px;
     padding: 8px 10px;
     font-size: 13px;
     background: var(--card);
     color: var(--text);
     outline: none;
 }

 .cobranca-row input:focus {
     border-color: var(--orange);
 }

 .cobranca-row>input {
     flex: 1.4;
     min-width: 0;
 }

 .cobranca-row .cobranca-valor {
     flex: 1;
     min-width: 0;
     margin: 0;
 }

 .cobranca-row .cobranca-valor input {
     width: 100%;
 }

 @media(max-width:520px) {
     .cobranca-row {
         flex-wrap: wrap;
     }

     .cobranca-row>input {
         flex: 1 1 100%;
     }
 }

 .cobrancas-total-box {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-top: 10px;
     padding: 10px 13px;
     background: var(--green-ghost);
     border-radius: 9px;
     font-size: 13px;
     font-weight: 700;
     color: var(--green);
 }

 .anexos-chip-list {
     display: flex;
     flex-wrap: wrap;
     gap: 8px;
     margin-bottom: 12px;
 }

 .anexo-chip {
     display: inline-flex;
     align-items: center;
     gap: 7px;
     font-size: 12.5px;
     font-weight: 600;
     color: var(--orange-deep);
     background: var(--orange-ghost);
     padding: 6px 8px 6px 11px;
     border-radius: 8px;
 }

 .anexo-chip button {
     background: none;
     border: none;
     color: var(--orange-deep);
     opacity: .7;
     display: flex;
     align-items: center;
     padding: 2px;
 }

 .anexo-chip button:hover {
     opacity: 1;
 }

 .tipos-checklist {
     display: flex;
     flex-wrap: wrap;
     gap: 8px;
 }

 .tipo-chip {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     border: 1.5px solid var(--line);
     background: var(--card);
     border-radius: 100px;
     padding: 7px 13px;
     font-size: 12.5px;
     font-weight: 600;
     color: var(--text-muted);
     transition: background .15s, border-color .15s, color .15s;
 }

 .tipo-chip:hover {
     border-color: var(--orange);
     color: var(--text);
 }

 .tipo-chip.checked {
     background: var(--orange);
     border-color: var(--orange);
     color: #251506;
 }

 .tipo-chip svg {
     width: 12px;
     height: 12px;
 }

 .tipo-manage-row {
     display: flex;
     gap: 8px;
     align-items: center;
     margin-bottom: 10px;
 }

 .tipo-manage-row input {
     flex: 1;
     border: 1.5px solid var(--line);
     border-radius: 9px;
     padding: 8px 11px;
     font-size: 13px;
     background: var(--card);
     color: var(--text);
     outline: none;
 }

 .tipo-manage-row input:focus {
     border-color: var(--orange);
 }

 .tipo-manage-row input:disabled {
     background: var(--paper-2);
     color: var(--text-muted);
 }

 .service-foot {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-top: 14px;
     padding-top: 12px;
     border-top: 1px solid var(--line);
 }

 .lucro-tag {
     font-family: 'Oswald';
     font-size: 18px;
     color: var(--green);
     font-weight: 600;
 }

 .anexo-link {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     font-size: 12.5px;
     font-weight: 600;
     color: var(--orange-deep);
     background: var(--orange-ghost);
     padding: 6px 11px;
     border-radius: 8px;
 }

 .anexo-link svg {
     width: 14px;
     height: 14px;
 }

 /* forms */
 .form-overlay {
     position: fixed;
     inset: 0;
     background: rgba(28, 27, 25, 0.5);
     display: flex;
     align-items: flex-start;
     justify-content: center;
     padding: 40px 20px;
     z-index: 100;
     overflow: auto;
     animation: fadeIn .18s ease;
 }

 .form-modal {
     background: var(--paper);
     border-radius: 16px;
     width: 100%;
     max-width: 640px;
     box-shadow: var(--shadow-lg);
 }

 .form-modal-head {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 20px 24px;
     border-bottom: 1px solid var(--line);
 }

 .form-modal-head h3 {
     font-size: 18px;
 }

 .form-modal-body {
     padding: 22px 24px;
     max-height: 70vh;
     overflow: auto;
 }

 .form-modal-foot {
     display: flex;
     justify-content: flex-end;
     gap: 10px;
     padding: 16px 24px;
     border-top: 1px solid var(--line);
 }

 .field {
     margin-bottom: 15px;
 }

 .field label {
     display: block;
     font-size: 12px;
     font-weight: 700;
     color: var(--text-muted);
     text-transform: uppercase;
     letter-spacing: .04em;
     margin-bottom: 6px;
 }

 .field input,
 .field select,
 .field textarea {
     width: 100%;
     border: 1.5px solid var(--line);
     border-radius: 9px;
     padding: 10px 12px;
     font-size: 13.5px;
     background: var(--card);
     color: var(--text);
     outline: none;
     transition: border-color .15s;
 }

 .field input:focus,
 .field select:focus,
 .field textarea:focus {
     border-color: var(--orange);
 }

 .field textarea {
     resize: vertical;
     min-height: 70px;
 }

 .field-row {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 14px;
 }

 @media(max-width:520px) {
     .field-row {
         grid-template-columns: 1fr;
     }
 }

 .field.plate-field input {
     font-family: 'JetBrains Mono';
     font-weight: 700;
     letter-spacing: .12em;
     text-transform: uppercase;
 }

 .hint {
     font-size: 11px;
     color: var(--text-muted);
     margin-top: 4px;
 }

 .file-drop {
     border: 1.5px dashed var(--line);
     border-radius: 10px;
     padding: 16px;
     text-align: center;
     background: var(--card);
     cursor: pointer;
     transition: border-color .15s, background .15s;
 }

 .file-drop:hover {
     border-color: var(--orange);
     background: var(--orange-ghost);
 }

 .file-drop svg {
     width: 20px;
     height: 20px;
     color: var(--text-muted);
     margin-bottom: 6px;
 }

 .file-drop b {
     display: block;
     font-size: 12.5px;
 }

 .file-drop span {
     font-size: 11px;
     color: var(--text-muted);
 }

 .file-chosen {
     display: flex;
     align-items: center;
     justify-content: space-between;
     background: var(--green-ghost);
     border-radius: 9px;
     padding: 9px 12px;
     font-size: 12.5px;
     color: var(--green);
     font-weight: 600;
 }

 .file-chosen button {
     background: none;
     border: none;
     color: var(--red);
     font-weight: 700;
 }

 .money-input {
     position: relative;
 }

 .money-input span {
     position: absolute;
     left: 12px;
     top: 50%;
     transform: translateY(-50%);
     font-size: 13px;
     color: var(--text-muted);
     font-weight: 600;
 }

 .money-input input {
     padding-left: 34px;
 }

 .toast {
     position: fixed;
     bottom: 24px;
     left: 50%;
     transform: translateX(-50%);
     background: var(--ink);
     color: var(--text-inverse);
     padding: 11px 20px;
     border-radius: 10px;
     font-size: 13px;
     font-weight: 500;
     box-shadow: var(--shadow-lg);
     z-index: 200;
     display: flex;
     align-items: center;
     gap: 9px;
     animation: toastIn .25s ease;
 }

 @keyframes toastIn {
     from {
         opacity: 0;
         transform: translate(-50%, 10px);
     }

     to {
         opacity: 1;
         transform: translate(-50%, 0);
     }
 }

 .toast svg {
     width: 16px;
     height: 16px;
     color: var(--orange);
 }

 .page-head {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 18px;
     flex-wrap: wrap;
     gap: 12px;
 }

 .breadcrumb {
     display: flex;
     align-items: center;
     gap: 6px;
     font-size: 12.5px;
     color: var(--text-muted);
     margin-bottom: 10px;
 }

 .breadcrumb b {
     color: var(--text);
     cursor: pointer;
 }

 .breadcrumb b:hover {
     text-decoration: underline;
 }

 .stamp-note {
     display: flex;
     align-items: center;
     gap: 8px;
     font-size: 11.5px;
     color: var(--text-muted);
     margin-top: 14px;
 }

 .stamp-note svg {
     width: 14px;
     height: 14px;
 }

 .filter-bar {
     display: flex;
     gap: 10px;
     align-items: center;
     flex-wrap: wrap;
     margin-bottom: 16px;
 }

 .filter-bar input[type=date] {
     border: 1.5px solid var(--line);
     border-radius: 8px;
     padding: 7px 10px;
     font-size: 12.5px;
     background: var(--card);
 }

 .loading-wrap {
     display: flex;
     align-items: center;
     justify-content: center;
     height: 80vh;
     flex-direction: column;
     gap: 12px;
     color: var(--text-muted);
 }

 .spinner {
     width: 26px;
     height: 26px;
     border: 3px solid var(--line);
     border-top-color: var(--orange);
     border-radius: 50%;
     animation: spin .7s linear infinite;
 }

 @keyframes spin {
     to {
         transform: rotate(360deg);
     }
 }

 /* ---------- login screen ---------- */
 .login-screen {
     position: fixed;
     inset: 0;
     background: var(--ink);
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 500;
     padding: 20px;
 }

 .login-card {
     background: var(--paper);
     border-radius: 18px;
     padding: 34px 32px;
     width: 100%;
     max-width: 360px;
     box-shadow: var(--shadow-lg);
     text-align: center;
 }

 .login-card .logo-circle {
     width: 64px;
     height: 64px;
     margin: 0 auto 16px;
 }

 .login-card .logo-circle img {
     width: 44px;
     height: 44px;
 }

 .login-card h2 {
     font-size: 19px;
     margin-bottom: 4px;
 }

 .login-card p {
     font-size: 12.5px;
     color: var(--text-muted);
     margin: 0 0 22px;
 }

 .login-card .field {
     text-align: left;
 }

 .login-error {
     background: var(--red-ghost);
     color: var(--red);
     font-size: 12.5px;
     font-weight: 600;
     padding: 9px 12px;
     border-radius: 8px;
     margin-bottom: 14px;
     text-align: left;
 }

 @media(max-width:860px) {
     #app {
         flex-direction: column;
     }

     .sidebar {
         width: 100%;
         height: auto;
         position: relative;
         flex-direction: row;
         align-items: center;
         padding: 14px 16px;
         overflow-x: auto;
     }

     .brand {
         border-bottom: none;
         padding: 0;
         margin: 0;
         margin-right: 14px;
     }

     .nav {
         flex-direction: row;
         flex: none;
     }

     .nav-divider {
         display: none;
     }

     .sidebar-foot {
         display: none;
     }

     .main {
         padding: 18px;
     }


 }

 #f_cpf.field-invalid {
     border-color: #e05252;
 }

 #f_cpf.field-valid {
     border-color: #4caf78;
 }

 .cpf-validation {
     min-height: 18px;
     margin-top: 5px;
     font-size: 12px;
 }

 .cpf-validation.invalid {
     color: #e05252;
 }

 .cpf-validation.valid {
     color: #4caf78;
 }