/* ═══════════════════════════════════════════════════════════
   MSP ERP — Shared Stylesheet  v2
   Color palette:
     Sidebar BG  : #0A1628
     Active Blue : #1553D0
     Page BG     : #F8FAFC
   ═══════════════════════════════════════════════════════════ */

* { font-family: 'Inter', system-ui, sans-serif; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: #334155; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR — fixed, responsive
   ═══════════════════════════════════════════════════════════ */
#mainSidebar {
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    width: 248px;
    overflow: hidden;
}
#mainSidebar.mobile-open {
    transform: translateX(0);
}
body.sidebar-collapsed #mainSidebar {
    transform: translateX(0) !important;
    width: 0 !important;
    border-right: 0 !important;
}
body.sidebar-collapsed #mainSidebar nav {
    opacity: 0;
    pointer-events: none;
}
@media (min-width: 1024px) {
    #mainSidebar { transform: translateX(0) !important; }
    #mainSidebar.mobile-open { transform: translateX(0) !important; }
}

.main-content { margin-left: 0; }
@media (min-width: 1024px) {
    .main-content { margin-left: 248px; }
    body.sidebar-collapsed .main-content { margin-left: 0 !important; }
}

/* Section labels */
.sidebar-section-label {
    display: block;
    font-size: 9.5px;
    letter-spacing: 0.11em;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    padding: 10px 14px 5px;
    user-select: none;
}

/* Single nav item */
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.14s;
    border-left: 2px solid transparent;
    text-decoration: none;
    width: 100%;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,0.055); }
.nav-item:hover .nav-label { color: #fff; }
.nav-item:hover .nav-icon  { color: #cbd5e1; }

/* Active single item */
.nav-active {
    background: linear-gradient(135deg, rgba(21,83,208,0.22) 0%, rgba(21,83,208,0.06) 100%) !important;
    border-left-color: #1553D0 !important;
}
.nav-active .nav-label { color: #fff !important; font-weight: 600; }
.nav-active .nav-icon  { color: #93C5FD !important; }

.nav-label {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.14s;
    white-space: nowrap;
    flex: 1;
}
.nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #475569;
    transition: color 0.14s;
}

/* İşleme alınmış veya bekleyen arıza sayısı — hafifçe yanıp sönen uyarı rozeti */
.nav-alert-badge {
    margin-left: auto;
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: #ef4444;
    border-radius: 999px;
    animation: navAlertPulse 1.9s ease-in-out infinite;
}
.nav-alert-badge-warning {
    background: #f59e0b;
    animation: navAlertPulseWarning 1.9s ease-in-out infinite;
}
@keyframes navAlertPulse {
    0%, 100% { opacity: 1;    box-shadow: 0 0 0 0 rgba(239,68,68,0.45); }
    50%      { opacity: 0.55; box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}
@keyframes navAlertPulseWarning {
    0%, 100% { opacity: 1;    box-shadow: 0 0 0 0 rgba(245,158,11,0.38); }
    50%      { opacity: 0.6;  box-shadow: 0 0 0 5px rgba(245,158,11,0); }
}
@media (prefers-reduced-motion: reduce) {
    .nav-alert-badge, .nav-alert-badge-warning { animation: none; }
}

/* Sub items */
.sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.14s;
    text-decoration: none;
    border-left: 2px solid transparent;
}
.sub-item:hover { background: rgba(255,255,255,0.045); }
.sub-item:hover .sub-label { color: #e2e8f0; }
.sub-item:hover .sub-dot   { background: #60a5fa; }

.sub-item.nav-active {
    background: linear-gradient(135deg, rgba(21,83,208,0.28) 0%, rgba(21,83,208,0.10) 100%) !important;
    border-left-color: #1553D0 !important;
}
.sub-item.nav-active .sub-label { color: #fff !important; font-weight: 600; }
.sub-item.nav-active .sub-dot {
    background: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96,165,250,0.22);
}

/* Parent item when child is active */
.nav-item.parent-active { background: rgba(255,255,255,0.05); }
.nav-item.parent-active .nav-label { color: #e2e8f0; }
.nav-item.parent-active .nav-icon  { color: #60a5fa; }

.sub-label {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    transition: color 0.14s;
}
.sub-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #334155;
    flex-shrink: 0;
    margin-left: 4px;
    transition: background 0.14s, box-shadow 0.14s;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR DROPDOWN
   ═══════════════════════════════════════════════════════════ */
.dd-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.dd-body.open { max-height: 800px; }

.chevron { transition: transform 0.22s ease; color: #475569; }
.chevron.open { transform: rotate(180deg); }

/* ═══════════════════════════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════════════════════════ */
.topbar-shadow {
    box-shadow: 0 1px 0 0 #e2e8f0, 0 2px 14px -4px rgba(15,23,42,0.07);
}

/* ═══════════════════════════════════════════════════════════
   AI DRAWER — slide-in from right (topbar triggered)
   ═══════════════════════════════════════════════════════════ */
.ai-drawer {
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0.38s;
}
.ai-drawer.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0s;
}
.drawer-shadow { box-shadow: -10px 0 44px -4px rgba(15,23,42,0.14); }

.ai-trigger-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 9999px;
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    color: #fff; font-size: 12.5px; font-weight: 700;
    border: none; cursor: pointer; white-space: nowrap;
    box-shadow: 0 2px 10px -2px rgba(124,58,237,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}
.ai-trigger-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -3px rgba(124,58,237,0.5); }

.ai-tab {
    padding: 9px 4px; font-size: 12px; font-weight: 700; color: #94A3B8;
    border-bottom: 2px solid transparent; cursor: pointer; background: none; border-top: none; border-left: none; border-right: none;
    display: flex; align-items: center; gap: 5px; transition: color .14s, border-color .14s;
}
.ai-tab.active { color: #1553D0; border-bottom-color: #1553D0; }
.ai-tab:hover:not(.active) { color: #475569; }

.ai-model-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; border-radius: 12px; border: 1.5px solid #E2E8F0;
    cursor: pointer; transition: border-color .14s, background .14s; background: #fff;
}
.ai-model-row:hover { border-color: #CBD5E1; }
.ai-model-row.active { border-color: #7C3AED; background: rgba(124,58,237,0.05); }

.ai-quick-card {
    border: 1px solid #E2E8F0; border-radius: 12px; padding: 10px;
    text-align: left; background: #fff; cursor: pointer; transition: all .14s;
}
.ai-quick-card:hover { border-color: #1553D0; background: #F8FAFC; transform: translateY(-1px); }

.ai-bubble-user{background:#1553D0;color:white;border-radius:18px 18px 4px 18px;padding:10px 14px;font-size:13px;max-width:82%;margin-left:auto;}
.ai-bubble-ai{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:4px 18px 18px 18px;padding:10px 14px;font-size:13px;max-width:82%;}
.ai-avatar{width:30px;height:30px;background:linear-gradient(135deg,#1553D0,#8B5CF6);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.ai-chat-input{border:1.5px solid #E2E8F0;border-radius:14px;padding:10px 14px;font-size:13px;color:#334155;outline:none;width:100%;background:white;transition:border-color .2s;}
.ai-chat-input:focus{border-color:#1553D0;box-shadow:0 0 0 3px rgba(21,83,208,.1);}

@keyframes ai-typing{0%,60%,100%{opacity:1}30%{opacity:.4}}
.ai-typing-dot{width:6px;height:6px;border-radius:50%;background:#94A3B8;display:inline-block;animation:ai-typing 1.2s ease-in-out infinite;}
.ai-typing-dot:nth-child(2){animation-delay:.2s;}
.ai-typing-dot:nth-child(3){animation-delay:.4s;}

/* AI aksiyon butonları (Excel / Grafik / PDF / Taslak) + daktilo imleci */
.ai-action-btn{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;border-radius:9px;border:1.5px solid;background:#fff;font-size:11.5px;font-weight:700;cursor:pointer;transition:transform .14s,filter .14s;}
.ai-action-btn:hover{transform:translateY(-1px);filter:brightness(.97);}
.ai-caret{display:inline-block;width:2px;height:1em;background:#1553D0;margin-left:1px;vertical-align:-2px;animation:ai-caret-blink .8s step-end infinite;}
@keyframes ai-caret-blink{50%{opacity:0;}}

/* ═══════════════════════════════════════════════════════════
   GENERIC BACKDROP (used by AI drawer, etc.)
   ═══════════════════════════════════════════════════════════ */
.backdrop {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.28s ease, visibility 0s linear 0s;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE OVERLAY
   ═══════════════════════════════════════════════════════════ */
.mob-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.mob-overlay.open { opacity: 1; pointer-events: all; }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dash-anim { animation: fadeUp 0.38s ease-out both; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(0.7); }
}
.pulse-dot { animation: pulse-dot 1.8s ease-in-out infinite; }

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}
.live-dot { animation: live-pulse 1.5s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY HELPERS
   ═══════════════════════════════════════════════════════════ */
.speedmono {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.mono { font-family: 'JetBrains Mono', monospace; }

/* ═══════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px; border-radius: 9999px;
    font-size: 10.5px; font-weight: 700; line-height: 1.5;
    white-space: nowrap;
}
.badge-green   { background: #D1FAE5; color: #065F46; }
.badge-yellow  { background: #FEF3C7; color: #92400E; }
.badge-red     { background: #FEE2E2; color: #991B1B; }
.badge-blue    { background: #DBEAFE; color: #1E40AF; }
.badge-gray    { background: #F1F5F9; color: #475569; }
.badge-purple  { background: #EDE9FE; color: #5B21B6; }
.badge-orange  { background: #FFEDD5; color: #9A3412; }
.badge-teal    { background: #CCFBF1; color: #0F766E; }
.badge-live    { background: rgba(52,211,153,0.15); color: #34D399; border: 1px solid rgba(52,211,153,0.25); }

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.msp-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(226,232,240,0.7);
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.msp-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.msp-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

/* ═══════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════ */
.msp-table { width: 100%; border-collapse: collapse; }
.msp-table thead th {
    text-align: left;
    padding: 10px 14px;
    font-size: 10.5px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #F1F5F9;
    background: #F8FAFC;
    white-space: nowrap;
}
.msp-table tbody td {
    padding: 11px 14px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #F8FAFC;
    vertical-align: middle;
}
.msp-table tbody tr:hover td { background: #F8FAFC; }
.msp-table tbody tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════
   FORM INPUTS
   ═══════════════════════════════════════════════════════════ */
.msp-input {
    height: 38px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    outline: none;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.msp-input:focus {
    border-color: #1553D0;
    box-shadow: 0 0 0 3px rgba(21,83,208,0.12);
}
.msp-textarea {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    outline: none;
    width: 100%;
    resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.msp-textarea:focus { border-color: #1553D0; box-shadow: 0 0 0 3px rgba(21,83,208,0.12); }
.msp-select {
    height: 38px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0 10px;
    font-size: 13px;
    color: #334155;
    background: #fff;
    outline: none;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.msp-select:focus { border-color: #1553D0; box-shadow: 0 0 0 3px rgba(21,83,208,0.12); }
.msp-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 5px;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; border-radius: 10px;
    background: #1553D0; color: #fff;
    font-size: 13px; font-weight: 700;
    border: none; cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    text-decoration: none; white-space: nowrap;
}
.btn-primary:hover { background: #1244B0; }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 10px;
    background: #fff; color: #475569;
    font-size: 12.5px; font-weight: 600;
    border: 1px solid #E2E8F0; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none; white-space: nowrap;
}
.btn-secondary:hover { background: #F8FAFC; border-color: #CBD5E1; }
.btn-danger {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 10px;
    background: #FEE2E2; color: #B91C1C;
    font-size: 12.5px; font-weight: 700;
    border: none; cursor: pointer;
    transition: background 0.15s;
    text-decoration: none; white-space: nowrap;
}
.btn-danger:hover { background: #FECACA; }
.btn-success {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; border-radius: 10px;
    background: #059669; color: #fff;
    font-size: 13px; font-weight: 700;
    border: none; cursor: pointer;
    transition: background 0.15s;
    text-decoration: none; white-space: nowrap;
}
.btn-success:hover { background: #047857; }
.btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: #F1F5F9; color: #64748B; border: none; cursor: pointer;
    transition: background 0.14s, color 0.14s;
}
.btn-icon:hover { background: #E2E8F0; color: #334155; }

/* ═══════════════════════════════════════════════════════════
   SWEETALERT2 — minimal, Tailwind-uyumlu tema
   ═══════════════════════════════════════════════════════════ */
.msp-swal-popup {
    border-radius: 20px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    padding: 1.75rem !important;
    box-shadow: 0 20px 60px -12px rgba(15,23,42,0.25) !important;
}
.msp-swal-icon { width: 4.5rem !important; height: 4.5rem !important; margin: 0 auto 0.75rem !important; }
.msp-swal-title { font-size: 17px !important; font-weight: 800 !important; color: #1E293B !important; padding-top: 0 !important; }
.msp-swal-html { font-size: 13.5px !important; color: #64748B !important; margin-top: 2px !important; }
.msp-swal-actions { gap: 8px !important; margin-top: 1.25rem !important; }
.msp-swal-confirm {
    border-radius: 10px !important; font-size: 13px !important; font-weight: 700 !important;
    padding: 9px 18px !important; box-shadow: none !important; color: #ffffff !important;
}
.msp-swal-confirm-danger { background: #DC2626 !important; }
.msp-swal-confirm-danger:hover { background: #B91C1C !important; }
.msp-swal-confirm-primary { background: #1553D0 !important; }
.msp-swal-confirm-primary:hover { background: #1244B0 !important; }
.msp-swal-cancel {
    background: #F1F5F9 !important; color: #475569 !important;
    border-radius: 10px !important; font-size: 13px !important; font-weight: 700 !important;
    padding: 9px 18px !important; box-shadow: none !important;
}
.msp-swal-cancel:hover { background: #E2E8F0 !important; }

/* Colored action-icon variants (table row CRUD actions) */
.btn-icon-view   { background: #DBEAFE; color: #1D4ED8; }
.btn-icon-view:hover   { background: #BFDBFE; color: #1E3A8A; }
.btn-icon-edit   { background: #FEF3C7; color: #B45309; }
.btn-icon-edit:hover   { background: #FDE68A; color: #92400E; }
.btn-icon-delete { background: #FEE2E2; color: #B91C1C; }
.btn-icon-delete:hover { background: #FECACA; color: #991B1B; }
.btn-icon-approve { background: #D1FAE5; color: #047857; }
.btn-icon-approve:hover { background: #A7F3D0; color: #065F46; }

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════ */
.bc-link { color: #94A3B8; font-weight: 500; text-decoration: none; transition: color .14s; }
.bc-link:hover { color: #475569; }
.bc-sep  { color: #CBD5E1; }
.bc-current { color: #334155; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   TABLE — INLINE COLUMN FILTER ROW
   ═══════════════════════════════════════════════════════════ */
.tbl-filter-row th {
    background: #F8FAFC;
    padding: 6px 10px;
    border-bottom: 1px solid #F1F5F9;
}
.tbl-filter-input, .tbl-filter-select {
    width: 100%;
    height: 30px;
    border: 1px solid #E2E8F0;
    border-radius: 7px;
    padding: 0 9px;
    font-size: 11.5px;
    font-weight: 500;
    color: #475569;
    background: #fff;
    outline: none;
    transition: border-color .14s, box-shadow .14s;
}
.tbl-filter-input::placeholder { color: #B0BAC7; font-weight: 400; }
.tbl-filter-input:focus, .tbl-filter-select:focus {
    border-color: #1553D0;
    box-shadow: 0 0 0 3px rgba(21,83,208,0.12);
}

/* ═══════════════════════════════════════════════════════════
   TABLE — PAGINATION FOOTER
   ═══════════════════════════════════════════════════════════ */
.tbl-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 26px; height: 26px; padding: 0 6px;
    border-radius: 7px; border: 1px solid #E2E8F0;
    background: #fff; color: #475569;
    font-size: 11.5px; font-weight: 700; cursor: pointer;
    transition: background .14s, color .14s, border-color .14s;
}
.tbl-page-btn:hover:not(:disabled) { background: #F1F5F9; border-color: #CBD5E1; }
.tbl-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.tbl-page-btn.active { background: #1553D0; border-color: #1553D0; color: #fff; }

/* Legend dot chip (expiry / status legend strips) */
.legend-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #64748B; }
.legend-dot  { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   STATUS DOTS
   ═══════════════════════════════════════════════════════════ */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-green  { background: #10B981; }
.dot-yellow { background: #F59E0B; }
.dot-red    { background: #EF4444; }
.dot-gray   { background: #94A3B8; }
.dot-blue   { background: #1553D0; }

/* ═══════════════════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════════════════ */
.progress-bar { height: 5px; border-radius: 3px; background: #E2E8F0; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */
.msp-backdrop {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.35);
    backdrop-filter: blur(2px);
    z-index: 50;
}
.msp-modal {
    position: fixed;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(15,23,42,0.18);
    z-index: 60;
    max-height: 90vh;
    overflow-y: auto;
    width: 94vw;
}

/* ═══════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════ */
#toast-wrap { position:fixed; bottom:20px; right:20px; z-index:9999; display:flex; flex-direction:column; gap:6px; pointer-events:none; }
.toast-msg {
    padding: 10px 15px; border-radius: 10px;
    font-size: 12.5px; font-weight: 600; color: #fff;
    box-shadow: 0 5px 18px rgba(0,0,0,0.18);
    animation: fadeUp 0.25s ease;
    pointer-events: all;
}

/* ═══════════════════════════════════════════════════════════
   KANBAN
   ═══════════════════════════════════════════════════════════ */
.kanban-col {
    background: #F8FAFC;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    min-height: 200px;
    padding: 12px;
    flex: 1;
    min-width: 200px;
}
.kanban-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: grab;
    transition: box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 1px 3px rgba(15,23,42,0.05);
    font-size: 12.5px;
}
.kanban-card:hover {
    box-shadow: 0 4px 14px rgba(15,23,42,0.1);
    transform: translateY(-1px);
}
.kanban-card.dragging {
    opacity: 0.5; cursor: grabbing;
}
.kanban-col.drag-over { border-color: #1553D0; background: #EFF6FF; }

/* ═══════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════ */
@media print {
    #mainSidebar, #topbar, .no-print { display: none !important; }
    .main-content { margin-left: 0 !important; }
    main { overflow: visible !important; }
}
