/* ==========================================================================
   GESIB.RO - Admin Panel Stylesheet & 5-Step Feed Import Wizard (WP All Import Style)
   ========================================================================== */

:root {
    --admin-sidebar-bg: #1A1715;
    --admin-sidebar-text: #E5DDD5;
    --admin-sidebar-active: #C82333;
    --admin-content-bg: #F8F5F0;
    --admin-card-bg: #FFFFFF;
    --admin-border: #E5DDD3;
    --admin-primary: #C82333;
    --admin-primary-hover: #A31826;
    --admin-text: #1F1A17;
    --admin-muted: #7A6F68;
    --admin-success: #28A745;
    --admin-warning: #C25E00;
    --admin-danger: #DC3545;
    --font-admin: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--admin-content-bg);
    color: var(--admin-text);
    font-family: var(--font-admin);
    font-size: 13.5px;
    line-height: 1.5;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Layout */
.admin-sidebar {
    width: 270px;
    background: var(--admin-sidebar-bg);
    color: var(--admin-sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-header {
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--admin-primary);
    letter-spacing: 1px;
}
.sidebar-logo span { color: #FFF; }
.sidebar-subtitle {
    font-size: 11px;
    color: #8C827A;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}
.nav-group-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7A6F68;
    padding: 12px 22px 6px 22px;
    font-weight: 700;
}
.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    color: #CFC5BD;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}
.sidebar-nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: #FFF;
}
.sidebar-nav-link.active {
    background: rgba(200, 35, 51, 0.15);
    color: #FFF;
    border-left-color: var(--admin-primary);
}
.nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* Content Area */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-topbar {
    background: #FFF;
    border-bottom: 1px solid var(--admin-border);
    padding: 14px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-title {
    font-size: 18px;
    font-weight: 800;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

/* Cards & Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}
.metric-card {
    background: #FFF;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.metric-title {
    font-size: 11.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--admin-muted);
    margin-bottom: 6px;
}
.metric-val {
    font-size: 24px;
    font-weight: 900;
    color: var(--admin-text);
}
.metric-val.accent { color: var(--admin-primary); }

/* Tables & CRUD */
.admin-panel-card {
    background: #FFF;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    margin-bottom: 25px;
}
.panel-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.panel-card-title {
    font-size: 15px;
    font-weight: 800;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-table th, .admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--admin-border);
    text-align: left;
    vertical-align: middle;
}
.admin-table th {
    background: #FAF7F2;
    font-weight: 700;
    color: var(--admin-muted);
    white-space: nowrap;
}
.admin-table tr:hover td {
    background: #FDFBF8;
}

/* Status Badges */
.badge-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}
.badge-status.active, .badge-status.completed, .badge-status.paid, .badge-status.delivered, .badge-status.success {
    background: #E8F5E9;
    color: #2E7D32;
}
.badge-status.pending, .badge-status.processing, .badge-status.confirmed, .badge-status.shipped {
    background: #FFF3E0;
    color: #E65100;
}
.badge-status.cancelled, .badge-status.rejected, .badge-status.inactive, .badge-status.error {
    background: #FFEBEE;
    color: #C62828;
}

/* Action Buttons */
.btn-admin {
    padding: 7px 14px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.btn-admin:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.btn-admin-primary {
    background: var(--admin-primary);
    color: #FFF;
}
.btn-admin-primary:hover:not(:disabled) {
    background: var(--admin-primary-hover);
}
.btn-admin-success {
    background: var(--admin-success);
    color: #FFF;
}
.btn-admin-success:hover:not(:disabled) {
    background: #218838;
}
.btn-admin-secondary {
    background: #FFF;
    border-color: var(--admin-border);
    color: var(--admin-text);
}
.btn-admin-secondary:hover:not(:disabled) {
    background: #F5EFEB;
}
.btn-admin-danger {
    background: #FFF;
    border-color: #F5C6CB;
    color: #DC3545;
}
.btn-admin-danger:hover:not(:disabled) {
    background: #DC3545;
    color: #FFF;
}
.btn-admin-sm {
    padding: 4px 8px;
    font-size: 11.5px;
}

/* Modals & Forms */
.admin-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 16, 14, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}
.admin-modal-box {
    background: #FFF;
    border-radius: 10px;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    overflow: hidden;
}
.admin-modal-box.wide {
    max-width: 1120px;
}
.admin-modal-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FAF7F2;
}
.admin-modal-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--admin-text);
}
.admin-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--admin-muted);
    cursor: pointer;
}
.admin-modal-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
}
.admin-modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--admin-border);
    background: #FAF7F2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.admin-form-group.full {
    grid-column: 1 / -1;
}
.admin-form-group label {
    font-size: 12px;
    font-weight: 700;
    color: #3D352E;
}
.admin-input, .admin-select, .admin-textarea {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid #D5CBC0;
    border-radius: 5px;
    font-size: 13px;
    font-family: inherit;
    background: #FFF;
    color: var(--admin-text);
}
.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 2px rgba(200,35,51,0.12);
}

/* Toast Notifications */
.admin-toast-container {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.admin-toast {
    background: #1F1A17;
    color: #FFF;
    padding: 12px 18px;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    font-size: 13px;
    font-weight: 600;
    border-left: 4px solid var(--admin-primary);
    min-width: 280px;
    max-width: 420px;
}
.admin-toast.success { border-left-color: var(--admin-success); }
.admin-toast.error { border-left-color: var(--admin-danger); }

/* ==========================================================================
   5-STEP FEED IMPORT WIZARD (WP ALL IMPORT & GESIBAPP.AI.STUDIO STYLE)
   ========================================================================== */
.feed-wizard-container {
    background: #FFF;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 25px;
}

.wizard-stepper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #FAF7F2;
    border-bottom: 1px solid var(--admin-border);
}
.wizard-step-tab {
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid var(--admin-border);
    cursor: pointer;
    opacity: 0.65;
    transition: all 0.2s;
    user-select: none;
}
.wizard-step-tab:last-child { border-right: none; }
.wizard-step-tab.active {
    background: #FFF;
    opacity: 1;
    border-bottom: 3px solid var(--admin-primary);
}
.wizard-step-tab.completed {
    opacity: 0.95;
}
.wizard-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #E5DDD3;
    color: #3D352E;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wizard-step-tab.active .wizard-step-num {
    background: var(--admin-primary);
    color: #FFF;
}
.wizard-step-tab.completed .wizard-step-num {
    background: var(--admin-success);
    color: #FFF;
}
.wizard-step-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}
.wizard-step-sub {
    font-size: 10.5px;
    color: var(--admin-muted);
    display: block;
    font-weight: 500;
}

.wizard-body {
    padding: 24px;
}
.wizard-footer {
    padding: 16px 24px;
    background: #FAF7F2;
    border-top: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Step 2: 2-Column Mapping Layout */
.wizard-mapping-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: start;
}
.wizard-mapping-row {
    display: grid;
    grid-template-columns: 195px 1fr 180px;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid #ECE6DF;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #FDFBF9;
    transition: border-color 0.15s;
}
.wizard-mapping-row.focused {
    border-color: var(--admin-primary);
    background: #FFF9F9;
}
.wizard-Field-title {
    font-weight: 700;
    font-size: 12.5px;
}
.wizard-field-req {
    color: var(--admin-primary);
    font-weight: 900;
}
.wizard-live-val {
    font-size: 11.5px;
    color: #2E7D32;
    background: #EEF7EE;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Live Record Inspector (Right Column) */
.wizard-inspector-card {
    background: #1E1B18;
    color: #F3EDE7;
    border-radius: 8px;
    padding: 16px;
    position: sticky;
    top: 10px;
    max-height: 620px;
    display: flex;
    flex-direction: column;
}
.wizard-inspector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 12px;
}
.wizard-inspector-list {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.wizard-inspector-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 5px;
    padding: 7px 10px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.wizard-inspector-item:hover {
    background: rgba(200, 35, 51, 0.25);
    border-color: var(--admin-primary);
}
.wizard-tag-pill {
    background: #C82333;
    color: #FFF;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11.5px;
    font-weight: 700;
    flex-shrink: 0;
}
.wizard-tag-sample {
    font-size: 11.5px;
    color: #D7CCC4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Step 4: Checkboxes Grid */
.wizard-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.wizard-checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    background: #FDFBF9;
    cursor: pointer;
}
.wizard-checkbox-card input {
    margin-top: 3px;
}

/* Step 5: Progress Bar */
.wizard-progress-wrap {
    background: #EAE3DC;
    height: 26px;
    border-radius: 13px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
}
.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #C82333, #E04B59);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 12px;
    font-weight: 800;
}

/* ==========================================================================
   Supplier Workspace & Multi-Feed Vector Specific Styles
   ========================================================================== */
.supplier-subnav {
    display: flex;
    gap: 8px;
    background: #FFF;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.supplier-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-muted);
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.supplier-tab-btn:hover {
    background: #FAF7F2;
    color: var(--admin-text);
}
.supplier-tab-btn.active {
    background: var(--admin-primary);
    color: #FFF;
    border-color: var(--admin-primary);
}
.supplier-tab-btn .badge-pill {
    background: rgba(0,0,0,0.12);
    color: inherit;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}
.supplier-tab-btn.active .badge-pill {
    background: rgba(255,255,255,0.25);
    color: #FFF;
}

.supplier-price-sim {
    background: #FAF7F2;
    border: 1px solid #E5DDD3;
    border-radius: 8px;
    padding: 18px 20px;
    margin-top: 15px;
}
.sim-step-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #DDD5CA;
    font-size: 13.5px;
}
.sim-step-row:last-child {
    border-bottom: none;
    font-size: 15px;
    font-weight: 800;
    color: var(--admin-primary);
    padding-top: 12px;
}
.feed-xml-card {
    background: #FFF;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}
.feed-xml-card .feed-meta {
    flex: 1;
}
.feed-xml-card .feed-title {
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 3px;
    color: var(--admin-text);
}
.feed-xml-card .feed-url {
    font-size: 12px;
    color: #888;
    word-break: break-all;
}

/* Pagina generica furnizor: indicator de progres pentru operatiuni lungi (analiza feed, import) */
.uni-spinner { display:inline-block; width:14px; height:14px; border:2px solid #D9CFC4; border-top-color:#C82333; border-radius:50%; animation:uni-spin 0.8s linear infinite; vertical-align:-2px; margin-right:6px; }
@keyframes uni-spin { to { transform:rotate(360deg); } }

/* ==========================================================================
   CRM: Comenzi, Clienți B2C, Parteneri B2B (assets/js/admin-crm.js)
   ========================================================================== */
.crm-loading { padding: 40px; text-align: center; color: #888; }
.crm-stale { opacity: 0.55; transition: opacity 0.15s; }
.crm-error { color: #C82333; padding: 16px 20px; font-weight: 600; }
.crm-empty { text-align: center; padding: 26px !important; color: #888; }
.crm-empty-sm { color: #999; font-size: 12.5px; margin: 4px 0 10px; }
.crm-muted { color: var(--admin-muted); font-weight: 400; }
.crm-hint { color: var(--admin-muted); font-size: 12px; margin: 6px 0; }
.crm-ok { color: #2E7D32; }
.crm-due { color: #C25E00; }
.crm-overdue { color: #C62828; font-weight: 700; }
.crm-gap-top { margin-top: 12px; }
.crm-hr { border: 0; border-top: 1px solid var(--admin-border); margin: 16px 0; }
.crm-card-body { padding: 16px 20px; }
.crm-lbl { display: block; font-size: 12px; font-weight: 700; color: #3D352E; margin-bottom: 5px; }
.crm-val-sm { font-size: 17px !important; }
.crm-pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 14px; }
.crm-pager:empty { display: none; }
.crm-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crm-inline .admin-input, .crm-inline .admin-select { flex: 1 1 160px; width: auto; min-width: 0; }
.crm-actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Fir de navigare */
.crm-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; }
.crm-crumbs a { color: var(--admin-primary); text-decoration: none; font-weight: 600; }
.crm-crumbs a:hover { text-decoration: underline; }
.crm-crumbs i { font-style: normal; color: #BBB; }
.crm-crumbs span { font-weight: 700; }
.crm-crumbs .crm-back { margin-left: auto; color: var(--admin-text); text-decoration: none; }
.crm-crumbs .crm-back:hover { text-decoration: none; }

/* Filtre și liste */
.crm-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--admin-border); background: #FDFBF8; align-items: end; }
.crm-filter-actions { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.crm-status-tabs { margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--admin-border) !important; border-radius: 0 !important; }
a.supplier-tab-btn { text-decoration: none; }
.supplier-tab-btn .badge-pill.crm-pill-warn { background: #E0A800; color: #222; }
.crm-row { cursor: pointer; }
.crm-row-overdue td { background: #FFF6F6; }
.crm-sort { color: inherit; text-decoration: none; }
.crm-sort:hover { color: var(--admin-primary); }
.crm-table td small { line-height: 1.35; }
.crm-credit-cell { min-width: 150px; }
.crm-progress { height: 6px; background: #EEE7DF; border-radius: 4px; overflow: hidden; margin-top: 5px; min-width: 90px; }
.crm-progress span { display: block; height: 100%; background: #28A745; }
.crm-progress.crm-bar-warn span { background: #E0A800; }
.crm-progress.crm-bar-danger span { background: #DC3545; }
.badge-status.new, .badge-status.credit_pending { background: #E3F2FD; color: #1565C0; }
.badge-status.unpaid, .badge-status.overdue, .badge-status.blocked, .badge-status.suspended { background: #FFEBEE; color: #C62828; }
.badge-status.partial, .badge-status.credit_term { background: #FFF3E0; color: #E65100; }
.badge-status.refunded { background: #ECEFF1; color: #546E7A; }

/* Antet pagină detaliu */
.crm-head { padding: 0; }
.crm-head-main { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding: 18px 20px; }
.crm-h2 { font-size: 21px; font-weight: 900; margin: 0 0 2px; }
.crm-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.crm-head-totals { display: flex; gap: 26px; flex-wrap: wrap; }
.crm-head-totals div { display: flex; flex-direction: column; }
.crm-head-totals span { font-size: 11px; text-transform: uppercase; font-weight: 700; }
.crm-head-totals strong { font-size: 19px; font-weight: 900; }
.crm-head-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.crm-metric-danger { border-color: #DC3545; background: #FFF8F8; }

/* Pagină comandă: două coloane */
.crm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.crm-col { min-width: 0; }
.crm-col .admin-panel-card { margin-bottom: 20px; }
@media (max-width: 1100px) {
    .crm-grid { grid-template-columns: minmax(0, 1fr); }
    .crm-head-actions { align-items: flex-start; }
}
.crm-grid3 { grid-template-columns: repeat(3, 1fr); }
.crm-grid4 { grid-template-columns: repeat(4, 1fr); }
.crm-side-grid { gap: 10px; }
@media (max-width: 900px) {
    .crm-grid3, .crm-grid4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .crm-grid3, .crm-grid4, .crm-side-grid { grid-template-columns: 1fr; }
}
.crm-form-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 760px) { .crm-form-row { grid-template-columns: 1fr; } }
.crm-subform { background: #FAF7F2; border: 1px solid var(--admin-border); border-radius: 8px; padding: 14px 16px; margin-top: 14px; }
.crm-subform:first-child { margin-top: 0; }
.crm-subform-title { font-weight: 800; font-size: 13px; margin-bottom: 10px; }

/* Produse și totaluri */
.crm-thumb { width: 54px; }
.crm-thumb img { width: 46px; height: 46px; object-fit: cover; border-radius: 5px; border: 1px solid var(--admin-border); display: block; }
.crm-noimg { color: #BBB; }
.crm-totals { max-width: 420px; margin-left: auto; }
.crm-total-row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 13px; }
.crm-total-main { border-top: 2px solid var(--admin-text); margin-top: 6px; padding-top: 8px; font-size: 15px; }

/* Stepper status */
.crm-stepper { display: flex; gap: 4px; margin-bottom: 16px; }
.crm-step { flex: 1; text-align: center; position: relative; font-size: 11.5px; color: #999; }
.crm-step::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: #E5DDD3; z-index: 0; }
.crm-step:first-child::before { display: none; }
.crm-dot { position: relative; z-index: 1; display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: #E5DDD3; color: #777; font-weight: 800; align-items: center; justify-content: center; }
.crm-step-label { display: block; margin-top: 4px; font-weight: 600; }
.crm-step small { display: block; color: #999; }
.crm-step-done .crm-dot { background: #28A745; color: #FFF; }
.crm-step-done::before, .crm-step-cur::before { background: #28A745; }
.crm-step-cur .crm-dot { background: var(--admin-primary); color: #FFF; }
.crm-step-cur { color: var(--admin-text); }
.crm-step-off .crm-dot { background: #F0E9E2; }

/* Alerte, note, confirmări */
.crm-alert { border-radius: 6px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.crm-alert-danger { background: #FFF1F1; border: 1px solid #F5C6CB; color: #8E1B26; }
.crm-alert-warn { background: #FFFBEA; border: 1px solid #E0A800; color: #6B5A00; }
.crm-note { background: #FAF7F2; border: 1px solid var(--admin-border); border-radius: 6px; padding: 9px 12px; margin-bottom: 8px; }
.crm-note-text { white-space: pre-wrap; word-break: break-word; }
.crm-note-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.crm-note-legacy { border-style: dashed; }
.crm-confirm { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crm-confirm-open { background: #FFF1F1; border: 1px solid #F5C6CB; border-radius: 6px; padding: 4px 8px; }
.crm-confirm-text { font-weight: 700; color: #8E1B26; font-size: 12.5px; }
.crm-danger-zone { border-color: #F5C6CB; }
.crm-danger-zone .panel-card-title { color: #C62828; }
.crm-voided td { color: #999; text-decoration: line-through; }
.crm-voided td small { text-decoration: none; }
.crm-client-name { font-size: 15px; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crm-credit-used { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #FAF7F2; border: 1px solid var(--admin-border); border-radius: 8px; padding: 12px 16px; }
.crm-credit-used strong { display: block; font-size: 18px; }
.crm-price { color: var(--admin-primary); }

/* Cronologie */
.crm-timeline { list-style: none; margin: 0; padding: 0; }
.crm-tl-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F0EAE3; }
.crm-tl-item:last-child { border-bottom: 0; }
.crm-tl-icon { flex: 0 0 30px; height: 30px; border-radius: 50%; background: #F5EFEB; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.crm-tl-body { min-width: 0; }
.crm-tl-msg { white-space: pre-wrap; word-break: break-word; color: #3D352E; font-size: 12.5px; margin: 2px 0; }

/* Aprobare partener / parolă generată */
.crm-approval-wrap { border-top: 1px solid var(--admin-border); }
.crm-approval { background: #FFFBEA; border: 2px solid #E0A800; border-radius: 8px; padding: 14px 18px; }
.crm-approval-title { font-weight: 800; color: #8A6100; font-size: 15px; }
.crm-flash { background: #EAF7EE; border: 2px solid #28A745; border-radius: 8px; padding: 14px 18px; margin-bottom: 18px; display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.crm-flash-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crm-pwd { font-family: monospace; font-size: 16px; letter-spacing: 1px; width: 260px; }

/* ==========================================================================
   ADMIN 2.0  —  shell redesign (sidebar, topbar, login) + global refresh.
   Bloc adăugat peste regulile existente: suprascrie tokenii, nu rescrie modulele.
   ========================================================================== */
:root {
    --admin-sidebar-bg: #111318;
    --admin-sidebar-text: #A3AAB8;
    --admin-sidebar-active: #E5384A;
    --admin-content-bg: #F6F7F9;
    --admin-card-bg: #FFFFFF;
    --admin-border: #E4E7EC;
    --admin-primary: #C82333;
    --admin-primary-hover: #A81C2A;
    --admin-text: #1B1F27;
    --admin-muted: #667085;
    --admin-success: #1F9D55;
    --admin-warning: #C25E00;
    --admin-danger: #D92D3E;
    --admin-accent-soft: #FDECEE;
    --admin-surface-2: #F9FAFB;
    --admin-radius: 12px;
    --admin-radius-sm: 8px;
    --admin-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
    --admin-shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.14);
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
    --sb-w: 264px;
    --sb-w-rail: 72px;
    --topbar-h: 60px;
    --font-admin: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-admin);
    font-size: 14px;
    line-height: 1.5;
    height: 100vh;
    height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { letter-spacing: -0.01em; }
a { color: var(--admin-primary); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ico { flex-shrink: 0; display: block; }

/* Focus vizibil */
:focus-visible { outline: 2px solid rgba(200, 35, 51, 0.6); outline-offset: 2px; }
.admin-input:focus-visible, .admin-select:focus-visible, .admin-textarea:focus-visible { outline: none; }

/* Scrollbar discret */
* { scrollbar-width: thin; scrollbar-color: #CBD0D8 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #CBD0D8; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #A9B0BC; background-clip: padding-box; border: 2px solid transparent; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------------- Sidebar */
.admin-sidebar {
    width: var(--sb-w);
    background: var(--admin-sidebar-bg);
    color: var(--admin-sidebar-text);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: width 0.2s ease;
    min-height: 0;
}
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 14px 12px 16px;
    border-bottom: 0;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sidebar-brand-mark {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #EE4456, #C82333);
    color: #fff; font-weight: 800; font-size: 16px;
    box-shadow: 0 2px 8px rgba(200, 35, 51, 0.35);
}
.sidebar-logo { font-size: 16px; font-weight: 800; letter-spacing: 0.04em; color: #fff; line-height: 1.15; }
.sidebar-logo span { color: #F0495A; }
.sidebar-subtitle { font-size: 11.5px; color: #7C8493; text-transform: none; letter-spacing: 0; margin-top: 1px; }
.sidebar-rail-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px;
    border: 0; background: transparent; color: #7C8493; cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.sidebar-rail-toggle:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }

.sidebar-search { position: relative; margin: 4px 12px 8px; }
.sidebar-search-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #7C8493; pointer-events: none; }
.sidebar-search input {
    width: 100%; height: 36px; padding: 0 10px 0 33px;
    background: rgba(255, 255, 255, 0.06); color: #E5E7EB;
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px;
    font-size: 13px; transition: border-color 0.15s, background 0.15s;
    -webkit-appearance: none; appearance: none;
}
.sidebar-search input::placeholder { color: #7C8493; }
.sidebar-search input::-webkit-search-cancel-button { filter: invert(0.7); }
.sidebar-search input:focus { outline: none; border-color: rgba(240, 73, 90, 0.7); background: rgba(255, 255, 255, 0.09); }

.sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 0 12px; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); background-clip: padding-box; }
.nav-group { margin-bottom: 2px; }
.nav-group[hidden], .sidebar-nav-link[hidden], .sidebar-no-results[hidden], .sidebar-overlay[hidden], .topbar-bell-count[hidden] { display: none !important; }
.nav-group-title {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: calc(100% - 16px); margin: 8px 8px 2px; padding: 6px 10px;
    background: transparent; border: 0; border-radius: 6px; cursor: pointer;
    font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
    color: #6F7787; text-align: left; transition: color 0.15s, background 0.15s;
}
.nav-group-title:hover { color: #C4CAD6; }
.nav-chevron { transition: transform 0.2s; }
.nav-group.collapsed .nav-chevron { transform: rotate(-90deg); }
.nav-group.collapsed .nav-group-items { display: none; }
.sidebar-nav.is-searching .nav-group.collapsed .nav-group-items { display: block; }

.sidebar-nav-link {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    min-height: 36px; margin: 1px 10px; padding: 0 10px;
    color: var(--admin-sidebar-text); text-decoration: none;
    font-size: 13.5px; font-weight: 500; line-height: 1.25;
    border-left: 0; border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.sidebar-nav-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar-nav-link.active { background: rgba(229, 56, 74, 0.16); color: #fff; border-left: 0; }
.sidebar-nav-link.active::before {
    content: ''; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px;
    background: #F0495A; border-radius: 0 3px 3px 0;
}
.sidebar-nav-link:focus-visible { outline: 2px solid #FF8A96; outline-offset: -2px; }
.nav-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: inherit; color: #8A92A3; transition: color 0.15s; }
.sidebar-nav-link:hover .nav-icon { color: #D5DAE3; }
.sidebar-nav-link.active .nav-icon { color: #FF6B7A; }
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-nav-link.nav-sub { min-height: 32px; margin-left: 10px; padding-left: 28px; font-size: 13px; }
.sidebar-nav-link.nav-sub .nav-icon { width: 18px; height: 18px; }
.sidebar-nav-link.nav-sub::after {
    content: ''; position: absolute; left: 19px; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.08);
}

/* Contoare / insigne */
.nav-badge-pending {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
    align-items: center; justify-content: center;
    background: #F5B301; color: #1B1F27; border-radius: 999px;
    font-size: 11px; font-weight: 700; line-height: 1;
}
.sidebar-no-results { padding: 16px 22px; font-size: 12.5px; color: #7C8493; }

.sidebar-footer {
    display: flex; align-items: center; justify-content: flex-start; gap: 10px;
    padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 12px;
}
.sidebar-avatar, .topbar-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.sidebar-avatar { background: rgba(255, 255, 255, 0.1); color: #fff; }
.sidebar-user { flex: 1; min-width: 0; line-height: 1.3; }
.sidebar-user strong { display: block; color: #E5E7EB; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { display: block; color: #7C8493; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-logout {
    width: 34px; height: 34px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; border-radius: 8px; color: #9AA1AF; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.sidebar-logout:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.sidebar-logout:focus-visible, .sidebar-rail-toggle:focus-visible, .nav-group-title:focus-visible { outline: 2px solid #FF8A96; outline-offset: 1px; }

/* Mod rail (doar desktop) */
@media (min-width: 1025px) {
    body.sidebar-rail .admin-sidebar { width: var(--sb-w-rail); }
    body.sidebar-rail .sidebar-header { flex-direction: column; padding: 14px 0 8px; gap: 8px; justify-content: center; }
    body.sidebar-rail .sidebar-brand-text,
    body.sidebar-rail .sidebar-search,
    body.sidebar-rail .nav-label,
    body.sidebar-rail .nav-chevron,
    body.sidebar-rail .nav-group-label,
    body.sidebar-rail .sidebar-user,
    body.sidebar-rail .sidebar-nav-link.nav-sub,
    body.sidebar-rail .sidebar-no-results { display: none; }
    body.sidebar-rail .sidebar-rail-toggle svg { transform: scaleX(-1); }
    body.sidebar-rail .nav-group-title { height: 1px; padding: 0; margin: 10px 16px; width: calc(100% - 32px); background: rgba(255, 255, 255, 0.08); pointer-events: none; }
    body.sidebar-rail .nav-group.collapsed .nav-group-items { display: block; }
    body.sidebar-rail .sidebar-nav-link { justify-content: center; margin: 2px 12px; padding: 0; min-height: 40px; }
    body.sidebar-rail .sidebar-nav-link.active::before { left: -12px; }
    body.sidebar-rail .nav-badge-pending { position: absolute; top: 5px; right: 5px; min-width: 9px; width: 9px; height: 9px; padding: 0; font-size: 0; margin: 0; border: 2px solid var(--admin-sidebar-bg); box-sizing: content-box; }
    body.sidebar-rail .sidebar-footer { flex-direction: column; padding: 12px 0; gap: 6px; }
}

/* ---------------------------------------------------------------- Layout principal + topbar */
.admin-main { min-width: 0; background: var(--admin-content-bg); }
.admin-topbar {
    height: var(--topbar-h); flex-shrink: 0;
    background: #fff; border-bottom: 1px solid var(--admin-border);
    padding: 0 var(--sp-5); gap: var(--sp-4);
    justify-content: flex-start;
}
.topbar-heading { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.topbar-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--admin-muted); line-height: 1.2; white-space: nowrap; overflow: hidden; }
.topbar-breadcrumb:empty { display: none; }
.topbar-breadcrumb [aria-current] { color: #475467; }
.topbar-crumb-sep { color: #C0C6D0; }
.topbar-title { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--admin-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-menu-btn {
    display: none; width: 38px; height: 38px; flex-shrink: 0;
    align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--admin-border); border-radius: 8px; color: var(--admin-text); cursor: pointer;
}
.topbar-menu-btn:hover { background: #F3F4F6; }
.topbar-bell {
    position: relative; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--admin-border); border-radius: 8px; color: #475467; cursor: pointer; transition: background 0.15s;
}
.topbar-bell:hover { background: #F3F4F6; }
.topbar-bell-count {
    position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--admin-primary); color: #fff; border-radius: 999px; border: 2px solid #fff; box-sizing: content-box;
    font-size: 10.5px; font-weight: 700; line-height: 1;
}
.topbar-user { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: 1px solid var(--admin-border); border-radius: 999px; background: #fff; }
.topbar-avatar { background: var(--admin-accent-soft); color: var(--admin-primary); }
.topbar-user-name { font-size: 13px; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.admin-content { padding: var(--sp-5); background: var(--admin-content-bg); }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(10, 12, 16, 0.5); z-index: 2400; backdrop-filter: blur(2px); }

/* ---------------------------------------------------------------- Carduri */
.metric-card, .admin-panel-card, .feed-wizard-container, .feed-xml-card, .supplier-subnav {
    background: var(--admin-card-bg); border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius); box-shadow: var(--admin-shadow);
}
.admin-panel-card { margin-bottom: var(--sp-5); }
.admin-panel-card > .table-responsive:last-child .admin-table tbody tr:last-child td { border-bottom: 0; }
.panel-card-header { padding: var(--sp-4) var(--sp-5); }
.panel-card-title { font-size: 15px; font-weight: 700; }
.metrics-grid { gap: var(--sp-4); margin-bottom: var(--sp-5); }
.metric-card { padding: var(--sp-4) var(--sp-5); }
.metric-title { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: var(--admin-muted); margin-bottom: 4px; }
.metric-val { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }

/* Pagini "În curând" */
.admin-soon {
    max-width: 560px; margin: 48px auto; padding: 40px 32px; text-align: center;
    background: #fff; border: 1px solid var(--admin-border); border-radius: 16px; box-shadow: var(--admin-shadow);
}
.admin-soon-badge {
    display: inline-block; padding: 3px 12px; margin-bottom: 14px; border-radius: 999px;
    background: #FEF3C7; color: #92400E; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.admin-soon-title { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.admin-soon p { color: var(--admin-muted); font-size: 14px; max-width: 420px; margin: 0 auto; }

/* ---------------------------------------------------------------- Tabele */
.admin-table { font-size: 13.5px; }
.admin-table th, .admin-table td { padding: 11px 16px; border-bottom: 1px solid #EDEFF3; }
.admin-table th {
    background: var(--admin-surface-2); color: var(--admin-muted);
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    border-bottom: 1px solid var(--admin-border);
}
:where(.admin-table tbody tr:nth-child(even) > td) { background: #FBFBFD; }
.admin-table tr:hover td { background: #F3F5F9; }

/* ---------------------------------------------------------------- Insigne */
.badge-status {
    padding: 2px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; line-height: 1.6;
}
.badge-status.active, .badge-status.completed, .badge-status.paid, .badge-status.delivered, .badge-status.success { background: #E7F6EC; color: #187A43; }
.badge-status.pending, .badge-status.processing, .badge-status.confirmed, .badge-status.shipped { background: #FFF1DB; color: #B45309; }
.badge-status.cancelled, .badge-status.rejected, .badge-status.inactive, .badge-status.error { background: #FDE8EA; color: #B42335; }
.badge-pill { border-radius: 999px; }

/* ---------------------------------------------------------------- Butoane */
.btn-admin {
    min-height: 36px; padding: 0 14px; border-radius: var(--admin-radius-sm);
    font-size: 13.5px; font-weight: 600; justify-content: center; line-height: 1.2;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.btn-admin:active:not(:disabled) { transform: translateY(0.5px); }
.btn-admin-primary { box-shadow: 0 1px 2px rgba(200, 35, 51, 0.25); }
.btn-admin-secondary { background: #fff; border-color: #D0D5DD; color: #344054; }
.btn-admin-secondary:hover:not(:disabled) { background: #F3F4F6; }
.btn-admin-danger { border-color: #F3C4CA; color: var(--admin-danger); }
.btn-admin-danger:hover:not(:disabled) { background: var(--admin-danger); color: #fff; }
.btn-admin-success:hover:not(:disabled) { background: #187A43; }
.btn-admin-sm { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-admin-block { width: 100%; min-height: 42px; font-size: 14px; }
.btn-admin:focus-visible { outline: 2px solid rgba(200, 35, 51, 0.6); outline-offset: 2px; }

/* ---------------------------------------------------------------- Formulare */
.admin-form-group label, .crm-lbl { font-size: 12.5px; font-weight: 600; color: #344054; }
.admin-input, .admin-select, .admin-textarea {
    border: 1px solid #D0D5DD; border-radius: var(--admin-radius-sm); font-size: 14px; padding: 0 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-input, .admin-select:not([multiple]):not([size]) { min-height: 40px; }
.admin-select[multiple], .admin-select[size] { padding: 6px 8px; }
.admin-textarea { padding: 10px 12px; min-height: 88px; line-height: 1.5; }
.admin-input:hover, .admin-select:hover, .admin-textarea:hover { border-color: #B8BFCB; }
.admin-input:focus, .admin-select:focus, .admin-textarea:focus { border-color: var(--admin-primary); box-shadow: 0 0 0 3px rgba(200, 35, 51, 0.14); }
.admin-input:disabled, .admin-select:disabled, .admin-textarea:disabled { background: #F2F4F7; color: #98A2B3; cursor: not-allowed; }

/* ---------------------------------------------------------------- Modale, toast */
.admin-modal-overlay { background: rgba(16, 20, 28, 0.55); backdrop-filter: blur(2px); }
.admin-modal-box { border-radius: 16px; box-shadow: var(--admin-shadow-lg); }
.admin-modal-header, .admin-modal-footer { background: var(--admin-surface-2); }
.admin-modal-header { padding: 16px 24px; }
.admin-modal-title { font-size: 16px; font-weight: 700; }
.admin-modal-close { width: 32px; height: 32px; border-radius: 8px; transition: background 0.15s; }
.admin-modal-close:hover { background: #EEF0F4; }
.admin-toast { border-radius: 10px; background: #1B1F27; }

/* Suprafețe neutre (în locul tonurilor calde vechi) */
.wizard-stepper, .wizard-footer, .supplier-price-sim, .crm-subform, .crm-note, .crm-credit-used { background: var(--admin-surface-2); }
.crm-filters { background: var(--admin-surface-2); }
.wizard-mapping-row, .wizard-checkbox-card { background: #fff; border-color: var(--admin-border); }
.supplier-tab-btn:hover { background: #F3F4F6; }
.supplier-subnav { padding: 6px 10px; }

/* ---------------------------------------------------------------- Login */
.admin-login {
    min-height: 100vh; min-height: 100dvh; width: 100%;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background: radial-gradient(1200px 600px at 20% -10%, #2A1E22 0%, transparent 60%), #111318;
    overflow-y: auto;
}
.admin-login-card {
    width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 36px 32px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.admin-login-brand { text-align: center; margin-bottom: 26px; }
.admin-login-logo { font-size: 28px; font-weight: 800; letter-spacing: 0.04em; color: var(--admin-primary); }
.admin-login-logo span { color: var(--admin-text); }
.admin-login-sub { font-size: 13px; color: var(--admin-muted); margin-top: 4px; }
.admin-login-field { margin-bottom: 16px; }
.admin-login-field label { display: block; font-size: 13px; font-weight: 600; color: #344054; margin-bottom: 6px; }
.admin-login-error {
    display: none; margin-bottom: 14px; padding: 10px 12px; border-radius: 8px;
    background: #FDE8EA; color: #9B1C2B; font-size: 13px;
}
.admin-login-foot { text-align: center; margin-top: 20px; font-size: 12px; color: #98A2B3; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
    .wizard-mapping-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
    .admin-sidebar {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 2500;
        width: 288px; max-width: 86vw;
        transform: translateX(-104%); transition: transform 0.22s ease;
        box-shadow: none;
    }
    body.sidebar-open .admin-sidebar { transform: translateX(0); box-shadow: var(--admin-shadow-lg); }
    body.sidebar-open { overflow: hidden; }
    .topbar-menu-btn { display: inline-flex; }
    .admin-topbar { padding: 0 var(--sp-4); gap: var(--sp-3); }
    .admin-content { padding: var(--sp-4); }
    .topbar-user-name { display: none; }
    .topbar-user { padding: 3px; }
}
@media (max-width: 760px) {
    .wizard-stepper { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
    .wizard-mapping-row { grid-template-columns: minmax(0, 1fr); }
    .wizard-body { padding: var(--sp-4); }
    .admin-form-grid { grid-template-columns: minmax(0, 1fr); }
    .panel-card-header { padding: var(--sp-3) var(--sp-4); }
}
@media (max-width: 640px) {
    .topbar-breadcrumb, .topbar-store span, .topbar-new-order span { display: none; }
    .topbar-store, .topbar-new-order { padding: 0 10px; }
    .topbar-title { font-size: 16px; }
    .admin-modal-overlay { padding: 10px; }
    .admin-soon { margin: 24px auto; padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation-duration: 0.01ms !important; }
}
