/* ============================================================
   CentralPOS — Admin Panel Styles
   Extends main.css design tokens. Use together.
   ============================================================ */

/* ── Body override for admin ── */
.admin-body {
    overflow: hidden;
    height: 100vh;
    background: var(--bg-base);
}

/* ════════════════════════════════════════════════════════════
   ADMIN LOGIN OVERLAY
════════════════════════════════════════════════════════════ */
.adm-login-overlay {
    position: fixed;
    inset: 0;
    background: #f6f8f7;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'Manrope', sans-serif;
}

.adm-login-overlay::before {
    content: '';
    position: absolute;
    width: 55vw;
    height: 55vw;
    top: -20%;
    left: -15%;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.adm-login-box {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 20px;
    padding: 28px 28px 22px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 36px rgba(0, 0, 0, .10);
    text-align: center;
    position: relative;
    z-index: 1;
}

.adm-login-logo {
    width: 56px;
    height: 56px;
    background: rgba(19, 236, 109, .12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.adm-login-logo .material-symbols-outlined {
    font-size: 30px;
    color: var(--primary);
}

.adm-login-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
    margin-bottom: 2px;
}

.adm-login-sub {
    font-size: 12px;
    color: #64748b;
    margin: 4px 0 18px;
    line-height: 1.4;
}

/* Login form */
.adm-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-bottom: 10px;
}

.adm-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.adm-input-icon-left {
    position: absolute;
    left: 10px;
    font-size: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.adm-input.adm-input-icon {
    padding-left: 36px;
}

.adm-input.adm-input-icon.adm-input-icon-r {
    padding-right: 38px;
}

.adm-toggle-pass {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.adm-toggle-pass:hover {
    color: var(--text-secondary);
}

.adm-toggle-pass .material-symbols-outlined {
    font-size: 18px;
}

.adm-login-submit {
    width: 100%;
    height: 42px;
    font-size: 14px;
    justify-content: center;
    gap: 6px;
    border-radius: var(--radius);
}

.adm-login-submit .material-symbols-outlined {
    font-size: 18px;
}

.adm-login-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* OTP step */
.adm-otp-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.adm-otp-icon {
    font-size: 38px;
    color: var(--primary);
}

.adm-otp-input-wrap {
    margin-bottom: 8px;
}

.adm-otp-input {
    width: 100%;
    height: 54px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .28em;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    transition: var(--transition);
}

.adm-otp-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-dim);
}

/* Setup link button */
.adm-setup-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 8px;
    transition: color .15s;
    display: block;
    width: 100%;
    text-align: center;
    padding: 4px 0;
}

.adm-setup-link:hover {
    color: var(--primary);
}

.adm-login-error {
    font-size: 12px;
    color: var(--red);
    font-weight: 600;
    min-height: 18px;
    text-align: left;
}

.adm-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    transition: color .15s;
}

.adm-back-link:hover {
    color: var(--primary);
}

.adm-back-link .material-symbols-outlined {
    font-size: 15px;
}


/* ════════════════════════════════════════════════════════════
   APP SHELL
════════════════════════════════════════════════════════════ */
.adm-shell {
    display: flex !important;
    height: 100vh;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
}

/* ── SIDEBAR ── */
.adm-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.adm-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 14px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.adm-sidebar-logo {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adm-sidebar-logo .material-symbols-outlined {
    font-size: 18px;
    color: #fff;
}

.adm-sidebar-brand {
    min-width: 0;
}

.adm-brand-name {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-brand-sub {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Nav */
.adm-nav {
    flex: 1;
    padding: 10px 10px;
    overflow-y: auto;
}

.adm-nav-section {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 10px 8px 5px;
}

.adm-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border-radius: var(--radius);
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    transition: var(--transition);
    margin-bottom: 2px;
}

.adm-nav-item .material-symbols-outlined {
    font-size: 19px;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.adm-nav-item:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.adm-nav-item:hover .material-symbols-outlined {
    color: var(--text-secondary);
}

.adm-nav-item.active {
    background: var(--primary-dim);
    color: var(--primary);
    font-weight: 700;
}

.adm-nav-item.active .material-symbols-outlined {
    color: var(--primary);
}

/* Sidebar footer */
.adm-sidebar-footer {
    padding: 10px 12px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.adm-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-dim);
    border: 1.5px solid var(--primary);
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adm-user-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.adm-user-role {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: capitalize;
}

.adm-sidebar-actions {
    display: flex;
    gap: 6px;
}

.adm-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 32px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.adm-btn-ghost:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.adm-btn-ghost .material-symbols-outlined {
    font-size: 16px;
}

/* ── MAIN ── */
.adm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* Topbar */
.adm-topbar {
    height: 54px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    z-index: 50;
}

.adm-topbar-left {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.adm-page-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.02em;
}

.adm-breadcrumb {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.adm-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.adm-topbar-time {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.adm-icon-btn {
    width: 34px;
    height: 34px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.adm-icon-btn .material-symbols-outlined {
    font-size: 18px;
    color: var(--text-secondary);
}

.adm-icon-btn:hover {
    background: var(--bg-surface);
}

/* ── VIEWS ── */
.adm-view {
    display: none;
    flex: 1;
    padding: 20px 22px;
    overflow-y: auto;
    flex-direction: column;
    gap: 16px;
}

.adm-view.active {
    display: flex;
}

/* ════════════════════════════════════════════════════════════
   COMPONENTS
════════════════════════════════════════════════════════════ */

/* Section Card */
.adm-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.adm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
    flex-wrap: wrap;
}

.adm-section-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.adm-header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm-header-filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    margin-bottom: 0px; /* Overriding previous inline margins */
}

.adm-header-filters .adm-form-group {
    margin: 0 !important;
}

.adm-header-filters .adm-btn-primary,
.adm-header-filters .adm-btn-outline,
.adm-header-filters .adm-btn-ghost {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.adm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.adm-btn-primary:hover {
    background: #15803d;
}

.adm-btn-primary .material-symbols-outlined {
    font-size: 16px;
}

.adm-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    background: var(--red);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    transition: var(--transition);
}

.adm-btn-danger:hover {
    background: #b91c1c;
}

.adm-btn-danger .material-symbols-outlined {
    font-size: 16px;
}

.adm-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition);
}

.adm-btn-ghost:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.adm-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition);
}

.adm-btn-outline:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
    color: var(--primary);
}

.adm-btn-outline .material-symbols-outlined {
    font-size: 18px;
}

.adm-btn-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: var(--transition);
}

.adm-btn-icon .material-symbols-outlined {
    font-size: 16px;
    color: var(--text-secondary);
}

.adm-btn-icon:hover {
    background: var(--bg-surface);
}

.adm-btn-icon.danger {
    border-color: rgba(220, 38, 38, .2);
    background: var(--red-dim);
}

.adm-btn-icon.danger .material-symbols-outlined {
    color: var(--red);
}

/* ════════════════════════════════════════════════════════════
   PRODUCTION MAPPING UI (DRAG & DROP)
   ════════════════════════════════════════════════════════════ */

.adm-mapping-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    min-height: 500px;
    background: var(--bg-surface);
    overflow-x: auto;
}

.adm-mapping-column {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adm-mapping-col-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: 2px 4px;
}

.adm-mapping-col-header .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary);
}

.adm-mapping-list {
    flex: 1;
    background: rgba(0, 0, 0, .02);
    border: 1.5px dashed var(--border-subtle);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100px;
    transition: var(--transition);
}

.adm-mapping-list.drag-over {
    background: var(--primary-dim);
    border-color: var(--primary);
}

.adm-mapping-item {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.adm-mapping-item:active {
    cursor: grabbing;
}

.adm-mapping-item:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.adm-mapping-item .item-drag-handle {
    color: var(--text-muted);
    font-size: 18px;
    cursor: grab;
}

/* Centers Grid */
.adm-mapping-centers-grid {
    display: flex;
    gap: 16px;
    flex: 1;
}

.adm-center-card {
    width: 280px;
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.adm-center-card:hover {
    box-shadow: var(--shadow-md);
}

.adm-center-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.adm-center-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm-center-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.adm-center-badge.kds { background: #dcfce7; color: #166534; }
.adm-center-badge.printer { background: #fef9c3; color: #854d0e; }
.adm-center-badge.hybrid { background: #e0e7ff; color: #3730a3; }

.adm-center-body {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
}

.sortable-ghost {
    opacity: 0.4;
    background: var(--primary-dim) !important;
    border: 1.5px dashed var(--primary) !important;
}

.sortable-chosen {
    background: #fff;
}

.sortable-drag {
    background: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 1 !important;
}

/* Forms */
.adm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px;
}

.adm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.adm-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.adm-col-2 {
    grid-column: span 2;
}

.adm-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.adm-input {
    height: 38px;
    padding: 0 12px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    width: 100%;
}

.adm-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-dim);
}

.adm-input--sm {
    height: 32px;
    font-size: 12px;
}

.adm-textarea {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
}

.adm-input-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.adm-input-hint a {
    color: var(--primary);
}

.adm-color-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm-color-input {
    width: 38px;
    height: 38px;
    padding: 2px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-subtle);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── FILTERS ── */
.adm-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.adm-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.adm-filter-group .adm-input {
    width: auto;
    min-width: 140px;
}

/* ── TABLE ── */
.adm-table-wrap {
    overflow-x: auto;
}

.adm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.adm-table thead tr {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.adm-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
    white-space: nowrap;
}

.adm-table td {
    padding: 10px 16px;
    color: var(--text-primary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.adm-table tbody tr:last-child td {
    border-bottom: none;
}

.adm-table tbody tr:hover {
    background: var(--bg-elevated);
}

/* ── STATS GRID ── */
.adm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.adm-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.adm-stat-card.highlight {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: var(--border);
}

.adm-stat-card:hover {
    box-shadow: var(--shadow-card);
}

.adm-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adm-stat-icon .material-symbols-outlined {
    font-size: 22px;
}

.adm-stat-icon.green {
    background: var(--primary-dim);
}

.adm-stat-icon.green .material-symbols-outlined {
    color: var(--primary);
}

.adm-stat-icon.blue {
    background: var(--blue-dim);
}

.adm-stat-icon.blue .material-symbols-outlined {
    color: var(--blue);
}

.adm-stat-icon.amber {
    background: rgba(217, 119, 6, .08);
}

.adm-stat-icon.amber .material-symbols-outlined {
    color: var(--amber);
}

.adm-stat-icon.primary {
    background: var(--primary-dim);
}

.adm-stat-icon.primary .material-symbols-outlined {
    color: var(--primary);
}

.adm-stat-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -.02em;
}

.adm-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ── QUICK GRID ── */
.adm-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px;
}

.adm-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 10px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition);
}

.adm-quick-btn .material-symbols-outlined {
    font-size: 26px;
    color: var(--text-muted);
}

.adm-quick-btn:hover {
    background: var(--primary-dim);
    border-color: var(--border);
    color: var(--primary);
}

.adm-quick-btn:hover .material-symbols-outlined {
    color: var(--primary);
}

/* ── CATEGORIES GRID ── */
.adm-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 16px;
}

.adm-cat-card {
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: default;
    position: relative;
    transition: var(--transition);
}

.adm-cat-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.adm-cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adm-cat-icon .material-symbols-outlined {
    font-size: 22px;
    color: #fff;
}

.adm-cat-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.adm-cat-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity .15s;
}

.adm-cat-card:hover .adm-cat-actions {
    opacity: 1;
}

/* ── BADGES ── */
.adm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.adm-badge.green {
    background: var(--primary-dim);
    color: var(--primary);
}

.adm-badge.red {
    background: var(--red-dim);
    color: var(--red);
}

.adm-badge.amber {
    background: rgba(217, 119, 6, .08);
    color: var(--amber);
}

.adm-badge.blue {
    background: var(--blue-dim);
    color: var(--blue);
}

.adm-badge.gray {
    background: var(--bg-surface);
    color: var(--text-muted);
}

.adm-badge.purple {
    background: rgba(139, 92, 246, .12);
    color: #7c3aed;
}


/* ── MODALS ── */
.adm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .40);
    backdrop-filter: blur(3px);
    display: block;
    overflow-y: auto;
    z-index: 1000;
    padding: 20px 16px;
    animation: fadeIn .15s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.adm-modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    width: 100%;
    max-width: 440px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    animation: slideUp .18s ease;
}

.adm-modal--lg {
    max-width: 560px;
}

.adm-modal--sm {
    max-width: 360px;
}

@keyframes slideUp {
    from {
        transform: translateY(16px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.adm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.adm-modal-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.adm-modal-close {
    width: 28px;
    height: 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.adm-modal-close:hover {
    background: var(--bg-surface);
}

.adm-modal-close .material-symbols-outlined {
    font-size: 16px;
}

.adm-modal-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-dim) transparent;
}

/* Custom scrollbar for Webkit */
.adm-modal-body::-webkit-scrollbar {
    width: 6px;
}
.adm-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.adm-modal-body::-webkit-scrollbar-thumb {
    background-color: var(--primary-dim);
    border-radius: 10px;
}
.adm-modal-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary);
}

.adm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

/* Confirm modal */
.adm-confirm-icon {
    text-align: center;
    margin-bottom: 6px;
}

.adm-confirm-icon .material-symbols-outlined {
    font-size: 40px;
    color: var(--amber);
}

.adm-confirm-text {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── EMPTY STATE ── */
.adm-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    padding: 60px 20px;
    text-align: center;
}

.adm-empty-state .material-symbols-outlined {
    font-size: 52px;
    opacity: .4;
}

.adm-empty-state p {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
}

.adm-empty-state span {
    font-size: 13px;
    font-weight: 500;
}

/* ── TOGGLE SWITCH ── */
.adm-toggle {
    position: relative;
    width: 36px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
}

.adm-toggle input {
    display: none;
}

.adm-toggle-slider {
    position: absolute;
    inset: 0;
    border-radius: 99px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    cursor: pointer;
    transition: .2s;
}

.adm-toggle-slider::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-muted);
    top: 1px;
    left: 1px;
    transition: .2s;
}

.adm-toggle input:checked+.adm-toggle-slider {
    background: var(--primary-dim);
    border-color: var(--primary);
}

.adm-toggle input:checked+.adm-toggle-slider::after {
    background: var(--primary);
    transform: translateX(16px);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .adm-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .adm-quick-grid {
        grid-template-columns: 1fr 1fr;
    }

    .adm-sidebar {
        width: 64px;
    }

    .adm-brand-name,
    .adm-brand-sub,
    .adm-nav-item span:not(.material-symbols-outlined),
    .adm-nav-section,
    .adm-user-name,
    .adm-user-role {
        display: none;
    }

    .adm-nav-item {
        justify-content: center;
        padding: 10px 0;
    }

    .adm-sidebar-header {
        justify-content: center;
        padding: 14px 0;
    }

    .adm-sidebar-footer {
        align-items: center;
    }

    .adm-user-chip {
        justify-content: center;
    }

    .adm-sidebar-actions {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .adm-stats-grid {
        grid-template-columns: 1fr;
    }

    .adm-form-grid {
        grid-template-columns: 1fr;
    }

    .adm-col-2 {
        grid-column: span 1;
    }
}

/* ════════════════════════════════════════════════════════════
   TABS (Personal / Roles)
════════════════════════════════════════════════════════════ */
.adm-tabs {
    display: flex;
    gap: 4px;
    padding: 0 2px 12px;
    border-bottom: none;
    flex-shrink: 0;
}

.adm-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-subtle);
    background: var(--bg-card);
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.adm-tab .material-symbols-outlined {
    font-size: 17px;
}

.adm-tab:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.adm-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.adm-tab.active .material-symbols-outlined {
    color: #fff;
}

.adm-tab-panel {
    display: none;
}

.adm-tab-panel.active {
    display: block;
}

/* ════════════════════════════════════════════════════════════
   ROLES GRID
════════════════════════════════════════════════════════════ */
.adm-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    padding: 16px 18px;
}

.adm-role-card {
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.adm-role-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--role-color, #64748b);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.adm-role-card:hover {
    border-color: var(--role-color, #64748b);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

.adm-role-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.adm-role-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--role-color, #64748b) 15%, transparent);
}

.adm-role-icon .material-symbols-outlined {
    font-size: 20px;
    color: var(--role-color, #64748b);
}

.adm-role-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    flex: 1;
}

.adm-role-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    min-height: 14px;
}

.adm-role-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.adm-role-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

.adm-role-count .material-symbols-outlined {
    font-size: 14px;
}

.adm-role-perms {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
    min-height: 22px;
}

.adm-perm-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    white-space: nowrap;
}

.adm-role-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.adm-role-system-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2px 8px;
    margin-left: auto;
}

/* ════════════════════════════════════════════════════════════
   PERMISSIONS CHECKLIST
════════════════════════════════════════════════════════════ */
.adm-perm-section {
    margin-top: 16px;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.adm-perm-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.adm-perm-header .material-symbols-outlined {
    font-size: 16px;
    color: var(--text-muted);
}

.adm-perm-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.adm-perm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.adm-perm-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    cursor: pointer;
    border-bottom: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    transition: background .1s;
}

.adm-perm-item:nth-child(2n) {
    border-right: none;
}

.adm-perm-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.adm-perm-item:hover {
    background: var(--bg-elevated);
}

.adm-perm-chk {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.adm-perm-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    width: 100%;
    cursor: pointer;
    transition: color .1s;
}

.adm-perm-label .material-symbols-outlined {
    font-size: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* TABS NAV */
.adm-tabs-nav {
    display: flex;
    gap: 4px;
    background: var(--bg-surface);
    padding: 4px;
    border-radius: var(--radius-lg);
    margin: 18px 0;
    border: 1px solid var(--border-subtle);
}

.adm-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    border: none;
    background: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.adm-tab-btn .material-symbols-outlined {
    font-size: 18px;
}

.adm-tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.adm-tab-btn.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.adm-tab-content {
    display: none;
    animation: fadeIn .2s ease;
}

.adm-tab-content.active {
    display: block;
}

.adm-perm-chk:checked~.adm-perm-label {
    color: var(--primary);
    font-weight: 700;
    background: var(--primary-dim);
}

.adm-perm-chk:checked~.adm-perm-label .material-symbols-outlined {
    color: var(--primary);
}

/* Add checkmark indicator */
.adm-perm-label::after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--border-subtle);
    background: var(--bg-card);
    margin-left: auto;
    flex-shrink: 0;
    transition: var(--transition);
}

.adm-perm-chk:checked~.adm-perm-label::after {
    background: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ════════════════════════════════════════════════════════════
   MODAL TABS (Modifier Groups)
════════════════════════════════════════════════════════════ */
.adm-modal-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}

.adm-modal-tab .material-symbols-outlined {
    font-size: 16px;
}

.adm-modal-tab:hover {
    color: var(--text-primary);
}

.adm-modal-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ── Checklist de productos (tab Asignar a) ── */
.mod-product-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: background .12s;
}

.mod-product-row:hover {
    background: var(--bg-elevated);
}

.mod-product-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.mod-product-row .mod-prod-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-product-row .mod-prod-cat {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 99px;
    flex-shrink: 0;
}

/* ── Etiquetas de asignados ── */
.mod-assign-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 10px;
    background: var(--primary-dim);
    color: var(--primary);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
}

.mod-assign-tag button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    color: var(--primary);
    opacity: .7;
    transition: opacity .12s;
}

.mod-assign-tag button:hover { opacity: 1; }
.mod-assign-tag button .material-symbols-outlined { font-size: 13px; }

/* ═══════════════════════════════════════════════════════════
   FORMAS DE PAGO — badges de estado
═══════════════════════════════════════════════════════════ */
.adm-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.adm-badge--active {
    background: rgba(34, 197, 94, .12);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, .25);
}

.adm-badge--active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.adm-badge--inactive {
    background: rgba(100, 116, 139, .10);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.adm-badge--inactive::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: .5;
}

/* Botón de toggle en tabla de formas de pago */
.adm-btn-icon.danger {
    color: #ef4444;
}
.adm-btn-icon.danger:hover {
    background: rgba(239, 68, 68, .10);
}

/* ════════════════════════════════════════════════════════════
   EXECUTIVE DASHBOARD (NEW)
   ════════════════════════════════════════════════════════════ */

.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.dash-kpi-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s;
}

.dash-kpi-card:hover { transform: translateY(-4px); }

.dash-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-kpi-icon span { font-size: 26px; }

.dash-kpi-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.dash-kpi-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.dash-kpi-icon.yellow { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.dash-kpi-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.dash-kpi-badge {
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 99px;
}

.dash-kpi-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.dash-kpi-label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-kpi-value {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.dash-kpi-value.small { font-size: 18px; }

/* Main Grid Layout */
.dash-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: flex-start;
}

.adm-section-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.dash-filter-pill {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.dash-chart-wrapper {
    padding: 20px;
    height: 300px;
    position: relative;
}

/* Operational Pulse */
.dash-pulse-card {
    background: #10b981;
    border-radius: 20px;
    padding: 24px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.dash-pulse-header h3 { font-size: 18px; font-weight: 900; margin: 0; }
.dash-pulse-header p { font-size: 12px; opacity: 0.9; margin: 4px 0 24px; }

.dash-pulse-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.dash-pulse-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pulse-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-info { display: flex; flex-direction: column; }
.pulse-label { font-size: 11px; font-weight: 700; opacity: 0.8; }
.pulse-val { font-size: 20px; font-weight: 900; }

.dash-efficiency { margin-top: 10px; }
.eff-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.eff-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    overflow: hidden;
}

.eff-bar-fill {
    height: 100%;
    background: #fff;
    border-radius: 99px;
    transition: width 1s;
}

/* Alerts Card */
.dash-alerts-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-top: 24px;
}

.dash-alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 800;
}

.dash-link-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.dash-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    gap: 10px;
}

.alert-item.critical { border-left: 4px solid var(--red); background: #fef2f2; }
.alert-item.medium { border-left: 4px solid var(--amber); background: #fffbeb; }

.alert-dot {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-item.critical .alert-dot { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.alert-item.medium .alert-dot { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.alert-content { flex: 1; }
.alert-title { font-size: 12px; font-weight: 800; color: #1e293b; display: block; }
.alert-desc { font-size: 11px; color: #64748b; display: block; margin-top: 2px; }
.alert-time { font-size: 9px; font-weight: 700; color: #94a3b8; margin-top: 4px; display: block; }

/* Top Products */
.dash-top-products {
    padding: 12px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.top-prod-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tp-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
}

.tp-name { color: #1e293b; }
.tp-units { color: #64748b; font-size: 11px; }

.tp-bar-bg {
    height: 8px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
}

.tp-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 99px;
}

.dash-loading, .dash-loading-small {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 1024px) {
    .dash-main-grid { grid-template-columns: 1fr; }
}