/* ═══════════════════════════════════════════════════
   DESIGN TOKENS — Vibrant Violet & Mint Theme
═══════════════════════════════════════════════════ */
:root {
    /* ── Backgrounds ── */
    --bg-primary:    #f3f0f9;
    --bg-gradient:   linear-gradient(135deg, #f5f2fe 0%, #eefbf6 50%, #f3e8ff 100%);
    --bg-card:       #ffffff;
    --bg-card-hover: #faf8ff;
    --bg-header:     #f3e8ff;  /* Soft light violet header */
    --bg-nav:        rgba(255, 255, 255, 0.95);
    --bg-sidebar:    #1e1b4b;  /* Deep sleek dark violet sidebar */

    /* ── Column Data Background Highlights ── */
    --bg-col3:       #f5f3ff;
    --bg-col4:       #ecfdf5;
    --bg-col5:       #f0f9ff;

    /* ── Summary Panel ── */
    --bg-summary:    #ede9fe;
    --border-summary: #a855f7;

    /* ── Accent Palette ── */
    --accent-red:     #dc2626;  /* Col 4 — Vivid bold red */
    --accent-purple:  #7c3aed;  /* Soft violet primary accent */
    --accent-green:   #059669;  /* Col 3 — Rich mint green */
    --accent-blue:    #2563eb;  /* Col 2 — Royal blue */
    --accent-violet:  #6d28d9;  /* Deep violet text */
    --accent-orange:  #f43f5e;  /* LOSS highlight */
    --accent-emerald: #10b981;  /* RECD highlight */

    /* ── Text ── */
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #64748b;
    --text-on-dark:   #ffffff;
    --text-on-dark-2: #c084fc;

    /* ── Borders & Dividers ── */
    --border-color:     #c084fc;
    --border-highlight: #a855f7;
    --row-divider:      #cbd5e1;

    /* ── Fonts & Typography ── */
    --font-ui:   'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* ── Radii ── */
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;

    /* ── Shadows ── */
    --shadow-card: 0 4px 20px rgba(124, 58, 237, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 8px 30px rgba(124, 58, 237, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-btn:  0 4px 14px rgba(124, 58, 237, 0.35);
}

/* ═══════════════════════════════════════════════════
   RESET & BASE TYPOGRAPHY
═══════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-ui);
    background: var(--bg-primary);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════ */
.text-red   { color: var(--accent-red)    !important; font-weight: 800 !important; }
.text-green { color: var(--accent-green)  !important; font-weight: 800 !important; }
.text-blue  { color: var(--accent-blue)   !important; font-weight: 800 !important; }
.text-gold  { color: var(--accent-orange) !important; font-weight: 800 !important; }
.text-center { text-align: center; }

/* ═══════════════════════════════════════════════════
   APP LAYOUT & SIDEBAR NAVIGATION
═══════════════════════════════════════════════════ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    flex-shrink: 0;
}

.sidebar-header {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-back-suite {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-back-suite:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.sidebar-header .logo svg {
    stroke: var(--text-on-dark-2);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-tab.active {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    border-color: #a855f7;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sync-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.status-dot.offline, .status-dot.warning {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: statusPulseRed 1.5s infinite;
}

@keyframes statusPulseRed {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.sync-offline-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff7ed;
    border: 1.5px solid #ffedd5;
    color: #c2410c;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(194, 65, 12, 0.08);
}

.sync-offline-banner svg {
    color: #ea580c;
    flex-shrink: 0;
}

.btn-sidebar-settings {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-sidebar-settings:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Sidebar Overlay for Mobile Drawer */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.mobile-open {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Hamburger Menu Toggle Button */
.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid var(--border-color);
    color: var(--accent-violet);
    padding: 0.45rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hamburger-btn:hover {
    background: #f3e8ff;
    border-color: var(--border-highlight);
}

/* Main Content Wrapper & Centered Desktop Container */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    width: 100%;
}

.main-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ═══════════════════════════════════════════════════
   TOP NAV
═══════════════════════════════════════════════════ */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    background: var(--bg-nav);
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: blur(10px);
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-violet);
    letter-spacing: -0.5px;
}

.stat-pill {
    background: #f3e8ff;
    border: 2px solid #d8b4fe;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--accent-violet);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}
.stat-label { color: var(--text-secondary); font-weight: 700; }

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box-wrapper svg {
    position: absolute;
    left: 0.85rem;
    color: var(--text-muted);
}

.search-box-wrapper input {
    padding: 0.55rem 1rem 0.55rem 2.4rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    font-size: 0.9rem;
    font-family: var(--font-ui);
    font-weight: 700;
    color: var(--text-primary);
    width: 220px;
    transition: all 0.2s ease;
}

.search-box-wrapper input:focus {
    outline: none;
    border-color: var(--border-highlight);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
    width: 280px;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    border-color: #6d28d9;
    box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border-color: var(--border-color);
    font-weight: 800;
}
.btn-secondary:hover {
    background: #f5f3ff;
    border-color: var(--border-highlight);
    color: var(--accent-violet);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: all 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon:hover {
    color: var(--accent-violet);
    background: #f3e8ff;
}
.btn-icon.delete:hover {
    color: var(--accent-red);
    background: #fee2e2;
}

/* TAB CONTENT SWITCHING */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* ═══════════════════════════════════════════════════
   SINGLE FULL-WIDTH WORKSPACE LAYOUT (SCROLLING LIST)
═══════════════════════════════════════════════════ */
.workspace {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 3rem;
    width: 100%;
}

.glass-panel {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    width: 100%;
}
.glass-panel:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-highlight);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.6rem;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-header);
}

.client-header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.client-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-violet);
    letter-spacing: -0.3px;
}

.client-date-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-md);
}

.date-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-violet);
}

.client-date-input {
    border: none;
    background: transparent;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
}

.client-actions {
    display: flex;
    gap: 0.55rem;
}

/* ═══════════════════════════════════════════════════
   FULL-WIDTH SINGLE TABLE & PROMINENT 72px PHOTOS
═══════════════════════════════════════════════════ */
.table-container {
    width: 100%;
    overflow-x: auto;
}

.client-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.client-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    background: #faf8ff;
}

.client-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1.5px solid var(--row-divider);
    vertical-align: middle;
}

.client-table tbody tr:hover {
    background: #faf8ff;
}

/* ITEM PHOTO CONTAINER & PROMINENT 72px THUMBNAILS */
.photo-cell-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
}

.item-photo-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    background: #f1f5f9;
    display: block;
}

.item-photo-thumb:hover {
    transform: scale(1.1);
    border-color: var(--accent-purple);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

.btn-photo-upload {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 2px dashed var(--border-color);
    background: #f8fafc;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-photo-upload:hover {
    background: #f3e8ff;
    color: var(--accent-purple);
    border-color: var(--border-highlight);
}

/* AUTO-EXPANDING FULL ITEM NAME INPUT (NO TRUNCATION) */
.cell-item {
    width: 100%;
    min-height: 48px;
    border: 1.5px solid #cbd5e1;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1rem;
    font-family: var(--font-ui);
    color: var(--text-primary);
    background: #ffffff;
    transition: all 0.18s;
    white-space: normal;
    word-break: break-word;
    resize: vertical;
    line-height: 1.45;
}

.cell-item:focus {
    background: #ffffff;
    border-color: var(--border-highlight);
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.col-num {
    width: 100%;
    min-height: 48px;
    border: 1.5px solid #cbd5e1;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.05rem;
    text-align: right;
    background: #ffffff;
    transition: all 0.18s;
}

.col-num:focus {
    background: #ffffff;
    border-color: var(--border-highlight);
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.cell-col3 { background: var(--bg-col3); color: var(--accent-blue); }
.cell-col4 { background: var(--bg-col4); color: var(--accent-green); }
.cell-col5 { background: #fff1f2; color: var(--accent-red); }

/* SUMMARY ROWS */
.summary-row td {
    padding: 0.5rem 0.85rem;
}

.add-row-tr td {
    padding: 0.4rem 0.85rem;
    border-bottom: 2px solid var(--border-color);
}

.add-row-btn {
    background: transparent;
    border: none;
    color: var(--accent-purple);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.4rem 0;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.add-row-btn:hover { color: var(--accent-violet); text-decoration: underline; }

.row-total { background: #faf8ff; }
.row-recd { background: var(--bg-summary); border-top: 2px solid var(--border-summary); }
.row-loss { background: #fff1f2; }

.summary-label {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: right;
}

.summary-val {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.95rem;
    text-align: right;
}

/* ═══════════════════════════════════════════════════
   DASHBOARD VIEW & MASTER TABLE STYLING
═══════════════════════════════════════════════════ */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 3rem;
}

.filter-panel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    flex-wrap: wrap;
    background: #ffffff;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.date-input {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: #ffffff;
}

.custom-select {
    padding: 0.5rem 2rem 0.5rem 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: #ffffff;
    cursor: pointer;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.metric-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.metric-card.highlighted.recd {
    background: #ecfdf5;
    border-color: #059669;
}

.metric-card.highlighted.loss {
    background: #fff1f2;
    border-color: #dc2626;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3e8ff;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.metric-icon.col2 { background: #eff6ff; color: var(--accent-blue); }
.metric-icon.col3 { background: #ecfdf5; color: var(--accent-green); }
.metric-icon.col4 { background: #fff1f2; color: var(--accent-red); }
.metric-icon.recd { background: #d1fae5; color: #047857; }
.metric-icon.loss { background: #ffe4e6; color: #b91c1c; }

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Dashboard Sections */
.dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-violet);
}

.badge {
    background: #f3e8ff;
    color: var(--accent-violet);
    border: 1.5px solid #d8b4fe;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 800;
}


/* MASTER DATA TABLE — HIGH VISIBILITY 72px THUMBNAILS & FULL ITEM NAMES */
.master-table-container {
    overflow-x: auto;
    width: 100%;
}

.master-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.master-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: #faf8ff;
    border-bottom: 2px solid var(--border-color);
}

.master-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1.5px solid var(--row-divider);
    vertical-align: middle;
}

.master-table tbody tr:hover {
    background: #faf8ff;
}

/* LARGE PROMINENT 72px THUMBNAILS IN DASHBOARD MASTER TABLE */
.dash-photo-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #f1f5f9;
    display: block;
}

.dash-photo-thumb:hover {
    transform: scale(1.12);
    border-color: var(--accent-purple);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

/* FULL ITEM NAME IN DASHBOARD TABLE (NO TRUNCATION) */
.master-item-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
}

/* ═══════════════════════════════════════════════════
   MODAL & AUTOCOMPLETE STYLING
═══════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--bg-header);
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-violet);
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.18s;
}
.close-btn:hover { color: var(--accent-red); }

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-highlight);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.autocomplete-container {
    position: relative;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #ffffff;
    border: 2px solid var(--border-highlight);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-height: 180px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.suggestions-dropdown.active {
    display: block;
}

.suggestion-item {
    padding: 0.65rem 1rem;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s;
}

.suggestion-item:hover {
    background: #f3e8ff;
    color: var(--accent-violet);
}

.suggestion-tag {
    font-size: 0.75rem;
    background: #d8b4fe;
    color: #581c87;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 800;
}

.client-match-status {
    min-height: 24px;
}

.match-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 800;
}

.match-badge.existing {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.match-badge.new {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.hint-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background: #faf8ff;
    border-top: 1.5px solid var(--row-divider);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.sync-info-box {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 0.85rem;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Lightbox Modal */
.lightbox-content {
    max-width: 680px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--radius-md);
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* HIGH-QUALITY IMAGE CROPPER MODAL STYLES */
.crop-modal-content {
    max-width: 640px;
}

.crop-image-wrapper {
    max-height: 420px;
    width: 100%;
    background: #0f172a;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-image-wrapper img {
    max-width: 100%;
    display: block;
}

.crop-toolbar {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f172a;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2000;
    font-weight: 700;
    font-size: 0.9rem;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast-btn {
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.toast-btn:hover { background: #128c7e; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE DESIGN & MOBILE VIEW (max-width: 768px)
═══════════════════════════════════════════════════ */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    border: 1.5px solid rgba(124, 58, 237, 0.25);
    background: #ffffff;
    color: #7c3aed;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.12);
    transition: background 0.2s, transform 0.15s, border-color 0.2s;
    flex-shrink: 0;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:active {
    background: #f5f3ff;
    border-color: #7c3aed;
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-container {
        padding: 0 1rem;
    }

    .top-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0.85rem 0;
    }

    .top-nav-left {
        justify-content: space-between;
        width: 100%;
        gap: 0.75rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .stat-pill {
        padding: 0.25rem 0.65rem;
        font-size: 0.8rem;
    }

    .top-nav-right {
        width: 100%;
        flex-direction: row;
        gap: 0.65rem;
    }

    .search-box-wrapper {
        flex: 1;
    }

    .search-box-wrapper input {
        width: 100%;
    }

    .search-box-wrapper input:focus {
        width: 100%;
    }

    .btn {
        padding: 0.55rem 0.95rem;
        font-size: 0.88rem;
    }

    /* Client Cards & Workspace */
    .client-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 1rem;
    }

    .client-header-left {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .client-title {
        font-size: 1.2rem;
    }

    .client-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .client-actions .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.82rem;
    }

    /* Tables & Responsive Overflow */
    .table-container,
    .master-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .client-table,
    .master-table {
        min-width: 700px;
    }

    .cell-item {
        font-size: 0.9rem;
        min-height: 42px;
        padding: 0.5rem 0.65rem;
    }

    .col-num {
        font-size: 0.95rem;
        min-height: 42px;
        padding: 0.5rem 0.65rem;
    }

    /* Dashboard Filters & Metrics */
    .filter-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        padding: 1rem;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .date-input,
    .custom-select {
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .metric-card {
        padding: 0.85rem;
        gap: 0.65rem;
    }

    .metric-icon {
        width: 38px;
        height: 38px;
    }

    .metric-label {
        font-size: 0.75rem;
    }

    .metric-value {
        font-size: 1.25rem;
    }

    /* Modals */
    .modal-content {
        width: 92vw;
        max-width: 480px;
        padding: 1.25rem;
        margin: 1rem;
        max-height: 85vh;
        overflow-y: auto;
    }

    .crop-modal-content {
        max-width: 95vw;
    }

    .crop-toolbar {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════
   REALTIME TELEMETRY, PING BADGES & TOAST CONTAINER
═══════════════════════════════════════════════════ */
.status-ping {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-radius: var(--radius-sm);
    margin-left: 0.4rem;
}

.sync-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 600px) {
    .sync-settings-grid {
        grid-template-columns: 1fr;
    }
}

.telemetry-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.telemetry-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.telemetry-value {
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--bg-hover);
    color: var(--text-muted);
}

.telemetry-value.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.status-desc {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Real-Time Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #1e293b;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border-left: 4px solid var(--accent-purple);
}

.toast.toast-success { border-left-color: #10b981; }
.toast.toast-sync { border-left-color: var(--accent-cyan); }
.toast.toast-danger { border-left-color: #ef4444; }

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
}

.img-opt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-top: 0.2rem;
}

/* ── COMPACT WORKSPACE REFINEMENTS ── */
.client-header-left { gap: 0.75rem; }
.client-actions { gap: 0.35rem; }
.btn-icon { padding: 0.3rem; }
.client-table tbody tr:nth-child(even) { background: #fdfcff; }
.summary-label { font-size: 0.82rem; }
.photo-cell-wrapper { gap: 0.4rem; }

/* ═══════════════════════════════════════════════════
   BULK DELETION CONTROL PANEL & CHECKBOX STYLING
═══════════════════════════════════════════════════ */
.bulk-delete-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    flex-wrap: wrap;
    border-left: 4px solid #ef4444;
}

.bulk-panel-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bulk-panel-center {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.bulk-panel-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Custom Checkbox Design */
.checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    user-select: none;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    accent-color: #ef4444;
    cursor: pointer;
}

.client-select-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.client-select-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ef4444;
    cursor: pointer;
}

.selection-count-badge {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Danger Action Button */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

.btn-danger:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.5);
}

@media (max-width: 768px) {
    .bulk-delete-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}

/* ═══════════════════════════════════════════════════
   DATA DELETION INTERFACE — PIXEL-ACCURATE STYLES
═══════════════════════════════════════════════════ */

.del-page-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 28px 40px;
    min-height: 100%;
    background: #f5f6fa;
    box-sizing: border-box;
}

/* ── PAGE HEADER ─────────────────────────────────── */
.del-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1.5px solid #e2e8f0;
}

.del-page-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.4px;
    font-family: var(--font-ui);
}

.del-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.del-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.del-help-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.del-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    font-family: var(--font-ui);
}

/* ── FILTER TOOLBAR CARD ─────────────────────────── */
.del-toolbar-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.del-toolbar-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 14px;
}

.del-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 0;
    min-width: 0;
}

.del-apply-group {
    flex: 0 0 auto;
}

.del-field-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    font-family: var(--font-ui);
    letter-spacing: 0.01em;
    user-select: none;
}

.del-field-label-hidden {
    visibility: hidden;
}

.del-date-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.del-date-input {
    width: 100%;
    height: 42px;
    padding: 0 36px 0 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    background: #ffffff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.del-date-input:focus {
    border-color: #0f2b5c;
    box-shadow: 0 0 0 3px rgba(15,43,92,0.1);
}

.del-cal-icon {
    position: absolute;
    right: 10px;
    pointer-events: none;
    color: #6b7280;
}

.del-select-input {
    width: 100%;
    height: 42px;
    padding: 0 32px 0 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.del-select-input:focus {
    border-color: #0f2b5c;
    box-shadow: 0 0 0 3px rgba(15,43,92,0.1);
}

.del-apply-btn {
    height: 42px;
    padding: 0 24px;
    background: #1a2f5e;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(26,47,94,0.3);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.del-apply-btn:hover {
    background: #0f2040;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26,47,94,0.4);
}

/* ── PREVIEW TABLE CARD ──────────────────────────── */
.del-preview-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.del-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-bottom: 1.5px solid #e2e8f0;
}

.del-preview-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    font-family: var(--font-ui);
}

.del-rows-counter {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    font-family: var(--font-mono);
}

.del-table-wrap {
    overflow-x: auto;
    max-height: 420px;
    overflow-y: auto;
}

.del-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-ui);
}

.del-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.del-table thead tr {
    background: #f8fafc;
}

.del-table th {
    padding: 11px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    text-align: left;
    border-bottom: 1.5px solid #e2e8f0;
    white-space: nowrap;
}

.del-th-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 90px;
}

.del-th-image {
    text-align: center !important;
    width: 90px;
}

.del-table td {
    padding: 10px 14px;
    font-size: 0.875rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.del-table tbody tr:nth-child(even) {
    background: #f8fafc;
}
.del-table tbody tr:hover {
    background: #f1f5f9;
}

.del-chk, .del-row-chk {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: #1a2f5e;
    vertical-align: middle;
    flex-shrink: 0;
}

.del-td-check {
    display: flex;
    align-items: center;
}

.del-empty-msg {
    text-align: center;
    padding: 3rem 1rem !important;
    color: #94a3b8;
    font-size: 0.9rem;
}

.del-row-thumb {
    width: 52px;
    height: 42px;
    object-fit: cover;
    border-radius: 5px;
    border: 1.5px solid #e2e8f0;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.15s;
}
.del-row-thumb:hover {
    transform: scale(1.08);
}

.del-no-img {
    display: block;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.8rem;
}

.del-badge-order {
    display: inline-block;
    padding: 2px 9px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.del-badge-image {
    display: inline-block;
    padding: 2px 9px;
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde68a;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.del-table-footer {
    padding: 10px 22px;
    border-top: 1.5px solid #e2e8f0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    font-family: var(--font-ui);
    background: #ffffff;
}

/* ── PERMANENT DELETE ACTION BAR ─────────────────── */
.del-action-bar {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
}

.del-delete-btn {
    width: 100%;
    max-width: 600px;
    height: 52px;
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(220,38,38,0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.del-delete-btn:hover:not(:disabled) {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220,38,38,0.45);
}
.del-delete-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.3);
}










