/* SFA Creative Space - stylesheet aplikasi (dipisah dari Index.html) */
    :root {
      --sfa-red: #d31424;
      --sfa-red-hover: #b9101f;
      --sfa-red-light: #fee2e2;
      --sfa-red-subtle: #fef2f2;
      --sfa-dark: #0f172a;
      --sfa-slate: #1e293b;
      --sfa-charcoal: #334155;
      --sfa-bg: #f8fafc;
      --sfa-surface: #ffffff;
      --sfa-border: #f1f5f9;
      --sfa-border-dark: #e2e8f0;
      --sfa-muted: #64748b;
      --sfa-subtle: #94a3b8;
      --sfa-success: #10b981;
      --sfa-success-light: #d1fae5;
      --sfa-danger: #ef4444;
      --sfa-warning: #f59e0b;
      --sfa-warning-light: #fef3c7;
      --sfa-info: #3b82f6;
      --sfa-info-light: #dbeafe;
      --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      --card-radius: 18px;
      --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    ::selection { background-color: var(--sfa-red); color: #ffffff; }
    body {
      font-family: var(--font-sans);
      background-color: var(--sfa-bg);
      color: var(--sfa-dark);
      height: 100vh;
      overflow: hidden;
      font-size: 13.5px;
      -webkit-tap-highlight-color: transparent;
    }
    #sfa-splash {
      position: fixed; inset: 0; z-index: 40000; display: flex; align-items: center; justify-content: center;
      background:
        radial-gradient(900px 480px at 50% -8%, rgba(211, 20, 36, 0.28), transparent 62%),
        radial-gradient(700px 420px at 50% 115%, rgba(59, 130, 246, 0.10), transparent 60%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 14px),
        var(--sfa-dark);
      color: #fff; font-family: var(--font-sans);
      transition: opacity 0.45s ease, visibility 0.45s ease;
    }
    #sfa-splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
    #sfa-splash.is-hidden .splash-inner { transform: scale(0.98); }
    .splash-inner {
      width: min(380px, calc(100vw - 48px)); display: flex; flex-direction: column; align-items: center; text-align: center;
      transition: transform 0.45s ease;
    }
    .splash-mark { position: relative; width: 92px; height: 92px; }
    .splash-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
    .splash-mark-fill {
      position: absolute; inset: 10px; border-radius: 22px; background: var(--sfa-red);
      display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; letter-spacing: 0.5px;
      box-shadow: 0 18px 44px -12px rgba(211, 20, 36, 0.75);
      animation: splashMarkIn 0.7s cubic-bezier(.2,.8,.2,1) both;
    }
    .splash-stitch {
      fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.6; stroke-linecap: round;
      stroke-dasharray: 5 6; animation: splashStitch 1.6s linear infinite;
    }
    .splash-thread {
      fill: none; stroke: var(--sfa-red); stroke-width: 2.2; stroke-linecap: round;
      stroke-dasharray: 80 400; animation: splashThread 2.2s ease-in-out infinite;
    }
    @keyframes splashMarkIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    @keyframes splashStitch { to { stroke-dashoffset: -22; } }
    @keyframes splashThread { 0% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -480; } }
    .splash-title { margin-top: 28px; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; animation: splashRise 0.6s 0.15s ease both; }
    .splash-tagline {
      margin-top: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--sfa-subtle);
      animation: splashRise 0.6s 0.25s ease both;
    }
    @keyframes splashRise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
    .splash-progress { width: 100%; margin-top: 32px; animation: splashRise 0.6s 0.35s ease both; }
    .splash-progress-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; color: #cbd5e1; }
    .splash-percent { font-variant-numeric: tabular-nums; font-weight: 800; color: #fff; font-family: var(--font-mono); }
    .splash-track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.10); overflow: hidden; }
    .splash-bar {
      position: absolute; top: 0; left: 0; bottom: 0; width: 0%; border-radius: 4px;
      background: linear-gradient(90deg, #b9101f, var(--sfa-red) 60%, #ff5a67);
      transition: width 0.45s ease; box-shadow: 0 0 12px rgba(211, 20, 36, 0.6);
    }
    .splash-bar::after {
      content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
      transform: translateX(-100%); animation: splashShine 1.4s ease-in-out infinite;
    }
    @keyframes splashShine { to { transform: translateX(100%); } }
    .splash-steps { display: flex; justify-content: space-between; margin-top: 16px; gap: 8px; }
    .splash-step { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: #64748b; transition: color 0.3s ease; }
    .splash-step::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #334155; transition: background 0.3s ease, box-shadow 0.3s ease; flex: none; }
    .splash-step.is-active { color: #e2e8f0; }
    .splash-step.is-active::before { background: var(--sfa-red); box-shadow: 0 0 0 4px rgba(211, 20, 36, 0.25); }
    .splash-step.is-done { color: #94a3b8; }
    .splash-step.is-done::before { background: var(--sfa-success); }
    .splash-footer { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #475569; font-weight: 700; }
    #login-overlay {
      position: fixed; inset: 0; z-index: 10000; background: var(--sfa-bg);
      display: flex; align-items: center; justify-content: center; padding: 20px;
    }
    .login-box {
      background: #ffffff; border: 1px solid var(--sfa-border-dark); border-radius: 24px;
      padding: 38px 34px; width: 100%; max-width: 420px; box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08);
      position: relative; overflow: hidden;
    }
    .login-logo {
      width: 58px; height: 58px; border-radius: 18px; background-color: var(--sfa-red);
      color: #ffffff; font-weight: 900; font-size: 24px; display: flex; align-items: center;
      justify-content: center; margin: 0 auto 16px auto; box-shadow: 0 8px 24px rgba(211, 20, 36, 0.35);
    }
    .login-title { font-size: 20px; font-weight: 800; color: var(--sfa-dark); text-align: center; letter-spacing: -0.4px; }
    .login-subtitle { font-size: 12px; color: var(--sfa-muted); text-align: center; margin-top: 4px; font-weight: 500; }
    .login-alert {
      display: none; align-items: flex-start; gap: 10px; margin: 16px 0 14px; padding: 11px 12px; border-radius: 12px;
      background: var(--sfa-red-subtle); border: 1px solid #fecaca; color: #991b1b; font-size: 12px; font-weight: 600; line-height: 1.5;
    }
    .login-alert.is-visible { display: flex; }
    .login-alert-icon {
      flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--sfa-red); color: #fff;
      font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; margin-top: 1px;
    }
    .login-box.is-shaking { animation: loginShake 0.42s ease; }
    @keyframes loginShake {
      0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); }
      60% { transform: translateX(-5px); } 80% { transform: translateX(3px); }
    }
    .login-footer-note {
      margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--sfa-border-dark); font-size: 10.5px;
      color: var(--sfa-subtle); text-align: center; font-weight: 600; letter-spacing: 0.3px;
    }
    #app-container { display: none; height: 100vh; width: 100vw; overflow: hidden; position: relative; }
    #sidebar-overlay {
      display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); z-index: 40; backdrop-filter: blur(2px);
    }
    #sidebar-overlay.active { display: block; }
    #sidebar {
      width: 260px; background-color: var(--sfa-dark); color: #FFF;
      display: flex; flex-direction: column; flex-shrink: 0; height: 100vh;
      overflow-y: auto; border-right: 1px solid var(--sfa-slate); z-index: 50;
      transition: width 0.25s ease-in-out, transform 0.25s ease-in-out;
    }
    #sidebar.collapsed { width: 78px; }
    #sidebar.collapsed .sidebar-text, #sidebar.collapsed .brand-details, #sidebar.collapsed .user-meta { display: none; }
    #sidebar.collapsed .brand-header { justify-content: center; padding: 22px 10px; }
    @media (max-width: 768px) {
      #sidebar { position: fixed; top: 0; bottom: 0; left: 0; transform: translateX(-100%); }
      #sidebar.drawer-open { transform: translateX(0); }
    }
    .brand-header {
      padding: 22px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--sfa-slate);
    }
    .brand-logo-mark {
      background-color: var(--sfa-red); color: #ffffff; font-weight: 900; font-size: 13px;
      padding: 8px 11px; border-radius: 12px; letter-spacing: 0.5px; box-shadow: 0 4px 14px rgba(211, 20, 36, 0.35);
      flex-shrink: 0;
    }
    .brand-details { display: flex; flex-direction: column; overflow: hidden; }
    .brand-name { font-size: 13px; letter-spacing: -0.2px; font-weight: 800; color: #ffffff; white-space: nowrap; }
    .brand-tagline { font-size: 9.5px; letter-spacing: 0.8px; color: #94a3b8; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
    .nav-menu { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 5px; }
    .nav-item {
      display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: #94a3b8;
      background: transparent; border: none; width: 100%; text-align: left; border-radius: 12px;
      cursor: pointer; font-size: 12.5px; font-weight: 600; font-family: inherit; transition: all 0.2s ease-in-out;
    }
    .nav-item i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
    .nav-item:hover { background-color: var(--sfa-slate); color: #ffffff; }
    .nav-item.active { background-color: var(--sfa-red); color: #ffffff; font-weight: 700; box-shadow: 0 4px 16px rgba(211, 20, 36, 0.3); }
    .sidebar-footer {
      padding: 14px 16px; border-top: 1px solid var(--sfa-slate); margin-top: auto;
      display: flex; align-items: center; justify-content: space-between;
    }
    .user-pill { display: flex; align-items: center; gap: 10px; overflow: hidden; }
    .avatar-circle {
      width: 34px; height: 34px; border-radius: 10px; background-color: var(--sfa-slate);
      border: 1px solid rgba(255, 255, 255, 0.1); color: #ffffff; display: flex; align-items: center; justify-content: center;
      font-weight: 800; font-size: 12px; flex-shrink: 0;
    }
    .user-meta { display: flex; flex-direction: column; font-size: 11px; overflow: hidden; }
    .user-name { font-weight: 700; color: #FFF; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
    .user-role { color: #94a3b8; font-size: 10px; font-weight: 500; }
    .btn-logout { background: transparent; border: none; color: #94a3b8; cursor: pointer; padding: 6px; border-radius: 8px; transition: color 0.2s; }
    .btn-logout:hover { color: var(--sfa-red); }
    #main-content {
      flex: 1; display: flex; flex-direction: column; height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch; min-width: 0;
    }
    #top-bar {
      min-height: 64px; background: var(--sfa-surface); border-bottom: 1px solid var(--sfa-border-dark);
      display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; flex-shrink: 0; gap: 12px;
      position: sticky; top: 0; z-index: 20;
    }
    .top-left-group { display: flex; align-items: center; gap: 12px; }
    .menu-burger-btn {
      background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 10px;
      cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--sfa-dark); flex-shrink: 0;
    }
    .menu-burger-btn:hover { background: #e2e8f0; }
    .search-wrapper {
      display: flex; align-items: center; gap: 8px; background: var(--sfa-bg);
      border: 1px solid var(--sfa-border-dark); border-radius: 12px; padding: 7px 14px; width: 320px; transition: all 0.2s ease;
    }
    .search-wrapper:focus-within { border-color: var(--sfa-red); box-shadow: 0 0 0 3px rgba(211, 20, 36, 0.1); }
    .search-wrapper input { border: none; background: transparent; outline: none; width: 100%; font-size: 12px; font-family: inherit; color: var(--sfa-dark); }
    @media (max-width: 640px) { .search-wrapper { display: none; } }
    .top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
    .clock-display { font-size: 11.5px; font-weight: 700; color: var(--sfa-muted); white-space: nowrap; }
    .content-view { display: none; padding: 24px 24px 80px 24px; flex: 1; max-width: 1400px; width: 100%; margin: 0 auto; }
    .content-view.active { display: block; }
    @media (max-width: 640px) { .content-view { padding: 16px 16px 80px 16px; } }
    .view-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
    .view-title { font-size: 20px; color: var(--sfa-dark); font-weight: 800; letter-spacing: -0.4px; }
    .view-subtitle { color: var(--sfa-muted); font-size: 12px; font-weight: 500; margin-top: 3px; }
    .card {
      background: var(--sfa-surface); border: 1px solid var(--sfa-border);
      border-radius: var(--card-radius); padding: 20px; box-shadow: var(--card-shadow); transition: all 0.2s ease-in-out;
    }
    .card:hover { border-color: var(--sfa-border-dark); }
    .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
    .card-title { font-size: 14px; font-weight: 800; color: var(--sfa-dark); letter-spacing: -0.3px; }
    .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
    .kpi-card { display: flex; flex-direction: column; padding: 16px 18px; }
    .kpi-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--sfa-muted); font-weight: 800; }
    .kpi-number { font-size: 22px; font-weight: 900; color: var(--sfa-dark); margin: 6px 0 2px 0; letter-spacing: -0.5px; font-family: var(--font-mono); }
    .kpi-subtext { font-size: 11px; color: var(--sfa-red); font-weight: 700; }
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: 10px;
      font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      border: 1px solid transparent; font-family: inherit; white-space: nowrap; user-select: none;
    }
    .btn:active { transform: scale(0.97); }
    .btn-primary { background-color: var(--sfa-red); color: #FFF; box-shadow: 0 4px 12px rgba(211, 20, 36, 0.25); }
    .btn-primary:hover { background-color: var(--sfa-red-hover); }
    .btn-secondary { background-color: var(--sfa-surface); border-color: var(--sfa-border-dark); color: var(--sfa-dark); }
    .btn-secondary:hover { background-color: var(--sfa-bg); }
    .btn-danger { background-color: #fee2e2; color: #991b1b; border-color: #fecaca; }
    .btn-danger:hover { background-color: #fca5a5; }
    .btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 8px; }
    .badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 8px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
    .badge-draft { background: #f1f5f9; color: #475569; }
    .badge-ongoing { background: var(--sfa-warning-light); color: #b45309; }
    .badge-ready { background: var(--sfa-info-light); color: #1e40af; }
    .badge-done { background: var(--sfa-success-light); color: #065f46; }
    .badge-posted { background: var(--sfa-dark); color: #ffffff; }
    .badge-priority { background: var(--sfa-red-light); color: var(--sfa-red); }
    .badge-neutral { background: var(--sfa-bg); color: var(--sfa-muted); padding: 4px 8px; border-radius: 8px; font-size: 10.5px; font-weight: 700; border: 1px solid var(--sfa-border-dark); }
    /* Approval Badges */
    .badge-appr-approved { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
    .badge-appr-pending { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
    .badge-appr-revisi { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
    .badge-appr-rejected { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
    /* Tables */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; margin-top: 4px; }
    .data-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; font-size: 12px; }
    .data-table th {
      background-color: var(--sfa-bg); color: var(--sfa-muted); font-weight: 800; padding: 11px 12px;
      border-bottom: 1px solid var(--sfa-border-dark); text-transform: uppercase; font-size: 9.5px; letter-spacing: 0.6px; white-space: nowrap;
    }
    .data-table td { padding: 12px; border-bottom: 1px solid var(--sfa-border); color: var(--sfa-dark); vertical-align: middle; }
    .data-table tr:hover td { background-color: var(--sfa-bg); }
    .table-empty { text-align: center; color: var(--sfa-muted); padding: 32px !important; font-weight: 600; }
    .modal-backdrop {
      display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.65);
      z-index: 1000; align-items: center; justify-content: center; padding: 14px;
      overflow-y: auto; backdrop-filter: blur(4px);
    }
    .modal-backdrop.active { display: flex; }
    .modal-dialog {
      background: var(--sfa-surface); border-radius: 20px; width: 100%; max-height: 92vh;
      display: flex; flex-direction: column; box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
      border: 1px solid var(--sfa-border); overflow: hidden; position: relative;
    }
    .modal-lg { max-width: 820px; }
    /* Fix: Constrain modal form so modal-body can scroll and modal-footer is always visible */
    .modal-dialog form {
      display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; height: 100%;
    }
    .modal-header {
      padding: 16px 22px; border-bottom: 1px solid var(--sfa-border-dark); display: flex; justify-content: space-between; align-items: flex-start;
      background: #fcfdfe; flex-shrink: 0;
    }
    .modal-title { font-size: 17px; font-weight: 800; color: var(--sfa-dark); }
    .modal-meta { color: var(--sfa-muted); font-size: 11.5px; font-weight: 600; margin-top: 3px; }
    .modal-close {
      background: #f1f5f9; border: none; width: 30px; height: 30px; border-radius: 8px;
      font-size: 16px; cursor: pointer; color: var(--sfa-muted); display: flex; align-items: center; justify-content: center;
      transition: all 0.2s ease; flex-shrink: 0;
    }
    .modal-close:hover { background: #e2e8f0; color: var(--sfa-dark); }
    .modal-body { padding: 20px 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; min-height: 0; }
    .modal-footer {
      padding: 14px 22px; border-top: 1px solid var(--sfa-border-dark); display: flex; justify-content: flex-end; gap: 8px;
      background: #fcfdfe; flex-shrink: 0;
    }
    .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
    @media (max-width: 640px) { .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; } }
    .form-group { margin-bottom: 12px; }
    .form-label { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: var(--sfa-muted); margin-bottom: 5px; letter-spacing: 0.5px; }
    .form-input, .form-input-sm {
      width: 100%; padding: 8px 12px; border: 1px solid var(--sfa-border-dark); border-radius: 10px;
      font-family: inherit; font-size: 12.5px; outline: none; background: #f8fafc; color: var(--sfa-dark); transition: all 0.2s ease;
    }
    .form-input:focus, .form-input-sm:focus {
      border-color: var(--sfa-red) !important; background: #ffffff; box-shadow: 0 0 0 3px rgba(211, 20, 36, 0.1) !important;
    }
    .form-section-title {
      font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; font-weight: 800; color: var(--sfa-red);
      border-bottom: 1px solid var(--sfa-border-dark); padding-bottom: 5px; margin-bottom: 12px;
    }
    .input-affix { position: relative; }
    .input-affix .form-input { padding-right: 64px; }
    .input-affix-btn {
      position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer;
      font-family: inherit; font-size: 10.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: var(--sfa-muted);
      padding: 5px 8px; border-radius: 7px;
    }
    .input-affix-btn:hover { color: var(--sfa-dark); background: var(--sfa-border); }
    /* Calendar Grid - Modern Sleek & Anti-Broken Alignment */
    .calendar-wrapper-card {
      padding: 0 !important;
      overflow: hidden;
      border: 1px solid var(--sfa-border-dark);
      background: var(--sfa-surface);
      box-shadow: var(--card-shadow);
      border-radius: var(--card-radius);
    }
    .calendar-table-responsive {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .calendar-table-inner {
      min-width: 740px;
      width: 100%;
    }
    .calendar-days-header {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      background: #f8fafc;
      border-bottom: 1px solid var(--sfa-border-dark);
      text-align: center;
      font-weight: 800;
      font-size: 10.5px;
      color: var(--sfa-muted);
      text-transform: uppercase;
      letter-spacing: 0.6px;
    }
    .calendar-day-head-cell {
      padding: 10px 4px;
      border-right: 1px solid var(--sfa-border-dark);
    }
    .calendar-day-head-cell:last-child {
      border-right: none;
    }
    .calendar-cells-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      background: var(--sfa-border-dark);
      gap: 1px; /* Clean crisp grid separator without double borders */
    }
    .cal-day-cell {
      min-height: 110px;
      height: 120px;
      background: var(--sfa-surface);
      padding: 7px 7px 6px 7px;
      display: flex;
      flex-direction: column;
      position: relative;
      transition: background-color 0.15s ease;
      overflow: hidden;
    }
    .cal-day-cell:hover {
      background-color: #fafbfc;
    }
    .cal-day-cell.inactive-month {
      background-color: #f8fafc;
      opacity: 0.55;
    }
    .cal-cell-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
      flex-shrink: 0;
      line-height: 1;
    }
    .cal-date-number {
      font-size: 11.5px;
      font-weight: 800;
      color: var(--sfa-slate);
      font-family: var(--font-mono);
      width: 22px;
      height: 22px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
    }
    .cal-day-cell.is-today .cal-date-number {
      background: var(--sfa-red);
      color: #ffffff;
      box-shadow: 0 2px 8px rgba(211, 20, 36, 0.4);
    }
    .cal-day-add-btn {
      opacity: 0;
      border: none;
      background: var(--sfa-border);
      color: var(--sfa-dark);
      width: 19px;
      height: 19px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .cal-day-cell:hover .cal-day-add-btn {
      opacity: 1;
    }
    .cal-day-add-btn:hover {
      background: var(--sfa-red);
      color: #fff;
    }
    .cal-events-list {
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding-right: 1px;
    }
    .cal-events-list::-webkit-scrollbar {
      width: 3px;
    }
    .cal-events-list::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 4px;
    }
    /* Content Plan Micro-Card Inside Calendar */
    .cal-event-pill {
      background: var(--sfa-dark);
      color: #ffffff;
      border-radius: 6px;
      padding: 4px 6px;
      font-size: 10px;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.12s ease, box-shadow 0.12s ease;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
      border-left: 3px solid var(--sfa-red);
      display: flex;
      flex-direction: column;
      gap: 2px;
      flex-shrink: 0;
    }
    .cal-event-pill:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    }
    .cal-pill-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 8px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }
    .cal-pill-brand {
      font-size: 7.5px;
      font-weight: 900;
      padding: 1px 4px;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.18);
      letter-spacing: 0.3px;
    }
    .cal-pill-platform {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      color: #cbd5e1;
    }
    .cal-pill-status-dot {
      width: 5.5px;
      height: 5.5px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .cal-pill-name {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: 10px;
      line-height: 1.25;
      color: #f8fafc;
    }
    /* Variant colors by production status */
    .cal-event-pill.status-priority {
      border-left-color: var(--sfa-danger);
    }
    .cal-event-pill.status-priority .cal-pill-status-dot { background: var(--sfa-danger); }
    .cal-event-pill.status-done {
      border-left-color: var(--sfa-success);
    }
    .cal-event-pill.status-done .cal-pill-status-dot { background: var(--sfa-success); }
    .cal-event-pill.status-pending {
      border-left-color: var(--sfa-warning);
    }
    .cal-event-pill.status-pending .cal-pill-status-dot { background: var(--sfa-warning); }
    .cal-event-pill.status-posted {
      border-left-color: #38bdf8;
      background: #090d16;
    }
    .cal-event-pill.status-posted .cal-pill-status-dot { background: #38bdf8; }
    /* Toast */
    #toast-shelf { position: fixed; bottom: 20px; right: 20px; z-index: 20000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
    .toast {
      background: var(--sfa-dark); color: #FFF; padding: 12px 18px; border-radius: 12px;
      box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.25); font-size: 12px; font-weight: 600; border-left: 4px solid var(--sfa-red);
      animation: slideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: auto; max-width: 380px;
    }
    @keyframes slideIn { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    /* Production Funnel visual */
    .funnel-step {
      padding: 12px; border-radius: 14px; border: 1px solid var(--sfa-border-dark); background: var(--sfa-bg);
      display: flex; flex-direction: column; justify-content: space-between;
    }
    .funnel-step.active { border-color: var(--sfa-red); background: var(--sfa-red-subtle); }
  
    /* ===================== v2.0 ADDITIONS ===================== */
    .btn[disabled] { opacity: 0.6; cursor: not-allowed; }
    .md-list { list-style: none; display: flex; flex-direction: column; gap: 8px; max-height: 440px; overflow-y: auto; padding-right: 2px; }
    .md-item { padding: 8px 8px 8px 12px; background: var(--sfa-bg); border-radius: 10px; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; }
    .md-item.is-inactive { opacity: 0.62; border: 1px dashed var(--sfa-border-dark); }
    .md-swatch { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(15, 23, 42, 0.12); }
    .md-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .md-main strong { font-size: 12.5px; color: var(--sfa-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .md-main small { font-size: 10.5px; color: var(--sfa-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .md-actions { display: flex; gap: 4px; flex-shrink: 0; }
    .md-icon-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--sfa-border-dark); background: #fff; color: var(--sfa-charcoal); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
    .md-icon-btn:hover { border-color: var(--sfa-red); color: var(--sfa-red); }
    .md-icon-btn:focus-visible, .btn:focus-visible, .nav-item:focus-visible { outline: 2px solid var(--sfa-red); outline-offset: 2px; }
    .md-group-label { font-size: 10.5px; font-weight: 800; color: var(--sfa-muted); margin: 8px 2px 0; letter-spacing: 0.3px; }
    .md-empty { font-size: 11.5px; color: var(--sfa-muted); padding: 10px 4px; }
    .perf-fields-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; }
    .perf-hint { display: block; font-size: 10.5px; color: var(--sfa-muted); margin-top: 4px; line-height: 1.45; }
    .metric-chip { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 6px; background: var(--sfa-info-light); color: #1e40af; font-weight: 700; white-space: nowrap; }
    .perm-table { min-width: 520px; }
    .perm-table th, .perm-table td { text-align: center; }
    .perm-table th:first-child, .perm-table td:first-child { text-align: left; }
    .perm-yes { color: var(--sfa-success); font-size: 13px; }
    .perm-no { color: #cbd5e1; font-size: 13px; }
    .detail-perf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
    .detail-perf-grid .kpi-number { font-size: 18px; }
    .bench-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
    .badge-asset { background: #ede9fe; color: #6d28d9; }
    .cal-event-pill.status-asset { border-left-color: #8b5cf6; }
    .cal-event-pill.status-asset .cal-pill-status-dot { background: #8b5cf6; }
    .is-clickable { cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
    .is-clickable:hover { border-color: var(--sfa-red) !important; box-shadow: 0 4px 14px rgba(211, 20, 36, 0.08); }
    .kpi-card.is-clickable { border: 1px solid var(--sfa-border-dark); }
    .kpi-hint { font-size: 10px; color: var(--sfa-subtle); margin-top: 6px; }
    #refresh-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--sfa-red); z-index: 30000; opacity: 0; transition: width 0.45s ease, opacity 0.35s ease; pointer-events: none; }
    #refresh-progress.active { opacity: 1; }
    .content-view { transition: opacity 0.25s ease; }
    .content-view.is-refreshing { opacity: 0.55; }
    .refresh-label { font-size: 10.5px; color: var(--sfa-muted); font-weight: 600; }
    #btn-notification-bell.has-unread { background: var(--sfa-red-subtle); border-color: #fecaca; }
    .fb-panel { margin-bottom: 20px; border-radius: 16px; padding: 14px 16px; border: 1.5px solid #fed7aa; background: #fff7ed; box-shadow: 0 4px 14px rgba(234, 88, 12, 0.08); }
    .fb-panel.is-review { border-color: #fde68a; background: #fffbeb; }
    .fb-panel.is-approved { border-color: #bbf7d0; background: #f0fdf4; box-shadow: none; }
    .fb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
    .fb-list { display: flex; flex-direction: column; gap: 8px; }
    .fb-item { background: #fff; border: 1px solid #fed7aa; border-radius: 12px; padding: 10px 12px; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
    .fb-item.is-rejected { border-color: #fecaca; }
    .fb-item.is-unread { box-shadow: inset 3px 0 0 var(--sfa-red); }
    .fb-main { flex: 1; min-width: 220px; }
    .fb-note { margin-top: 6px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 6px 9px; font-size: 11.5px; color: #9a3412; font-weight: 600; white-space: pre-wrap; }
    .fb-item.is-rejected .fb-note { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
    .fb-new { display: inline-block; background: var(--sfa-red); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 6px; letter-spacing: 0.4px; }
    .fb-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
    .alert-banner { margin-bottom: 20px; padding: 12px 16px; border-radius: 16px; border: 1.5px solid #ddd6fe; background: #f5f3ff; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
    .alert-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
    .guide-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
    .guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
    .guide-block { background: var(--sfa-bg); border: 1px solid var(--sfa-border-dark); border-radius: 12px; padding: 12px 14px; font-size: 12px; line-height: 1.6; color: var(--sfa-charcoal); }
    .guide-block h5 { font-size: 11.5px; font-weight: 800; color: var(--sfa-dark); margin-bottom: 4px; }
    .guide-block ol, .guide-block ul { margin: 0 0 0 18px; }
    .guide-details { background: var(--sfa-info-light); border: 1px solid #bfdbfe; border-radius: 12px; padding: 10px 12px; font-size: 12px; }
    .guide-details summary { cursor: pointer; font-weight: 800; color: #1e40af; font-size: 12px; }
    .guide-details[open] summary { margin-bottom: 8px; }
    .guide-details .guide-block { background: #fff; }
    .insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
    .insight-block { background: var(--sfa-bg); border: 1px solid var(--sfa-border-dark); border-radius: 12px; padding: 12px 14px; }
    .insight-block h5 { font-size: 11px; font-weight: 800; color: var(--sfa-red); margin-bottom: 6px; }
    .insight-block p { font-size: 12px; line-height: 1.6; color: var(--sfa-dark); white-space: pre-wrap; }
    .auto-insight { margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--sfa-border-dark); font-size: 11.5px; line-height: 1.7; color: var(--sfa-charcoal); }
    .link-cell a { font-size: 11px; font-weight: 700; color: #1d4ed8; text-decoration: none; word-break: break-all; }
    .print-only { display: none; }
    .imp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .imp-step { border: 1px solid var(--sfa-border-dark); border-radius: 12px; padding: 12px 14px; background: var(--sfa-bg); }
    .imp-step-num { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--sfa-red); color: #fff; font-size: 11px; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 6px; }
    .imp-step strong { display: block; font-size: 12.5px; color: var(--sfa-dark); }
    .imp-step p { font-size: 11px; color: var(--sfa-muted); margin-top: 2px; line-height: 1.5; }
    .imp-dropzone { border: 2px dashed var(--sfa-border-dark); border-radius: 16px; padding: 26px 16px; text-align: center; background: #fff; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; display: block; }
    .imp-dropzone:hover, .imp-dropzone.is-drag { border-color: var(--sfa-red); background: var(--sfa-red-subtle); }
    .imp-dropzone i { font-size: 26px; color: var(--sfa-red); }
    .imp-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
    .imp-stat { border: 1px solid var(--sfa-border-dark); border-radius: 12px; padding: 10px 12px; background: var(--sfa-bg); display: flex; flex-direction: column; }
    .imp-stat span { font-size: 10px; font-weight: 800; color: var(--sfa-muted); text-transform: uppercase; letter-spacing: 0.3px; }
    .imp-stat b { font-size: 20px; font-family: var(--font-mono); color: var(--sfa-dark); }
    .imp-stat.is-ok b { color: var(--sfa-success); } .imp-stat.is-warn b { color: #b45309; } .imp-stat.is-err b { color: var(--sfa-danger); }
    .imp-row-err td { background: #fef2f2; } .imp-row-dup td { background: #fffbeb; }
    .imp-result-head { display: flex; gap: 12px; align-items: flex-start; }
    @media (max-width: 768px) { .imp-steps { grid-template-columns: minmax(0, 1fr); } }

    /* ===================== RESPONSIVE: TABLET & HP ===================== */
    #app-container, #sidebar, #main-content { height: 100vh; height: 100dvh; }
    .mobile-view-title { display: none; font-size: 15px; font-weight: 800; color: var(--sfa-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.3px; min-width: 0; }
    #mobile-tabbar { display: none; }
    .td-val { display: contents; }
    .cal-agenda { display: none; }
    .agenda-day { display: flex; gap: 12px; background: #fff; border: 1px solid var(--sfa-border-dark); border-radius: 14px; padding: 10px 12px 10px 8px; }
    .agenda-day.is-today { border-color: var(--sfa-red); box-shadow: 0 0 0 3px rgba(211, 20, 36, 0.08); }
    .agenda-day.is-past { opacity: 0.72; }
    .agenda-date { width: 44px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding-top: 2px; }
    .agenda-dow { font-size: 10px; font-weight: 800; color: var(--sfa-muted); text-transform: uppercase; }
    .agenda-num { font-size: 21px; font-weight: 900; color: var(--sfa-dark); font-family: var(--font-mono); line-height: 1.1; }
    .agenda-day.is-today .agenda-num, .agenda-day.is-today .agenda-dow { color: var(--sfa-red); }
    .agenda-items { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
    .agenda-item { text-align: left; border: 1px solid var(--sfa-border); border-left: 3px solid var(--sfa-warning); background: var(--sfa-bg); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; font-family: inherit; cursor: pointer; width: 100%; }
    .agenda-item.status-priority { border-left-color: var(--sfa-danger); }
    .agenda-item.status-done { border-left-color: var(--sfa-success); }
    .agenda-item.status-posted { border-left-color: #38bdf8; }
    .agenda-item.status-asset { border-left-color: #8b5cf6; }
    .agenda-title { font-size: 12.5px; font-weight: 800; color: var(--sfa-dark); overflow-wrap: anywhere; }
    .agenda-meta { font-size: 10.5px; color: var(--sfa-muted); font-weight: 600; }
    .agenda-item .badge { align-self: flex-start; }
    .cal-agenda-empty { background: #fff; border: 1px dashed var(--sfa-border-dark); border-radius: 14px; padding: 22px 16px; text-align: center; font-size: 12px; color: var(--sfa-muted); }

    @media (min-width: 1025px) { .menu-burger-btn { display: none; } }
    @media (min-width: 769px) {
      #main-content #funnel-container { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
      #main-content #attention-cards-container { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    }

    /* Tablet & di bawahnya: sidebar menjadi drawer */
    @media (max-width: 1024px) {
      #sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 280px; transform: translateX(-100%); box-shadow: 0 0 40px rgba(15, 23, 42, 0.35); }
      #sidebar.collapsed { width: 280px; }
      #sidebar.collapsed .sidebar-text, #sidebar.collapsed .brand-details, #sidebar.collapsed .user-meta { display: flex; }
      #sidebar.drawer-open { transform: translateX(0); }
      #top-bar { padding: 10px 18px; }
      .top-left-group { flex: 1; min-width: 0; }
      .search-wrapper { width: auto; flex: 1; max-width: 340px; }
      .clock-display { display: none; }
      .content-view { padding: 20px 20px 90px 20px; }
      .form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    /* HP & tablet kecil */
    @media (max-width: 768px) {
      #mobile-tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
        background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--sfa-border-dark); box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); justify-content: space-around; gap: 2px;
      }
      .tab-item { flex: 1; border: none; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px; border-radius: 12px; color: var(--sfa-muted); font-family: inherit; font-size: 10px; font-weight: 700; cursor: pointer; min-height: 50px; -webkit-tap-highlight-color: transparent; }
      .tab-item i { font-size: 17px; }
      .tab-item.active { color: var(--sfa-red); background: var(--sfa-red-subtle); }
      .mobile-view-title { display: block; }
      .search-wrapper { display: none; }
      #top-bar { min-height: 58px; padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
      .top-actions { gap: 6px; }
      #btn-top-add-content span { display: none; }
      #btn-top-add-content { padding: 8px 12px; }
      #notification-popover { position: fixed !important; top: calc(62px + env(safe-area-inset-top, 0px)) !important; left: 10px !important; right: 10px !important; width: auto !important; }
      #notification-popover-list { max-height: 60vh !important; }
      #toast-shelf { left: 12px; right: 12px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
      .toast { max-width: none; }
      .content-view { padding: 14px 12px calc(96px + env(safe-area-inset-bottom, 0px)) 12px; }

      .view-header { flex-direction: column; align-items: stretch; margin-bottom: 14px; gap: 10px; }
      .view-title { font-size: 18px; }
      .view-subtitle { font-size: 11.5px; }
      .view-header > .btn { width: 100%; }
      .view-header > div:not(:first-child) { width: 100%; display: flex; flex-wrap: wrap; gap: 8px !important; }
      .view-header > div:not(:first-child) > .btn,
      .view-header > div:not(:first-child) > select,
      .view-header > div:not(:first-child) > div { flex: 1 1 140px; }
      #view-dashboard .view-header > div:not(:first-child) { flex-direction: row !important; align-items: center !important; justify-content: space-between; }
      #rep-range-wrap { flex: 1 1 100%; }
      #rep-range-wrap input { flex: 1; min-width: 0; }
      #view-calendar .view-header > div:not(:first-child) > div:first-child { flex: 1 1 100%; display: flex !important; }
      #calendar-month-year { flex: 1; min-width: 0 !important; }

      .card { padding: 14px; border-radius: 16px; }
      .card-header { align-items: flex-start; }
      .card-title { font-size: 13.5px; }
      .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
      .kpi-grid > .kpi-card:first-child { grid-column: 1 / -1; }
      .kpi-card { padding: 12px 14px; }
      .kpi-number { font-size: 21px; }
      #main-content [style*="grid-template-columns: repeat(auto-fit"] { grid-template-columns: minmax(0, 1fr) !important; }
      #main-content #funnel-container, #main-content #attention-cards-container, #main-content [style*="minmax(130px"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
      .alert-banner, .fb-panel { padding: 12px; border-radius: 14px; }
      .fb-actions { width: 100%; }
      .fb-actions .btn { flex: 1 1 auto; }
      .fb-main { min-width: 0; }

      #main-content .form-input-sm,
      #main-content input.form-input[style*="max-width"] { flex: 1 1 140px; width: auto !important; max-width: none !important; min-width: 0 !important; }
      .form-input, textarea.form-input { font-size: 15px; }
      .form-input-sm { font-size: 13px; padding-top: 8px; padding-bottom: 8px; }
      #view-dashboard .kpi-title[style*="margin-right"] { display: none; }
      .btn { min-height: 40px; }
      .btn-sm { min-height: 36px; }
      .md-icon-btn { width: 36px; height: 36px; }
      .guide-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
      .guide-tabs::-webkit-scrollbar { display: none; }
      .guide-tabs .btn { flex-shrink: 0; }
      .insight-grid, .guide-grid { grid-template-columns: minmax(0, 1fr); }

      /* Kalender: tampilan agenda */
      .calendar-wrapper-card { display: none; }
      .cal-agenda { display: flex; flex-direction: column; gap: 10px; }

      /* Modal menjadi bottom sheet */
      .modal-backdrop { padding: 0; align-items: flex-end; }
      .modal-dialog { max-width: 100% !important; width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 20px 20px 0 0; border-bottom: none; animation: sheetUp 0.25s ease; }
      @keyframes sheetUp { from { transform: translateY(24px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
      .modal-header { padding: 14px 16px; gap: 10px; }
      .modal-header > div > div[style*="display: flex"] { flex-wrap: wrap; }
      .modal-title { font-size: 15.5px; }
      .modal-body { padding: 14px 16px; }
      .modal-footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) 16px; flex-wrap: wrap; gap: 8px; }
      .modal-footer > .btn { flex: 1 1 auto; }
      .modal-footer > div { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; }
      .modal-footer > div > .btn { flex: 1 1 auto; }
      .perf-fields-grid, .detail-perf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      #detail-approval-banner > div:first-child { flex-direction: column; align-items: stretch !important; }
      #admin-approval-actions { flex-wrap: wrap; }
      #admin-approval-actions .btn { flex: 1 1 auto; }

      /* Tabel menjadi kartu */
      .table-responsive .data-table.stack-mobile { min-width: 0 !important; }
      .data-table.stack-mobile thead { display: none; }
      .data-table.stack-mobile, .data-table.stack-mobile tbody { display: block; width: 100%; }
      .data-table.stack-mobile tr { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sfa-border-dark); border-radius: 14px; padding: 8px 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
      .data-table.stack-mobile td { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--sfa-border); text-align: right !important; white-space: normal !important; min-width: 0 !important; background: transparent !important; }
      .data-table.stack-mobile td:last-child { border-bottom: none; }
      .data-table.stack-mobile td::before { content: attr(data-label); flex: 0 0 36%; text-align: left; font-size: 10px; font-weight: 800; color: var(--sfa-muted); text-transform: uppercase; letter-spacing: 0.3px; padding-top: 2px; font-family: var(--font-sans, inherit); }
      .data-table.stack-mobile td[data-label=""]::before { display: none; }
      .data-table.stack-mobile td .td-val { display: block; flex: 1; min-width: 0; text-align: right; overflow-wrap: anywhere; }
      .data-table.stack-mobile td.is-head { order: -1; display: block; text-align: left !important; border-bottom: 1px solid var(--sfa-border); padding: 4px 0 8px 0; }
      .data-table.stack-mobile td.is-head::before { display: none; }
      .data-table.stack-mobile td.is-head .td-val { text-align: left; }
      .data-table.stack-mobile td[colspan] { display: block; text-align: center !important; border: none; }
      .data-table.stack-mobile td[colspan]::before { display: none; }
      .data-table.stack-mobile tr:has(td[colspan]) { border-style: dashed; box-shadow: none; }

      /* Login */
      #login-overlay { padding: 14px; }
      .login-box { padding: 28px 20px; border-radius: 20px; }
    }

    @media (max-width: 380px) {
      .kpi-number { font-size: 19px; }
      .tab-item { font-size: 9px; }
      .perf-fields-grid { grid-template-columns: minmax(0, 1fr); }
      #main-content #funnel-container, #main-content #attention-cards-container { grid-template-columns: minmax(0, 1fr) !important; }
    }
    @media (hover: none) {
      .is-clickable:active, .agenda-item:active, .tab-item:active { transform: scale(0.985); }
    }
    @media (prefers-reduced-motion: reduce) {
      .modal-dialog { animation: none !important; }
      .content-view, #sidebar, #refresh-progress { transition: none !important; }
    }
    @media print {
      .print-only { display: block !important; }
      #sidebar, #top-bar, #sidebar-overlay, #toast-shelf, .view-header button, .view-header select, .no-print { display: none !important; }
      #main-content { margin: 0 !important; }
      .content-view { display: none !important; }
      #view-reports.active { display: block !important; padding: 0 !important; max-width: none !important; }
      .card { break-inside: avoid; box-shadow: none !important; }
    }
  
