/* ==========================================================================
   GLOBAL SHINE DIGITAL SOLUTIONS - BUSINESS CONTROL CENTER (LIGHT THEME)
   ========================================================================== */

:root {
    --dash-bg: #f8fafc;
    --dash-surface: #ffffff;
    --dash-surface-hover: #faf5ff;
    --dash-border: #e2e8f0;
    --dash-border-purple: #e9d5ff;
    --dash-text: #0f172a;
    --dash-text-muted: #64748b;
    --dash-primary: #6a1b9a;           /* Premium Purple */
    --dash-primary-hover: #581c87;     /* Darker Purple */
    --dash-primary-light: #f3e8ff;     /* Lavender */
    --dash-accent-pink: #fbcfe8;       /* Soft Pink */
    --dash-accent-pink-subtle: #fdf2f8;
    --dash-accent: #0284c7;
    --dash-success: #10b981;
    --dash-warning: #f59e0b;
    --dash-danger: #ef4444;
    --dash-info: #2563eb;
    --dash-radius: 12px;
    --dash-shadow: 0 4px 20px -2px rgba(106, 27, 154, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --dash-shadow-hover: 0 10px 25px -4px rgba(106, 27, 154, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body.dash-body {
    margin: 0;
    padding: 0;
    background-color: var(--dash-bg);
    color: var(--dash-text);
    font-family: var(--font-main);
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.dash-sidebar {
    width: 260px;
    background-color: var(--dash-surface);
    border-right: 1px solid var(--dash-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.02);
}

.dash-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--dash-border);
}

.dash-brand-logo {
    height: 36px;
    width: auto;
}

.dash-brand-title {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #6a1b9a, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dash-nav {
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
}

.dash-nav-group {
    margin-bottom: 20px;
}

.dash-nav-heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dash-text-muted);
    padding: 0 12px 8px 12px;
    font-weight: 700;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 4px;
}

.dash-nav-item:hover, .dash-nav-item.active {
    background-color: #f3e8ff;
    color: var(--dash-primary);
    font-weight: 700;
}

.dash-nav-item i {
    font-size: 18px;
}

.dash-nav-badge {
    margin-left: auto;
    background-color: var(--dash-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Main Content Area */
.dash-main {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Header Bar */
.dash-header {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--dash-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.dash-search-box {
    position: relative;
    width: 320px;
}

.dash-search-box input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: var(--dash-bg);
    border: 1px solid var(--dash-border);
    padding: 10px 16px 10px 40px;
    border-radius: 8px;
    color: var(--dash-text);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dash-search-box input:focus {
    border-color: var(--dash-primary);
    box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.1);
}

.dash-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dash-text-muted);
}

.dash-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Role Switcher Select */
.role-switcher {
    background: #f1f5f9;
    border: 1px solid var(--dash-border);
    color: var(--dash-text);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-switcher:hover {
    border-color: var(--dash-primary);
}

.role-switcher option {
    background-color: var(--dash-surface);
    color: var(--dash-text);
}

.dash-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--dash-bg);
    border: 1px solid var(--dash-border);
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease, color 0.2s ease;
}

.dash-icon-btn:hover {
    background-color: var(--dash-surface-hover);
    color: var(--dash-primary);
}

.dash-icon-btn .badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--dash-danger);
    border-radius: 50%;
}

.dash-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.dash-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a1b9a, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: white;
    box-shadow: 0 2px 8px rgba(106, 27, 154, 0.2);
}

.dash-user-info {
    display: flex;
    flex-direction: column;
}

.dash-user-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--dash-text);
}

.dash-user-role {
    font-size: 11px;
    color: var(--dash-text-muted);
}

/* Page Content View Containers */
.dash-content {
    padding: 32px;
    flex: 1;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Dashboard Cards & Layout Grid */
.dash-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.dash-grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.dash-card {
    background-color: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    padding: 24px;
    box-shadow: var(--dash-shadow);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dash-card:hover {
    border-color: rgba(106, 27, 154, 0.3);
    box-shadow: 0 8px 25px -4px rgba(106, 27, 154, 0.08);
}

.stat-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-label {
    font-size: 12.5px;
    color: var(--dash-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--dash-text);
    margin-bottom: 6px;
}

.stat-change {
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.up { color: var(--dash-success); }
.stat-change.down { color: var(--dash-danger); }

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background-color: #f3e8ff;
    color: var(--dash-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--dash-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.dash-btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.dash-btn-primary {
    background: linear-gradient(135deg, #6a1b9a, #8b5cf6);
    color: white;
}

.dash-btn-primary:hover {
    box-shadow: 0 4px 14px rgba(106, 27, 154, 0.3);
    transform: translateY(-1px);
}

.dash-btn-secondary {
    background-color: #ffffff;
    border: 1px solid var(--dash-border);
    color: #334155;
}

.dash-btn-secondary:hover {
    background-color: var(--dash-surface-hover);
    color: var(--dash-text);
    border-color: #cbd5e1;
}

.dash-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Table Design */
.dash-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

.dash-table th {
    padding: 12px 16px;
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--dash-border);
}

.dash-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--dash-border);
    color: var(--dash-text);
    vertical-align: middle;
}

.dash-table tr:hover {
    background-color: #f8fafc;
}

/* Badges & Pills */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-new { background-color: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-contacted { background-color: #fffbebf; color: #b45309; border: 1px solid #fde68a; }
.badge-proposal { background-color: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.badge-won { background-color: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-lost { background-color: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-pending { background-color: #fffbebf; color: #b45309; border: 1px solid #fde68a; }
.badge-approved { background-color: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* Kanban Board Layout */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.kanban-col {
    background-color: #f8fafc;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.kanban-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dash-border);
}

.kanban-col-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--dash-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-card-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanban-card {
    background-color: #ffffff;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    padding: 14px;
    cursor: grab;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.kanban-card:hover {
    border-color: var(--dash-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(106, 27, 154, 0.08);
}

.kanban-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dash-text);
    margin-bottom: 6px;
}

.kanban-card-desc {
    font-size: 12.5px;
    color: var(--dash-text-muted);
    margin-bottom: 12px;
}

.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--dash-text-muted);
}

/* Modals */
.dash-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dash-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    z-index: 9999;
    pointer-events: auto;
}

.dash-modal {
    background-color: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    width: 100%;
    max-width: 580px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.dash-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dash-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dash-text);
}

.dash-form-group {
    margin-bottom: 16px;
}

.dash-form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dash-text-muted);
    margin-bottom: 6px;
}

.dash-form-group input,
.dash-form-group select,
.dash-form-group textarea {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--dash-text);
    font-size: 13.5px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dash-form-group input:focus,
.dash-form-group select:focus,
.dash-form-group textarea:focus {
    border-color: var(--dash-primary);
    box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.1);
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-left: 4px solid var(--dash-primary);
    padding: 14px 20px;
    border-radius: 8px;
    color: var(--dash-text);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Phone & Mobile Navigation */
@media (max-width: 1024px) {
    .dash-mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        background: #ffffff;
        border: 1px solid var(--dash-border) !important;
        color: var(--dash-text);
        font-size: 20px;
        cursor: pointer;
        flex-shrink: 0;
    }
    .dash-sidebar { 
        transform: translateX(-100%); 
        visibility: hidden;
        pointer-events: none;
        z-index: 1050 !important;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease, visibility 0.3s ease;
    }
    .dash-sidebar.open { 
        transform: translateX(0) !important; 
        visibility: visible !important;
        pointer-events: auto !important;
    }
    .dash-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(2px);
        z-index: 1040;
    }
    .dash-sidebar-overlay.active {
        display: block !important;
    }
    .dash-main { 
        margin-left: 0 !important; 
        width: 100% !important;
        box-sizing: border-box;
    }
    .dash-header {
        gap: 10px;
        padding: 12px 16px;
    }
    .dash-search-box {
        max-width: 220px;
    }
    .dash-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .dash-grid-2 { grid-template-columns: 1fr; }
    .kanban-board { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .dash-header {
        flex-wrap: wrap;
        gap: 8px;
        height: auto;
        min-height: 56px;
        padding: 10px 16px;
    }
    .dash-search-box {
        order: 3;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-top: 4px;
    }
    .dash-user-info {
        display: none;
    }
    .role-switcher {
        max-width: 150px;
        font-size: 11px;
    }
    .dash-grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   STRICT TASK 10: TEAM ID CARD SYSTEM & CR80 PRINT STYLES
   ========================================================================== */

.id-card-modal-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 850px) {
    .id-card-modal-wrapper {
        flex-direction: column;
    }
}

.id-card-stage {
    perspective: 1000px;
    width: 340px;
    height: 214px;
    margin: 0 auto;
    position: relative;
}

.id-card-flipper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.id-card-flipper.flipped {
    transform: rotateY(180deg);
}

.cr80-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 340px;
    height: 214px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    border: 1px solid #cbd5e1;
    overflow: hidden;
    box-sizing: border-box;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #0f172a;
}

.cr80-card-back {
    transform: rotateY(180deg);
}

/* Front Design */
.cr80-header-strip {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #6a1b9a;
}

.cr80-brand-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.1;
}

.cr80-brand-sub {
    font-size: 8px;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

.cr80-front-body {
    display: flex;
    padding: 12px 14px;
    gap: 12px;
    height: calc(100% - 44px);
    box-sizing: border-box;
}

.cr80-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 76px;
}

.cr80-photo-frame {
    width: 72px;
    height: 84px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6a1b9a, #8b5cf6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    border: 2px solid #6a1b9a;
    box-shadow: 0 4px 10px rgba(106, 27, 154, 0.2);
    overflow: hidden;
}

.cr80-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cr80-chip-emblem {
    width: 24px;
    height: 18px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 3px;
    border: 1px solid #b45309;
    position: relative;
}

.cr80-chip-emblem::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.3);
}

.cr80-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cr80-member-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 2px;
}

.cr80-member-role {
    font-size: 10px;
    font-weight: 700;
    color: #6a1b9a;
    margin-bottom: 6px;
}

.cr80-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    font-size: 9px;
    background: #f8fafc;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.cr80-meta-item {
    display: flex;
    flex-direction: column;
}

.cr80-meta-label {
    color: #64748b;
    font-size: 7.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.cr80-meta-val {
    color: #0f172a;
    font-weight: 700;
    font-family: monospace;
}

.cr80-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.cr80-status-badge {
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.cr80-status-badge.active {
    background: #dcfce7;
    color: #15803d;
}

.cr80-status-badge.revoked {
    background: #fee2e2;
    color: #b91c1c;
}

.cr80-status-badge.replaced {
    background: #fef3c7;
    color: #b45309;
}

/* Back Design */
.cr80-mag-strip {
    height: 32px;
    background: #1e293b;
    width: 100%;
}

.cr80-back-body {
    padding: 10px 14px;
    display: flex;
    gap: 10px;
    height: calc(100% - 32px);
    box-sizing: border-box;
}

.cr80-qr-col {
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cr80-qr-box {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr80-qr-box svg {
    width: 100%;
    height: 100%;
}

.cr80-back-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 8.5px;
    color: #334155;
}

.cr80-disclaimer {
    font-size: 7.5px;
    color: #64748b;
    line-height: 1.3;
}

.cr80-company-contact {
    background: #f1f5f9;
    padding: 6px;
    border-radius: 4px;
    font-size: 8px;
}

.cr80-company-contact div {
    margin-bottom: 1px;
}

/* Print Specific Styles */
@media print {
    body * {
        visibility: hidden !important;
    }
    #id-card-print-container,
    #id-card-print-container * {
        visibility: visible !important;
    }
    #id-card-print-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
        background: #ffffff !important;
    }
    .cr80-card {
        box-shadow: none !important;
        border: 1px solid #000000 !important;
        page-break-inside: avoid;
        position: relative !important;
        transform: none !important;
    }
}

/* =========================================================================
   TASK 34 ACCESSIBILITY & REDUCED MOTION RULES
   ========================================================================= */

/* Keyboard Focus Indicators */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
.dash-nav-item:focus-visible,
.dash-icon-btn:focus-visible {
    outline: 2px solid var(--dash-primary, #6a1b9a);
    outline-offset: 2px;
}

/* Table Wrapper Internal Horizontal Scrolling */
.dash-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================================
   TASK 26: ULTRAWIDE DESKTOP BOUNDS FOR DASHBOARD MAIN CONTENT
   ========================================================================= */
@media (min-width: 1920px) {
    .dash-main {
        max-width: 1600px;
    }
}





/* ==========================================================================
   SECTION 19: MOBILE-FIRST ADMIN DASHBOARD STYLES & TOUCH ENHANCEMENTS
   ========================================================================== */

/* Touch Target Accessibility Standard (Minimum 44px height for interactive controls) */
@media (max-width: 768px) {
    button, 
    .dash-btn, 
    .dash-icon-btn, 
    .dash-nav-item, 
    .role-switcher, 
    input[type="text"], 
    input[type="number"], 
    input[type="date"], 
    select, 
    textarea {
        min-height: 44px;
        box-sizing: border-box;
    }

    .dash-btn-sm {
        min-height: 38px;
        padding: 8px 14px;
        font-size: 13px;
    }

    /* Active Touch Tap Feedback */
    button:active, 
    .dash-btn:active, 
    .dash-icon-btn:active, 
    .dash-nav-item:active,
    .dash-mobile-nav-item:active,
    .dash-mobile-fab:active {
        transform: scale(0.97) !important;
        opacity: 0.9;
        transition: transform 0.1s ease, opacity 0.1s ease;
    }

    /* Padding compensation for sticky mobile bottom navigation */
    body.dash-body {
        padding-bottom: 75px !important;
    }

    /* Mobile Header Sticky Positioning */
    .dash-header {
        position: sticky !important;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        background: var(--dash-surface, #ffffff);
    }

    /* Search Input Mobile Layout */
    .dash-search-box input {
        height: 44px;
        font-size: 14px;
        border-radius: 10px;
    }

    /* Mobile Cards Grid Collapse */
    .dash-grid-4, 
    .dash-grid-3, 
    .dash-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Horizontal Scrollable Pills Toolbar */
    .dash-filter-bar, 
    #crm-source-pills-bar, 
    #crm-partner-pills-bar, 
    #mybiz-ledger-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px !important;
        padding-bottom: 6px;
    }
    .dash-filter-bar::-webkit-scrollbar,
    #crm-source-pills-bar::-webkit-scrollbar,
    #crm-partner-pills-bar::-webkit-scrollbar {
        display: none;
    }

    /* Responsive Table Wrappers */
    .dash-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.1);
    }
    .dash-table {
        min-width: 600px;
    }
    .dash-table th, 
    .dash-table td {
        padding: 12px 14px;
        white-space: nowrap;
    }

    /* Full-screen Slide-up Mobile Modals */
    .dash-modal {
        max-width: 100% !important;
        margin: 10px !important;
        border-radius: 16px !important;
        padding: 20px 16px !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Toast Notification Mobile Positioning */
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 80px;
        width: auto;
    }
}

/* Sticky Mobile Bottom Navigation Bar Styles */
.dash-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #ffffff;
    border-top: 1px solid var(--dash-border, #e2e8f0);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1040;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .dash-mobile-bottom-nav {
        display: flex !important;
    }
}

.dash-mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 6px 0;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
}

.dash-mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.dash-mobile-nav-item.active {
    color: var(--dash-primary, #6a1b9a);
}

.dash-mobile-nav-item.active i {
    transform: translateY(-2px);
}

/* Floating Quick Action Button (FAB) */
.dash-mobile-fab-container {
    display: none;
    position: fixed;
    bottom: 76px;
    right: 18px;
    z-index: 1045;
}

@media (max-width: 768px) {
    .dash-mobile-fab-container {
        display: block !important;
    }
}

.dash-mobile-fab {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a1b9a, #8b5cf6);
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 20px rgba(106, 27, 154, 0.35);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.dash-mobile-action-menu {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 210px;
    background: #ffffff;
    border: 1px solid var(--dash-border, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
}

.dash-mobile-action-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dash-mobile-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--dash-text, #0f172a);
    cursor: pointer;
}

.dash-mobile-action-btn:hover,
.dash-mobile-action-btn:active {
    background: #f1f5f9;
}
