/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-primary:    #1d4ed8;
    --color-primary-h:  #1e40af;
    --color-secondary:  #475569;
    --color-danger:     #dc2626;
    --color-success:    #16a34a;
    --color-warning:    #d97706;
    --color-bg:         #f8fafc;
    --color-surface:    #ffffff;
    --color-border:     #e2e8f0;
    --color-text:       #1e293b;
    --color-text-muted: #64748b;
    --color-header-bg:  #1e3a5f;
    --color-header-txt: #f1f5f9;
    --radius:           6px;
    --shadow:           0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:        0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { font-size: 15px; }
body { font-family: var(--font); background: var(--color-bg); color: var(--color-text); line-height: 1.5; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   Layout
   ============================================================ */
.site-header {
    background: var(--color-header-bg);
    color: var(--color-header-txt);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .6rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-brand {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    color: #fff;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: .15rem;
    flex: 1;
}

.header-nav a {
    color: var(--color-header-txt);
    padding: .35rem .7rem;
    border-radius: var(--radius);
    font-size: .88rem;
    transition: background .15s;
}

.header-nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; }

.header-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .85rem;
    white-space: nowrap;
    color: #cbd5e1;
}

/* Dropdown nav */
.dropdown { position: relative; }
.dropdown-toggle {
    color: var(--color-header-txt);
    padding: .35rem .7rem;
    border-radius: var(--radius);
    font-size: .88rem;
    cursor: pointer;
    user-select: none;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 180px;
    z-index: 200;
}
.dropdown-menu a {
    display: block;
    padding: .5rem 1rem;
    color: var(--color-text);
    font-size: .88rem;
}
.dropdown-menu a:hover { background: var(--color-bg); text-decoration: none; }

.main-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem;
}

.site-footer {
    text-align: center;
    padding: 1rem;
    font-size: .8rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    margin-top: 3rem;
}

/* ============================================================
   Page header
   ============================================================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.page-header h1 { font-size: 1.5rem; font-weight: 700; }
.page-header .header-actions { display: flex; gap: .5rem; }
.sub-title { font-size: 1rem; font-weight: 500; color: var(--color-text-muted); margin-top: .2rem; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem 1rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s, opacity .15s;
    white-space: nowrap;
    line-height: 1.4;
    text-decoration: none !important;
}

.btn-primary   { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-h); border-color: var(--color-primary-h); }
.btn-secondary { background: var(--color-secondary); color: #fff; border-color: var(--color-secondary); }
.btn-secondary:hover { opacity: .88; }
.btn-outline   { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: #eff6ff; }
.btn-danger    { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.btn-danger:hover { opacity: .88; }
.btn-sm  { padding: .3rem .7rem; font-size: .82rem; }
.btn-xs  { padding: .2rem .5rem; font-size: .78rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   Forms
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--color-text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: .75rem; }
.form-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.form-card { max-width: 800px; }

input[type=text], input[type=email], input[type=password], input[type=date],
select, textarea {
    padding: .4rem .65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: .9rem;
    font-family: var(--font);
    background: var(--color-surface);
    color: var(--color-text);
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}

.input-sm { width: 130px; padding: .2rem .4rem; font-size: .82rem; }

/* ============================================================
   Tables
   ============================================================ */
.table-responsive { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table thead th {
    background: #f1f5f9;
    padding: .55rem .75rem;
    text-align: left;
    font-size: .8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}

.data-table tbody tr { border-bottom: 1px solid var(--color-border); transition: background .1s; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody td { padding: .55rem .75rem; vertical-align: middle; }
.data-table .actions { display: flex; gap: .3rem; flex-wrap: wrap; white-space: nowrap; }
.data-table .empty { text-align: center; color: var(--color-text-muted); padding: 1.5rem; }

.row-editing { background: #fffbeb !important; }

/* ============================================================
   Panels
   ============================================================ */
.panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}
.panel-sm  { min-width: 260px; max-width: 320px; }
.panel-grow { flex: 1; }
.panel-title { font-size: 1rem; font-weight: 700; margin-bottom: .9rem; color: var(--color-text); border-bottom: 1px solid var(--color-border); padding-bottom: .5rem; }

.section-two-col { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }

.nomen-layout { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    padding: .65rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: .9rem;
    border: 1px solid transparent;
}
.alert-success { background: #f0fdf4; color: var(--color-success); border-color: #bbf7d0; }
.alert-error   { background: #fef2f2; color: var(--color-danger);  border-color: #fecaca; }
.alert-info    { background: #eff6ff; color: var(--color-primary);  border-color: #bfdbfe; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none !important;
}
.badge-ok      { background: #dcfce7; color: #15803d; }
.badge-empty   { background: #f1f5f9; color: #64748b; }
.badge-danger  { background: #fee2e2; color: #dc2626; }
.badge-tip-1   { background: #dbeafe; color: #1d4ed8; }
.badge-tip-2   { background: #ede9fe; color: #7c3aed; }
.badge-tip-3   { background: #d1fae5; color: #065f46; }
.badge-tip-4   { background: #fef9c3; color: #92400e; }

/* ============================================================
   Tabs
   ============================================================ */
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--color-border); margin-bottom: 1.25rem; flex-wrap: wrap; }
.tab {
    padding: .45rem .9rem;
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: .88rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -2px;
    text-decoration: none !important;
}
.tab:hover { color: var(--color-primary); }
.tab-active {
    background: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-border);
    border-bottom-color: var(--color-surface);
    font-weight: 700;
}
.tab-content { }

/* ============================================================
   Login
   ============================================================ */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #f1f5f9; }
.login-card {
    background: var(--color-surface);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 380px;
}
.login-title { font-size: 1.4rem; font-weight: 700; text-align: center; margin-bottom: 1.5rem; color: var(--color-header-bg); }

/* ============================================================
   Dashboard stats
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.2rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--color-text-muted); margin-top: .35rem; }

.dashboard-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card-link {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: block;
    transition: box-shadow .15s, border-color .15s;
    text-decoration: none !important;
    color: var(--color-text);
    box-shadow: var(--shadow);
}
.card-link:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.card-link h3 { color: var(--color-primary); margin-bottom: .35rem; font-size: 1rem; }
.card-link p  { color: var(--color-text-muted); font-size: .85rem; }

/* ============================================================
   Selectare bulk (coloana checkbox ascunsa pana la activare)
   ============================================================ */
.data-table .col-check { display: none; }
.data-table.selecting .col-check { display: table-cell; }

/* ============================================================
   Reordonare drag and drop
   ============================================================ */
.drag-col { width: 28px; text-align: center; padding: .55rem .25rem !important; }
.drag-handle { cursor: grab; color: var(--color-text-muted); font-size: 1.1rem; line-height: 1; user-select: none; }
.drag-handle:active { cursor: grabbing; }
.data-table tbody tr[draggable="true"]:hover .drag-handle { color: var(--color-primary); }
.data-table tbody tr.dragging { opacity: .4; background: #f1f5f9; }
.data-table tbody tr.drag-over { box-shadow: inset 0 2px 0 var(--color-primary); }

/* ============================================================
   Lista responsabili (badge + modal)
   ============================================================ */
.resp-summary {
    display: block; max-width: 260px;
    background: none; border: none; padding: 0; margin: 0;
    text-align: left; cursor: pointer; font-size: .85rem;
    color: var(--color-text); text-decoration: none;
}
.resp-summary:hover { color: var(--color-primary); text-decoration: underline; }
.resp-summary .resp-name { display: block; line-height: 1.35; }
.resp-summary .resp-email { color: var(--color-text-muted); font-size: .8em; }
.resp-summary .badge-empty { font-weight: 400; }
.resp-more { color: var(--color-text-muted); font-size: .8em; }

.resp-modal-table th, .resp-modal-table td { font-size: .85rem; }
.resp-add-toggle { margin-top: 1rem; }

/* ============================================================
   Toolbar bulk actions
   ============================================================ */
.table-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .5rem .75rem;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    flex-wrap: wrap;
}
.bulk-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.check-all-label { display: flex; align-items: center; gap: .4rem; font-size: .85rem; cursor: pointer; margin-left: auto; }

/* ============================================================
   Filtrare: cautare in timp real + filtru autoritate
   ============================================================ */
.table-toolbar .input-search { width: auto; flex: 1 1 260px; max-width: 360px; }
.table-toolbar .filter-autoritate { width: auto; flex: 0 1 220px; }
.filter-count { font-size: .85rem; color: var(--color-text-muted); white-space: nowrap; }

tr.row-hidden { display: none; }

/* ============================================================
   Modal
   ============================================================ */
.text-muted { color: var(--color-text-muted); font-size: .82em; }

.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 300;
}
.modal {
    background: var(--color-surface);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,.2);
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-lg { max-width: 780px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 700;
}
.modal-close {
    background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--color-text-muted);
    line-height: 1; padding: 0 .25rem;
}
.modal-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
.modal-footer { display: flex; gap: .5rem; justify-content: flex-end; padding: 1rem 1.25rem 0; border-top: 1px solid var(--color-border); margin-top: .75rem; }

.uat-list { display: flex; flex-direction: column; gap: .4rem; margin-top: .75rem; max-height: 320px; overflow-y: auto; border: 1px solid var(--color-border); border-radius: var(--radius); padding: .5rem; }
.uat-item { display: flex; align-items: center; gap: .5rem; padding: .3rem .4rem; border-radius: 4px; font-size: .88rem; cursor: pointer; transition: background .1s; }
.uat-item:hover { background: #f1f5f9; }
.uat-item small { color: var(--color-text-muted); }

/* ============================================================
   Collapsible
   ============================================================ */
.collapsible-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.collapsible-panel summary {
    cursor: pointer;
    font-weight: 600;
    font-size: .92rem;
    color: var(--color-primary);
    user-select: none;
    padding: .25rem 0;
}
.collapsible-panel[open] summary { margin-bottom: .75rem; }

.inst-add-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .3rem;
    margin-bottom: .75rem;
}

/* ============================================================
   Tree select localitati
   ============================================================ */
select optgroup { font-weight: 700; color: var(--color-text-muted); font-size: .82em; }
select optgroup option { font-weight: 400; color: var(--color-text); font-size: .92em; }
select option.opt-sat { color: var(--color-secondary); padding-left: 1rem; }

/* ============================================================
   Misc
   ============================================================ */
.inline-form { display: inline; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--color-text-muted); }
.empty-state p { margin-bottom: .5rem; }
.mt-1 { margin-top: .5rem; }

@media (max-width: 700px) {
    .form-row  { grid-template-columns: 1fr; }
    .main-content { padding: 1rem .75rem; }
    .site-header { flex-wrap: wrap; gap: .5rem; }
    .header-nav { flex-wrap: wrap; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .nomen-layout, .section-two-col { flex-direction: column; }
    .panel-sm { max-width: 100%; }
}

/* ============================================================
   Paginatie AJAX
   ============================================================ */
.pagination-bar {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: .75rem 0 .25rem;
    flex-wrap: wrap;
}
.pagination-bar .btn { min-width: 2rem; }
.pagination-bar #pg-pages,
.pagination-bar #pg-sect-pages {
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
    align-items: center;
}
.pg-ellipsis {
    padding: 0 .3rem;
    color: var(--color-text-muted);
    font-size: .9rem;
    line-height: 1;
}

/* ---- Butoane mutare ordine institutii ---- */
.move-btns {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-right: 4px;
}
.move-btns .btn-xs {
    padding: 1px 5px;
    font-size: .72rem;
    line-height: 1.4;
    min-width: 0;
}
.move-n-input {
    border: 1px solid var(--border);
    border-radius: 4px;
    height: 22px;
    width: 36px !important;
}
.move-n-input::-webkit-inner-spin-button { opacity: .6; }

/* ===== PROFIL ===== */
.profile-layout {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.profile-info-card {
    min-width: 260px;
    max-width: 300px;
    flex-shrink: 0;
    text-align: center;
}

.profile-password-card {
    flex: 1;
    min-width: 300px;
    max-width: 480px;
}

.profile-avatar {
    display: flex;
    justify-content: center;
    margin: 1rem 0 1.25rem;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37,99,235,.25);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    text-align: left;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.profile-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
}

.profile-label {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.profile-value {
    font-weight: 500;
}

/* Match hint sub câmpul de confirmare parolă */
.pass-match-hint {
    font-size: .8rem;
    margin-top: .2rem;
    min-height: 1.1em;
}
.hint-ok  { color: var(--color-success); }
.hint-err { color: var(--color-danger); }

/* Avatar în header */
.header-user-link {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #fff;
    text-decoration: none;
    font-size: .88rem;
    padding: .25rem .4rem;
    border-radius: 6px;
    transition: background .15s;
}
.header-user-link:hover {
    background: rgba(255,255,255,.15);
    text-decoration: none;
}
.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== MUTARE RÂND — evidențiere vizuală ===== */
@keyframes rowHighlight {
    0%   { background: #fef9c3; }
    70%  { background: #fef9c3; }
    100% { background: transparent; }
}
.row-highlight {
    animation: rowHighlight 1.8s ease-out forwards;
}

/* Input N poziții — compact și aliniat cu butoanele */
.move-n-input {
    width: 36px;
    text-align: center;
    font-size: .75rem;
    padding: 1px 2px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    line-height: 1.4;
    /* ascunde săgețile native ale input[number] */
    -moz-appearance: textfield;
}
.move-n-input::-webkit-inner-spin-button,
.move-n-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.move-btns {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-right: 4px;
}

/* ===== ȘTERGERE RÂND — fade-out roșu ===== */
@keyframes rowDelete {
    0%   { background: #fee2e2; opacity: 1; transform: scaleY(1); }
    60%  { background: #fecaca; opacity: .6; }
    100% { background: #fecaca; opacity: 0;  transform: scaleY(0); max-height: 0; }
}
.row-deleting {
    animation: rowDelete .45s ease-in forwards;
    overflow: hidden;
    pointer-events: none;
}

/* ===== LOCALITĂȚI — tabel grupat pe UAT ===== */
.row-uat { font-weight: 500; }

.row-sat td:nth-child(2) { padding-left: 1.4rem; color: var(--color-text-muted); font-size: .9rem; }
.row-sat-hidden { display: none; }

.expand-cell { width: 28px; text-align: center; }

.btn-expand {
    background: none;
    border: none;
    cursor: pointer;
    font-size: .9rem;
    color: var(--color-primary);
    padding: 0 4px;
    line-height: 1;
    border-radius: 3px;
    transition: background .12s;
}
.btn-expand:hover { background: #eff6ff; }
.btn-expand.expanded { color: var(--color-secondary); }

/* Badge-uri per tip localitate */
.loc-tip-1 { background: #dbeafe; color: #1d4ed8; } /* Municipiu */
.loc-tip-2 { background: #d1fae5; color: #065f46; } /* Oraș       */
.loc-tip-3 { background: #fef9c3; color: #854d0e; } /* Comună     */
.loc-tip-4 { background: #f1f5f9; color: #475569; } /* Sat        */

.uat-name  { font-weight: 600; }
.sat-name  { font-weight: 400; }

/* ============================================================
    Responsabili — sub-rânduri în tabelul principal
    ============================================================ */

/* Rândul instituției — linie de separare mai groasă sus */
.data-table tbody tr.inst-main-row {
    border-top: 2px solid var(--color-border);
}
.data-table tbody tr.inst-main-row:first-child {
    border-top: none;
}

/* Rândul de detaliu cu responsabilii */
.data-table tbody tr.resp-detail-row {
    border-bottom: 2px solid var(--color-border);
    background: #f8fafc;
}
.data-table tbody tr.resp-detail-row:hover {
    background: #f1f5f9;
}
.data-table tbody tr.resp-detail-row > td {
    padding: 0;
}

.resp-detail-inner {
    padding: .4rem .75rem .6rem 2.5rem;
    border-left: 3px solid var(--color-primary);
    margin-left: .5rem;
}

/* Responsabil afișat ca item inline */
.resp-detail-item {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
    padding: .3rem 0;
    font-size: .82rem;
}
.resp-detail-item span {
    white-space: nowrap;
}
.resp-detail-item .resp-name { font-weight: 600; color: var(--color-primary); min-width: 100px; }
.resp-detail-item .resp-prenume { min-width: 100px; }
.resp-detail-item .resp-email { min-width: 140px; }
.resp-detail-item .resp-tel { min-width: 100px; }
.resp-detail-item .resp-data-com { min-width: 110px; }
.resp-detail-item .resp-obs-asoc { min-width: 100px; color: var(--color-text-muted); }
.resp-detail-item .resp-actions { margin-left: auto; }

/* Tabelul imbricat cu responsabilii */
.resp-inline-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    margin: .15rem 0;
}

.resp-inline-tbl thead th {
    padding: .25rem .5rem;
    font-weight: 700;
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
    background: transparent;
}

.resp-inline-tbl tbody tr {
    border-bottom: 1px solid #e9eff6;
    transition: background .1s;
}
.resp-inline-tbl tbody tr:last-child {
    border-bottom: none;
}
.resp-inline-tbl tbody tr:hover {
    background: rgba(29,78,216,.04);
}
.resp-inline-tbl tbody td {
    padding: .3rem .5rem;
    vertical-align: top;
    color: var(--color-text);
}
.resp-inline-tbl tbody td:first-child {
    font-weight: 600;
    color: var(--color-primary);
}

/* Mesaj când nu există responsabili */
.resp-none {
    display: block;
    padding: .3rem 0;
    font-size: .82rem;
    color: var(--color-text-muted);
    font-style: italic;
}
