/* --- Style Block 1 --- */
:root {
      --nav: #0b1424;
      --bg: #f0f2f6;
      --card: #fff;
      --line: #e6edf4;
      --text: #0f172a;
      --muted: #64748b;
      --blue: #2563eb;
      --blue-dark: #1d4ed8;
      --red: #ef4444;
      --green: #16a34a;
      --orange: #f59e0b;
      --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
      --shadow: 0 4px 16px rgba(15, 23, 42, .07);
      --shadow-lg: 0 12px 40px rgba(15, 23, 42, .1);
      --radius: 10px;
      --radius-sm: 8px;
      --transition: .2s ease;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
      font-size: 15px;
      background: var(--bg);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
      line-height: 1.5;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

    /* Layout */
    .app {
      display: grid;
      grid-template-columns: 260px 1fr;
      min-height: 100vh;
    }

    /* Sidebar */
    .sidebar {
      background: linear-gradient(180deg, #0b1424, #111d35);
      color: white;
      padding: 22px 14px;
      position: sticky;
      top: 0;
      height: 100vh;
      overflow-y: auto;
      scrollbar-width: thin;
    }

    .sidebar::-webkit-scrollbar {
      width: 4px;
    }

    .sidebar::-webkit-scrollbar-thumb {
      background: #2a3a5a;
      border-radius: 4px;
    }

    .logo {
      font-size: 30px;
      font-weight: 900;
      letter-spacing: -1px;
    }

    .logo span {
      color: #3b82f6;
    }

    .tag {
      font-size: 10px;
      color: #8899bb;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      margin-top: 2px;
    }

    .menu {
      margin-top: 24px;
      display: grid;
      gap: 2px;
    }

    .menu button {
      width: 100%;
      border: 0;
      background: transparent;
      color: #a0b3d9;
      padding: 11px 14px;
      border-radius: var(--radius-sm);
      font-weight: 600;
      font-size: 14px;
      cursor: pointer;
      text-align: left;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: all var(--transition);
    }

    .menu button:hover {
      background: #1a2745;
      color: #d6e0ff;
    }

    .menu button.active {
      background: #2563eb;
      color: white;
      box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
    }

    .menu-icon {
      display: inline-flex;
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }

    .menu-icon svg {
      width: 100%;
      height: 100%;
    }

    .cashbox {
      background: linear-gradient(135deg, #141f3a, #0f1a30);
      border: 1px solid #253455;
      margin-top: 22px;
      border-radius: var(--radius-sm);
      padding: 14px;
    }

    .cashbox small {
      color: #8899bb;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .cashbox b {
      display: block;
      font-size: 20px;
      margin: 6px 0;
      color: white;
    }

    /* Topbar */
    .main {
      min-width: 0;
    }

    .topbar {
      background: white;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 12px 28px;
      position: sticky;
      top: 0;
      z-index: 50;
      box-shadow: var(--shadow-sm);
    }

    .search {
      width: min(480px, 40vw);
      background: #f8fafc;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      padding: 9px 14px;
      color: var(--muted);
      font-size: 13px;
      cursor: text;
    }

    .search:hover {
      border-color: #cbd5e1;
    }

    .topright {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 16px;
      font-size: 13px;
    }

    .topright b {
      font-weight: 700;
      color: var(--text);
    }

    .avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #2563eb;
      color: white;
      display: grid;
      place-items: center;
      font-weight: 800;
      font-size: 16px;
    }

    /* Content */
    .content {
      padding: 22px 32px;
      max-width: 100%;
      width: 100%;
    }

    .h1 {
      font-size: 26px;
      font-weight: 800;
      margin-bottom: 18px;
      letter-spacing: -0.5px;
    }

    /* Tabs */
    .tabs {
      display: flex;
      gap: 0;
      background: white;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      padding: 4px;
      margin-bottom: 16px;
      overflow-x: auto;
    }

    .tabs button {
      border: 0;
      background: transparent;
      padding: 12px 20px;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      font-size: 13px;
      color: var(--muted);
      white-space: nowrap;
      transition: all var(--transition);
    }

    .tabs button:hover {
      color: var(--text);
      background: #f8fafc;
    }

    .tabs button.active {
      color: var(--blue);
      background: #eff6ff;
      box-shadow: 0 1px 4px rgba(37, 99, 235, .1);
    }

    /* Layout */
    .layout {
      display: grid;
      grid-template-columns: 1fr 260px;
      gap: 20px;
      align-items: start;
    }

    /* Panel */
    .panel,
    .rightcard {
      background: white;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }

    .panel-head {
      padding: 18px 22px;
      border-bottom: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
    }

    .panel-title {
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.3px;
    }

    .sub {
      color: var(--muted);
      font-size: 13px;
      margin-top: 4px;
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 1px solid var(--line);
      background: white;
      border-radius: var(--radius-sm);
      padding: 9px 14px;
      font-weight: 600;
      font-size: 13px;
      cursor: pointer;
      color: var(--text);
      transition: all var(--transition);
      white-space: nowrap;
    }

    .btn:hover {
      border-color: var(--blue);
      color: var(--blue);
      box-shadow: 0 1px 4px rgba(37, 99, 235, .1);
    }

    .btn.blue {
      background: var(--blue);
      color: white;
      border-color: var(--blue);
    }

    .btn.blue:hover {
      background: var(--blue-dark);
      border-color: var(--blue-dark);
    }

    .btn.green {
      background: var(--green);
      color: white;
      border-color: var(--green);
    }

    .btn.green:hover {
      background: #15803d;
    }

    .btn.red {
      background: var(--red);
      color: white;
      border-color: var(--red);
    }

    .btn.red:hover {
      background: #dc2626;
    }

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

    /* Cards */
    .cards {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      padding: 18px 22px;
    }

    .metric {
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 18px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: linear-gradient(135deg, #ffffff, #fafbfd);
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
      transition: all var(--transition);
      position: relative;
    }

    .metric:hover {
      box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
      transform: translateY(-3px);
      border-color: rgba(37, 99, 235, 0.2);
    }

    .label {
      font-size: 13px;
      color: var(--muted);
      font-weight: 500;
    }

    .value {
      font-size: 22px;
      font-weight: 800;
      margin-top: 6px;
      letter-spacing: -0.5px;
    }

    .circle {
      width: 44px;
      height: 44px;
      border-radius: 10px; /* modern rounded squares */
      display: grid;
      place-items: center;
      font-size: 20px;
      font-weight: 700;
      transition: transform var(--transition) ease;
    }
    
    .metric:hover .circle {
      transform: scale(1.08);
    }

    .cblue {
      background: #eff6ff;
      color: var(--blue);
    }

    .cred {
      background: #fef2f2;
      color: var(--red);
    }

    .corange {
      background: #fffbeb;
      color: var(--orange);
    }

    .cgreen {
      background: #f0fdf4;
      color: var(--green);
    }

    /* Custom Table for Saldo Kas */
    .table-custom {
      width: 100%;
      border-collapse: collapse;
      margin-top: 8px;
    }
    
    .table-custom th {
      background: #f8fafc;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: #64748b;
      padding: 12px 16px;
      border-bottom: 2px solid var(--line) !important;
    }
    
    .table-custom td {
      padding: 12px 16px;
      border-bottom: 1px solid var(--line);
      vertical-align: middle;
      font-size: 13px;
    }
    
    .table-custom tr {
      transition: background 0.15s ease;
    }
    
    .table-custom tbody tr:hover {
      background: rgba(37, 99, 235, 0.015);
    }

    /* Chart Containers & Wrappers */
    .chart-container-line {
      background: #ffffff;
      border-radius: 12px;
    }
    
    .chart-container-donut {
      position: relative;
      width: 170px;
      height: 170px;
    }
    
    .chart-center-label {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      pointer-events: none;
    }

    /* Filters */
    .filters {
      display: grid;
      grid-template-columns: 2fr 1.2fr 1.2fr auto;
      gap: 10px;
      padding: 0 22px 14px;
    }

    /* Form inputs */
    input,
    select,
    textarea {
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      padding: 10px 13px;
      background: white;
      width: 100%;
      font-size: 14px;
      transition: all var(--transition);
    }

    input:hover,
    select:hover,
    textarea:hover {
      border-color: #cbd5e1;
    }

    input:focus,
    select:focus,
    textarea:focus {
      outline: none;
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    }

    .form {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      padding: 18px 22px;
    }

    .form label {
      font-size: 13px;
      font-weight: 700;
      color: #475569;
      display: grid;
      gap: 5px;
    }

    /* Table */
    .table-wrap {
      overflow-x: auto;
      padding: 0 0 4px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
    }

    table thead {
      position: sticky;
      top: 0;
      z-index: 1;
    }

    th {
      background: #f8fafc;
      font-size: 12px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 13px 16px;
      border-bottom: 2px solid var(--line);
    }

    td {
      padding: 12px 16px;
      font-size: 14px;
      border-bottom: 1px solid #f1f5f9;
      vertical-align: middle;
    }

    tbody tr:hover {
      background: #fafbfd;
    }

    tbody tr:last-child td {
      border-bottom: 0;
    }

    /* Status badges */
    .status {
      display: inline-block;
      padding: 5px 10px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 600;
    }

    .hutang,
    .alpha {
      background: #fef2f2;
      color: #dc2626;
    }

    .lunas,
    .hadir,
    .selesai {
      background: #f0fdf4;
      color: #15803d;
    }

    .siap {
      background: #eff6ff;
      color: #1d4ed8;
    }

    .izin,
    .proses {
      background: #fffbeb;
      color: #b45309;
    }

    /* Right card */
    .rightcard {
      padding: 18px;
    }

    .rightcard h3 {
      font-size: 15px;
      font-weight: 700;
      margin: 0 0 12px 0;
    }

    .rightmenu {
      display: grid;
      gap: 4px;
      margin: 12px 0;
    }

    .rightmenu button {
      border: 0;
      background: transparent;
      text-align: left;
      padding: 10px 12px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      font-size: 13px;
      font-weight: 500;
      transition: all var(--transition);
    }

    .rightmenu button:hover {
      background: #f8fafc;
    }

    .rightmenu button.active {
      background: #eff6ff;
      color: var(--blue);
      font-weight: 600;
    }

    .row {
      display: flex;
      justify-content: space-between;
      border-bottom: 1px solid var(--line);
      padding: 8px 0;
      font-size: 13px;
    }

    .tips {
      margin-top: 18px;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      color: var(--blue);
      padding: 12px 14px;
      border-radius: var(--radius-sm);
      font-size: 13px;
    }

    .empty {
      padding: 40px 22px;
      color: var(--muted);
      text-align: center;
      font-size: 14px;
    }

    .mini {
      font-size: 12px;
      color: var(--muted);
    }

    /* Modal */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.55);
      z-index: 100;
      align-items: center;
      justify-content: center;
      padding: 20px;
      backdrop-filter: blur(2px);
    }

    .modal-overlay.open {
      display: flex;
    }

    .modal-box {
      background: white;
      border-radius: 14px;
      width: min(860px, 96vw);
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 25px 80px rgba(0, 0, 0, .25);
      animation: modalIn .2s ease;
    }

    @keyframes modalIn {
      from {
        opacity: 0;
        transform: scale(.96) translateY(12px);
      }

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

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

    .modal-header h2 {
      margin: 0;
      font-size: 19px;
      font-weight: 800;
    }

    .modal-close {
      border: 0;
      background: transparent;
      font-size: 22px;
      cursor: pointer;
      color: var(--muted);
      padding: 4px 8px;
      border-radius: 6px;
      line-height: 1;
    }

    .modal-close:hover {
      background: #f1f5f9;
      color: var(--text);
    }

    .modal-body {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      padding: 20px 24px;
    }

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

    .modal-field label {
      font-size: 13px;
      font-weight: 700;
      color: #475569;
      display: grid;
      gap: 5px;
    }

    .form-group {
      padding: 20px 24px;
    }

    .redtxt {
      color: var(--red);
    }

    .greentxt {
      color: var(--green);
    }

    .orangetxt {
      color: var(--orange);
    }

    /* ===== PRINT / PDF EXPORT STYLES (A4) ===== */
    @media print {
      @page {
        size: A4;
        margin: 18mm 14mm;
      }

      body {
        background: white;
        font-size: 12pt;
        color: #000;
      }

      .sidebar,
      .topbar,
      .modal-overlay,
      .modal-box,
      .menu,
      .cashbox,
      .rightcard,
      .rightmenu,
      .btn,
      .tabs,
      .panel-head .btn,
      .filters,
      .search,
      .topright,
      .avatar {
        display: none !important;
      }

      .app {
        display: block;
      }

      .main {
        display: block;
      }

      .content {
        padding: 0;
        max-width: 100%;
      }

      .layout {
        display: block;
      }

      .panel {
        border: none;
        box-shadow: none;
        border-radius: 0;
        page-break-inside: avoid;
      }

      .panel-head {
        border-bottom: 2px solid #000;
        padding: 8px 0;
      }

      .panel-title {
        font-size: 18pt;
      }

      .cards {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 0;
      }

      .metric {
        border: 1px solid #ddd;
        padding: 10px;
        box-shadow: none;
        transform: none;
      }

      .metric:hover {
        transform: none;
        box-shadow: none;
      }

      .circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
      }

      table {
        width: 100%;
        border-collapse: collapse;
      }

      th {
        background: #f5f5f5 !important;
        color: #000;
        border-bottom: 2px solid #000;
      }

      td,
      th {
        border: 1px solid #ddd;
        padding: 8px 10px;
        font-size: 10pt;
      }

      tbody tr:hover {
        background: inherit;
      }

      .h1 {
        font-size: 22pt;
        margin-bottom: 12px;
      }

      .sub {
        font-size: 10pt;
      }

      .report-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 3px solid #2563eb;
        padding-bottom: 12px;
        margin-bottom: 16px;
      }

      .report-header h1 {
        font-size: 24pt;
        margin: 0;
        color: #0b1424;
      }

      .report-header .report-date {
        font-size: 10pt;
        color: #666;
      }

      .report-footer {
        margin-top: 30px;
        padding-top: 12px;
        border-top: 1px solid #ddd;
        font-size: 9pt;
        color: #888;
        text-align: center;
      }

      .report-summary {
        margin: 16px 0;
      }

      .report-summary table {
        width: auto;
      }

      .report-summary td {
        border: none;
        padding: 4px 16px 4px 0;
      }
    }

    /* ===== REPORT PREVIEW (for print dialog) ===== */
    .report-container {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
      max-width: 210mm;
      margin: 0 auto;
      padding: 20px;
      color: #222;
      font-size: 12pt;
      line-height: 1.5;
    }

    .report-container .report-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 3px solid #2563eb;
      padding-bottom: 16px;
      margin-bottom: 20px;
    }

    .report-container .report-header h1 {
      font-size: 26pt;
      margin: 0;
      color: #0b1424;
    }

    .report-container .report-header .report-meta {
      text-align: right;
      font-size: 10pt;
      color: #666;
    }

    .report-container table {
      width: 100%;
      border-collapse: collapse;
      margin: 16px 0;
    }

    .report-container th {
      background: #f0f4ff;
      color: #1e293b;
      font-weight: 700;
      font-size: 10pt;
      text-transform: uppercase;
      padding: 10px 12px;
      border: 1px solid #d1d9e8;
    }

    .report-container td {
      padding: 9px 12px;
      border: 1px solid #d1d9e8;
      font-size: 10pt;
    }

    .report-container .report-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin: 16px 0;
    }

    .report-container .summary-card {
      border: 1px solid #d1d9e8;
      border-radius: 8px;
      padding: 14px 20px;
      min-width: 140px;
      background: #fafbfd;
    }

    .report-container .summary-card .sc-label {
      font-size: 9pt;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .report-container .summary-card .sc-value {
      font-size: 18pt;
      font-weight: 800;
      color: #0b1424;
      margin-top: 4px;
    }

    .report-container .report-footer {
      margin-top: 30px;
      padding-top: 16px;
      border-top: 2px solid #e2e8f0;
      font-size: 9pt;
      color: #888;
      text-align: center;
    }

    /* Responsive */
    @media (max-width: 1100px) {
      .app {
        grid-template-columns: 1fr;
      }

      .sidebar {
        position: relative;
        height: auto;
      }

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

      .cards,
      .filters,
      .form {
        grid-template-columns: 1fr;
      }

      .topbar {
        flex-wrap: wrap;
        padding: 12px 16px;
      }

      .search {
        width: 100%;
      }

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

      .content {
        padding: 16px;
      }
    }

    /* ═══════════════════════════════════════════════════════════════
       ELEGANT LOGIN PAGE — Aurora Gradient Design v3.0
       ═══════════════════════════════════════════════════════════════ */
    .app.login-mode {
      display: block !important;
    }

    .login-page {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #060c1a;
      position: relative;
      overflow: hidden;
      padding: 20px;
    }

    /* Aurora gradient background */
    .login-page::before {
      content: '';
      position: absolute;
      width: 140%;
      height: 140%;
      top: -20%;
      left: -20%;
      background:
        radial-gradient(ellipse 60% 50% at 15% 25%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 85% 75%, rgba(139, 92, 246, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 45% 40% at 50% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 40% 50% at 75% 30%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
      animation: auroraShift 12s ease-in-out infinite alternate;
      pointer-events: none;
      z-index: 0;
    }

    @keyframes auroraShift {
      0% { transform: translate(0, 0) rotate(0deg); opacity: 0.8; }
      50% { transform: translate(-3%, 2%) rotate(1deg); opacity: 1; }
      100% { transform: translate(2%, -2%) rotate(-1deg); opacity: 0.9; }
    }

    /* Floating particles */
    .login-page::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,0.15) 50%, transparent 50%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.08) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 50% 35%, rgba(139,92,246,0.2) 50%, transparent 50%),
        radial-gradient(1px 1px at 70% 80%, rgba(56,189,248,0.12) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 85% 15%, rgba(255,255,255,0.1) 50%, transparent 50%),
        radial-gradient(1px 1px at 20% 90%, rgba(59,130,246,0.15) 50%, transparent 50%),
        radial-gradient(1px 1px at 60% 10%, rgba(255,255,255,0.06) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 90% 55%, rgba(139,92,246,0.1) 50%, transparent 50%);
      animation: particleDrift 20s linear infinite;
      pointer-events: none;
      z-index: 0;
    }

    @keyframes particleDrift {
      0% { transform: translateY(0); }
      100% { transform: translateY(-30px); }
    }

    .login-card {
      background: rgba(13, 19, 36, 0.65);
      backdrop-filter: blur(40px) saturate(180%);
      -webkit-backdrop-filter: blur(40px) saturate(180%);
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 24px;
      padding: 44px 40px;
      width: 100%;
      max-width: 440px;
      box-shadow:
        0 32px 64px -16px rgba(0, 0, 0, 0.6),
        0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
      text-align: center;
      position: relative;
      z-index: 10;
      animation: loginCardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    /* Subtle glow border effect on card */
    .login-card::before {
      content: '';
      position: absolute;
      inset: -1px;
      border-radius: 25px;
      background: linear-gradient(135deg, rgba(56,189,248,0.15), transparent 40%, transparent 60%, rgba(139,92,246,0.12));
      z-index: -1;
      pointer-events: none;
    }

    @keyframes loginCardEntrance {
      from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
        filter: blur(4px);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
      }
    }

    .login-logo {
      font-size: 38px;
      font-weight: 900;
      color: white;
      letter-spacing: -1.5px;
      margin-bottom: 2px;
    }

    .login-logo span {
      background: linear-gradient(135deg, #38bdf8, #818cf8);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.3));
    }

    .login-tag {
      font-size: 11px;
      color: #64748b;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      margin-bottom: 32px;
      font-weight: 500;
    }

    .login-form {
      display: grid;
      gap: 20px;
      text-align: left;
    }

    .login-form label {
      color: #7a8ba8;
      font-size: 11.5px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      display: grid;
      gap: 8px;
    }

    .login-form input {
      background: rgba(8, 14, 30, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      padding: 14px 16px;
      color: #f1f5f9;
      font-size: 14px;
      outline: none;
      transition: all 0.3s ease;
    }

    .login-form input::placeholder {
      color: #3e4a5e;
    }

    .login-form input:focus {
      border-color: rgba(56, 189, 248, 0.5);
      background: rgba(8, 14, 30, 0.8);
      box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1), 0 0 20px rgba(56, 189, 248, 0.06);
    }

    .login-btn {
      background: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #8b5cf6 100%);
      background-size: 200% 200%;
      animation: gradientFlow 4s ease infinite;
      color: white;
      border: none;
      border-radius: 12px;
      padding: 15px;
      font-weight: 700;
      font-size: 15px;
      cursor: pointer;
      box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.4);
      transition: all 0.3s ease;
      margin-top: 10px;
      letter-spacing: 0.3px;
    }

    @keyframes gradientFlow {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    .login-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 32px -4px rgba(99, 102, 241, 0.5), 0 0 20px rgba(139, 92, 246, 0.2);
    }

    .login-btn:active {
      transform: translateY(0);
      box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    .login-demo {
      margin-top: 24px;
      font-size: 12px;
      color: #475569;
      border-top: 1px solid rgba(255, 255, 255, 0.04);
      padding-top: 16px;
    }

    /* Company Setup Wizard CSS styling */
    .wizard-header-steps {
      display: flex;
      justify-content: space-between;
      background: #f8fafc;
      padding: 16px 24px;
      border-bottom: 1px solid #cbd5e1;
      border-radius: 12px 12px 0 0;
      gap: 8px;
    }

    .wizard-step-item {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 700;
      color: #64748b;
      padding: 8px;
      border-bottom: 3px solid transparent;
      transition: all var(--transition);
    }

    .wizard-step-item.active {
      color: #2563eb;
      border-bottom-color: #2563eb;
    }

    .wizard-step-item.completed {
      color: #16a34a;
    }

    .wizard-step-num {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: #e2e8f0;
      color: #475569;
      display: grid;
      place-items: center;
      font-size: 11px;
    }

    .wizard-step-item.active .wizard-step-num {
      background: #2563eb;
      color: white;
    }

    .wizard-step-item.completed .wizard-step-num {
      background: #16a34a;
      color: white;
    }

    .wizard-body {
      padding: 24px;
      background: white;
      min-height: 380px;
      max-height: 500px;
      overflow-y: auto;
    }

    .wizard-footer {
      padding: 16px 24px;
      border-top: 1px solid #e2e8f0;
      background: #f8fafc;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-radius: 0 0 12px 12px;
    }

    .logo-upload-box {
      display: flex;
      align-items: center;
      gap: 20px;
      background: #f8fafc;
      border: 2px dashed #cbd5e1;
      border-radius: 10px;
      padding: 16px;
      transition: all var(--transition);
    }

    .logo-upload-box:hover {
      border-color: #2563eb;
      background: #f1f5f9;
    }

    .logo-preview-img {
      width: 64px;
      height: 64px;
      border-radius: 8px;
      object-fit: cover;
      background: white;
      border: 1px solid #e2e8f0;
    }

    .setup-banner {
      background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
      border: 1px solid #bfdbfe;
      border-radius: 12px;
      padding: 20px 24px;
      margin-bottom: 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      box-shadow: var(--shadow-sm);
    }

    .setup-banner-title {
      font-weight: 800;
      font-size: 16px;
      color: #1e40af;
      margin-bottom: 4px;
    }

    .setup-banner-desc {
      font-size: 13px;
      color: #1e3a8a;
    }

    .wizard-table-form {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 16px;
      margin-bottom: 16px;
      display: grid;
      gap: 12px;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .wizard-grid-list {
      max-height: 200px;
      overflow-y: auto;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      margin-top: 8px;
    }

/* --- Style Block 2 --- */
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif}
@media print{@page{size:A4;margin:18mm 14mm}}
.report-container{max-width:210mm;margin:0 auto;padding:30px 20px;color:#222;font-size:12pt;line-height:1.5}
.report-header{display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #2563eb;padding-bottom:16px;margin-bottom:20px}
.report-header h1{font-size:26pt;margin:0;color:#0b1424}
.report-header .report-meta{text-align:right;font-size:10pt;color:#666}
table{width:100%;border-collapse:collapse;margin:16px 0}
th{background:#f0f4ff;color:#1e293b;font-weight:700;font-size:10pt;text-transform:uppercase;padding:10px 12px;border:1px solid #d1d9e8}
td{padding:9px 12px;border:1px solid #d1d9e8;font-size:10pt}
.report-summary{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.summary-card{border:1px solid #d1d9e8;border-radius:8px;padding:14px 20px;min-width:140px;background:#fafbfd}
.summary-card .sc-label{font-size:9pt;color:#666;text-transform:uppercase;letter-spacing:.5px}
.summary-card .sc-value{font-size:18pt;font-weight:800;color:#0b1424;margin-top:4px}
.report-footer{margin-top:30px;padding-top:16px;border-top:2px solid #e2e8f0;font-size:9pt;color:#888;text-align:center}
@media screen{.report-actions{text-align:center;margin:20px 0;padding:16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}}
.report-actions button{padding:10px 20px;font-size:14px;font-weight:600;background:#2563eb;color:white;border:none;border-radius:6px;cursor:pointer;margin:0 6px}
.report-actions button:hover{background:#1d4ed8}

