    :root {
      --bg: #f0f2f7;
      --surface: #ffffff;
      --surface2: #e8ecf4;
      --border: #d0d7e8;
      --accent: #1e3a6e;
      --accent2: #2e5299;
      --accent3: #4a7fd4;
      --text: #0f1f3d;
      --muted: #6b7a99;
      --danger: #dc2626;
      --success: #16a34a;
      --sidebar-w: 270px;
      --navy: #1e3a6e;
      --navy2: #2e5299;
      --gold: #c49a2a;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box
    }

    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden
    }

    /* LOGIN */
    #login-page {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      min-height: 100vh;
      z-index: 99999;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #0a1128;
      overflow-y: auto;
    }

    #login-page::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
      background-size: 20px 20px;
      z-index: 0;
    }

    .login-card {
      display: flex;
      background: #ffffff;
      border-radius: 24px;
      width: 100%;
      max-width: 800px;
      margin: 24px;
      min-height: 480px;
      position: relative;
      z-index: 1;
      box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
      animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      overflow: hidden;
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(32px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .login-left {
      flex: 1;
      background: #f8fafc;
      padding: 40px;
      display: flex;
      flex-direction: column;
      position: relative;
    }

    .login-right {
      flex: 1;
      padding: 40px 48px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .login-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 32px;
    }

    .login-logo .logo-icon {
      width: 44px;
      height: 44px;
      background: linear-gradient(135deg, #3b82f6, #60a5fa);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 22px;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

    .login-logo .logo-text {
      font-size: 22px;
      font-weight: 800;
      color: #0f1f3d;
      letter-spacing: -0.5px;
    }

    .login-title {
      font-size: 36px;
      font-weight: 800;
      color: #0f1f3d;
      line-height: 1.1;
      margin-bottom: 12px;
      letter-spacing: -0.5px;
    }

    .login-sub {
      color: #64748b;
      font-size: 15px;
      margin-bottom: auto;
      line-height: 1.5;
    }

    .login-ill {
      width: 100%;
      max-width: 320px;
      margin: 24px auto 0;
      display: block;
      object-fit: contain;
    }

    .lg-form-group {
      margin-bottom: 20px;
    }

    .lg-form-label {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      font-weight: 800;
      color: #64748b;
      margin-bottom: 8px;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .lg-form-label i {
      color: #3b82f6;
      font-size: 14px;
    }

    .lg-input-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }

    .lg-input-wrap i.prefix {
      position: absolute;
      left: 16px;
      color: #94a3b8;
      font-size: 14px;
    }

    .lg-form-input {
      width: 100%;
      background: #ffffff;
      border: 1.5px solid #e2e8f0;
      border-radius: 12px;
      padding: 14px 16px 14px 42px;
      color: #0f1f3d;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 14px;
      outline: none;
      transition: all 0.2s;
    }

    .lg-form-input:focus {
      border-color: #3b82f6;
      box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    }

    .lg-input-wrap i.suffix {
      position: absolute;
      right: 16px;
      color: #94a3b8;
      font-size: 14px;
      cursor: pointer;
      transition: color 0.2s;
    }

    .lg-input-wrap i.suffix:hover {
      color: #0f1f3d;
    }

    .lg-form-options {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      margin-top: -4px;
    }

    .lg-checkbox {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
    }

    .lg-checkbox input {
      width: 16px;
      height: 16px;
      border-radius: 4px;
      accent-color: #3b82f6;
      cursor: pointer;
    }

    .lg-checkbox span {
      font-size: 12px;
      font-weight: 700;
      color: #0f1f3d;
    }

    .lg-link {
      font-size: 12px;
      font-weight: 700;
      color: #3b82f6;
      text-decoration: none;
      transition: color 0.2s;
      cursor: pointer;
    }

    .lg-link:hover {
      color: #2563eb;
    }

    .lg-btn-login {
      width: 100%;
      background: linear-gradient(135deg, #3b82f6, #4f46e5);
      color: #ffffff;
      border: none;
      border-radius: 12px;
      padding: 16px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
    }

    .lg-btn-login:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 20px rgba(59, 130, 246, 0.3);
    }

    .lg-divider {
      display: flex;
      align-items: center;
      text-align: center;
      margin: 24px 0;
      color: #94a3b8;
      font-size: 12px;
      font-weight: 600;
    }

    .lg-divider::before,
    .lg-divider::after {
      content: '';
      flex: 1;
      border-bottom: 1px solid #e2e8f0;
    }

    .lg-divider:not(:empty)::before {
      margin-right: 12px;
    }

    .lg-divider:not(:empty)::after {
      margin-left: 12px;
    }

    .lg-footer-badge {
      background: #f8fafc;
      border-radius: 12px;
      padding: 16px;
      display: flex;
      align-items: center;
      gap: 16px;
      border: 1px solid #e2e8f0;
    }

    .lg-footer-badge .icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: #eff6ff;
      color: #3b82f6;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }

    .lg-footer-badge h4 {
      font-size: 12px;
      font-weight: 800;
      color: #0f1f3d;
      margin-bottom: 2px;
    }

    .lg-footer-badge p {
      font-size: 11px;
      color: #64748b;
      line-height: 1.4;
    }

    /* APP */
    #app {
      display: none
    }

    .layout {
      display: flex;
      min-height: 100vh;
      min-width: 0
    }

    /* SIDEBAR */
    .sidebar {
      width: var(--sidebar-w);
      background: #0a1128;
      border-right: 1px solid rgba(255, 255, 255, 0.05);
      display: flex;
      flex-direction: column;
      padding: 24px 20px;
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      z-index: 100;
      overflow-y: auto
    }

    .sidebar-logo {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 0;
      margin-bottom: 32px
    }

    .nav-section-label {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1.2px;
      color: #3b82f6;
      text-transform: uppercase;
      padding: 0 4px;
      margin: 24px 0 12px
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 42px 10px 12px;
      border-radius: 12px;
      cursor: pointer;
      transition: all .2s;
      font-size: 13.5px;
      font-weight: 700;
      color: #94a3b8;
      margin-bottom: 6px;
      position: relative;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .nav-item:hover {
      background: rgba(255, 255, 255, .03);
      color: #ffffff
    }

    .nav-item.active {
      background: linear-gradient(135deg, #3b82f6, #60a5fa);
      color: #ffffff;
      box-shadow: 0 6px 12px rgba(59, 130, 246, 0.25)
    }

    .nav-item .icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: #151b32;
      color: #94a3b8;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      flex-shrink: 0;
      transition: all 0.2s;
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05)
    }

    .nav-item:hover .icon {
      color: #ffffff;
      background: #1e293b
    }

    .nav-item.active .icon {
      background: rgba(255, 255, 255, 0.2);
      color: #ffffff;
      box-shadow: none
    }

    .nav-item::after {
      content: '\f054';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      margin-left: auto;
      font-size: 10px;
      color: #475569;
      transition: all 0.2s
    }

    .nav-item.no-arrow::after {
      display: none
    }

    .nav-item:hover::after,
    .nav-item.active::after {
      color: #ffffff
    }

    .nav-badge {
      display: none !important;
      position: absolute;
      right: 32px;
      background: #ef4444;
      color: #ffffff;
      font-size: 10px;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 20px;
      z-index: 2
    }

    .sidebar-role-badge {
      margin: 0 0 24px 0;
      padding: 12px 16px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      gap: 12px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.2));
      border: 1px solid rgba(255, 255, 255, 0.05);
      position: relative;
      cursor: pointer;
      transition: all 0.2s
    }

    .sidebar-role-badge:hover {
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.3));
      border-color: rgba(255, 255, 255, 0.1)
    }

    .sidebar-role-badge::after {
      content: '\f078';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      position: absolute;
      right: 16px;
      font-size: 12px;
      color: #cbd5e1
    }

    .sidebar-bottom {
      margin-top: auto;
      padding-top: 24px
    }

    .logout-btn {
      background: rgba(239, 68, 68, 0.08);
      color: #ef4444;
      border: 1px solid rgba(239, 68, 68, 0.1);
      padding: 12px 16px;
      margin-bottom: 0
    }

    .logout-btn .icon {
      background: rgba(239, 68, 68, 0.15);
      color: #ef4444
    }

    .logout-btn:hover {
      background: rgba(239, 68, 68, 0.15);
      color: #ef4444;
      border: 1px solid rgba(239, 68, 68, 0.2)
    }

    .logout-btn:hover .icon {
      background: rgba(239, 68, 68, 0.25)
    }

    .logout-btn::after {
      display: none
    }

    /* MAIN */
    .main {
      margin-left: var(--sidebar-w);
      flex: 1;
      background: #f0f2f7;
      min-height: 100vh;
      min-width: 0
    }

    .topbar {
      background: #ffffff;
      border-bottom: 1px solid #d0d7e8;
      padding: 14px 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 50
    }

    .topbar-user {
      display: flex;
      align-items: center;
      gap: 12px
    }

    .avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 14px;
      color: white;
      flex-shrink: 0
    }

    .av-admin {
      background: linear-gradient(135deg, #dc2626, #c49a2a)
    }

    .av-l1 {
      background: linear-gradient(135deg, #1e3a6e, #4a7fd4)
    }

    .av-l2 {
      background: linear-gradient(135deg, #2e5299, #c49a2a)
    }

    .av-qa {
      background: linear-gradient(135deg, #059669, #10b981)
    }

    .topbar-user-info h4 {
      font-size: 13.5px;
      font-weight: 700;
      color: #0f1f3d
    }

    .topbar-user-info p {
      font-size: 11px;
      color: #6b7a99
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 10px
    }

    .topbar-date {
      font-size: 12px;
      color: #6b7a99;
      font-weight: 500
    }

    .topbar-role-tag {
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 700
    }

    .tr-admin {
      background: rgba(220, 38, 38, .1);
      color: #dc2626
    }

    .tr-l1 {
      background: rgba(30, 58, 110, .1);
      color: #1e3a6e
    }

    .tr-l2 {
      background: rgba(196, 154, 42, .12);
      color: #a07820
    }

    .tr-qa {
      background: rgba(16, 185, 129, .15);
      color: #059669
    }

    /* PAGES */
    .page {
      display: none;
      padding: 26px 28px;
      max-width: 1600px;
      margin: 0 auto
    }

    .page.active {
      display: block
    }

    .page-header {
      margin-bottom: 22px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px
    }

    .page-header-left h1 {
      font-size: 28px;
      font-weight: 800;
      color: #0f1f3d;
      letter-spacing: -.5px
    }

    .page-header-left p {
      font-size: 13px;
      color: #6b7a99;
      margin-top: 3px
    }

    /* STAT GRID */
    .stat-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 14px;
      margin-bottom: 18px
    }

    .stat-grid-3 {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))
    }

    .stat-card {
      background: white;
      border-radius: 14px;
      padding: 18px;
      border: 1px solid #d0d7e8
    }

    .sc-icon {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      margin-bottom: 10px
    }

    .sc-num {
      font-size: 30px;
      font-weight: 800;
      color: #0f1f3d;
      line-height: 1
    }

    .sc-label {
      font-size: 12px;
      color: #6b7a99;
      margin-top: 3px
    }

    .sc-sub {
      font-size: 11px;
      font-weight: 600;
      margin-top: 6px
    }

    .sc-green {
      background: rgba(22, 163, 74, .1)
    }

    .sc-purple {
      background: rgba(46, 82, 153, .1)
    }

    .sc-blue {
      background: rgba(74, 127, 212, .1)
    }

    .sc-yellow {
      background: rgba(196, 154, 42, .1)
    }

    .sc-red {
      background: rgba(220, 38, 38, .08)
    }

    /* SHIFT CARDS */
    .shift-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 14px;
      margin-bottom: 18px
    }

    .shift-card {
      background: white;
      border-radius: 14px;
      padding: 16px 18px;
      border: 1px solid #d0d7e8;
      display: flex;
      align-items: center;
      justify-content: space-between
    }

    .shift-left {
      display: flex;
      align-items: center;
      gap: 12px
    }

    .shift-icon {
      font-size: 26px
    }

    .shift-name {
      font-size: 14px;
      font-weight: 700;
      color: #0f1f3d
    }

    .shift-jam {
      font-size: 11px;
      color: #6b7a99;
      margin-top: 1px
    }

    .shift-right {
      text-align: right
    }

    .shift-num {
      font-size: 30px;
      font-weight: 800;
      line-height: 1
    }

    .shift-pct {
      font-size: 11px;
      font-weight: 600;
      margin-top: 3px
    }

    .s-pagi {
      border-left: 3px solid #c49a2a
    }

    .s-pagi .shift-num {
      color: #a07820
    }

    .s-pagi .shift-pct {
      color: #a07820
    }

    .s-siang {
      border-left: 3px solid #4a7fd4
    }

    .s-siang .shift-num {
      color: #1e3a6e
    }

    .s-siang .shift-pct {
      color: #1e3a6e
    }

    .s-malam {
      border-left: 3px solid #2e5299
    }

    .s-malam .shift-num {
      color: #2e5299
    }

    .s-malam .shift-pct {
      color: #2e5299
    }

    /* CARD */
    .card {
      background: white;
      border-radius: 14px;
      padding: 18px;
      border: 1px solid #d0d7e8;
      min-width: 0
    }

    .card-title {
      font-size: 14px;
      font-weight: 700;
      color: #0f1f3d;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 7px
    }

    .two-col {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
      gap: 14px
    }

    .two-col-3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 14px
    }

    /* CHARTS */
    .donut-container {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 32px;
      width: 100%;
      height: 100%;
      min-height: 240px;
      padding: 10px 0
    }

    .donut-svg {
      flex-shrink: 0;
      width: 220px;
      height: 220px
    }

    .donut-legend {
      display: flex;
      flex-direction: column;
      gap: 16px;
      font-size: 15px
    }

    .donut-legend .legend-val {
      font-size: 18px
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px
    }

    .legend-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      flex-shrink: 0
    }

    .legend-label {
      color: #6b7a99;
      font-size: 12px
    }

    .legend-val {
      margin-left: auto;
      font-weight: 700;
      color: #0f1f3d
    }

    /* ACTIVITY */
    .activity-list {
      display: flex;
      flex-direction: column;
      gap: 10px
    }

    .activity-item {
      display: flex;
      align-items: flex-start;
      gap: 9px
    }

    .act-dot-wrap {
      display: flex;
      flex-direction: column;
      align-items: center
    }

    .act-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      margin-top: 4px;
      flex-shrink: 0
    }

    .act-line {
      width: 1px;
      flex: 1;
      background: #e8ecf4;
      margin-top: 2px
    }

    .act-info h5 {
      font-size: 13px;
      font-weight: 600;
      color: #0f1f3d
    }

    .act-info p {
      font-size: 11px;
      color: #6b7a99;
      margin-top: 2px
    }

    /* TABLE */
    .ticket-table {
      width: 100%;
      border-collapse: collapse
    }

    .ticket-table th {
      text-align: left;
      padding: 8px 12px;
      font-size: 11px;
      font-weight: 700;
      color: #6b7a99;
      text-transform: uppercase;
      letter-spacing: .5px;
      border-bottom: 1px solid #d0d7e8
    }

    .ticket-table td {
      padding: 11px 12px;
      font-size: 13px;
      color: #0f1f3d;
      border-bottom: 1px solid #eef0f7
    }

    .ticket-table tr:last-child td {
      border-bottom: none
    }

    .ticket-table tr:hover td {
      background: #f0f4fb
    }

    .type-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 9px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 700
    }

    .type-merge {
      background: rgba(46, 82, 153, .12);
      color: #2e5299
    }

    .type-nonmerge {
      background: rgba(74, 127, 212, .1);
      color: #1e3a6e
    }

    .type-grupwa {
      background: rgba(196, 154, 42, .15);
      color: #a07820
    }

    .status-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #4ade80;
      display: inline-block;
      margin-right: 5px
    }

    .uploader-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      border-radius: 8px;
      font-size: 11px;
      font-weight: 600;
      background: #e8ecf4;
      color: #2e5299
    }

    /* FORM */
    .form-card {
      background: white;
      border-radius: 14px;
      padding: 22px;
      border: 1px solid #d0d7e8
    }

    .form-card-title {
      font-size: 16px;
      font-weight: 700;
      color: #0f1f3d;
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      gap: 8px
    }

    .fct-ic {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      background: rgba(30, 58, 110, .1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 15px
    }

    .field-group {
      margin-bottom: 14px
    }

    .field-label {
      display: block;
      font-size: 11px;
      font-weight: 700;
      color: #6b7a99;
      margin-bottom: 6px;
      letter-spacing: .4px;
      text-transform: uppercase
    }

    .field-input,
    .field-select {
      width: 100%;
      background: #f0f2f7;
      border: 1.5px solid #d0d7e8;
      border-radius: 10px;
      padding: 11px 13px;
      color: #0f1f3d;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 13px;
      outline: none;
      transition: border-color .2s, box-shadow .2s;
      appearance: none
    }

    .field-input:focus,
    .field-select:focus {
      border-color: #1e3a6e;
      box-shadow: 0 0 0 3px rgba(30, 58, 110, .1);
      background: white
    }

    .field-input:disabled {
      opacity: .5;
      cursor: not-allowed;
      background: #e8ecf4
    }

    .select-wrapper {
      position: relative
    }

    .select-wrapper::after {
      content: '▼';
      position: absolute;
      right: 13px;
      top: 50%;
      transform: translateY(-50%);
      color: #6b7a99;
      pointer-events: none;
      font-size: 12px
    }

    /* BUTTONS */
    .btn {
      border: none;
      border-radius: 10px;
      padding: 11px 16px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: all .15s;
      display: inline-flex;
      align-items: center;
      gap: 7px
    }

    .btn-block {
      width: 100%;
      justify-content: center
    }

    .btn-primary {
      background: #0f1f3d;
      color: white
    }

    .btn-primary:hover {
      background: #1e3a6e;
      transform: translateY(-1px)
    }

    .btn-accent {
      background: #1e3a6e;
      color: #ffffff
    }

    .btn-accent:hover {
      background: #2e5299;
      transform: translateY(-1px)
    }

    .btn-danger {
      background: #fee2e2;
      color: #dc2626
    }

    .btn-danger:hover {
      background: #fecaca
    }

    .btn-ghost {
      background: #f0f2f7;
      color: #6b7a99;
      border: 1px solid #d0d7e8
    }

    .btn-ghost:hover {
      background: #e8ecf4
    }

    .btn-green {
      background: rgba(22, 163, 74, .1);
      color: #16a34a;
      border: 1.5px solid rgba(22, 163, 74, .25)
    }

    .btn-green:hover {
      background: rgba(22, 163, 74, .18)
    }

    .btn-sm {
      padding: 7px 12px;
      font-size: 12px;
      border-radius: 8px
    }

    /* INPUT EYE */
    .input-icon-wrap {
      position: relative
    }

    .input-icon-wrap .field-input {
      padding-right: 42px
    }

    .input-eye {
      position: absolute;
      right: 13px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      color: #6b7a99;
      font-size: 15px;
      user-select: none
    }

    /* UPLOAD TABS */
    .upload-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 18px
    }

    .upload-tab {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 9px 20px;
      border-radius: 10px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 700;
      border: 2px solid #d0d7e8;
      background: white;
      color: #6b7a99;
      transition: all .2s
    }

    .upload-tab.active {
      border-color: #0f1f3d;
      background: #0f1f3d;
      color: white
    }

    .upload-tab-panel {
      display: none
    }

    .upload-tab-panel.active {
      display: block
    }

    /* DROPZONE */
    .dropzone {
      border: 2px dashed #b0bcda;
      border-radius: 14px;
      background: #f5f7fc;
      padding: 36px 20px;
      text-align: center;
      cursor: pointer;
      transition: border-color .2s, background .2s;
      position: relative
    }

    .dropzone:hover,
    .dropzone.dragover {
      border-color: #1e3a6e;
      background: rgba(30, 58, 110, .04)
    }

    .dropzone input[type=file] {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
      width: 100%;
      height: 100%
    }

    .dz-icon {
      font-size: 36px;
      margin-bottom: 10px
    }

    .dz-title {
      font-size: 15px;
      font-weight: 700;
      color: #0f1f3d;
      margin-bottom: 3px
    }

    .dz-sub {
      font-size: 12px;
      color: #6b7a99
    }

    .dz-types {
      display: flex;
      justify-content: center;
      gap: 7px;
      margin-top: 10px
    }

    .dz-type-pill {
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700
    }

    .dz-txt {
      background: rgba(74, 127, 212, .1);
      color: #1e3a6e
    }

    .dz-xls {
      background: rgba(22, 163, 74, .1);
      color: #16a34a
    }

    .dz-csv {
      background: rgba(196, 154, 42, .15);
      color: #a07820
    }

    /* PREVIEW */
    .preview-wrap {
      margin-top: 14px
    }

    .preview-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px
    }

    .preview-title {
      font-size: 13px;
      font-weight: 700;
      color: #0f1f3d
    }

    .preview-count {
      font-size: 12px;
      color: #6b7a99
    }

    .preview-table-wrap {
      max-height: 240px;
      overflow-y: auto;
      border-radius: 10px;
      border: 1px solid #d0d7e8
    }

    .preview-table {
      width: 100%;
      border-collapse: collapse
    }

    .preview-table th {
      padding: 8px 11px;
      text-align: left;
      font-size: 10px;
      font-weight: 700;
      color: #6b7a99;
      text-transform: uppercase;
      letter-spacing: .4px;
      background: #f5f7fc;
      border-bottom: 1px solid #d0d7e8;
      position: sticky;
      top: 0
    }

    .preview-table td {
      padding: 9px 11px;
      font-size: 12px;
      color: #0f1f3d;
      border-bottom: 1px solid #eef0f7
    }

    .preview-table tr:last-child td {
      border-bottom: none
    }

    .row-ok {
      background: rgba(22, 163, 74, .02)
    }

    .row-err td {
      color: #dc2626 !important;
      background: rgba(220, 38, 38, .04)
    }

    .row-dup td {
      color: #f59e0b !important;
      background: rgba(245, 158, 11, .04)
    }

    .err-badge {
      font-size: 10px;
      background: rgba(220, 38, 38, .1);
      color: #dc2626;
      padding: 2px 5px;
      border-radius: 4px;
      margin-left: 3px
    }

    .fg-code {
      background: #0f1f3d;
      color: #7eb8f7;
      border-radius: 8px;
      padding: 11px 13px;
      font-family: monospace;
      font-size: 12px;
      line-height: 1.8;
      white-space: pre;
      overflow-x: auto
    }

    .fg-note {
      font-size: 11px;
      color: #6b7a99;
      margin-top: 7px;
      line-height: 1.6
    }

    /* CBT QUIZ UI */
    .cbt-container {
      display: grid;
      grid-template-columns: 1fr 280px;
      gap: 20px;
      align-items: start;
    }

    @media(max-width: 800px) {
      .cbt-container {
        grid-template-columns: 1fr;
      }
    }

    .cbt-main {
      background: white;
      border-radius: 14px;
      border: 1px solid #d0d7e8;
      padding: 24px;
      min-height: 400px;
      display: flex;
      flex-direction: column;
    }

    .cbt-sidebar {
      background: white;
      border-radius: 14px;
      border: 1px solid #d0d7e8;
      padding: 20px;
      position: sticky;
      top: 70px;
    }

    .cbt-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 8px;
      margin-top: 14px;
    }

    .cbt-box {
      width: 100%;
      aspect-ratio: 1;
      border-radius: 8px;
      border: 2px solid #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 700;
      color: #64748b;
      cursor: pointer;
      transition: all 0.2s;
      background: #fff;
    }

    .cbt-box:hover {
      border-color: #cbd5e1;
      background: #f8fafc;
    }

    .cbt-box.answered {
      background: #10b981;
      border-color: #059669;
      color: white;
    }

    .cbt-box.active {
      border-color: #3b82f6;
      color: #3b82f6;
      box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    }

    .cbt-box.answered.active {
      background: #10b981;
      border-color: #3b82f6;
      color: white;
    }

    .cbt-opt-card {
      border: 2px solid #e2e8f0;
      border-radius: 12px;
      padding: 16px;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      background: #fff;
      margin-bottom: 12px;
    }

    .cbt-opt-card:hover {
      border-color: #93c5fd;
      background: #eff6ff;
    }

    .cbt-opt-card.selected {
      border-color: #3b82f6;
      background: #eff6ff;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    }

    .cbt-opt-marker {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: #f1f5f9;
      color: #64748b;
      font-weight: 800;
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.2s;
    }

    .cbt-opt-card.selected .cbt-opt-marker {
      background: #3b82f6;
      color: white;
    }

    .cbt-opt-text {
      font-size: 14px;
      color: #334155;
      line-height: 1.5;
      padding-top: 4px;
    }

    /* CALENDAR */
    .cal-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
      background: #fff;
      padding: 12px 16px;
      border-radius: 12px;
      border: 1px solid #e2e8f0;
    }

    .cal-nav-title {
      font-size: 16px;
      font-weight: 800;
      color: #0f1f3d;
    }

    .btn-cal-nav {
      background: #fff;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      cursor: pointer;
      color: #475569;
      padding: 6px 12px;
      font-weight: 700;
      transition: 0.2s;
      font-size: 13px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .btn-cal-nav:hover {
      background: #f8fafc;
      color: #0f1f3d;
      border-color: #94a3b8;
    }

    .task-tracker-header {
      display: flex;
      align-items: center;
      gap: 24px;
      padding: 24px 32px;
      background: linear-gradient(to right, #ffffff, #f8fafc);
      border-radius: 16px;
      border: 1px solid #e2e8f0;
      margin-bottom: 24px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    }

    .task-tracker-header-icon {
      width: 64px;
      height: 64px;
      background: #e0e7ff;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      color: #4f46e5;
    }

    .task-tracker-header-content h1 {
      font-size: 24px;
      color: #0f1f3d;
      margin-bottom: 6px;
      font-weight: 800;
    }

    .task-tracker-header-content p {
      color: #64748b;
      font-size: 14px;
    }

    .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      overflow: hidden;
      background: #fff;
    }

    .cal-header-cell {
      text-align: center;
      font-size: 12px;
      font-weight: 700;
      color: #475569;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 14px 8px;
      border-bottom: 2px solid #e2e8f0;
      border-right: 1px solid #f1f5f9;
      background: #f8fafc;
    }

    .cal-header-cell:last-child {
      border-right: none;
    }

    .cal-header-cell.weekend-header {
      color: #ef4444;
    }

    .cal-cell {
      min-height: 110px;
      background: #fff;
      border-bottom: 1px solid #f1f5f9;
      border-right: 1px solid #f1f5f9;
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      cursor: pointer;
      transition: background 0.15s;
    }

    .cal-cell:hover {
      background: #fafaff;
    }

    .cal-cell:nth-child(7n) {
      border-right: none;
    }

    .cal-cell.empty {
      background: #fafbfc;
      cursor: default;
    }

    .cal-cell.empty:hover {
      background: #fafbfc;
    }

    .cal-date {
      font-size: 13px;
      font-weight: 700;
      color: #334155;
      text-align: right;
      margin-bottom: 4px;
      display: flex;
      justify-content: flex-end;
      align-items: center;
    }

    .cal-date.weekend {
      color: #ef4444;
    }

    .cal-cell.today .cal-date-num {
      background: linear-gradient(135deg, #6366f1, #4f46e5);
      color: white;
      border-radius: 50%;
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 700;
      box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
    }

    .cal-pill {
      font-size: 11px;
      font-weight: 600;
      padding: 5px 8px;
      border-radius: 8px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      cursor: pointer;
      line-height: 1.4;
      border: none;
      margin-bottom: 3px;
      transition: all 0.15s;
    }

    .cal-pill:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .cal-pill.status-todo {
      background: #f1f5f9;
      color: #475569;
    }

    .cal-pill.status-progress {
      background: #dbeafe;
      color: #2563eb;
    }

    .cal-pill.status-review {
      background: #fef3c7;
      color: #d97706;
    }

    .cal-pill.status-done {
      background: #d1fae5;
      color: #059669;
    }

    .cal-pill.status-late {
      background: #fee2e2;
      color: #dc2626;
    }

    .cal-pill-author {
      display: block;
      font-size: 9px;
      font-weight: 500;
      opacity: 0.75;
      margin-top: 1px;
    }

    .cal-pill-check {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 2px solid currentColor;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 8px;
    }

    .cal-legend {
      display: flex;
      align-items: center;
      gap: 20px;
      padding: 14px 16px;
      border-top: 1px solid #f1f5f9;
      margin-top: 4px;
    }

    .cal-legend-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: #64748b;
      font-weight: 500;
    }

    .cal-legend-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }

    .cal-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 16px;
    }


    /* PROFIL */
    .profil-grid {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 18px
    }

    .profil-avatar-card {
      background: white;
      border-radius: 14px;
      padding: 24px;
      border: 1px solid #d0d7e8;
      text-align: center
    }

    .profil-avatar-big {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 26px;
      color: white;
      margin: 0 auto 14px
    }

    .profil-name {
      font-size: 17px;
      font-weight: 800;
      color: #0f1f3d
    }

    .profil-email {
      font-size: 12px;
      color: #6b7a99;
      margin-top: 3px
    }

    .profil-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: rgba(30, 58, 110, .1);
      color: #1e3a6e;
      font-size: 11px;
      font-weight: 700;
      padding: 4px 11px;
      border-radius: 20px;
      margin-top: 10px
    }

    .profil-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 16px
    }

    .profil-stat-item {
      background: #f0f2f7;
      border-radius: 10px;
      padding: 11px;
      text-align: center
    }

    .psi-num {
      font-size: 20px;
      font-weight: 800;
      color: #0f1f3d
    }

    .psi-label {
      font-size: 11px;
      color: #6b7a99;
      margin-top: 2px
    }

    /* PW STRENGTH */
    .pw-strength {
      height: 4px;
      border-radius: 4px;
      margin-top: 7px;
      background: #e8ecf4;
      overflow: hidden
    }

    .pw-bar {
      height: 100%;
      border-radius: 4px;
      width: 0;
      transition: width .3s, background .3s
    }

    .pw-label {
      font-size: 11px;
      margin-top: 4px
    }

    /* MODAL */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .5);
      backdrop-filter: blur(4px);
      z-index: 1000;
      display: none;
      align-items: center;
      justify-content: center
    }

    .modal-overlay.show {
      display: flex
    }

    .modal-box {
      background: white;
      border-radius: 20px;
      padding: 34px 30px;
      width: 420px;
      text-align: center;
      box-shadow: 0 24px 60px rgba(15, 31, 61, .15);
      animation: popIn .25s cubic-bezier(.34, 1.56, .64, 1)
    }

    .modal-box.modal-lg {
      width: 580px;
      text-align: left
    }

    @keyframes popIn {
      from {
        opacity: 0;
        transform: scale(.88)
      }

      to {
        opacity: 1;
        transform: scale(1)
      }
    }

    .modal-icon {
      font-size: 44px;
      margin-bottom: 14px
    }

    .modal-title {
      font-size: 20px;
      font-weight: 800;
      color: #0f1f3d;
      margin-bottom: 7px
    }

    .modal-sub {
      font-size: 13px;
      color: #6b7a99;
      margin-bottom: 24px;
      line-height: 1.6
    }

    .modal-btns {
      display: flex;
      gap: 9px
    }

    .modal-btns button {
      flex: 1;
      padding: 12px;
      border-radius: 10px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      border: none;
      transition: all .15s
    }

    .btn-mc {
      background: #f0f2f7;
      color: #6b7a99
    }

    .btn-mc:hover {
      background: #e8ecf4
    }

    .btn-mok {
      background: #dc2626;
      color: white
    }

    .btn-mok:hover {
      background: #b91c1c
    }

    .btn-mok-warn {
      background: #d97706;
      color: white
    }

    .btn-mok-warn:hover {
      background: #b45309
    }

    /* TOAST */
    .toast {
      position: fixed;
      bottom: 22px;
      right: 22px;
      background: #0f1f3d;
      color: white;
      padding: 13px 18px;
      border-radius: 12px;
      font-size: 13px;
      font-weight: 600;
      box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
      z-index: 2000;
      display: none
    }

    .toast.show {
      display: flex;
      align-items: center;
      gap: 7px;
      animation: slideIn .3s ease
    }

    @keyframes slideIn {
      from {
        transform: translateY(16px);
        opacity: 0
      }

      to {
        transform: translateY(0);
        opacity: 1
      }
    }

    /* EMPTY */
    .empty {
      text-align: center;
      padding: 36px 20px;
      color: #6b7a99
    }

    .empty .e-icon {
      font-size: 36px;
      margin-bottom: 9px
    }

    .empty p {
      font-size: 13px
    }

    /* ADMIN STYLES */
    .user-table {
      width: 100%;
      border-collapse: collapse
    }

    .user-table th {
      text-align: left;
      padding: 8px 12px;
      font-size: 11px;
      font-weight: 700;
      color: #6b7a99;
      text-transform: uppercase;
      letter-spacing: .5px;
      border-bottom: 1px solid #d0d7e8
    }

    .user-table td {
      padding: 11px 12px;
      font-size: 13px;
      color: #0f1f3d;
      border-bottom: 1px solid #eef0f7
    }

    .user-table tr:last-child td {
      border-bottom: none
    }

    .user-table tr:hover td {
      background: #f0f4fb
    }

    .role-pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 700
    }

    .rp-admin {
      background: rgba(220, 38, 38, .1);
      color: #dc2626
    }

    .rp-l1 {
      background: rgba(30, 58, 110, .1);
      color: #1e3a6e
    }

    .rp-l2 {
      background: rgba(196, 154, 42, .12);
      color: #a07820
    }

    /* FILTER BAR */
    .filter-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px;
      flex-wrap: wrap
    }

    .filter-select {
      background: #f0f2f7;
      border: 1.5px solid #d0d7e8;
      border-radius: 9px;
      padding: 8px 12px;
      color: #0f1f3d;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 12px;
      outline: none;
      cursor: pointer;
      font-weight: 600
    }

    .filter-select:focus {
      border-color: #1e3a6e
    }

    .filter-label {
      font-size: 12px;
      color: #6b7a99;
      font-weight: 600
    }

    /* TABS */
    .admin-tabs {
      display: flex;
      gap: 6px;
      margin-bottom: 20px
    }

    .admin-tab {
      padding: 9px 18px;
      border-radius: 10px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 700;
      border: 2px solid #d0d7e8;
      background: white;
      color: #6b7a99;
      transition: all .15s
    }

    .admin-tab.active {
      border-color: #0f1f3d;
      background: #0f1f3d;
      color: white
    }

    /* PER-ROLE DASHBOARD SECTION */
    .role-section {
      background: white;
      border-radius: 14px;
      border: 1px solid #d0d7e8;
      margin-bottom: 18px;
      overflow: hidden
    }

    .role-section-header {
      padding: 16px 18px;
      border-bottom: 1px solid #d0d7e8;
      display: flex;
      align-items: center;
      justify-content: space-between
    }

    .role-section-title {
      font-size: 15px;
      font-weight: 800;
      color: #0f1f3d;
      display: flex;
      align-items: center;
      gap: 9px
    }

    .role-section-body {
      padding: 18px
    }

    /* DIVIDER */
    .divider {
      height: 1px;
      background: #e8ecf4;
      margin: 18px 0
    }

    /* PAGINATION */
    .pagination-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 24px 4px 4px;
      flex-wrap: wrap;
      gap: 8px
    }

    .pagination-info {
      font-size: 13px;
      color: #64748b;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .pagination-controls {
      display: flex;
      align-items: center;
      gap: 6px
    }

    .pg-btn {
      min-width: 36px;
      height: 36px;
      padding: 0 8px;
      border: none;
      border-radius: 8px;
      background: transparent;
      color: #475569;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: all .2s;
      display: inline-flex;
      align-items: center;
      justify-content: center
    }

    .pg-btn:hover:not(:disabled) {
      background: #f1f5f9;
      color: #1e293b
    }

    .pg-btn.active {
      background: #4f46e5;
      color: white;
      box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3)
    }

    .pg-btn:disabled {
      opacity: .4;
      cursor: not-allowed
    }

    .pg-ellipsis {
      font-size: 13px;
      color: #94a3b8;
      padding: 0 6px;
      line-height: 36px;
      font-weight: 700;
    }

    /* BARS UI */
    .mod-bars-header {
      display: flex;
      align-items: center;
      gap: 24px;
      padding: 24px 32px;
      background: linear-gradient(to right, #ffffff, #f8fafc);
      border-radius: 16px;
      border: 1px solid #e2e8f0;
      margin-bottom: 24px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    }

    .mod-bars-header-icon {
      width: 72px;
      height: 72px;
      background: #ffffff;
      border-radius: 16px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      color: #3b82f6;
      position: relative;
      z-index: 2;
    }

    .mod-bars-header-icon::after {
      content: '\f005';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      position: absolute;
      bottom: -6px;
      right: -6px;
      font-size: 14px;
      background: #3b82f6;
      color: white;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 3px solid white;
    }

    .mod-bars-header-content h1 {
      font-size: 26px;
      color: #0f1f3d;
      margin-bottom: 6px;
      font-weight: 800;
    }

    .mod-bars-header-content p {
      color: #64748b;
      font-size: 14px;
    }

    .bars-category {
      background: #ffffff;
      padding: 32px;
      border-radius: 16px;
      border: 1px solid #e2e8f0;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }

    .bars-cat-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px dashed #cbd5e1;
      padding-bottom: 16px;
      margin-bottom: 24px;
    }

    .bars-cat-title {
      font-size: 18px;
      font-weight: 700;
      color: #0f1f3d;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .bars-cat-icon {
      color: white;
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      background: #3b82f6;
    }

    .bars-cat-info {
      font-size: 12px;
      color: #3b82f6;
      background: #eff6ff;
      padding: 8px 14px;
      border-radius: 20px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
      border: 1px solid #bfdbfe;
    }

    .bars-item {
      display: flex;
      gap: 24px;
      margin-bottom: 24px;
      align-items: stretch;
    }

    .bars-item:last-child {
      margin-bottom: 0;
    }

    .bars-title-box {
      width: 220px;
      display: flex;
      align-items: center;
      gap: 16px;
      flex-shrink: 0;
    }

    .bars-title-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
    }

    .bars-title-text {
      font-weight: 700;
      color: #1e293b;
      font-size: 13px;
      line-height: 1.4;
    }

    .icon-purple {
      background: #f3e8ff;
      color: #9333ea;
    }

    .icon-green {
      background: #dcfce7;
      color: #16a34a;
    }

    .icon-orange {
      background: #fef3c7;
      color: #d97706;
    }

    .icon-red {
      background: #fee2e2;
      color: #ef4444;
    }

    .icon-teal {
      background: #ccfbf1;
      color: #0d9488;
    }

    .icon-blue {
      background: #dbeafe;
      color: #2563eb;
    }

    .icon-yellow {
      background: #fef08a;
      color: #ca8a04;
    }

    .icon-pink {
      background: #fce7f3;
      color: #db2777;
    }

    .bars-grid {
      flex: 1;
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 12px;
    }

    .bars-card {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 12px 16px;
      cursor: pointer;
      transition: all 0.2s;
      position: relative;
      background: #ffffff;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 8px;
    }

    .bars-card:hover {
      border-color: #93c5fd;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    }

    .bars-card.selected {
      border-color: #3b82f6;
      background: #eff6ff;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    }

    .bars-card-radio {
      width: 16px;
      height: 16px;
      border: 2px solid #cbd5e1;
      border-radius: 50%;
      position: absolute;
      left: 12px;
      top: 12px;
      transition: all 0.2s;
      background: #fff;
    }

    .bars-card.selected .bars-card-radio {
      border-color: #3b82f6;
      border-width: 5px;
    }

    .bars-card-num {
      font-size: 16px;
      font-weight: 800;
      color: #0f1f3d;
      margin-top: 4px;
    }

    .bars-card.selected .bars-card-num {
      color: #1d4ed8;
    }

    .bars-card-desc {
      font-size: 11px;
      color: #64748b;
      line-height: 1.3;
    }

    .bars-card.selected .bars-card-desc {
      color: #1e40af;
      font-weight: 500;
    }

    .bars-legend {
      display: flex;
      align-items: center;
      background: #ffffff;
      padding: 20px 24px;
      border-radius: 16px;
      border: 1px solid #e2e8f0;
      margin-top: 24px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
      gap: 20px;
      flex-wrap: wrap;
    }

    .bars-legend-title {
      font-weight: 700;
      color: #3b82f6;
      font-size: 13px;
      margin-right: 12px;
    }

    .bars-legend-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: #64748b;
    }

    .bars-legend-circle {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 11px;
      color: #fff;
    }

    .circle-0 {
      background: #64748b;
      color: #fff;
    }

    .circle-1 {
      background: #fca5a5;
    }

    .circle-2 {
      background: #fcd34d;
    }

    .circle-3 {
      background: #fef08a;
      color: #ca8a04;
    }

    .circle-4 {
      background: #86efac;
    }

    .circle-5 {
      background: #93c5fd;
    }

    @media (max-width: 1024px) {
      .bars-item {
        flex-direction: column;
        gap: 12px;
      }

      .bars-title-box {
        width: 100%;
      }
    }

    @media (max-width: 768px) {
      .bars-grid {
        grid-template-columns: 1fr;
      }

      .bars-card {
        flex-direction: row;
        text-align: left;
        padding: 12px 16px;
        padding-left: 40px;
      }

      .bars-card-radio {
        top: 50%;
        transform: translateY(-50%);
      }

      .bars-card-num {
        margin-top: 0;
      }
    }

    /* DETAIL TASK MODAL */
    .dt-tabs {
      display: flex;
      gap: 16px;
      border-bottom: 1px solid #e2e8f0;
      margin-bottom: 20px;
    }

    .dt-tab {
      padding: 10px 16px;
      font-weight: 700;
      color: #64748b;
      border-bottom: 2px solid transparent;
      cursor: pointer;
      font-size: 14px;
      transition: all .2s;
    }

    .dt-tab.active {
      color: #4f46e5;
      border-bottom-color: #4f46e5;
    }

    .dt-panel {
      display: none;
    }

    .dt-panel.active {
      display: block;
    }

    .dt-progress-wrap {
      margin: 20px 0;
      background: #f8fafc;
      padding: 16px;
      border-radius: 12px;
      border: 1px solid #e2e8f0;
    }

    .dt-slider {
      width: 100%;
      cursor: pointer;
    }

    .dt-checklist-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px;
      background: #fff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      margin-bottom: 8px;
      transition: all .2s;
    }

    .dt-checklist-item.done {
      opacity: 0.6;
      text-decoration: line-through;
      background: #f8fafc;
    }

    .dt-check-btn {
      width: 24px;
      height: 24px;
      border: 2px solid #cbd5e1;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 12px;
      transition: all .2s;
    }

    .dt-checklist-item.done .dt-check-btn {
      background: #10b981;
      border-color: #10b981;
    }

    .dt-check-del {
      color: #ef4444;
      background: transparent;
      border: none;
      cursor: pointer;
      margin-left: auto;
      font-size: 16px;
      opacity: 0.5;
      transition: opacity .2s;
    }

    .dt-check-del:hover {
      opacity: 1;
    }

    .dt-log-item {
      display: flex;
      gap: 12px;
      margin-bottom: 16px;
    }

    .dt-log-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #e0e7ff;
      color: #4f46e5;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 12px;
      flex-shrink: 0;
    }

    .dt-log-bubble {
      background: #f1f5f9;
      padding: 12px 16px;
      border-radius: 0 12px 12px 12px;
      font-size: 13px;
      color: #1e293b;
      width: 100%;
      line-height: 1.5;
    }

    .dt-log-time {
      font-size: 11px;
      color: #94a3b8;
      margin-top: 6px;
      display: block;
    }

    .dt-meta-progress {
      margin-top: 12px;
      background: #e2e8f0;
      height: 6px;
      border-radius: 6px;
      overflow: hidden;
    }

    .dt-meta-progress-bar {
      background: #10b981;
      height: 100%;
      transition: width .3s;
    }

    /* REDESIGN TUGAS SAYA */
    .ts-header-wrap {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 24px;
    }

    .ts-title {
      font-size: 24px;
      font-weight: 800;
      color: #0f1f3d;
      margin-bottom: 4px;
    }

    .ts-subtitle {
      font-size: 14px;
      color: #64748b;
    }

    .btn-filter-sort {
      padding: 10px 16px;
      border: 1px solid #e2e8f0;
      background: #fff;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
      color: #475569;
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
      transition: all 0.2s;
    }

    .btn-filter-sort:hover {
      border-color: #cbd5e1;
      background: #f8fafc;
    }

    .ts-stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }

    .ts-stat-card {
      background: #fff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      gap: 16px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    }

    .ts-stat-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 20px;
      flex-shrink: 0;
    }

    .tsi-blue {
      background: #eff6ff;
      color: #3b82f6;
    }

    .tsi-green {
      background: #f0fdf4;
      color: #10b981;
    }

    .tsi-yellow {
      background: #fefce8;
      color: #eab308;
    }

    .tsi-purple {
      background: #faf5ff;
      color: #a855f7;
    }

    .ts-stat-info {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .ts-stat-label {
      font-size: 11px;
      color: #64748b;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .ts-stat-val {
      font-size: 24px;
      font-weight: 800;
      color: #0f1f3d;
      line-height: 1;
    }

    .ts-stat-sub {
      font-size: 11px;
      color: #64748b;
      margin-top: 4px;
    }

    .ts-stat-sub.text-green {
      color: #10b981;
      font-weight: 600;
    }

    .ts-stat-sub.text-purple {
      color: #a855f7;
      font-weight: 600;
    }

    .ts-card {
      background: #fff;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      padding: 20px 24px;
      margin-bottom: 16px;
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 140px;
      gap: 24px;
      align-items: center;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
      transition: all 0.2s;
      position: relative;
      overflow: hidden;
    }

    .ts-card:hover {
      border-color: #cbd5e1;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      transform: translateY(-1px);
    }

    .ts-col-main {
      display: flex;
      gap: 16px;
      align-items: flex-start;
    }

    .ts-card-icon {
      width: 42px;
      height: 42px;
      border-radius: 10px;
      background: #ecfdf5;
      color: #10b981;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 18px;
      flex-shrink: 0;
    }

    .ts-card-info {
      flex: 1;
      min-width: 0;
    }

    .ts-card-title {
      font-size: 16px;
      font-weight: 800;
      color: #0f1f3d;
      margin-bottom: 6px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ts-card-desc {
      font-size: 13px;
      color: #64748b;
      margin-bottom: 16px;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .ts-progress-wrap {
      position: relative;
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    .ts-progress-bar-bg {
      flex: 1;
      height: 6px;
      background: #e2e8f0;
      border-radius: 4px;
      overflow: hidden;
    }

    .ts-progress-bar-fill {
      height: 100%;
      background: #10b981;
      transition: width 0.3s ease;
    }

    .ts-progress-pct {
      font-size: 12px;
      font-weight: 800;
      color: #10b981;
      min-width: 36px;
    }

    .ts-score-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 700;
      background: #10b981;
      color: #fff;
    }

    .ts-score-badge.very-fast {
      background: #3b82f6;
    }

    .ts-score-badge.late {
      background: #ef4444;
    }

    .ts-col-meta {
      display: flex;
      flex-direction: column;
      gap: 12px;
      border-left: 1px solid #f1f5f9;
      padding-left: 16px;
    }

    .ts-meta-item {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 12px;
      color: #475569;
    }

    .ts-meta-icon {
      font-size: 14px;
      color: #94a3b8;
      width: 16px;
      display: flex;
      justify-content: center;
    }

    .ts-meta-icon.ic-red {
      color: #f43f5e;
    }

    .ts-meta-icon.ic-green {
      color: #10b981;
    }

    .ts-meta-icon.ic-purple {
      color: #a855f7;
    }

    .ts-meta-icon.ic-blue {
      color: #3b82f6;
    }

    .ts-meta-content {
      flex: 1;
      overflow: hidden;
    }

    .ts-meta-label {
      font-size: 11px;
      color: #64748b;
      margin-bottom: 2px;
    }

    .ts-meta-val {
      font-weight: 600;
      color: #1e293b;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ts-meta-val.text-purple {
      color: #a855f7;
    }

    .ts-col-action {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      justify-content: center;
      gap: 16px;
      border-left: 1px solid #f1f5f9;
      padding-left: 16px;
      height: 100%;
    }

    .ts-status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 700;
    }

    .ts-status-badge.done {
      background: #ecfdf5;
      color: #10b981;
      border: 1px solid #a7f3d0;
    }

    .ts-status-badge.progress {
      background: #fefce8;
      color: #eab308;
      border: 1px solid #fde047;
    }

    .ts-status-badge.todo {
      background: #f1f5f9;
      color: #64748b;
      border: 1px solid #e2e8f0;
    }

    .btn-ts-action {
      padding: 8px 16px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
      justify-content: center;
      width: 100%;
    }

    .btn-ts-outline {
      background: #fff;
      border: 1px solid #c7d2fe;
      color: #4f46e5;
    }

    .btn-ts-outline:hover {
      background: #eef2ff;
      border-color: #818cf8;
    }

    .btn-ts-primary {
      background: #4f46e5;
      border: 1px solid #4f46e5;
      color: #fff;
    }

    .btn-ts-primary:hover {
      background: #4338ca;
      border-color: #4338ca;
    }

    .ts-footer {
      text-align: center;
      font-size: 12px;
      color: #64748b;
      margin-top: 24px;
      padding-top: 16px;
      border-top: 1px solid #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    @media (max-width: 1200px) {
      .ts-card {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
      }

      .ts-col-action {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        grid-column: span 2;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #f1f5f9;
        padding-top: 16px;
      }

      .btn-ts-action {
        width: auto;
      }
    }

    @media (max-width: 768px) {
      .ts-stats-grid {
        grid-template-columns: 1fr 1fr;
      }

      .ts-card {
        grid-template-columns: 1fr;
      }

      .ts-col-action {
        grid-column: span 1;
      }

      .ts-col-meta {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #f1f5f9;
        padding-top: 16px;
      }
    }

    /* ADMIN TASK TRACKER REDESIGN */
    .adm-tt-banner {
      background: #ffffff;
      border: 1px solid #f1f5f9;
      border-radius: 16px;
      padding: 28px 32px;
      margin-bottom: 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    }

    .adm-tt-banner::after {
      content: '';
      position: absolute;
      right: 0;
      bottom: 0;
      width: 300px;
      height: 100%;
      background-image: radial-gradient(#cbd5e1 2px, transparent 2px);
      background-size: 24px 24px;
      opacity: 0.3;
      pointer-events: none;
    }

    .adm-tt-banner-left {
      display: flex;
      align-items: center;
      gap: 20px;
      z-index: 1;
    }

    .adm-tt-icon-lg {
      width: 68px;
      height: 68px;
      background: #e0e7ff;
      color: #4f46e5;
      border-radius: 16px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 32px;
    }

    .adm-tt-title {
      font-size: 28px;
      font-weight: 800;
      color: #0f1f3d;
      margin-bottom: 6px;
    }

    .adm-tt-subtitle {
      font-size: 15px;
      color: #64748b;
    }

    .adm-btn-create {
      background: #4f46e5;
      color: #fff;
      border: none;
      border-radius: 10px;
      padding: 14px 24px;
      font-size: 15px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
      z-index: 1;
    }

    .adm-btn-create:hover {
      background: #4338ca;
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
    }

    .adm-stats-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }

    .adm-stat-card {
      background: #ffffff;
      border: 1px solid #f1f5f9;
      border-radius: 16px;
      padding: 20px;
      display: flex;
      align-items: center;
      gap: 16px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
      position: relative;
      overflow: hidden;
      padding-bottom: 36px;
    }

    .adm-stat-card .ts-stat-icon {
      border-radius: 12px !important;
      width: 48px;
      height: 48px;
      font-size: 20px;
    }

    .adm-stat-card .ts-stat-val {
      font-size: 28px;
    }

    .adm-stat-card::after {
      content: '';
      position: absolute;
      bottom: 8px;
      right: 16px;
      width: 60px;
      height: 24px;
      background-size: 100% 100%;
      background-repeat: no-repeat;
      opacity: 0.8;
    }

    .adm-stat-card.sc-total::after {
      background-image: url('data:image/svg+xml;utf8,<svg preserveAspectRatio="none" viewBox="0 0 100 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 15 Q 10 5, 20 10 T 40 10 T 60 15 T 80 5 T 100 0" fill="none" stroke="%233b82f6" stroke-width="2"/></svg>');
    }

    .adm-stat-card.sc-done::after {
      background-image: url('data:image/svg+xml;utf8,<svg preserveAspectRatio="none" viewBox="0 0 100 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 20 Q 20 10, 40 15 T 70 5 T 100 0" fill="none" stroke="%2310b981" stroke-width="2"/></svg>');
    }

    .adm-stat-card.sc-prog::after {
      background-image: url('data:image/svg+xml;utf8,<svg preserveAspectRatio="none" viewBox="0 0 100 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 20 Q 30 20, 50 15 T 80 15 T 100 10" fill="none" stroke="%23f59e0b" stroke-width="2"/></svg>');
    }

    .adm-stat-card.sc-late::after {
      background-image: url('data:image/svg+xml;utf8,<svg preserveAspectRatio="none" viewBox="0 0 100 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 20 Q 20 18, 40 18 T 60 15 T 80 5 T 100 10" fill="none" stroke="%23e11d48" stroke-width="2"/></svg>');
    }

    .adm-stat-card.sc-score::after {
      background-image: url('data:image/svg+xml;utf8,<svg preserveAspectRatio="none" viewBox="0 0 100 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 20 Q 20 10, 30 15 T 50 20 T 70 5 T 80 10 T 100 0" fill="none" stroke="%238b5cf6" stroke-width="2"/></svg>');
    }

    .adm-task-card {
      background: #ffffff;
      border: 1px solid #f1f5f9;
      border-left: 8px solid #10b981;
      border-radius: 16px;
      padding: 24px 32px;
      margin-bottom: 20px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
      transition: all 0.2s;
      position: relative;
    }

    .adm-task-card.border-prog {
      border-left-color: #f59e0b;
    }

    .adm-task-card.border-todo {
      border-left-color: #64748b;
    }

    .adm-task-card:hover {
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
      transform: translateY(-2px);
    }

    .adm-tc-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 20px;
    }

    .adm-tc-header-left {
      display: flex;
      gap: 20px;
      flex: 1;
      min-width: 0;
    }

    .adm-tc-icon {
      width: 56px;
      height: 56px;
      border-radius: 12px;
      background: #ecfdf5;
      color: #10b981;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 24px;
      flex-shrink: 0;
    }

    .adm-tc-icon.prog {
      background: #fefce8;
      color: #eab308;
    }

    .adm-tc-icon.todo {
      background: #f1f5f9;
      color: #64748b;
    }

    .adm-tc-title-wrap {
      flex: 1;
      overflow: hidden;
      padding-top: 2px;
    }

    .adm-tc-title {
      font-size: 20px;
      font-weight: 800;
      color: #0f1f3d;
      margin-bottom: 6px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .adm-tc-desc {
      font-size: 14px;
      color: #475569;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .adm-tc-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .adm-btn-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 14px;
      cursor: pointer;
      border: 1px solid transparent;
      transition: all 0.2s;
    }

    .adm-btn-search {
      background: #eff6ff;
      color: #3b82f6;
    }

    .adm-btn-search:hover {
      background: #dbeafe;
    }

    .adm-btn-edit {
      background: #fff7ed;
      color: #f97316;
    }

    .adm-btn-edit:hover {
      background: #ffedd5;
    }

    .adm-btn-del {
      background: #fef2f2;
      color: #ef4444;
    }

    .adm-btn-del:hover {
      background: #fee2e2;
    }

    .adm-status-pill {
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .adm-status-pill.done {
      background: #ecfdf5;
      color: #10b981;
    }

    .adm-tc-mid {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 24px;
      margin-bottom: 20px;
      padding: 16px 0;
      border-top: 1px dashed #e2e8f0;
      border-bottom: 1px dashed #e2e8f0;
      font-size: 14px;
      color: #475569;
    }

    .adm-tcm-item {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .adm-tcm-divider {
      width: 1px;
      height: 20px;
      background: #e2e8f0;
    }

    .adm-tc-bottom {
      display: flex;
      align-items: center;
      gap: 24px;
      flex-wrap: wrap;
    }

    .adm-tcb-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: #475569;
    }

    .adm-tcb-icon {
      font-size: 16px;
      width: 20px;
      text-align: center;
    }

    @media (max-width: 1200px) {
      .adm-stats-grid {
        grid-template-columns: repeat(3, 1fr);
      }

      .adm-tt-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
      }

      .adm-btn-create {
        width: 100%;
        justify-content: center;
      }
    }

    @media (max-width: 1200px) {
      .adm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .adm-tc-top {
        flex-direction: column;
        gap: 16px;
      }

      .adm-tc-actions {
        width: 100%;
        justify-content: flex-end;
      }

      .adm-tcm-divider {
        display: none;
      }

      .stat-grid,
      .stat-grid-3,
      .shift-row,
      .two-col,
      .two-col-3 {
        grid-template-columns: repeat(2, 1fr);
      }

      .ticket-table,
      table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
      }

      .page-header {
        flex-direction: column;
        align-items: stretch;
      }

      .page-header>div {
        flex-wrap: wrap;
      }

      .filter-select {
        flex: 1;
        min-width: 0 !important;
      }
    }

    @media (max-width: 768px) {
      .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
      }

      .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
      }

      .main {
        margin-left: 0;
        padding: 16px 12px;
      }

      .menu-toggle {
        display: block !important;
      }

      .topbar {
        padding: 14px 16px;
      }

      .topbar-right {
        display: none;
      }

      .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
      }

      .sidebar-overlay.open {
        display: block;
      }

      .stat-grid,
      .stat-grid-3,
      .shift-row,
      .two-col,
      .two-col-3 {
        grid-template-columns: 1fr;
      }

      .page {
        padding: 16px 12px;
      }

      .card {
        padding: 14px;
      }

      .donut-container {
        flex-direction: column;
        gap: 16px;
        min-height: auto;
      }

      .donut-svg {
        width: 140px;
        height: 140px;
      }

      .donut-legend {
        font-size: 13px;
        align-items: center;
        text-align: center;
      }

      .page-header-left h1 {
        font-size: 22px;
      }

      div[id*="table-wrap"] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
      }

      .ticket-table {
        min-width: 600px;
      }

      .shift-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
      }

      .shift-left {
        flex-direction: column;
        gap: 6px;
      }

      .shift-right {
        text-align: center;
      }

      /* Additional portrait fixes */
      .login-card {
        flex-direction: column;
        width: calc(100% - 32px);
        max-width: none;
        min-height: auto;
        margin: 16px;
      }

      .login-left,
      .login-right {
        padding: 24px;
        text-align: center;
      }

      .login-logo {
        justify-content: center;
        margin-bottom: 24px;
      }

      .login-ill {
        display: none;
      }

      .login-title {
        font-size: 28px;
      }

      .sop-tabs-container {
        flex-direction: column;
        gap: 8px !important;
      }

      .sop-tabs-container button {
        width: 100%;
      }
    }
