    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0
    }

    html,
    body {
      height: 100%;
      font-family: 'Segoe UI', Arial, sans-serif;
      background: #EEF2F7;
      color: #111
    }

    :root {
      --csul-blue: #00529B;
      --csul-blue-dark: #003d75;
      --csul-blue-light: #e8f1f9;
      --csul-blue-mid: #1a6ab5;
    }

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

    input:focus,
    select:focus {
      outline: none;
      border-color: #1a1a2e !important
    }

    ::-webkit-scrollbar {
      width: 5px
    }

    ::-webkit-scrollbar-thumb {
      background: #ddd;
      border-radius: 10px
    }

    @keyframes slideUp {
      from {
        transform: translateY(14px);
        opacity: 0
      }

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

    @keyframes fadeIn {
      from {
        opacity: 0
      }

      to {
        opacity: 1
      }
    }

    .row-hover:hover {
      background: #fafafa !important;
      cursor: pointer
    }

    button {
      cursor: pointer
    }

    #topbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: calc(56px + env(safe-area-inset-top));
      padding-top: env(safe-area-inset-top);
      background: var(--csul-blue);
      border-bottom: none;
      box-shadow: 0 2px 12px rgba(0, 53, 117, .18);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
      z-index: 400
    }

    #sidebar {
      position: fixed;
      top: 0;
      left: -230px;
      width: 220px;
      height: 100vh;
      background: var(--csul-blue-dark);
      border-right: none;
      padding: 24px 16px;
      display: flex;
      flex-direction: column;
      z-index: 500;
      transition: left .25s ease
    }

    #sidebar.open {
      left: 0;
      box-shadow: 4px 0 24px rgba(0, 53, 117, .25)
    }

    #overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .3);
      z-index: 490
    }

    #overlay.show {
      display: block
    }

    #main {
      padding-top: calc(56px + env(safe-area-inset-top))
    }

    #content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 28px 20px
    }

    .nav-section {
      font-size: 10px;
      color: rgba(255, 255, 255, .45);
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      margin: 16px 0 6px;
      padding-left: 4px
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border-radius: 8px;
      margin-bottom: 2px;
      font-size: 14px;
      font-weight: 500;
      color: rgba(255, 255, 255, .75);
      transition: all .15s;
      user-select: none
    }

    .nav-item:hover {
      background: rgba(255, 255, 255, .12);
      color: #fff
    }

    .nav-item.active {
      background: rgba(255, 255, 255, .18);
      color: #fff;
      font-weight: 700;
      border-left: 3px solid #fff
    }

    .nav-item svg {
      flex-shrink: 0
    }

    .tabs {
      display: flex;
      gap: 4px;
      background: #fff;
      border: 1px solid #dce6f0;
      border-radius: 10px;
      padding: 4px;
      width: fit-content;
      margin-bottom: 24px;
      box-shadow: 0 1px 4px rgba(0, 53, 117, .06)
    }

    .tab {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      border: none;
      border-radius: 7px;
      font-size: 13px;
      font-weight: 600;
      background: transparent;
      color: #666;
      transition: all .15s
    }

    .tab.active {
      background: var(--csul-blue);
      color: #fff
    }

    .btn-export {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 7px 14px;
      background: rgba(255, 255, 255, .15);
      border: 1px solid rgba(255, 255, 255, .25);
      border-radius: 7px;
      font-size: 13px;
      font-weight: 600;
      color: #fff;
      transition: background .15s
    }

    .btn-export:hover {
      background: rgba(255, 255, 255, .25)
    }

    .btn-primary {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 10px 18px;
      background: var(--csul-blue);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 700;
      transition: background .15s
    }

    .btn-primary:hover {
      background: var(--csul-blue-mid)
    }

    .btn-secondary {
      padding: 9px 14px;
      background: #f5f5f5;
      color: #555;
      border: none;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 600
    }

    .btn-danger {
      padding: 10px 16px;
      background: #fff5f5;
      color: #c0392b;
      border: 1.5px solid #fcc;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 6px
    }

    .btn-edit {
      display: flex;
      align-items: center;
      gap: 6px;
      flex: 1;
      padding: 11px;
      background: var(--csul-blue);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 700;
      justify-content: center;
      transition: background .15s
    }

    .btn-edit:hover {
      background: var(--csul-blue-mid)
    }

    .btn-icon {
      background: none;
      border: 1px solid #e8e8e8;
      border-radius: 8px;
      padding: 5px 8px;
      display: flex;
      align-items: center
    }

    .btn-icon.del {
      border-color: #fdd
    }

    .avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      color: #fff;
      flex-shrink: 0;
      cursor: pointer;
      position: relative
    }

    /* login screen */
    .login-wrap {
      min-height: 100vh;
      display: flex;
      align-items: stretch
    }

    .login-left {
      flex: 1;
      background: linear-gradient(160deg, var(--csul-blue-dark) 0%, var(--csul-blue) 70%, var(--csul-blue-mid) 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 48px;
      min-width: 0;
      position: relative;
      overflow: hidden
    }

    .login-left::before {
      content: '';
      position: absolute;
      inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
      pointer-events: none
    }

    .login-right {
      width: 440px;
      flex-shrink: 0;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 48px 40px
    }

    .login-box {
      width: 100%;
      max-width: 360px;
      animation: slideUp .25s ease
    }

    .login-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 32px;
      justify-content: center
    }

    .login-logo-icon {
      width: 40px;
      height: 40px;
      background: #1a1a2e;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center
    }

    .login-title {
      font-size: 20px;
      font-weight: 800;
      color: #1a1a2e
    }

    .login-subtitle {
      font-size: 13px;
      color: #aaa;
      text-align: center;
      margin-bottom: 28px
    }

    .login-field {
      margin-bottom: 16px
    }

    .login-field label {
      display: block;
      font-size: 11px;
      font-weight: 700;
      color: #888;
      margin-bottom: 5px;
      text-transform: uppercase;
      letter-spacing: .5px
    }

    .login-field input {
      width: 100%;
      padding: 11px 14px;
      border: 1.5px solid #e8e8e8;
      border-radius: 10px;
      font-size: 14px;
      color: #111;
      background: #fafafa
    }

    .login-btn {
      width: 100%;
      padding: 13px;
      background: var(--csul-blue);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 700;
      margin-top: 8px;
      transition: background .15s
    }

    .login-btn:hover {
      background: var(--csul-blue-mid)
    }

    .login-hint {
      font-size: 12px;
      color: #bbb;
      text-align: center;
      margin-top: 20px;
      line-height: 1.6
    }

    .login-error {
      background: #fff5f5;
      color: #c0392b;
      border: 1px solid #fcc;
      border-radius: 8px;
      padding: 10px 14px;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 16px;
      display: none
    }

    .login-error.show {
      display: block
    }

    /* user badge chip */
    .user-chip {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 5px 12px 5px 5px;
      background: rgba(255, 255, 255, .15);
      border: 1px solid rgba(255, 255, 255, .2);
      border-radius: 99px
    }

    .user-chip-name {
      font-size: 12px;
      font-weight: 600;
      color: #fff
    }

    .user-chip-role {
      font-size: 10px;
      color: rgba(255, 255, 255, .7);
      font-weight: 500
    }

    /* permission badge */
    .perm-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700
    }

    .stat-card {
      background: #fff;
      border-radius: 10px;
      padding: 18px 20px;
      border: 1px solid #dce6f0;
      box-shadow: 0 1px 4px rgba(0, 53, 117, .05)
    }

    .stat-label {
      font-size: 11px;
      color: #999;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .5px;
      margin-bottom: 8px
    }

    .stat-value {
      font-size: 26px;
      font-weight: 800;
      color: #1a1a2e;
      line-height: 1
    }

    .stat-sub {
      font-size: 12px;
      color: #aaa;
      margin-top: 6px
    }

    .grid-4 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 14px;
      margin-bottom: 28px
    }

    .grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 20px
    }

    .panel {
      background: #fff;
      border-radius: 10px;
      padding: 20px;
      border: 1px solid #dce6f0;
      box-shadow: 0 1px 4px rgba(0, 53, 117, .05)
    }

    .panel-title {
      font-size: 13px;
      font-weight: 700;
      color: #1a1a2e;
      margin-bottom: 16px
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap
    }

    .badge-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      display: inline-block
    }

    .table-wrap {
      background: #fff;
      border-radius: 10px;
      border: 1px solid #dce6f0;
      overflow: hidden;
      box-shadow: 0 1px 4px rgba(0, 53, 117, .05)
    }

    .table-head {
      display: grid;
      padding: 10px 20px;
      background: var(--csul-blue-light);
      font-size: 11px;
      font-weight: 700;
      color: #aaa;
      letter-spacing: .5px;
      text-transform: uppercase;
      border-bottom: 1px solid #f0f0f0
    }

    .table-row {
      display: grid;
      padding: 13px 20px;
      align-items: center;
      border-bottom: 1px solid #f9f9f9;
      transition: background .1s
    }

    .table-row:last-child {
      border-bottom: none
    }

    .cell-nf {
      font-size: 13px;
      font-weight: 700;
      color: #1a1a2e
    }

    .cell-forn {
      font-size: 13px;
      color: #333
    }

    .cell-desc {
      display: block;
      font-size: 11px;
      color: #bbb
    }

    .cell-date {
      font-size: 12px;
      color: #888
    }

    .cell-val {
      font-size: 14px;
      font-weight: 700;
      color: #1a1a2e
    }

    .cell-actions {
      display: flex;
      justify-content: flex-end;
      gap: 5px
    }

    .table-footer {
      margin-top: 10px;
      font-size: 12px;
      color: #bbb;
      text-align: right
    }

    .filters {
      display: flex;
      gap: 10px;
      margin-bottom: 16px;
      flex-wrap: wrap
    }

    .search-wrap {
      flex: 1 1 180px;
      position: relative
    }

    .search-wrap input {
      width: 100%;
      padding: 10px 14px 10px 36px;
      border: 1.5px solid #e8e8e8;
      border-radius: 10px;
      font-size: 14px;
      background: #fff;
      color: #111
    }

    .search-icon {
      position: absolute;
      left: 11px;
      top: 50%;
      transform: translateY(-50%);
      pointer-events: none;
      color: #bbb
    }

    .filter-select {
      padding: 10px 14px;
      border: 1.5px solid #e8e8e8;
      border-radius: 10px;
      font-size: 14px;
      background: #fff;
      color: #111;
      min-width: 130px
    }

    .alert-box {
      background: #fff5f5;
      border: 1.5px solid #fcc;
      border-radius: 14px;
      padding: 16px;
      display: flex;
      gap: 12px;
      align-items: flex-start
    }

    .modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 1000;
      background: rgba(0, 0, 0, .45);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      animation: fadeIn .15s ease
    }

    .modal-box {
      background: #fff;
      border-radius: 16px;
      width: 100%;
      max-width: 580px;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
      animation: slideUp .2s ease
    }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px;
      border-bottom: 1px solid #f0f0f0
    }

    .modal-title {
      font-size: 17px;
      font-weight: 700;
      color: #111
    }

    .modal-body {
      padding: 24px
    }

    .modal-close {
      background: none;
      border: none;
      padding: 6px;
      color: #888;
      border-radius: 8px;
      display: flex;
      align-items: center
    }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 16px
    }

    .field {
      margin-bottom: 14px
    }

    .field label {
      display: block;
      font-size: 11px;
      font-weight: 700;
      color: #888;
      margin-bottom: 5px;
      text-transform: uppercase;
      letter-spacing: .5px
    }

    .field input,
    .field select {
      width: 100%;
      padding: 10px 14px;
      border: 1.5px solid #e8e8e8;
      border-radius: 10px;
      font-size: 14px;
      color: #111;
      background: #fafafa;
      transition: border .15s
    }

    .field-req {
      color: #e53e3e;
      margin-left: 2px
    }

    .form-actions {
      display: flex;
      gap: 10px;
      margin-top: 8px
    }

    .form-submit {
      flex: 1;
      padding: 12px;
      background: var(--csul-blue);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 700;
      transition: background .15s
    }

    .form-submit:hover {
      background: var(--csul-blue-mid)
    }

    .form-cancel {
      padding: 12px 20px;
      background: #f5f5f5;
      color: #555;
      border: none;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 600
    }

    .detail-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px
    }

    .detail-amount {
      font-size: 26px;
      font-weight: 800;
      color: #1a1a2e
    }

    .detail-row {
      display: flex;
      justify-content: space-between;
      padding: 10px 0;
      border-bottom: 1px solid #f5f5f5
    }

    .detail-label {
      font-size: 13px;
      color: #888;
      font-weight: 600
    }

    .detail-value {
      font-size: 13px;
      color: #111;
      font-weight: 500;
      text-align: right;
      max-width: 65%
    }

    .detail-actions {
      display: flex;
      gap: 10px;
      margin-top: 24px
    }

    #toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 2000;
      background: #1a1a2e;
      color: #fff;
      padding: 12px 24px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
      animation: slideUp .2s ease;
      display: none;
      align-items: center;
      gap: 8px
    }

    #toast.show {
      display: flex
    }

    .prog-wrap {
      margin-bottom: 14px
    }

    .prog-top {
      display: flex;
      justify-content: space-between;
      margin-bottom: 5px
    }

    .prog-label {
      font-size: 13px;
      color: #555;
      display: flex;
      align-items: center;
      gap: 6px
    }

    .prog-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block
    }

    .prog-val {
      font-size: 13px;
      font-weight: 700;
      color: #1a1a2e
    }

    .prog-bar-bg {
      height: 5px;
      background: #f5f5f5;
      border-radius: 99px
    }

    .prog-bar {
      height: 5px;
      border-radius: 99px;
      transition: width .5s
    }

    .bar-chart {
      display: flex;
      align-items: flex-end;
      gap: 8px;
      height: 110px
    }

    .bar-col {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px
    }

    .bar-lbl-top {
      font-size: 9px;
      color: #aaa;
      font-weight: 700;
      text-align: center
    }

    .bar-body {
      width: 100%;
      background: #1a1a2e;
      border-radius: 4px 4px 0 0;
      min-height: 4px;
      transition: height .4s
    }

    .bar-lbl-bot {
      font-size: 9px;
      color: #aaa;
      font-weight: 700
    }

    .empty {
      background: #fff;
      border-radius: 14px;
      padding: 48px;
      text-align: center;
      border: 1px solid #f0f0f0
    }

    .page-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      flex-wrap: wrap;
      gap: 10px
    }

    .page-title {
      font-size: 22px;
      font-weight: 800;
      color: var(--csul-blue)
    }

    /* sector tag */
    .sector-tag {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 700
    }

    .cad-modal-input {
      width: 100%;
      padding: 10px 14px;
      border: 1.5px solid #e8e8e8;
      border-radius: 10px;
      font-size: 14px;
      color: #111;
      background: #fafafa;
      box-sizing: border-box;
      font-family: inherit;
      transition: border .15s
    }

    .cad-modal-input:focus {
      outline: none;
      border-color: #1a1a2e
    }

    .pdf-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 10px;
      border-radius: 6px;
      background: #fff0f0;
      color: #c0392b;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      border: 1px solid #fcc;
      transition: background .15s
    }

    .pdf-badge:hover {
      background: #fde8e8
    }

    .arquivo-row {
      display: grid;
      padding: 13px 20px;
      align-items: center;
      border-bottom: 1px solid #f9f9f9;
      font-size: 13px;
      transition: background .1s;
      cursor: pointer
    }

    .arquivo-row:hover {
      background: #fafafa
    }

    .arquivo-row:last-child {
      border-bottom: none
    }

    .file-drop {
      border: 2px dashed #e8e8e8;
      border-radius: 10px;
      padding: 20px;
      text-align: center;
      cursor: pointer;
      transition: border-color .15s;
      background: #fafafa;
      margin-top: 4px
    }

    .file-drop:hover,
    .file-drop.over {
      border-color: #1a1a2e;
      background: #f0f4ff
    }

    .file-drop input {
      display: none
    }

    .pag-card {
      background: #fff;
      border: 1px solid #f0f0f0;
      border-radius: 12px;
      overflow: hidden;
      transition: box-shadow .15s
    }

    .pag-card:hover {
      box-shadow: 0 4px 16px rgba(0, 0, 0, .08)
    }

    .pag-card-header {
      padding: 14px 16px 10px;
      border-bottom: 1px solid #f9f9f9
    }

    .pag-card-meta {
      padding: 10px 16px;
      display: flex;
      gap: 16px;
      flex-wrap: wrap
    }

    .pag-card-actions {
      padding: 10px 16px 14px;
      display: flex;
      gap: 8px;
      border-top: 1px solid #f5f5f5
    }

    .btn-pago {
      flex: 1;
      padding: 10px;
      background: #059669;
      color: #fff;
      border: none;
      border-radius: 9px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px
    }

    .btn-pago:hover {
      background: #047857
    }

    /* ── RESPONSIVO ── */
    .badge-rateio {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      background: #f0e6ff;
      color: #7c3aed;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 20px;
      margin-left: 6px;
      vertical-align: middle;
      white-space: nowrap
    }

    .rateio-destaque {
      background: linear-gradient(135deg, #f5f0ff, #ede9fe);
      border: 1.5px solid #c4b5fd;
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 12px
    }

    .rateio-wrap {
      background: #f8fafd;
      border: 1.5px solid #dce6f0;
      border-radius: 10px;
      padding: 16px;
      margin-top: 4px
    }

    .rateio-row {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr 110px 32px;
      gap: 8px;
      align-items: start;
      margin-bottom: 8px
    }

    .rateio-row:last-child {
      margin-bottom: 0
    }

    .rateio-progress {
      height: 6px;
      background: #e8f1f9;
      border-radius: 4px;
      overflow: hidden;
      margin: 10px 0 4px
    }

    .rateio-bar {
      height: 100%;
      background: var(--csul-blue);
      border-radius: 4px;
      transition: width .3s
    }

    .rateio-bar.over {
      background: #c0392b
    }

    .rateio-bar.done {
      background: #059669
    }

    .rateio-label {
      font-size: 11px;
      color: #888;
      display: flex;
      justify-content: space-between;
      margin-bottom: 10px
    }

    .rateio-add {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 7px 14px;
      background: #fff;
      border: 1.5px dashed #dce6f0;
      border-radius: 8px;
      color: var(--csul-blue);
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      font-family: inherit;
      transition: border-color .15s;
      width: 100%;
      justify-content: center
    }

    .rateio-add:hover {
      border-color: var(--csul-blue)
    }

    .rateio-del {
      background: #fff5f5;
      border: 1.5px solid #fcc;
      border-radius: 6px;
      color: #c0392b;
      cursor: pointer;
      font-size: 14px;
      font-weight: 700;
      line-height: 1;
      padding: 0;
      width: 32px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-family: inherit
    }

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

      .rateio-row .rateio-del {
        grid-column: span 2;
        width: 100%
      }

      .rateio-row select:nth-child(3) {
        grid-column: span 2;
      }
    }

    .sub-tabs {
      display: flex;
      gap: 2px;
      background: #f0f4f8;
      border-radius: 8px;
      padding: 3px;
      margin-bottom: 20px;
      width: fit-content
    }

    .sub-tab {
      padding: 7px 18px;
      border: none;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 600;
      background: transparent;
      color: #888;
      cursor: pointer;
      transition: all .15s;
      font-family: inherit
    }

    .sub-tab.active {
      background: #fff;
      color: var(--csul-blue);
      box-shadow: 0 1px 4px rgba(0, 82, 155, .1)
    }

    .anexo-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      background: #f8fafd;
      border: 1px solid #dce6f0;
      border-radius: 8px;
      margin-bottom: 6px
    }

    .anexo-item-left {
      display: flex;
      align-items: center;
      gap: 10px
    }

    .anexo-icon {
      width: 34px;
      height: 34px;
      background: #e8f1f9;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0
    }

    .anexo-nome {
      font-size: 13px;
      font-weight: 600;
      color: #1a1a2e
    }

    .anexo-tipo {
      font-size: 11px;
      color: #aaa;
      margin-top: 1px
    }

    .anexo-del {
      background: none;
      border: none;
      color: #c0392b;
      cursor: pointer;
      padding: 4px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      opacity: .6;
      transition: opacity .15s
    }

    .anexo-del:hover {
      opacity: 1
    }

    .btn-download {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 9px 16px;
      background: #059669;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: background .15s
    }

    .btn-download:hover {
      background: #047857
    }

    /* ── BOTTOM NAV MOBILE ── */
    /* ── BOTTOM NAV MOBILE ── */
    .bottom-nav {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 450;
      background: #fff;
      border-top: 1px solid #dce6f0;
      padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
      box-shadow: 0 -2px 12px rgba(0, 53, 117, .08)
    }

    .bottom-nav-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      padding: 4px 8px;
      border: none;
      background: none;
      color: #888;
      font-size: 10px;
      font-weight: 600;
      cursor: pointer;
      position: relative;
      transition: color .15s;
      font-family: inherit
    }

    .bottom-nav-item.active {
      color: var(--csul-blue)
    }

    .bottom-nav-item svg {
      flex-shrink: 0
    }

    .bottom-nav-badge {
      position: absolute;
      top: 0;
      right: calc(50% - 18px);
      background: #e53e3e;
      color: #fff;
      font-size: 9px;
      font-weight: 800;
      padding: 1px 5px;
      border-radius: 20px;
      min-width: 16px;
      text-align: center;
      display: none;
      border: 1.5px solid #fff
    }

    /* toque mais generoso em mobile */
    @media(max-width:768px) {

      .nav-item,
      .tab,
      .btn-primary,
      .btn-secondary {
        min-height: 44px
      }

      button,
      select,
      input {
        min-height: 44px
      }
    }

    /* install banner */
    .pwa-banner {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 600;
      background: var(--csul-blue);
      color: #fff;
      padding: 14px 16px;
      padding-bottom: calc(14px + env(safe-area-inset-bottom));
      flex-direction: column;
      gap: 10px;
      box-shadow: 0 -4px 20px rgba(0, 53, 117, .3)
    }

    .pwa-banner.show {
      display: flex
    }

    .pwa-banner-title {
      font-size: 14px;
      font-weight: 700
    }

    .pwa-banner-sub {
      font-size: 12px;
      opacity: .8
    }

    .pwa-banner-btns {
      display: flex;
      gap: 8px
    }

    .pwa-banner-install {
      flex: 1;
      padding: 10px;
      background: #fff;
      color: var(--csul-blue);
      border: none;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      font-family: inherit
    }

    .pwa-banner-dismiss {
      padding: 10px 14px;
      background: rgba(255, 255, 255, .15);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, .3);
      border-radius: 8px;
      font-size: 13px;
      cursor: pointer;
      font-family: inherit
    }

    @media(max-width:768px) {
      #topbar {
        padding: 0 12px
      }

      #content {
        padding: 16px 12px;
        padding-bottom: calc(80px + env(safe-area-inset-bottom))
      }

      .grid-4 {
        grid-template-columns: 1fr 1fr !important
      }

      .bottom-nav {
        display: flex
      }

      .tabs {
        display: none !important
      }

      .grid-2 {
        grid-template-columns: 1fr !important
      }

      .table-head,
      .table-row,
      .arquivo-row {
        grid-template-columns: 1fr 1fr 80px 70px !important
      }

      .table-head span:nth-child(n+3):not(:nth-last-child(-n+2)),
      .table-row span:nth-child(n+3):not(:nth-last-child(-n+2)) {
        display: none
      }

      .filters {
        flex-direction: column
      }

      .filter-select {
        width: 100% !important
      }

      .page-header {
        flex-direction: column;
        align-items: flex-start
      }

      .modal-box {
        margin: 8px;
        max-height: 96vh
      }

      .form-grid {
        grid-template-columns: 1fr !important
      }

      .field[style*="grid-column:span 2"] {
        grid-column: auto !important
      }

      .login-wrap {
        flex-direction: column
      }

      .login-left {
        display: none
      }

      .login-box {
        border-radius: 0;
        min-height: 100vh;
        padding: 32px 24px
      }
    }

    @media(max-width:480px) {
      .grid-4 {
        grid-template-columns: 1fr !important
      }

      .stat-value {
        font-size: 20px !important
      }

      .page-title {
        font-size: 18px !important
      }

      .btn-primary span {
        display: none
      }

      .pag-card-meta {
        flex-direction: column;
        gap: 8px
      }
    }

    /* ── ANIMAÇÕES ── */
    @keyframes fadeSlideIn {
      from {
        opacity: 0;
        transform: translateY(12px)
      }

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

    @keyframes pulse {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: .6
      }
    }

    .page-enter {
      animation: fadeSlideIn .22s ease
    }

    .skeleton {
      background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
      background-size: 200% 100%;
      animation: shimmer 1.2s infinite;
      border-radius: 6px
    }

    @keyframes shimmer {
      0% {
        background-position: 200% 0
      }

      100% {
        background-position: -200% 0
      }
    }

    /* ── PRINT ── */
    @media print {
      * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important
      }

      .no-print {
        display: none !important
      }

      #topbar,
      #sidebar,
      #overlay,
      .tabs {
        display: none !important
      }

      #main {
        padding-top: 0 !important
      }

      #content {
        padding: 0 !important;
        max-width: 100% !important
      }

      body {
        background: #fff !important;
        font-size: 11pt
      }

      .stat-card,
      .panel,
      .table-wrap,
      .cad-table-wrap {
        box-shadow: none !important;
        border: 1px solid #ccc !important
      }

      .page-title {
        color: #00529B !important
      }

      .print-header {
        display: flex !important;
        margin-bottom: 24px
      }

      .print-footer {
        display: block !important
      }

      .table-row,
      .arquivo-row {
        page-break-inside: avoid
      }
    }

    .print-header {
      display: none !important;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 2px solid #00529B
    }

    .print-footer {
      display: none;
      margin-top: 32px;
      padding-top: 12px;
      border-top: 1px solid #ccc;
      font-size: 9pt;
      color: #888;
      text-align: center
    }

    /* ── HOVER CARDS ── */
    .stat-card {
      transition: transform .15s, box-shadow .15s
    }

    .stat-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(0, 82, 155, .12) !important
    }

    .pag-card {
      transition: transform .15s, box-shadow .15s
    }

    .row-hover {
      transition: background .1s
    }

    /* ── SCROLLBAR SIDEBAR ── */
    #sidebar::-webkit-scrollbar {
      width: 4px
    }

    #sidebar::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, .2);
      border-radius: 4px
    }

    /* ── BADGE ANIMADO ── */
    .badge-pulse {
      animation: badgePop .3s cubic-bezier(.36, .07, .19, .97)
    }

    @keyframes badgePop {
      0% {
        transform: scale(.5)
      }

      60% {
        transform: scale(1.2)
      }

      100% {
        transform: scale(1)
      }
    }

    .timeline {
      padding: 4px 0
    }

    .tl-item {
      display: flex;
      gap: 12px;
      padding-bottom: 20px;
      position: relative
    }

    .tl-item:last-child {
      padding-bottom: 0
    }

    .tl-item:not(:last-child) .tl-line {
      position: absolute;
      left: 15px;
      top: 32px;
      bottom: 0;
      width: 2px;
      background: #f0f0f0;
      z-index: 0
    }

    .tl-dot {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      z-index: 1;
      border: 2px solid #fff;
      box-shadow: 0 0 0 2px currentColor
    }

    .tl-dot svg {
      flex-shrink: 0
    }

    .tl-body {
      flex: 1;
      padding-top: 4px
    }

    .tl-title {
      font-size: 13px;
      font-weight: 700;
      color: #1a1a2e;
      line-height: 1.3
    }

    .tl-meta {
      font-size: 11px;
      color: #aaa;
      margin-top: 2px
    }

    .tl-motivo {
      font-size: 12px;
      color: #c0392b;
      background: #fff5f5;
      border-radius: 6px;
      padding: 6px 10px;
      margin-top: 6px;
      border-left: 3px solid #c0392b;
      font-style: italic
    }

    .gr-header {
      padding: 10px 16px;
      font-size: 10px;
      font-weight: 700;
      color: #aaa;
      text-transform: uppercase;
      letter-spacing: .5px;
      border-bottom: 1px solid #f5f5f5
    }

    .gr-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 11px 16px;
      cursor: pointer;
      transition: background .12s;
      border-bottom: 1px solid #f9f9f9;
      gap: 12px
    }

    .gr-item:hover {
      background: #f8fafd
    }

    .gr-item:last-child {
      border-bottom: none
    }

    .gr-empty {
      padding: 24px;
      text-align: center;
      color: #bbb;
      font-size: 13px
    }

    @media print {
      .no-print {
        display: none !important
      }

      body {
        background: #fff
      }
    }

    /* cadastro module */
    .cad-tabs {
      display: flex;
      gap: 2px;
      flex-wrap: wrap;
      margin-bottom: 24px;
      background: #fff;
      border: 1px solid #f0f0f0;
      border-radius: 12px;
      padding: 4px
    }

    .cad-tab {
      padding: 8px 14px;
      border: none;
      border-radius: 9px;
      font-size: 13px;
      font-weight: 600;
      background: transparent;
      color: #888;
      cursor: pointer;
      transition: all .15s;
      white-space: nowrap
    }

    .cad-tab.active {
      background: #1a1a2e;
      color: #fff
    }

    .cad-table-wrap {
      background: #fff;
      border-radius: 14px;
      border: 1px solid #f0f0f0;
      overflow: hidden;
      margin-top: 16px
    }

    .cad-th {
      display: grid;
      padding: 10px 20px;
      background: var(--csul-blue-light);
      font-size: 11px;
      font-weight: 700;
      color: #aaa;
      letter-spacing: .5px;
      text-transform: uppercase;
      border-bottom: 1px solid #f0f0f0
    }

    .cad-row {
      display: grid;
      padding: 12px 20px;
      align-items: center;
      border-bottom: 1px solid #f9f9f9;
      font-size: 13px;
      transition: background .1s
    }

    .cad-row:last-child {
      border-bottom: none
    }

    .cad-row:hover {
      background: #fafafa
    }

    .cad-empty {
      padding: 40px;
      text-align: center;
      color: #bbb;
      font-size: 14px
    }

    .cad-actions-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
      flex-wrap: wrap;
      gap: 10px
    }

    .cad-count {
      font-size: 12px;
      color: #aaa
    }

    .chip {
      display: inline-flex;
      align-items: center;
      padding: 2px 10px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 700
    }

    .io-bar {
      display: flex;
      gap: 8px;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px dashed #f0f0f0
    }

    .io-btn {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 7px 12px;
      border: 1.5px solid #e8e8e8;
      border-radius: 9px;
      font-size: 12px;
      font-weight: 600;
      color: #666;
      background: #fff;
      cursor: pointer
    }

    .io-btn:hover {
      background: #f5f5f5
    }

    .io-btn.primary {
      background: #1a1a2e;
      color: #fff;
      border-color: #1a1a2e
    }