/* iceProjects 2.0 – interfață (peste Bootstrap 5.3), temă luminoasă + întunecată (data-bs-theme) */
:root, [data-bs-theme="light"] {
    --ip-primary: #4f46e5;
    --ip-primary-dark: #4338ca;
    --ip-primary-soft: #eef2ff;
    --ip-primary-soft-2: #e0e7ff;
    --ip-primary-border: #c7d2fe;
    --ip-primary-text: #4338ca;
    --ip-primary-rgb: 79, 70, 229;
    --ip-primary-light: #a5b4fc;
    --ip-primary-deep: #312e81;
    --ip-primary-2: #6366f1;
    --ip-bg: #f4f6fb;
    --ip-surface: #ffffff;
    --ip-surface-2: #f8fafc;
    --ip-surface-hover: #f8fafc;
    --ip-border: #e6e9f2;
    --ip-input-border: #dbe0ea;
    --ip-text: #0f172a;
    --ip-muted: #64748b;
    --ip-sidebar: #111827;
    --ip-sidebar-text: #cbd5e1;
    --ip-topbar: rgba(255, 255, 255, .92);
    --ip-radius: 14px;
    --ip-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
    --ip-shadow-hover: 0 8px 24px rgba(15, 23, 42, .08);
    --ip-unread: #f5f7ff;
    --ip-internal-bg: #fffbeb;
    --ip-internal-border: #fde68a;
    /* badge-uri „soft” */
    --ip-s-primary-bg: #eef2ff;  --ip-s-primary: #4338ca;
    --ip-s-secondary-bg: #f1f5f9; --ip-s-secondary: #475569;
    --ip-s-success-bg: #dcfce7;  --ip-s-success: #15803d;
    --ip-s-warning-bg: #fef3c7;  --ip-s-warning: #b45309;
    --ip-s-danger-bg: #fee2e2;   --ip-s-danger: #b91c1c;
    --ip-s-info-bg: #cffafe;     --ip-s-info: #0e7490;
    --ip-s-dark-bg: #e2e8f0;     --ip-s-dark: #334155;
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-link-color: #4f46e5;
    --bs-link-color-rgb: 79, 70, 229;
    --bs-link-hover-color: #4338ca;
    --bs-body-font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: #0f172a;
    --bs-border-color: #e6e9f2;
}

[data-bs-theme="dark"] {
    --ip-primary: #6366f1;
    --ip-primary-dark: #818cf8;
    --ip-primary-soft: rgba(99, 102, 241, .16);
    --ip-primary-soft-2: rgba(99, 102, 241, .26);
    --ip-primary-border: rgba(129, 140, 248, .45);
    --ip-primary-text: #a5b4fc;
    --ip-primary-rgb: 99, 102, 241;
    --ip-primary-light: #a5b4fc;
    --ip-primary-deep: #312e81;
    --ip-primary-2: #6366f1;
    --ip-bg: #0b1020;
    --ip-surface: #121a2e;
    --ip-surface-2: #172036;
    --ip-surface-hover: #182238;
    --ip-border: #232d45;
    --ip-input-border: #2c3754;
    --ip-text: #e5e9f2;
    --ip-muted: #8e9ab3;
    --ip-sidebar: #080c18;
    --ip-sidebar-text: #b4bfd4;
    --ip-topbar: rgba(18, 26, 46, .9);
    --ip-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --ip-shadow-hover: 0 8px 28px rgba(0, 0, 0, .45);
    --ip-unread: rgba(99, 102, 241, .1);
    --ip-internal-bg: rgba(245, 158, 11, .1);
    --ip-internal-border: rgba(245, 158, 11, .35);
    --ip-s-primary-bg: rgba(99, 102, 241, .18);  --ip-s-primary: #a5b4fc;
    --ip-s-secondary-bg: rgba(148, 163, 184, .16); --ip-s-secondary: #cbd5e1;
    --ip-s-success-bg: rgba(34, 197, 94, .16);   --ip-s-success: #86efac;
    --ip-s-warning-bg: rgba(245, 158, 11, .16);  --ip-s-warning: #fcd34d;
    --ip-s-danger-bg: rgba(239, 68, 68, .16);    --ip-s-danger: #fca5a5;
    --ip-s-info-bg: rgba(6, 182, 212, .16);      --ip-s-info: #67e8f9;
    --ip-s-dark-bg: rgba(148, 163, 184, .12);    --ip-s-dark: #94a3b8;
    --bs-primary: #6366f1;
    --bs-primary-rgb: 99, 102, 241;
    --bs-link-color: #a5b4fc;
    --bs-link-color-rgb: 165, 180, 252;
    --bs-link-hover-color: #c7d2fe;
    --bs-body-color: #e5e9f2;
    --bs-body-bg: #0b1020;
    --bs-border-color: #232d45;
    --bs-secondary-bg: #172036;
    --bs-tertiary-bg: #121a2e;
    --bs-light-rgb: 23, 32, 54;
    color-scheme: dark;
}

body { background: var(--ip-bg); color: var(--ip-text); font-size: .925rem; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
.text-muted { color: var(--ip-muted) !important; }
.text-body { color: var(--ip-text) !important; }
.fw-semibold { font-weight: 600 !important; }
.small-caps { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--ip-muted); }
.bg-light { background-color: var(--ip-surface-2) !important; }

/* ------------------------------------------------------------ butoane & formulare */
.btn { border-radius: 10px; font-weight: 500; padding: .5rem 1rem; }
.btn-sm { border-radius: 8px; padding: .3rem .7rem; }
.btn-lg { border-radius: 12px; padding: .75rem 1.4rem; }
.btn-primary { --bs-btn-bg: var(--ip-primary); --bs-btn-border-color: var(--ip-primary); --bs-btn-hover-bg: var(--ip-primary-dark);
    --bs-btn-hover-border-color: var(--ip-primary-dark); --bs-btn-active-bg: var(--ip-primary-dark); --bs-btn-disabled-bg: var(--ip-primary); --bs-btn-disabled-border-color: var(--ip-primary); }
.btn-outline-primary { --bs-btn-color: var(--ip-primary-text); --bs-btn-border-color: var(--ip-primary-border); --bs-btn-hover-bg: var(--ip-primary); --bs-btn-hover-border-color: var(--ip-primary);
    --bs-btn-active-bg: var(--ip-primary); --bs-btn-active-border-color: var(--ip-primary); }
.btn-soft { background: var(--ip-primary-soft); color: var(--ip-primary-text); border: 0; }
.btn-soft:hover { background: var(--ip-primary-soft-2); color: var(--ip-primary-text); }
.btn-light { --bs-btn-bg: var(--ip-surface); --bs-btn-color: var(--ip-text); --bs-btn-border-color: var(--ip-border);
    --bs-btn-hover-bg: var(--ip-surface-hover); --bs-btn-hover-color: var(--ip-text); --bs-btn-hover-border-color: var(--ip-input-border);
    --bs-btn-active-bg: var(--ip-surface-2); --bs-btn-active-color: var(--ip-text); }
.btn-icon { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.form-control, .form-select { border-radius: 10px; border-color: var(--ip-input-border); padding: .55rem .8rem; background-color: var(--ip-surface); color: var(--ip-text); }
.form-control-sm, .form-select-sm { border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: var(--ip-primary-light); box-shadow: 0 0 0 .2rem rgba(var(--ip-primary-rgb), .15); background-color: var(--ip-surface); color: var(--ip-text); }
.form-control::placeholder { color: var(--ip-muted); opacity: .8; }
.form-label { font-weight: 500; font-size: .85rem; margin-bottom: .3rem; }
.form-text { font-size: .78rem; color: var(--ip-muted); }
.form-check-input:checked { background-color: var(--ip-primary); border-color: var(--ip-primary); }
.input-group-text { border-radius: 10px; background: var(--ip-surface-2); border-color: var(--ip-input-border); color: var(--ip-muted); }

/* ------------------------------------------------------------ carduri */
.card { --bs-card-bg: var(--ip-surface); border: 1px solid var(--ip-border); border-radius: var(--ip-radius); box-shadow: var(--ip-shadow); color: var(--ip-text); }
.card-header { background: transparent; border-bottom: 1px solid var(--ip-border); padding: 1rem 1.25rem; font-weight: 600; }
.card-body { padding: 1.25rem; }
.card-title { font-weight: 600; }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--ip-shadow-hover); }

.stat { display: flex; gap: 1rem; align-items: center; }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-value { font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--ip-muted); font-size: .8rem; }
.bg-soft-primary { background: var(--ip-s-primary-bg); color: var(--ip-s-primary); }
.bg-soft-success { background: var(--ip-s-success-bg); color: var(--ip-s-success); }
.bg-soft-warning { background: var(--ip-s-warning-bg); color: var(--ip-s-warning); }
.bg-soft-danger  { background: var(--ip-s-danger-bg); color: var(--ip-s-danger); }
.bg-soft-info    { background: var(--ip-s-info-bg); color: var(--ip-s-info); }
.bg-soft-secondary { background: var(--ip-s-secondary-bg); color: var(--ip-s-secondary); }

/* ------------------------------------------------------------ badge-uri */
.badge { font-weight: 600; border-radius: 999px; padding: .35em .7em; font-size: .72rem; white-space: nowrap; flex-shrink: 0; align-self: center; line-height: 1.2; }
.badge-soft-primary { background: var(--ip-s-primary-bg); color: var(--ip-s-primary); }
.badge-soft-secondary { background: var(--ip-s-secondary-bg); color: var(--ip-s-secondary); }
.badge-soft-success { background: var(--ip-s-success-bg); color: var(--ip-s-success); }
.badge-soft-warning { background: var(--ip-s-warning-bg); color: var(--ip-s-warning); }
.badge-soft-danger { background: var(--ip-s-danger-bg); color: var(--ip-s-danger); }
.badge-soft-info { background: var(--ip-s-info-bg); color: var(--ip-s-info); }
.badge-soft-dark { background: var(--ip-s-dark-bg); color: var(--ip-s-dark); }

/* ------------------------------------------------------------ tabele */
.table { --bs-table-bg: transparent; --bs-table-color: var(--ip-text); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .8rem 1rem; border-bottom-color: var(--ip-border); color: var(--ip-text); }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ip-muted); font-weight: 600; background: var(--ip-surface-2); white-space: nowrap; }
.table-light, .table tfoot .table-light > * { --bs-table-bg: var(--ip-surface-2); --bs-table-color: var(--ip-text); }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: var(--ip-surface-hover); }
.table td { vertical-align: middle; }
.row-link { cursor: pointer; }
.card > .table-responsive:last-child .table tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------ layout */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 252px; background: var(--ip-sidebar); color: var(--ip-sidebar-text); position: fixed; inset: 0 auto 0 0; z-index: 1040;
    display: flex; flex-direction: column; transition: transform .2s ease; border-right: 1px solid rgba(255, 255, 255, .04); }
.sidebar-brand { display: flex; align-items: center; gap: .65rem; padding: 1.15rem 1.25rem; color: #fff; font-weight: 700; font-size: 1.1rem; }
.sidebar-brand:hover { color: #fff; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--ip-primary-2), #22d3ee); display: grid; place-items: center; color: #fff; font-size: 1.05rem; }
.sidebar-nav { padding: .5rem .75rem 1rem; overflow-y: auto; flex: 1; }
.sidebar-nav .nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; padding: 1rem .75rem .4rem; font-weight: 600; }
.sidebar-nav a { display: flex; align-items: center; gap: .75rem; color: var(--ip-sidebar-text); padding: .58rem .8rem; border-radius: 10px; font-weight: 500; margin-bottom: 2px; }
.sidebar-nav a i { font-size: 1.05rem; width: 20px; text-align: center; opacity: .85; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar-nav a.active { background: rgba(var(--ip-primary-rgb), .22); color: #fff; }
.sidebar-nav a.active i { color: var(--ip-primary-light); opacity: 1; }
.sidebar-nav .count { margin-left: auto; background: #ef4444; color: #fff; font-size: .68rem; border-radius: 999px; padding: .1rem .45rem; }
.sidebar-footer { padding: 1rem 1.25rem; font-size: .75rem; color: #64748b; border-top: 1px solid rgba(255, 255, 255, .06); }

.main { flex: 1; margin-left: 252px; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: var(--ip-topbar); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ip-border);
    display: flex; align-items: center; gap: .75rem; padding: 0 1.5rem; position: sticky; top: 0; z-index: 1030; }
.topbar .page-title { font-weight: 600; font-size: 1.05rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content { padding: 1.5rem; max-width: 1400px; width: 100%; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-header h1 { font-size: 1.45rem; font-weight: 700; margin: 0; }
.page-header .subtitle { color: var(--ip-muted); margin: .2rem 0 0; }
.breadcrumb { font-size: .8rem; margin-bottom: .25rem; color: var(--ip-muted); }

.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ip-s-primary-bg); color: var(--ip-s-primary); display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.avatar-sm { width: 28px; height: 28px; font-size: .68rem; }
.avatar-staff { background: var(--ip-primary); color: #fff; }

.timer-pill { display: inline-flex; align-items: center; gap: .5rem; background: var(--ip-s-danger-bg); color: var(--ip-s-danger); border-radius: 999px; padding: .3rem .4rem .3rem .8rem; font-weight: 600; font-size: .85rem; max-width: 360px; }
.timer-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: pulse 1.4s infinite; flex-shrink: 0; }
.timer-pill .task { color: inherit; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.timer-pill .time { font-variant-numeric: tabular-nums; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.notif-menu { width: 340px; max-height: 420px; overflow-y: auto; }
.notif-item { white-space: normal; padding: .65rem 1rem; border-bottom: 1px solid var(--ip-border); }
.notif-item.unread { background: var(--ip-unread); }
.dropdown-menu { --bs-dropdown-bg: var(--ip-surface); --bs-dropdown-border-color: var(--ip-border); --bs-dropdown-link-color: var(--ip-text);
    --bs-dropdown-link-hover-bg: var(--ip-surface-hover); --bs-dropdown-link-active-bg: var(--ip-primary); border-radius: 12px; box-shadow: var(--ip-shadow-hover); }
.modal-content { --bs-modal-bg: var(--ip-surface); border-color: var(--ip-border); border-radius: 16px; }
.list-group { --bs-list-group-bg: transparent; --bs-list-group-color: var(--ip-text); --bs-list-group-border-color: var(--ip-border);
    --bs-list-group-action-hover-bg: var(--ip-surface-hover); --bs-list-group-action-hover-color: var(--ip-text); }

.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
    .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1035; }
    .main { margin-left: 0; }
    .content { padding: 1rem; }
    .topbar { padding: 0 1rem; }
    .timer-pill .task { display: none; }
}

/* ------------------------------------------------------------ pagini de autentificare */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(140deg, var(--ip-primary-deep) 0%, var(--ip-primary) 55%, #333333 100%); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { font-weight: 700; font-size: 2rem; max-width: 420px; }
.auth-side .feature { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; opacity: .95; }
.auth-side .feature i { font-size: 1.2rem; background: rgba(255, 255, 255, .15); border-radius: 10px; padding: .35rem .5rem; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--ip-surface); }
.auth-box { width: 100%; max-width: 400px; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ------------------------------------------------------------ elemente specifice */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ip-muted); }
.empty-state i { font-size: 2.6rem; color: var(--ip-primary-border); display: block; margin-bottom: .75rem; }
.empty-state h5 { color: var(--ip-text); font-weight: 600; }

.action-tile { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border-radius: var(--ip-radius); background: var(--ip-surface); border: 1px solid var(--ip-border);
    color: var(--ip-text); box-shadow: var(--ip-shadow); transition: all .15s ease; height: 100%; }
.action-tile:hover { border-color: var(--ip-primary-border); transform: translateY(-2px); color: var(--ip-text); box-shadow: 0 8px 24px rgba(var(--ip-primary-rgb), .14); }
.action-tile .tile-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }
.action-tile .tile-title { font-weight: 600; font-size: 1rem; }
.action-tile .tile-text { color: var(--ip-muted); font-size: .82rem; }

.welcome { background: linear-gradient(120deg, var(--ip-primary), var(--ip-primary-2) 60%, #333333); color: #fff; border-radius: var(--ip-radius); padding: 1.6rem 1.75rem; margin-bottom: 1.5rem; }
.welcome h1 { font-weight: 700; font-size: 1.5rem; margin: 0 0 .3rem; }
.welcome p { margin: 0; opacity: .9; }

.progress { height: 8px; border-radius: 999px; background: var(--ip-surface-2); }
.progress-bar { background: var(--ip-primary); border-radius: 999px; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li { display: flex; gap: .85rem; padding-bottom: 1.25rem; position: relative; }
.timeline > li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: 0; width: 2px; background: var(--ip-border); }
.message { background: var(--ip-surface); border: 1px solid var(--ip-border); border-radius: 12px; padding: .85rem 1rem; flex: 1; min-width: 0; }
.message.from-staff { background: var(--ip-primary-soft); border-color: var(--ip-primary-border); }
.message.internal { background: var(--ip-internal-bg); border-color: var(--ip-internal-border); }
.message .meta { font-size: .78rem; color: var(--ip-muted); margin-bottom: .35rem; }
.message .body { word-wrap: break-word; }

.thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.thumb { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--ip-border); position: relative; background: var(--ip-surface-2); display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--ip-border); border-radius: 10px; padding: .35rem .65rem; font-size: .8rem; color: var(--ip-text); background: var(--ip-surface); }
.file-chip:hover { border-color: var(--ip-primary-border); color: var(--ip-primary-text); }

.dropzone { border: 2px dashed var(--ip-input-border); border-radius: 12px; padding: 1rem; text-align: center; color: var(--ip-muted); cursor: pointer; transition: all .15s; background: var(--ip-surface-2); }
.dropzone:hover, .dropzone.drag { border-color: var(--ip-primary); background: var(--ip-primary-soft); color: var(--ip-primary-text); }
.dropzone input[type=file] { display: none; }
.previews { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.previews .pv { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--ip-border); position: relative; font-size: .65rem; display: grid; place-items: center; background: var(--ip-surface); text-align: center; padding: 2px; }
.previews .pv img { width: 100%; height: 100%; object-fit: cover; }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: .45rem 1rem; font-size: .88rem; }
.kv dt { color: var(--ip-muted); font-weight: 500; }
.kv dd { margin: 0; word-break: break-word; }

.nav-tabs-modern { border-bottom: 1px solid var(--ip-border); gap: .25rem; flex-wrap: nowrap; overflow-x: auto; }
.nav-tabs-modern .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--ip-muted); font-weight: 500; padding: .7rem 1rem; white-space: nowrap; border-radius: 0; background: transparent; }
.nav-tabs-modern .nav-link.active { color: var(--ip-primary-text); border-bottom-color: var(--ip-primary); background: transparent; }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.filters .form-select, .filters .form-control { width: auto; min-width: 150px; }
.chip-filter { border: 1px solid var(--ip-border); background: var(--ip-surface); color: var(--ip-muted); border-radius: 999px; padding: .3rem .85rem; font-size: .82rem; font-weight: 500; }
.chip-filter.active, .chip-filter:hover { background: var(--ip-primary-soft); color: var(--ip-primary-text); border-color: var(--ip-primary-border); }

.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.total-box { background: var(--ip-primary-soft); border-radius: 12px; padding: 1rem 1.25rem; }
.lightbox img { max-width: 100%; max-height: 80vh; display: block; margin: 0 auto; border-radius: 8px; }
.secret { font-family: ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.toast-container { z-index: 1090; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: .65rem 0; border-bottom: 1px solid var(--ip-border); }
.list-clean li:last-child { border-bottom: 0; }
.cursor-pointer { cursor: pointer; }
.alert { border-radius: 12px; }
/* atenționare roșie, pală (ex. facturi neplătite) */
.alert-soft-danger { background: var(--ip-s-danger-bg); color: var(--ip-s-danger); border: 1px solid rgba(239, 68, 68, .25) !important; }
.alert-soft-danger .btn-light { --bs-btn-color: var(--ip-s-danger); }
.pagination { --bs-pagination-bg: var(--ip-surface); --bs-pagination-border-color: var(--ip-border); --bs-pagination-color: var(--ip-text);
    --bs-pagination-active-bg: var(--ip-primary); --bs-pagination-active-border-color: var(--ip-primary); --bs-pagination-hover-bg: var(--ip-surface-hover); }

/* logo-ul încărcat în Setări → Identitate */
.brand-logo-img { background: transparent !important; overflow: hidden; }
.brand-logo-img img { width: 100%; height: 100%; object-fit: contain; }

/* subsol: logo icecode + drepturi + versiune */
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: 1.25rem 1.5rem; margin-top: auto; border-top: 1px solid var(--ip-border); color: var(--ip-muted); font-size: .8rem; }
.app-footer .footer-brand img { height: 26px; width: auto; display: block; }
.app-footer .footer-version { color: var(--ip-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.app-footer .footer-version:hover { color: var(--ip-primary-text); }
.app-footer.on-auth { border-top: 0; padding: 1.5rem 0 0; justify-content: center; text-align: center; flex-direction: column; gap: .5rem; }
.logo-on-dark { display: none !important; }
[data-bs-theme="dark"] .logo-on-dark { display: block !important; }
[data-bs-theme="dark"] .logo-on-light { display: none !important; }

/* cardul licenței: culoarea aplicației + iconița mare, înclinată, pe jumătatea dreaptă */
.license-card { --app-color: #4f46e5; position: relative; overflow: hidden; border-radius: 18px; color: #fff; min-height: 210px; height: 100%;
    background: linear-gradient(135deg, var(--app-color) 0%, color-mix(in srgb, var(--app-color) 70%, #000) 100%);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--app-color) 35%, transparent); }
.license-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .22), transparent 55%); pointer-events: none; }
.license-card-icon { position: absolute; right: -8%; top: 50%; width: 58%; max-width: 230px; aspect-ratio: 1; object-fit: contain;
    transform: translateY(-50%) rotate(-18deg); opacity: .92; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .25)); pointer-events: none; }
.license-card-body { position: relative; z-index: 1; padding: 1.35rem 1.4rem; max-width: 62%; display: flex; flex-direction: column; height: 100%; }
.license-card-name { font-weight: 700; font-size: 1.15rem; line-height: 1.25; margin-bottom: .25rem; }
.license-card .lc-status { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255, 255, 255, .2); border-radius: 999px; padding: .2rem .65rem; font-size: .72rem; font-weight: 600; backdrop-filter: blur(4px); width: max-content; }
.license-card .lc-key { font-family: ui-monospace, Consolas, monospace; font-weight: 600; letter-spacing: .04em; background: rgba(0, 0, 0, .18); border-radius: 8px; padding: .3rem .55rem; font-size: .82rem; }
.license-card .lc-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; font-weight: 600; }
.license-card a, .license-card .btn-link { color: #fff; }
.license-card .btn-light { --bs-btn-bg: rgba(255, 255, 255, .92); --bs-btn-color: #0f172a; --bs-btn-border-color: transparent; }
.license-card.is-expired { filter: grayscale(.55); }

/* jurnalul de versiuni */
.changelog-version { border-left: 3px solid var(--ip-primary); padding-left: 1rem; margin-bottom: 2rem; }
.changelog-cat { min-width: 105px; display: inline-block; text-align: center; }

/* comutatorul de temă */
.theme-menu .dropdown-item i { width: 1.25rem; display: inline-block; }

/* documentele (factură, desfășurător) rămân albe și în modul întunecat */
.doc-frame { background: #fff; }

@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main { margin: 0; }
    body { background: #fff; }
    .card { box-shadow: none; }
}

/* ------------------------------------------------------------ Setări → Culori: previzualizare */
.theme-preview { width: 132px; flex-shrink: 0; border-radius: 12px; padding: 12px; border: 1px solid var(--ip-border); background: #f4f6fb; transition: background .15s; }
.theme-preview .tp-card { border-radius: 9px; padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.theme-preview .tp-line { height: 6px; border-radius: 3px; background: currentColor; opacity: .35; }
.theme-preview .tp-line.short { width: 60%; }
.theme-preview .tp-btn { height: 18px; border-radius: 6px; margin-top: 4px; background: #4f46e5; }
