/*
 * main.css — Design system „enterprise" (port 1:1 din PROMT_STILURI.MD).
 *
 * O singură culoare de brand: navy #134a6d. Fundație Bootstrap 5 + Bootstrap Icons.
 * Fișierul e ADITIV peste app.css: tokens + bibliotecă de componente (prefixe hr-/uf-/urp-/
 * wp-/uc-/acq-/inv-hub-/csh-/st-pill) + câteva override-uri globale (butoane, tab-uri,
 * select2, focus navy pe câmpuri).
 *
 * Omis intenționat față de spec: `html, body { height: 100% !important }` (ar rupe layout-ul
 * flex cu sticky sidebar al aplicației) și `@font-face` custom din CDN extern (opțional în spec,
 * ar introduce dependență de rețea; nicio componentă de mai jos nu le referă).
 */

/* ==========================================================================
   GLOBAL & UTILITARE
   ========================================================================== */
.content-wrapper { background-color: #fff; }
.status_badge { padding: 10px; }
.lobibox-notify-msg { height: auto !important; max-height: none !important; }
.waitMe { background-color: rgba(0,0,0,.5) !important; }

/* ==========================================================================
   NOTIFICĂRI ENTERPRISE (Lobibox toast — succes/eroare/info/avertisment)
   Override peste lobibox.min.css (importat înainte de main.css în app.js).
   Card alb, bară de accent pe stânga, iconiță colorată, text închis, umbră fină
   și indicator de progres subtil — în locul fundalurilor saturate default.
   ========================================================================== */
.lobibox-notify-wrapper,
.lobibox-notify-wrapper-large { padding: 14px !important; }

/* Notificarile stau sus-CENTRU. Lobibox pune doar `left: 50%` pentru pozitia `center`, deci
   containerul ar incepe din mijloc si ar iesi in dreapta ecranului; `translateX(-50%)` il
   aseaza cu adevarat pe centru. Pe ecrane inguste, latimea se restrange ca sa nu depaseasca. */
.lobibox-notify-wrapper.center,
.lobibox-notify-wrapper-large.center {
    transform: translateX(-50%);
    max-width: calc(100vw - 1.5rem);
}
@media (max-width: 575.98px) {
    .lobibox-notify-wrapper.center .lobibox-notify { width: calc(100vw - 2rem) !important; }
}

.lobibox-notify {
    background: #fff !important;
    color: #344054 !important;
    border: 1px solid #e6ebf2 !important;
    border-left: 4px solid #475467 !important;   /* accentul se schimbă pe tip mai jos */
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .05) !important;
    width: 366px !important;
    max-width: calc(100vw - 32px) !important;
    min-height: 56px !important;
    margin: 9px 0 !important;
    transition: box-shadow .18s ease, transform .18s ease !important;
}
.lobibox-notify:hover {
    box-shadow: 0 16px 40px rgba(16, 24, 40, .2), 0 3px 8px rgba(16, 24, 40, .08) !important;
    transform: translateY(-1px);
}

/* Accent + culoare de tip (variabila --acc e folosită de iconiță și progres) */
.lobibox-notify.lobibox-notify-success { border-left-color: #12805c !important; --acc: #12805c; }
.lobibox-notify.lobibox-notify-error   { border-left-color: #d92d20 !important; --acc: #d92d20; }
.lobibox-notify.lobibox-notify-warning { border-left-color: #dc6803 !important; --acc: #dc6803; }
.lobibox-notify.lobibox-notify-info    { border-left-color: #134a6d !important; --acc: #134a6d; }
.lobibox-notify.lobibox-notify-default { border-left-color: #475467 !important; --acc: #475467; }

/* Iconiță: glif colorat pe fundal alb (fără cercul/plinul default) */
.lobibox-notify .lobibox-notify-icon-wrapper { left: 15px !important; width: 30px !important; }
.lobibox-notify .lobibox-notify-icon > div .icon-el {
    font-size: 21px !important;
    color: var(--acc, #475467) !important;
    line-height: 1 !important;
}

/* Text */
.lobibox-notify.notify-mini .lobibox-notify-body,
.lobibox-notify .lobibox-notify-body { margin: 12px 40px 12px 56px !important; }
.lobibox-notify .lobibox-notify-msg {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    color: #344054 !important;
    font-weight: 500 !important;
}
.lobibox-notify .lobibox-notify-msg p { margin: 0 !important; }

/* Buton de închidere discret */
.lobibox-notify .lobibox-close {
    color: #98a2b3 !important;
    font-size: 17px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 19px !important;
    top: 9px !important;
    right: 11px !important;
    opacity: .8;
}
.lobibox-notify .lobibox-close:hover {
    background: transparent !important;
    color: #475467 !important;
    font-weight: 400 !important;
    opacity: 1;
}

/* Indicator de progres (timp rămas) — subțire, în culoarea accentului */
.lobibox-notify .lobibox-delay-indicator { height: 2px !important; }
.lobibox-notify .lobibox-delay-indicator > div {
    background-color: var(--acc, #475467) !important;
    opacity: .32;
}

/* Culori text */
.required_field { color: #dc3545; }
.red { color: #e74c3c !important; } .orange { color: #f1c40f !important; }
.color-gray-1{color:#9d9c9c} .color-gray-2{color:#7d7a7a} .color-red-1{color:#b32323}
.color-blue-1{color:#265693} .color-green-1{color:#4b7d19} .color-blue{color:#134a6d} .blue-text{color:#134a6d}
a.color-blue:hover { text-decoration: underline; font-style: italic; }
.style-color-warning { color: #ffc107; }

/* Fundaluri & decor */
.bg-gray-1 { background-color: #f0f2f0; }
.strike, .text-strike { text-decoration: line-through; }
.highlight { background-color: #ffea96; }
.cursor-pointer { cursor: pointer !important; }

/* Scală font-size / line-height */
.fs-11{font-size:11px!important} .fs-12{font-size:12px!important} .fs-13{font-size:13px!important}
.fs-14{font-size:14px!important} .fs-15{font-size:15px!important} .fs-16{font-size:16px!important}
.fs-17{font-size:17px!important} .fs-18{font-size:18px!important}
.lh-14{line-height:14px!important} .lh-16{line-height:16px!important} .lh-18{line-height:18px!important} .lh-20{line-height:20px!important}

/* Link-uri standard */
a.general_style_url { color: #000; }
a.general_style_url:hover { color: #000; font-style: italic; text-decoration: underline; }
.view_information_wrapper { font-size: 12px; font-style: italic; cursor: pointer; }
.view_information_wrapper span { color: #7e7e7e; } .view_information_wrapper i { color: #00b7ff; }

/* Label-uri de formular/filtru */
.filter_label { float: left; font-size: 16px; font-weight: bold; font-style: italic; color: #c4c4c4; padding-right: 30px; width: 100%; margin-bottom: 5px; }
.form-label-2 { font-size: 12px; font-style: italic; color: #939090; margin-bottom: 0; margin-top: 5px; font-weight: normal !important; }

/* Carduri simple */
.card .card_header_label { font-style: italic; color: #939090; border-bottom: 1px solid #d4d4d4; padding-bottom: 3px; }
.card .card_header_content { font-weight: bold; }

/* Modaluri lățite */
.modal-xxl { width: 90%; max-width: 100%; }
@media (min-width: 768px) { .modal-xl { width: 90%; max-width: 1200px; } }

/* ==========================================================================
   NAVBAR, BUTOANE, MODAL GENERAL
   ========================================================================== */
/* Navbar (header) navy */
.navbar-my-blue { background-color: #134a6d; }
.navbar-my-blue a { color: #fff !important; }

/* Sidebar activ (fallback; override-uit de sidebar.css) */
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active { background-color: #134a6d !important; color: #fff; }

/* Buton primar standard al aplicației */
/* Butonul principal al paginilor (Client nou, Fișă nouă…).
   Stilul se declara prin variabilele Bootstrap, NU prin `background-color` direct: `.btn:hover`
   din Bootstrap 5.3 seteaza `background-color: var(--bs-btn-hover-bg)`, iar variabila nu e
   definita pe `.btn` — doar pe variantele `.btn-*`. Fara ele, la hover fundalul devenea
   transparent, iar textul ramanea alb: butonul „disparea" pe fundalul alb al paginii. */
.pr-btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #134a6d;
    --bs-btn-border-color: #134a6d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1a5c86;
    --bs-btn-hover-border-color: #1a5c86;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0f3c59;
    --bs-btn-active-border-color: #0f3c59;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #7f97a8;
    --bs-btn-disabled-border-color: #7f97a8;
    --bs-btn-focus-shadow-rgb: 19, 74, 109;
    font-weight: 600;
    border-radius: 8px;
}

/* Butoane accent galben */
.btn-yellow { background-color: #ffcc00; color: #fff; }
.border-left-yellow-style-1 { border-left: .20rem solid #f0ad4e; border-radius: .25rem; padding-left: 7px; }
.border-bottom-yellow-2 { border-bottom: 2px solid #ffcc00; }

/* Header de secțiune (fișă entitate) */
#section_view_header { border-radius: 5px; padding: 10px 20px; background: #fff; border: 1px solid #134a6d; }

/* Modal general — header/footer navy, buton close alb */
.modal-general-header, .modal-general-footer { background-color: #134a6d; color: #fff !important; }
.modal-general-header .btn-close { filter: invert(1) grayscale(1) brightness(1.8); opacity: .9; }

/* ==========================================================================
   TAB-URI
   ========================================================================== */
/* Tab-uri orizontale — bară închisă, activ navy cu „săgeată" jos */
nav > .nav.nav-tabs { border: none; color: #fff; background: #233131; border-radius: 0; }
nav > div a.nav-item.nav-link { border: none; padding: 10px 25px; color: #fff; background: #233131; border-radius: 0; }
nav > div a.nav-item.nav-link.active { background: #134a6d; color: #fff; }
nav > div a.nav-item.nav-link.active:after { content: ""; position: relative; bottom: -60px; left: -10%; border: 15px solid transparent; border-top-color: #134a6d; }
nav > div a.nav-item.nav-link:hover, nav > div a.nav-item.nav-link:focus { border: none; background: #134a6d; color: #fff; border-radius: 0; transition: background .2s linear; }
.tab-content { background: #fdfdfd; line-height: 25px; border: 1px solid #ddd; border-top: 5px solid #134a6d; border-bottom: 5px solid #134a6d; padding: 30px 25px; }

/* Tab-uri verticale — stil 1 */
.vertical-tabs-style-1 .tab-content { width: 100%; min-height: 200px; background: #fdfdfd; line-height: 25px; border: 1px solid #ddd; border-top: 1px solid #134a6d; border-bottom: 1px solid #134a6d; padding: 30px 25px; }
.vertical-tabs-style-1 #v-pills-tab { max-width: 200px; min-width: 150px; }

/* Tab-uri „pill" segmentat — fundal gri, activ alb cu umbră */
#tab-style-1 .nav-tabs { border: none; background: #f0f2f0; padding: 4px; border-radius: 8px; display: inline-flex; gap: 4px; }
#tab-style-1 .nav-link { border: none; border-radius: 6px; padding: 3px 16px; font-weight: 500; color: #555; background: transparent; transition: all .2s ease; }
#tab-style-1 .nav-link:hover { color: #000; }
#tab-style-1 .nav-link.active { background: #fff; color: #000; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
#nav-tabContent-style-1 { padding-top: 20px; border: none; }

/* ==========================================================================
   SELECT2 (override)
   ========================================================================== */
.select2-container--default .select2-selection--multiple .select2-selection__choice { margin: 0 !important; margin-left: 3px !important; margin-top: 2px !important; padding: 0 !important; padding-left: 23px !important; background-color: #134a6d; border-color: #006fe6; border: none !important; }
.select2-container--default .select2-selection--multiple { padding-bottom: 3px !important; }
.select2-container--default .select2-search--inline .select2-search__field:focus { border: 0 !important; }
.select2-container--default .select2-dropdown .select2-search__field { margin-top: 2px !important; height: 24px !important; }
.select2-container--default .select2-search--inline .select2-search__field { border: 0 !important; margin-top: 2px !important; height: 24px !important; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { margin-left: 0 !important; border-right: 1px solid #134a6d; padding-left: 7px !important; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus { background-color: none !important; }

/* ==========================================================================
   HEADER DE PAGINĂ ENTERPRISE (.hr-page)
   ========================================================================== */
.hr-page .hr-ph { display: flex; align-items: center; gap: 15px; }
.hr-page .hr-ph__text { min-width: 0; }
.hr-page .hr-emblem { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, #1a5a82 0%, #0e3a58 100%); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; box-shadow: 0 3px 10px rgba(15,58,88,.20); }
.hr-page .hr-eyebrow { display: inline-flex !important; align-items: center; gap: 7px; padding: 4px 12px 4px 10px !important; background: #eef3f8 !important; color: #134a6d !important; border-radius: 999px !important; font-size: .66rem !important; font-weight: 700 !important; letter-spacing: .07em !important; text-transform: uppercase !important; margin-bottom: 11px !important; line-height: 1.4 !important; }
.hr-page .hr-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #134a6d; flex: 0 0 auto; }
/* Titlu de pagina: 800 la 1.6rem era greutate de landing page. Intr-o aplicatie de lucru
   titlul orienteaza, nu striga. */
.hr-page .hr-title { font-size: 1.375rem !important; font-weight: 650 !important; color: #0f1b34 !important; letter-spacing: -.018em !important; line-height: 1.2 !important; margin: 0 !important; }
.hr-page .hr-title .hr-info { font-weight: 400 !important; font-size: .48em !important; vertical-align: middle; }
.hr-page .hr-subtitle { margin: 7px 0 0 !important; color: #5d6b80 !important; font-size: .8125rem !important; line-height: 1.5 !important; max-width: 760px !important; }
.hr-page > div:first-of-type { border-bottom: 1px solid #eef1f7 !important; padding-bottom: 16px !important; margin-bottom: 20px !important; }
.hr-info { cursor: pointer; color: #9aa3b2; font-size: .82em; vertical-align: middle; }
.hr-info:hover { color: #134a6d; }

/* ==========================================================================
   MODAL ENTERPRISE HR (.hr-modal)
   ========================================================================== */
.hr-modal .modal-dialog { max-width: 880px; }
.hr-modal .modal-dialog.hr-modal-sm { max-width: 560px; }
.hr-modal .modal-dialog.hr-modal-lg { max-width: 1060px; }
.hr-modal .modal-content { border: none; border-radius: 16px; overflow: hidden; box-shadow: 0 28px 80px rgba(8,20,35,.30); }
.hr-modal .modal-header { padding: 15px 24px; }
.hr-modal .modal-header .modal-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 9px; }
.hr-modal .modal-body { padding: 22px 24px 10px; background: #f4f7fa; max-height: 80vh; overflow-y: auto; }
.hr-modal .hr-emp-form { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.hr-modal .hr-emp-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hr-modal .hr-sec { background: #fff; border: 1px solid #e6ebf2; border-radius: 12px; overflow: hidden; }
.hr-modal .hr-sec__head { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-bottom: 1px solid #eef1f7; background: #f8fafc; }
.hr-modal .hr-sec__ic { width: 26px; height: 26px; border-radius: 7px; background: #134a6d; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 auto; }
.hr-modal .hr-sec__title { font-size: .82rem; font-weight: 700; color: #1f2a44; letter-spacing: .01em; }
.hr-modal .hr-sec__body { padding: 15px 16px; display: flex; flex-direction: column; gap: 12px; }
.hr-modal .hr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 13px; }
.hr-modal .hr-row--single { grid-template-columns: 1fr; }
.hr-modal .hr-row--triple { grid-template-columns: 1fr 1fr 1fr; }
.hr-modal .hr-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hr-modal .hr-field__label { font-size: .72rem; font-weight: 600; color: #54607a; text-transform: uppercase; letter-spacing: .02em; }
.hr-modal .hr-req { color: #dc3545; }
.hr-modal .hr-check { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.hr-modal .hr-check .form-check-input { margin: 0; float: none; flex: 0 0 auto; width: 1.05em; height: 1.05em; }
.hr-modal .hr-check .form-check-input:checked { background-color: #134a6d; border-color: #134a6d; }
.hr-modal .hr-check .form-check-label { margin: 0; cursor: pointer; font-size: .85rem; color: #1f2a44; line-height: 1.2; }
.hr-modal .form-control:focus, .hr-modal .form-select:focus { border-color: #134a6d; box-shadow: 0 0 0 .18rem rgba(19,74,109,.12); }
.hr-modal .modal-footer { padding: 13px 24px; background: #fff; border-top: 1px solid #eef1f7; }
.hr-modal .select2-container { width: 100% !important; }
@media (max-width: 720px) { .hr-modal .hr-emp-form { flex-direction: column; } .hr-modal .hr-row, .hr-modal .hr-row--triple { grid-template-columns: 1fr; } }

/* ==========================================================================
   MODAL UTILIZATOR (.uf-modal) + STATUS PILL
   ========================================================================== */
.uf-modal .modal-content { border: none; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(8,20,35,.25); }
.uf-modal .modal-header { border-bottom: none; padding: 15px 20px; }
.uf-modal .modal-header .modal-title { font-weight: 800; font-size: 16px; }
.uf-modal .modal-body { padding: 18px 20px 6px; }
.uf-modal .modal-footer { border-top: 1px solid #e2e8ef; padding: 14px 20px; gap: 8px; }
.uf-modal .uf-group { margin-bottom: 16px; }
.uf-modal .uf-group__title { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7885; margin-bottom: 9px; padding-bottom: 7px; border-bottom: 1px solid #eef0f3; }
.uf-modal .uf-group__title > i { color: #134a6d; }
.uf-modal .uf-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 16px; }
.uf-modal .uf-field { display: flex; flex-direction: column; gap: 5px; }
.uf-modal .uf-field--full { grid-column: 1 / -1; }
.uf-modal .uf-field__label { font-size: 12.5px; font-weight: 700; color: #1f2b36; }
.uf-modal .uf-req { color: #dc3545; }
.uf-modal .uf-field .form-control, .uf-modal .uf-field .form-select { border-radius: 8px; border-color: #e2e8ef; }
.uf-modal .uf-field .form-control:focus, .uf-modal .uf-field .form-select:focus { border-color: #134a6d; box-shadow: 0 0 0 .18rem rgba(19,74,109,.12); }
.uf-modal .uf-btn-primary { background: #134a6d; border: 1px solid #134a6d; color: #fff; font-weight: 600; border-radius: 8px; }
.uf-modal .uf-btn-primary:hover { filter: brightness(1.12); color: #fff; }
.uf-modal .uf-btn-ghost { background: #fff; border: 1px solid #e2e8ef; color: #1f2b36; font-weight: 600; border-radius: 8px; }
.uf-modal .uf-btn-ghost:hover { border-color: #134a6d; background: #eef3f8; color: #134a6d; }
@media (max-width: 576px) { .uf-modal .uf-fields { grid-template-columns: 1fr; } }

/* Status pill (activ/inactiv) */
.st-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 20px; font-size: 11.5px; font-weight: 700; line-height: 1.5; }
.st-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.st-pill--on { background: #e0f3e8; color: #157347; } .st-pill--on::before { background: #22a35a; }
.st-pill--off { background: #eef0f3; color: #6b7885; } .st-pill--off::before { background: #adb5bd; }

/* Buton „deschide rândul" */
.up-row-open { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid #e2e8ef; color: #6b7885; font-size: 12px; text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.up-row-open:hover { background: #134a6d; border-color: #134a6d; color: #fff; }

/* ==========================================================================
   TOOLTIP ENTERPRISE (.tip-enterprise)
   ========================================================================== */
.tooltip.tip-enterprise { --bs-tooltip-max-width: 460px; opacity: 1; }
.tooltip.tip-enterprise .tooltip-inner { max-width: 460px; text-align: left; background: #1f2937; color: #e5e7eb; padding: 14px 16px; border-radius: 10px; font-size: 12.5px; line-height: 1.6; box-shadow: 0 12px 34px rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.10); }
.tooltip.tip-enterprise .tooltip-arrow::before { border-top-color: #1f2937; border-bottom-color: #1f2937; border-left-color: #1f2937; border-right-color: #1f2937; }
.tip-enterprise .tip-e-title { display: block; font-weight: 700; color: #fff; font-size: 13.5px; margin-bottom: 8px; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.14); letter-spacing: .01em; }
.tip-enterprise .tip-e-sub { display: block; font-weight: 700; color: #93c5fd; margin: 10px 0 3px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.tip-enterprise .tip-e-row { display: block; padding: 1px 0 1px 2px; }
.tip-enterprise .tip-e-row b { color: #fff; }
.tip-enterprise .tip-e-muted { color: #9ca3af; font-style: italic; }
.tip-enterprise .tip-e-formula { display: block; margin-top: 2px; padding: 4px 8px; background: rgba(255,255,255,.06); border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: #d1fae5; }

/* ==========================================================================
   ISTORIC STATUSURI (.csh-*)
   ========================================================================== */
.csh-timeline { display: flex; flex-direction: column; max-height: 280px; overflow-y: auto; }
.csh-item { display: flex; gap: 10px; padding: 8px 2px; border-bottom: 1px solid #f0f1f4; }
.csh-item:last-child { border-bottom: none; }
.csh-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.csh-content { min-width: 0; }
.csh-line { font-size: 13px; color: #1f2937; line-height: 1.5; }
.csh-prev { color: #9aa0a6; }
.csh-badge { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
.csh-note { color: #6b7280; font-size: 12px; }
.csh-meta { font-size: 11.5px; color: #8a909a; margin-top: 2px; }
.csh-type { color: #b0b5bd; }

/* ==========================================================================
   PUNCTE DE LUCRU (.wp-*)
   ========================================================================== */
.wp-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid #eef0f3; }
.wp-header__title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: #1f2937; }
.wp-header__ico { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: linear-gradient(135deg, #eef4fc, #fff); border: 1px solid rgba(42,120,214,.22); color: #2a78d6; font-size: 14px; }
.wp-header__count { font-size: 12px; font-weight: 700; color: #2a78d6; background: rgba(42,120,214,.12); border-radius: 999px; padding: 1px 9px; }
.wp-header__count:empty { display: none; }
.wp-add-btn { color: #fff; background: #2a78d6; border-color: #2a78d6; }
.wp-add-btn:hover { color: #fff; background: #1f5fae; border-color: #1f5fae; }
.wp-empty { padding: 18px 4px; color: #9aa3ad; font-style: italic; }
.wp-empty i { margin-right: 6px; }
#client_work_point_list { max-height: 430px; overflow-y: auto; padding-right: 4px; }
#client_work_point_list::-webkit-scrollbar { width: 7px; }
#client_work_point_list::-webkit-scrollbar-thumb { background: #d3d9e2; border-radius: 6px; }
#client_work_point_list::-webkit-scrollbar-thumb:hover { background: #b9c2cf; }
.wp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 6px; border-bottom: 1px solid #eef0f3; }
.wp-row:hover { background: #f7f9fc; }
.wp-row:last-child { border-bottom: none; }
.wp-row__main { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.wp-row__num { flex: 0 0 auto; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(42,120,214,.11); color: #2a78d6; font-weight: 700; font-size: 11px; margin-top: 1px; }
.wp-row__info { min-width: 0; }
.wp-row__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wp-row__name { font-weight: 600; color: #1f2937; font-size: 13px; }
.wp-row__area { font-size: 10px; font-weight: 700; letter-spacing: .3px; color: #4b5563; background: #eef2f7; border: 1px solid #e2e8f0; padding: 1px 8px; border-radius: 999px; }
.wp-row__meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 11.5px; color: #6b7280; margin-top: 2px; }
.wp-row__m { display: inline-flex; align-items: center; gap: 5px; }
.wp-row__mi { color: #a3abb5; font-size: 10px; }
.wp-row__sep { color: #ccd2da; margin: 0 2px; }
.wp-row__actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.wp-row__actions .btn { padding: 1px 7px; font-size: 11px; line-height: 1.5; }
.wp-row__actions .badge { font-size: 10px; padding: 3px 7px; }

/* ==========================================================================
   CLIENȚII AGENTULUI (.uc-*)
   ========================================================================== */
.uc-intro { background: linear-gradient(180deg, #fbfbfa, #f5f6f8); border: 1px solid #e8ebf1; border-left: 3px solid #2a78d6; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
.uc-intro__title { font-size: 15px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.uc-intro__title i { color: #2a78d6; }
.uc-intro__text { margin: 0; font-size: 13px; line-height: 1.55; color: #52606d; }
.uc-summary__band { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; padding: 10px 16px; margin-bottom: 14px; background: #fff; border: 1px solid #e8ebf1; border-radius: 10px; }
.uc-summary__item { display: flex; flex-direction: column; line-height: 1.1; }
.uc-summary__num { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: #1f2937; }
.uc-summary__lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #8a909a; margin-top: 2px; }
.uc-summary__sep { width: 1px; align-self: stretch; background: #eef0f3; }
.uc-summary__item--filter { cursor: pointer; padding: 4px 10px; margin: -4px 0; border: 1px solid transparent; border-radius: 8px; transition: background-color .12s ease, border-color .12s ease; }
.uc-summary__item--filter:hover { background: #f4f6f9; border-color: #e3e7ee; }
.uc-summary__item--filter:focus-visible { outline: 2px solid #2a78d6; outline-offset: 1px; }
.uc-summary__item--filter.is-active { background: #eaf2fc; border-color: #b9d4f2; }
.uc-summary__item--filter.is-active .uc-summary__lbl { color: #2a78d6; font-weight: 700; }
.uc-summary__from { margin-left: auto; font-size: 12px; color: #6b7280; }
.uc-green { color: #0ca30c !important; } .uc-red { color: #d03b3b !important; }
.uc-table { font-size: 13px; }
.uc-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: #8a909a; }
.uc-client-link { color: #134a6d; font-weight: 600; text-decoration: none; }
.uc-client-link:hover { text-decoration: underline; }
.uc-body { max-height: 520px; overflow-y: auto; }

/* ==========================================================================
   RAPORT ANGAJAT (.urp-*): KPI + tabele + carduri
   ========================================================================== */
.urp-band { margin-bottom: 1rem; }
.urp-band__skeleton, .urp-band__empty { padding: .9rem 1rem; background: linear-gradient(180deg, #fbfbfa, #f5f5f2); border: 1px solid #e5e5e0; border-radius: 10px; font-size: .86rem; font-style: italic; }
.urp-top { display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.urp-kpis { flex: 1 1 420px; display: flex; align-items: center; gap: 1.1rem; padding: .85rem 1.15rem; background: linear-gradient(180deg, #fbfbfa, #f4f4f1); border: 1px solid #e5e5e0; border-radius: 12px; box-shadow: 0 1px 3px rgba(17,16,12,.04); }
.urp-kpi { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.urp-kpi__num { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: #1c1b18; white-space: nowrap; }
.urp-kpi__unit { font-size: .72rem; font-weight: 600; color: #8a909a; margin-left: 2px; }
.urp-kpi__lbl { font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: #8a8f98; margin-top: 3px; }
.urp-kpi.urp-accent .urp-kpi__num { color: #134a6d; }
.urp-kpis__sep { width: 1px; align-self: stretch; background: #e5e5e0; }
.urp-chart { flex: 0 0 auto; width: 320px; max-width: 100%; background: #fff; border: 1px solid #e5e5e0; border-radius: 12px; padding: .55rem .7rem .35rem; box-shadow: 0 1px 3px rgba(17,16,12,.04); }
.urp-chart__title { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #8a8f98; font-weight: 600; margin-bottom: .15rem; }
.urp-chart .apexcharts-legend { padding: 0 !important; }
@media (max-width: 767px) { .urp-kpis { gap: .7rem; padding: .7rem .8rem; } .urp-kpi__num { font-size: 1.1rem; } .urp-chart { width: 100%; } }

/* Tabele enterprise */
.urp-tablewrap { overflow-x: auto; border: 1px solid #e6e6e1; border-radius: 10px; }
.urp-table { width: 100%; border-collapse: collapse; font-size: .84rem; background: #fff; }
.urp-table thead th { background: #f7f7f4; color: #6b7079; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .6rem .85rem; border-bottom: 1px solid #e6e6e1; white-space: nowrap; }
.urp-th-idx { width: 42px; text-align: center; } .urp-th-name { text-align: left; } .urp-th-num { text-align: right; }
.urp-table tbody td { padding: .5rem .85rem; border-bottom: 1px solid #f0f0ec; color: #26251f; vertical-align: middle; }
.urp-table tbody tr:last-child td { border-bottom: 1px solid #e6e6e1; }
.urp-table tbody tr:nth-child(even) td { background: #fafaf8; }
.urp-table tbody tr:hover td { background: #eef4fb; }
.urp-td-idx { text-align: center; color: #a8acb3; font-variant-numeric: tabular-nums; }
.urp-td-name { font-weight: 600; color: #1c1b18; }
.urp-td-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.urp-td-val { font-weight: 700; color: #134a6d; }
.urp-u { font-size: .72rem; color: #9aa0a8; font-weight: 500; }
.urp-table tfoot td { padding: .6rem .85rem; background: #f4f6f9; border-top: 2px solid #dfe3e8; font-weight: 800; color: #1c1b18; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.urp-table tfoot .urp-tf-lbl { text-align: left; text-transform: uppercase; letter-spacing: .07em; font-size: .68rem; color: #6b7079; }
.urp-table tfoot .urp-td-val { color: #0f3f5e; }
.urp-empty { padding: .9rem 1rem; background: #fbfbfa; border: 1px dashed #dcdcd6; border-radius: 10px; color: #8a8f98; font-style: italic; font-size: .86rem; }

/* Card raport */
.urp-card { background: #fff; border: 1px solid #e6e6e1; border-radius: 12px; box-shadow: 0 1px 3px rgba(17,16,12,.05); margin-bottom: 1.1rem; overflow: hidden; }
.urp-card__inner { padding: 0; }
.urp-card__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; background: linear-gradient(180deg, #fafafa, #f3f4f6); border-bottom: 1px solid #e6e6e1; }
.urp-card__title { display: flex; align-items: center; font-size: .82rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #2c2b26; }
.urp-card__ic { color: #134a6d; margin-right: .5rem; font-size: .9rem; }
.urp-card__info { color: #7a8089; font-size: .9rem; } .urp-card__info:hover { color: #134a6d; }
.urp-card__body { padding: .85rem 1rem 1rem; }

/* ==========================================================================
   STOC MATERII PRIME (.acq-*)
   ========================================================================== */
.acq-stock-toolbar { max-width: 340px; }
.acq-stock-filters { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; }
.acq-filter { display: flex; flex-direction: column; }
.acq-filter__lbl { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: #8a8f98; font-weight: 600; margin-bottom: 3px; }
.acq-filter select, .acq-filter input { min-width: 140px; }
.acq-filter--btn { justify-content: flex-end; }
.acq-hist-total { font-size: .8rem; }
.acq-note { max-width: 260px; white-space: normal; font-size: .8rem; }
.acq-date { white-space: nowrap; font-variant-numeric: tabular-nums; color: #6b7079; }
.acq-delta-up { color: #2e7d46; font-weight: 700; }
.acq-delta-down { color: #c0392b; font-weight: 700; }
.acq-delta-zero { color: #9aa0a8; }
.acq-action-badge { display: inline-block; padding: .15rem .5rem; border-radius: 6px; font-size: .7rem; font-weight: 600; letter-spacing: .01em; border: 1px solid transparent; }
.acq-action-5 { background: #e6f4ea; color: #1e7a3c; border-color: #cfe9d6; } /* intrare marfă */
.acq-action-7 { background: #fdeaea; color: #b23b3b; border-color: #f5d3d3; } /* consum producție */
.acq-action-1 { background: #eaf1fb; color: #2a5da8; border-color: #d4e2f5; } /* finalizare inventar */
.acq-action-2 { background: #eef4fb; color: #3a6bb0; border-color: #dbe7f6; } /* update inventar */
.acq-action-3 { background: #fff4e0; color: #a5730f; border-color: #f6e6c4; } /* ajustare manuală */
.acq-action-6 { background: #f1f0ee; color: #6b6b66; border-color: #e2e1dd; } /* ștergere achiziție */

/* ==========================================================================
   HUB INVENTAR (.inv-hub__*)
   ========================================================================== */
.inv-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.inv-hub__card { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid #e6e6e1; border-radius: 12px; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.inv-hub__card:hover { border-color: #134a6d; box-shadow: 0 3px 12px rgba(17,16,12,.08); transform: translateY(-1px); text-decoration: none; }
.inv-hub__ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #fff; }
.inv-hub__ic--raw { background: #2e7d46; }
.inv-hub__ic--prod { background: #2a5da8; }
.inv-hub__ic--stock { background: #a5730f; }
.inv-hub__ic--stockprod { background: #7d5ba6; }
.inv-hub__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.inv-hub__title { font-weight: 700; color: #1c1b18; font-size: .95rem; }
.inv-hub__desc { font-size: .78rem; color: #8a8f98; margin-top: 2px; }
.inv-hub__arrow { flex: 0 0 auto; color: #b7bcc3; }
.inv-hub__card:hover .inv-hub__arrow { color: #134a6d; }

/* ==========================================================================
   DATE RANGE PICKER (override peste daterangepicker.css, importat înainte)
   Widget-ul vine cu paleta lui (Arial 15px, albastru #357ebd, colțuri de 4px).
   Aici e re-skin-ul pe design system: Inter, navy-ul aplicației, celule rotunjite
   și un panou cu umbră, fără săgeata clasică. Regulile stau în main.css, nu în
   app.css, pentru că doar de aici înving CSS-ul vendorului (ordinea din app.js).
   ========================================================================== */
.daterangepicker {
    font-family: var(--hs-font);
    font-size: var(--hs-fs-md);
    color: var(--hs-text-soft);
    border: 1px solid var(--hs-line);
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
    margin-top: 6px;
}
/* Fără vârful triunghiular: panoul stă pe umbra lui, ca restul suprafețelor flotante. */
.daterangepicker:before, .daterangepicker:after { display: none; }

/* ---- Scurtăturile din stânga ---- */
.daterangepicker .ranges { margin-top: 0; }
.daterangepicker.show-calendar .ranges { margin-top: 0; }
.daterangepicker .ranges ul { padding: .5rem; }
.daterangepicker .ranges li {
    padding: .42rem .6rem;
    border-radius: 6px;
    font-size: var(--hs-fs-sm);
    font-weight: 600;
    color: var(--hs-muted);
    white-space: nowrap;
}
.daterangepicker .ranges li:hover { background: var(--hs-primary-soft); color: var(--hs-primary); }
.daterangepicker .ranges li.active { background: var(--hs-primary); color: #fff; }

/* ---- Calendarele ---- */
.daterangepicker.show-ranges.ltr .drp-calendar.left { border-left: 1px solid var(--hs-line-soft); }
.daterangepicker .drp-calendar { padding: .55rem .7rem; max-width: 280px; }
.daterangepicker .calendar-table { border: 0; }
.daterangepicker .calendar-table th, .daterangepicker .calendar-table td {
    min-width: 34px;
    width: 34px;
    height: 30px;
    line-height: 30px;
    font-size: var(--hs-fs-md);
    border-radius: 6px;
}
/* Antetul lunii și săgețile de navigare. */
.daterangepicker th.month { font-size: var(--hs-fs-md); font-weight: 700; color: var(--hs-text); }
.daterangepicker th.available:hover { background: var(--hs-primary-soft); }
.daterangepicker .calendar-table .next span, .daterangepicker .calendar-table .prev span {
    border-color: var(--hs-muted);
    border-width: 0 1.5px 1.5px 0;
}
.daterangepicker th.available:hover span { border-color: var(--hs-primary); }
/* Rândul cu inițialele zilelor: etichetă, nu dată. */
.daterangepicker .calendar-table thead tr:last-child th {
    font-size: var(--hs-fs-2xs);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hs-subtle);
}
.daterangepicker td.available:hover { background: var(--hs-primary-soft); color: var(--hs-primary); }
.daterangepicker td.off, .daterangepicker td.off.in-range,
.daterangepicker td.off.start-date, .daterangepicker td.off.end-date { color: var(--hs-subtle); }
/* Intervalul: o bandă continuă între capete, deci fără colțuri la zilele din mijloc. */
.daterangepicker td.in-range { background: var(--hs-brand-bg); color: var(--hs-brand-fg); border-radius: 0; }
.daterangepicker td.start-date { border-radius: 6px 0 0 6px; }
.daterangepicker td.end-date { border-radius: 0 6px 6px 0; }
.daterangepicker td.start-date.end-date { border-radius: 6px; }
.daterangepicker td.active, .daterangepicker td.active:hover { background: #134a6d; color: #fff; }
/* Ziua de azi rămâne recognoscibilă și când nu e selectată. */
.daterangepicker td.today:not(.active) { box-shadow: inset 0 0 0 1px var(--hs-brand-br); font-weight: 700; }
.daterangepicker td.disabled { color: var(--hs-subtle); }

/* Listele lună/an (showDropdowns) — câmpuri, nu selecturi de sistem.
   Nu devin select2: lib/select2-init.js sare peste tot ce e în .daterangepicker. */
.daterangepicker select.monthselect, .daterangepicker select.yearselect {
    padding: .15rem .25rem;
    border: 1px solid var(--hs-line);
    border-radius: 6px;
    background: #fff;
    font-size: var(--hs-fs-sm);
    font-weight: 600;
    color: var(--hs-text);
    cursor: pointer;
}

/* ---- Bara de jos: ce ai ales + confirmarea ---- */
.daterangepicker .drp-buttons {
    padding: .55rem .7rem;
    border-top: 1px solid var(--hs-line-soft);
    background: var(--hs-surface-alt);
    border-radius: 0 0 10px 10px;
    line-height: normal;
}
.daterangepicker .drp-selected {
    font-size: var(--hs-fs-sm);
    font-weight: 600;
    color: var(--hs-muted);
    font-variant-numeric: tabular-nums;
    padding-right: .7rem;
}
.daterangepicker .drp-buttons .btn {
    padding: .3rem .75rem;
    border-radius: 7px;
    font-size: var(--hs-fs-sm);
    font-weight: 600;
}
.daterangepicker .drp-buttons .cancelBtn {
    background: #fff;
    border: 1px solid var(--hs-line);
    color: var(--hs-muted);
}
.daterangepicker .drp-buttons .cancelBtn:hover { border-color: #cfd6de; color: var(--hs-text); }

/* ==========================================================================
   FOCUS ENTERPRISE GLOBAL PE CÂMPURI (regula finală din spec)
   ========================================================================== */
.form-control:focus, .form-select:focus { border-color: #134a6d; box-shadow: 0 0 0 .18rem rgba(19,74,109,.12); }
