/**
 * EDMS UPSC â€” Bootstrap 5 theme
 * Design modern, layout STISC, formulare È™i registru
 */

:root {
    /* Paletă unică — doar aceste culori */
    --edms-ink: #222f7e;
    --edms-ink-hover: #222f7e;
    --edms-paper: #ffffff;
    --edms-page: #f7f7f7;
    --edms-line: #222f7e;

    --edms-stisc-100: #f7f7f7;
    --edms-stisc-150: #f7f7f7;
    --edms-stisc-200: #f7f7f7;
    --edms-stisc-250: #f7f7f7;
    --edms-stisc-300: #f7f7f7;
    --edms-stisc-350: #f7f7f7;
    --edms-stisc-400: #222f7e;
    --edms-stisc-450: #f7f7f7;
    --edms-stisc-500: #222f7e;
    --edms-stisc-550: #222f7e;
    --edms-stisc-600: #222f7e;
    --edms-stisc-700: #222f7e;
    --edms-stisc-800: #222f7e;
    --edms-stisc-900: #222f7e;
    --edms-stisc-text: #222f7e;

    --edms-primary: #222f7e;
    --edms-primary-dark: #222f7e;
    --edms-primary-light: #f7f7f7;
    --edms-accent: #222f7e;
    --edms-surface: #ffffff;
    --edms-bg: #f7f7f7;
    --edms-border: #222f7e;
    --edms-text: #000000;
    --edms-text-muted: rgba(0, 0, 0, 0.55);
    --edms-radius: 0.5rem;
    --edms-shadow: none;
    --edms-shadow-lg: none;
    --edms-nav-h: 44px;
    --edms-sidebar-w: 208px;
    --edms-footer-h: 0px;
    --edms-modal-max: 700px;
    --edms-modal-gutter: 1rem;
    --bs-primary: #222f7e;
    --bs-primary-rgb: 34, 47, 126;
    --bs-body-font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    --bs-body-bg: #f7f7f7;
    --bs-body-color: #000000;
    --bs-border-radius: var(--edms-radius);
    --bs-border-color: #222f7e;
}

/* â”€â”€â”€ Layout â”€â”€â”€ */
body.edms-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--edms-bg);
}

body.edms-has-sidebar {
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    height: 100vh;
}

.edms-shell {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.edms-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.view-panel {
    display: none;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
}
.view-panel.active { display: flex; }

/* Carduri */
.edms-app .card {
    border: 1px solid var(--edms-border);
    border-radius: var(--edms-radius);
    box-shadow: var(--edms-shadow);
}
.edms-app .card-header {
    background: var(--edms-surface);
    border-bottom: 1px solid var(--edms-border);
    font-weight: 600;
}

/* â”€â”€â”€ Sidebar STISC (meniu stÃ¢nga) â”€â”€â”€ */
.edms-sidebar {
    width: var(--edms-sidebar-w);
    flex: 0 0 var(--edms-sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100vh;
    background: var(--edms-ink);
    border-right: 1px solid var(--edms-ink);
    box-shadow: none;
    z-index: 1040;
    transition: width 0.2s ease, flex-basis 0.2s ease;
}
.edms-sidebar-top {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--edms-ink);
    flex-shrink: 0;
}
.edms-sidebar-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 120px;
    height: auto;
    padding: 0.75rem;
    margin: 0;
    text-decoration: none;
    border-right: none;
    background: transparent;
}
.edms-sidebar-brand:hover {
    text-decoration: none;
}
.edms-navbar-logo {
    display: block;
    width: 104px;
    height: 104px;
    object-fit: contain;
    flex-shrink: 0;
}
.edms-sidebar-close {
    width: 2rem;
    height: 2rem;
    margin-right: 0.35rem;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.edms-sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.35rem 0;
}
.edms-stisc-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    gap: 0;
}
.edms-stisc-nav > .nav-item {
    display: block;
    width: 100%;
    position: relative;
}
.edms-nav-section {
    list-style: none;
    margin: 0.65rem 0 0.2rem;
    padding: 0 0.85rem;
}
.edms-nav-section:first-child {
    margin-top: 0.25rem;
}
.edms-nav-section[hidden] {
    display: none !important;
}
.edms-nav-section-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}
body.edms-sidebar-collapsed .edms-nav-section {
    display: none;
}
.edms-stisc-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
    color: #ffffff !important;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.55rem 0.85rem !important;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    background: transparent;
    box-shadow: none !important;
    text-align: left;
    cursor: pointer;
}
.edms-side-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}
.edms-side-icon {
    flex-shrink: 0;
    width: 1.05rem;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.88;
    text-align: center;
}
.edms-stisc-nav .nav-link:hover .edms-side-icon,
.edms-stisc-nav .nav-item.active > .nav-link .edms-side-icon,
.edms-stisc-nav .edms-side-item.is-open > .edms-side-toggle .edms-side-icon {
    opacity: 1;
}
.edms-stisc-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
}
.edms-stisc-nav .nav-item.active > .nav-link,
.edms-stisc-nav .nav-link.active,
.edms-stisc-nav .edms-side-item.is-open > .edms-side-toggle {
    color: var(--edms-ink) !important;
    font-weight: 700;
    background: var(--edms-paper);
    box-shadow: inset 3px 0 0 var(--edms-ink) !important;
}
.edms-side-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 0.5rem;
    border-top: 0.35em solid currentColor;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    opacity: 0.75;
    transition: transform 0.15s ease;
}
.edms-side-item.is-open > .edms-side-toggle::after {
    transform: rotate(180deg);
}
.edms-stisc-nav .nav-link.disabled {
    opacity: 0.55;
    pointer-events: none;
}
.edms-side-sub {
    list-style: none;
    margin: 0;
    padding: 0.15rem 0 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
    box-shadow: none;
    border-radius: 0;
    min-width: 0;
    max-width: none;
    width: 100%;
    position: static !important;
    transform: none !important;
    inset: auto !important;
}
.edms-side-sub .dropdown-item,
.edms-side-sub .edms-stisc-menu-item {
    white-space: normal;
}
.edms-stisc-dropdown {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0.15rem 0;
    font-size: 0.75rem;
    min-width: 0;
    margin-top: 0 !important;
}
.edms-stisc-dropdown .dropdown-item {
    border-radius: 0;
    padding: 0.35rem 0.85rem 0.35rem 1.1rem;
    font-size: 0.75rem;
    color: #ffffff;
}
.edms-stisc-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.edms-stisc-dropdown .dropdown-item.disabled {
    color: rgba(255, 255, 255, 0.45);
}

/* Accent Înregistrare / Registru / Căutare */
#navRegisterItem > .edms-side-toggle:hover,
#navRegisterItem.is-open > .edms-side-toggle,
#navRegistryItem > .edms-side-toggle:hover,
#navRegistryItem.is-open > .edms-side-toggle,
#navSearchItem > .edms-side-toggle:hover,
#navSearchItem.is-open > .edms-side-toggle {
    color: var(--edms-ink) !important;
    background: var(--edms-paper) !important;
    box-shadow: inset 3px 0 0 var(--edms-ink) !important;
}
#navRegisterItem > .edms-side-toggle:hover::after,
#navRegisterItem.is-open > .edms-side-toggle::after,
#navRegistryItem > .edms-side-toggle:hover::after,
#navRegistryItem.is-open > .edms-side-toggle::after,
#navSearchItem > .edms-side-toggle:hover::after,
#navSearchItem.is-open > .edms-side-toggle::after {
    border-top-color: currentColor;
}
.edms-stisc-dropdown-menu,
.edms-stisc-dropdown-register {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0.15rem 0;
    margin-top: 0;
    min-width: 0;
    max-width: none;
    background: transparent;
    list-style: none;
}
.edms-stisc-dropdown-menu > li,
.edms-stisc-dropdown-register > li {
    margin: 0;
    padding: 0;
}
.edms-stisc-dropdown-registry {
    min-width: 0;
    max-width: none;
}
.edms-stisc-menu-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.edms-stisc-menu-group:last-child {
    border-bottom: none;
}
.edms-stisc-menu-children {
    list-style: none;
    margin: 0;
    padding: 0 0 0.12rem 0.55rem;
    background: rgba(0, 0, 0, 0.2);
    border-left: 2px solid rgba(255, 255, 255, 0.35);
    margin-left: 0.35rem;
}
.edms-stisc-menu-children > li {
    margin: 0;
    padding: 0;
}
.edms-stisc-dropdown-menu .edms-stisc-menu-item,
.edms-stisc-dropdown-register .edms-stisc-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.28rem 0.45rem 0.28rem 0.35rem;
    font-size: 0.6875rem;
    line-height: 1.25;
    color: #ffffff;
    white-space: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.edms-stisc-menu-group > .edms-stisc-menu-parent {
    border-bottom: none;
}
.edms-stisc-menu-children .edms-stisc-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.edms-stisc-menu-children > li:last-child .edms-stisc-menu-item {
    border-bottom: none;
}
.edms-stisc-dropdown-menu > li:last-child:not(.edms-stisc-menu-group) .edms-stisc-menu-item,
.edms-stisc-dropdown-register > li:last-child:not(.edms-stisc-menu-group) .edms-stisc-menu-item,
.edms-stisc-dropdown-menu > li.edms-stisc-menu-group:last-child .edms-stisc-menu-children > li:last-child .edms-stisc-menu-item,
.edms-stisc-dropdown-register > li.edms-stisc-menu-group:last-child .edms-stisc-menu-children > li:last-child .edms-stisc-menu-item {
    border-bottom: none;
}
.edms-stisc-dropdown-menu li:last-child .edms-stisc-menu-item,
.edms-stisc-dropdown-register li:last-child .edms-stisc-menu-item {
    border-bottom: none;
}
.edms-stisc-dropdown-menu .edms-stisc-menu-item:hover,
.edms-stisc-dropdown-menu .edms-stisc-menu-item:focus,
.edms-stisc-dropdown-register .edms-stisc-menu-item:hover,
.edms-stisc-dropdown-register .edms-stisc-menu-item:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.edms-stisc-dropdown-menu .edms-stisc-menu-parent:hover,
.edms-stisc-dropdown-menu .edms-stisc-menu-parent:focus,
.edms-stisc-dropdown-register .edms-stisc-menu-parent:hover,
.edms-stisc-dropdown-register .edms-stisc-menu-parent:focus {
    background: rgba(255, 255, 255, 0.08);
}
.edms-stisc-dropdown-menu .edms-stisc-menu-item-child:hover,
.edms-stisc-dropdown-menu .edms-stisc-menu-item-child:focus,
.edms-stisc-dropdown-register .edms-stisc-menu-item-child:hover,
.edms-stisc-dropdown-register .edms-stisc-menu-item-child:focus {
    background: rgba(255, 255, 255, 0.16);
}
.edms-stisc-dropdown-menu .edms-stisc-menu-item-child,
.edms-stisc-dropdown-register .edms-stisc-menu-item-child {
    padding-left: 2.5rem;
}
.edms-stisc-dropdown-menu .edms-stisc-menu-item-child .stisc-menu-icon,
.edms-stisc-dropdown-register .edms-stisc-menu-item-child .stisc-menu-icon {
    width: 11px;
    height: 11px;
    margin-top: 0.12rem;
}
.stisc-menu-icon {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    margin-top: 0.05rem;
    background: #fff;
    border: 2px solid #64748b;
    box-sizing: border-box;
}
.stisc-menu-icon-in {
    border-color: #dc2626;
}
.stisc-menu-icon-out {
    border-color: #d4a017;
}
.stisc-menu-icon-int,
.stisc-menu-icon-sub {
    border-color: var(--edms-stisc-800);
}
.stisc-menu-label {
    flex: 1 1 auto;
    min-width: 0;
}

.edms-nav-badge {
    display: inline-block;
    min-width: 1rem;
    margin-left: 0.25rem;
    padding: 0 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: #dc2626;
    border-radius: 2px;
    vertical-align: middle;
}
.edms-navbar-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.55rem 0.65rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-left: 0;
    margin-top: auto;
    background: transparent;
    flex-shrink: 0;
}
.edms-page-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    min-height: var(--edms-nav-h);
    height: var(--edms-nav-h);
    padding: 0 0.75rem 0 0.85rem;
    background: var(--edms-paper);
    border-bottom: 1px solid var(--edms-ink);
    box-shadow: none;
}
.edms-page-header-left {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.edms-sidebar-footer {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
}
.edms-sidebar-footer .edms-sidebar-collapse-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.edms-sidebar-footer .edms-sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.edms-page-header-left .edms-sidebar-collapse-btn-top {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    margin-right: 0.15rem;
    border: 1px solid #222f7e;
    border-radius: 4px;
    background: #222f7e;
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}
.edms-page-header-left .edms-sidebar-collapse-btn-top:hover {
    background: #1a2463;
    border-color: #1a2463;
    color: #ffffff;
}
body.edms-sidebar-collapsed .edms-page-header-left .edms-sidebar-collapse-btn-top {
    background: #ffffff;
    color: #222f7e;
    border-color: #222f7e;
}
body.edms-sidebar-collapsed .edms-page-header-left .edms-sidebar-collapse-btn-top:hover {
    background: #f7f7f7;
    color: #222f7e;
}

/* Sidebar strÃ¢ns â€” doar iconiÈ›e */
@media (min-width: 992px) {
    body.edms-sidebar-collapsed {
        --edms-sidebar-w: 56px;
    }
    body.edms-sidebar-collapsed .edms-sidebar-brand {
        min-height: 56px;
        padding: 0.4rem;
    }
    body.edms-sidebar-collapsed .edms-navbar-logo {
        width: 36px;
        height: 36px;
    }
    body.edms-sidebar-collapsed .edms-side-text {
        display: none;
    }
    body.edms-sidebar-collapsed .edms-side-toggle::after {
        display: none;
    }
    body.edms-sidebar-collapsed .edms-stisc-nav .nav-link {
        justify-content: center;
        padding: 0.7rem 0.35rem !important;
    }
    body.edms-sidebar-collapsed .edms-side-label {
        justify-content: center;
        gap: 0;
    }
    body.edms-sidebar-collapsed .edms-side-icon {
        font-size: 1.15rem;
        width: 1.25rem;
    }
    body.edms-sidebar-collapsed .edms-side-sub {
        display: none !important;
    }
    body.edms-sidebar-collapsed .edms-nav-badge {
        display: none;
    }
    body.edms-sidebar-collapsed .edms-sidebar-footer .edms-sidebar-collapse-btn {
        justify-content: center;
        padding: 0.65rem 0.35rem;
    }
}

.edms-page-header-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--edms-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.edms-page-header-tools.edms-navbar-tools {
    margin-top: 0;
    margin-left: auto;
    padding: 0;
    border-top: none;
    background: transparent;
    flex-wrap: nowrap;
    gap: 0.3rem;
}
.edms-page-header-user {
    display: none;
    flex-direction: column;
    line-height: 1.15;
    margin: 0 0.15rem 0 0.25rem;
    max-width: 10rem;
}
@media (min-width: 768px) {
    .edms-page-header-user {
        display: flex;
    }
}
.edms-page-header-user-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--edms-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.edms-page-header-user-role {
    font-size: 0.625rem;
    color: var(--edms-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.edms-nav-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--edms-ink);
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}
.edms-nav-tool:hover {
    background: #fff;
    border-color: var(--edms-stisc-550);
    color: var(--edms-stisc-900);
}
.edms-nav-tool.edms-nav-logout:hover {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}
.edms-nav-tool.active {
    background: #fff;
    color: var(--edms-stisc-800);
    border-color: var(--edms-stisc-550);
    box-shadow: inset 0 -2px 0 var(--edms-stisc-800);
}
.edms-nav-tool-bell {
    font-size: 0.9rem;
}
.edms-nav-badge-bell {
    position: absolute;
    top: -4px;
    right: -6px;
    margin: 0;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.22rem;
    font-size: 0.5625rem;
    line-height: 1.05rem;
    text-align: center;
    border-radius: 999px;
    box-sizing: border-box;
}
.edms-nav-guide {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.15rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--edms-ink);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 4px;
}
.edms-nav-guide:hover {
    color: var(--edms-stisc-900);
    background: #fff;
    text-decoration: none;
}
.edms-guide-flag {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #dc2626 50%, #fff 50%);
    border: 1px solid #222f7e;
    border-radius: 1px;
    flex-shrink: 0;
}

.edms-sidebar-open {
    position: fixed;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 1035;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--edms-stisc-550);
    border-radius: 6px;
    background: #fff;
    color: var(--edms-ink);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.12);
    cursor: pointer;
}
.edms-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(15, 23, 42, 0.35);
}

@media (max-width: 991.98px) {
    body.edms-has-sidebar {
        --edms-sidebar-w: 0px;
    }
    .edms-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(280px, 86vw);
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        box-shadow: 4px 0 24px rgba(15, 23, 42, 0.18);
    }
    body.edms-sidebar-open .edms-sidebar {
        transform: translateX(0);
    }
    body.edms-sidebar-open .edms-sidebar-backdrop {
        display: block;
    }
    .edms-shell {
        padding-top: 0.35rem;
    }
    body.edms-has-sidebar .edms-main {
        padding-left: 2.75rem;
    }
    .edms-page-header-bar {
        padding-left: 3.25rem;
    }
}

.register-page-stisc {
    height: calc(100vh - var(--edms-nav-h) - var(--edms-footer-h));
    min-height: 0;
    overflow: hidden;
    background: #fff;
}
.doc-register-title-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 0.35rem;
    background: #dc2626;
    border-radius: 1px;
    vertical-align: middle;
}
#docModal .modal-header-flow-out .doc-register-title-icon { background: #eab308; }
#docModal .modal-header-flow-int .doc-register-title-icon { background: #059669; }
body.edms-view-register #view-register.view-panel.active {
    overflow: hidden;
}

/* ─── Registru — layout modern STISC ─── */
.registry-layout-full {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}
.registry-stisc {
    margin: 0;
    padding: 0;
    background: #f3f6fa;
    font-size: 0.8125rem;
    height: 100%;
}
.registry-tool-btn {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--edms-stisc-550);
    border-radius: 6px;
    background: #fff;
    color: var(--edms-stisc-800);
    font-size: 1rem;
    cursor: pointer;
}
.registry-tool-btn:hover:not(:disabled) {
    background: var(--edms-stisc-100);
    border-color: var(--edms-stisc-800);
}
.registry-tool-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.registry-add-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2.15rem;
    padding: 0 0.9rem;
    border: 1px solid var(--edms-stisc-800);
    border-radius: 6px;
    background: var(--edms-stisc-800);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}
.registry-add-btn-primary:hover {
    background: var(--edms-stisc-900);
    border-color: var(--edms-stisc-900);
    color: #fff;
}
.registry-stisc .registry-toolbar-stisc {
    padding: 0.75rem 1.15rem;
    background: #fff;
    border-bottom: 1px solid var(--edms-stisc-400);
    flex-shrink: 0;
}
.registry-stisc .registry-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 0.85rem;
}
.registry-stisc .registry-field,
.search-filter-grid .registry-field,
.reports-filter-form .registry-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}
.registry-stisc .registry-field-grow {
    flex: 1 1 220px;
    max-width: 360px;
}
.registry-stisc .registry-field-label,
.search-filter-grid .registry-field-label,
.reports-filter-form .registry-field-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--edms-text-muted);
    letter-spacing: 0.02em;
    text-transform: none;
    margin: 0;
    white-space: nowrap;
}
.registry-stisc .registry-select,
.search-filter-grid .registry-select,
.reports-filter-form .registry-select {
    min-width: 5.5rem;
    height: 2.15rem;
    padding: 0.25rem 1.75rem 0.25rem 0.55rem;
    font-size: 0.8125rem;
    border-radius: 6px;
    border: 1px solid var(--edms-stisc-550);
    background: #fff;
    color: #000000;
}
.registry-stisc .registry-select:focus,
.search-filter-grid .registry-select:focus,
.reports-filter-form .registry-select:focus,
.search-filter-grid .form-control:focus,
.reports-filter-form .form-control:focus {
    border-color: var(--edms-stisc-800);
    box-shadow: 0 0 0 2px rgba(74, 126, 184, 0.2);
}
.registry-stisc .registry-select-wide,
.search-filter-grid .registry-select-wide,
.reports-filter-form .registry-select-wide {
    width: 100%;
    min-width: 0;
    max-width: none;
}
.registry-stisc .registry-flag-field {
    flex: 1 1 180px;
    max-width: 260px;
}
.registry-stisc .registry-flag-combo {
    position: relative;
    min-width: 0;
}
.registry-stisc .registry-flag-combo-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    height: 2.15rem;
    padding: 0 1.7rem 0 0.55rem;
    border: 1px solid var(--edms-stisc-550);
    border-radius: 6px;
    background: #fff;
    color: #000000;
    font-size: 0.8125rem;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}
.registry-stisc .registry-flag-combo-btn:hover,
.registry-stisc .registry-flag-combo.is-open .registry-flag-combo-btn {
    border-color: var(--edms-stisc-800);
}
.registry-stisc .registry-flag-combo-btn.is-red { color: #b91c1c; }
.registry-stisc .registry-flag-combo-btn.is-orange { color: #c2410c; }
.registry-stisc .registry-flag-combo-btn.is-yellow { color: #a16207; }
.registry-stisc .registry-flag-combo-btn.is-purple { color: #4338ca; }
.registry-stisc .registry-flag-combo-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.registry-stisc .registry-flag-combo-caret {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #222f7e;
    pointer-events: none;
}
.registry-stisc .registry-flag-combo.is-open .registry-flag-combo-caret {
    transform: translateY(-50%) rotate(180deg);
}
.registry-stisc .registry-flag-marker {
    width: 0.7rem;
    height: 0.7rem;
    flex-shrink: 0;
}
.registry-stisc .registry-flag-combo-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid #222f7e;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.registry-stisc .registry-flag-combo-menu [role="option"] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.8125rem;
    color: #000000;
    cursor: pointer;
}
.registry-stisc .registry-flag-combo-menu [role="option"]:hover,
.registry-stisc .registry-flag-combo-menu [role="option"].is-active {
    background: #f7f7f7;
}
.registry-stisc .registry-flag-combo-menu [data-flag="red"] { color: #b91c1c; }
.registry-stisc .registry-flag-combo-menu [data-flag="orange"] { color: #c2410c; }
.registry-stisc .registry-flag-combo-menu [data-flag="yellow"] { color: #a16207; }
.registry-stisc .registry-flag-combo-menu [data-flag="purple"] { color: #4338ca; }
.registry-stisc .registry-flag-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    padding: 0.4rem 1.15rem;
    background: #fff;
    border-bottom: 1px solid var(--edms-stisc-400);
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #000000;
    line-height: 1.3;
}
.registry-stisc .registry-flag-legend-label {
    font-weight: 700;
    color: #222f7e;
    margin-right: 0.15rem;
}
.registry-stisc .registry-flag-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.registry-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.45rem 1.15rem;
    background: var(--edms-stisc-150);
    border-bottom: 1px solid var(--edms-stisc-400);
    flex-shrink: 0;
}
.registry-stisc .registry-pagination-info {
    font-size: 0.8125rem;
    color: #475569;
    font-weight: 500;
}
.registry-stisc .registry-pagination-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
}
.registry-stisc .registry-page-link {
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.4rem;
    border: 1px solid var(--edms-stisc-550);
    border-radius: 5px;
    background: #fff;
    color: var(--edms-stisc-800);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}
.registry-stisc .registry-page-link:hover:not(:disabled):not(.active) {
    background: #fff;
    border-color: var(--edms-stisc-800);
}
.registry-stisc .registry-page-link.active {
    background: var(--edms-stisc-800);
    border-color: var(--edms-stisc-800);
    color: #fff;
    font-weight: 600;
}
.registry-stisc .registry-page-link:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.registry-stisc .registry-page-ellipsis {
    padding: 0 0.2rem;
    color: var(--edms-text-muted);
}
.registry-table-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0.65rem 1.15rem 1rem;
    background: #fff;
    border: 1px solid var(--edms-stisc-500);
    border-radius: 8px;
    overflow: hidden;
}
.registry-stisc .registry-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    max-height: none;
}
.registry-stisc .registry-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 0.8125rem;
    margin: 0;
}
.registry-stisc .registry-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
}
.registry-stisc .registry-table thead th {
    background: var(--edms-stisc-250);
    color: var(--edms-ink);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.55rem 0.5rem;
    border: none;
    border-bottom: 1px solid var(--edms-stisc-500);
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
}
.registry-stisc .registry-table .registry-filter-row th {
    background: #f7f7f7;
    padding: 0.35rem 0.4rem;
    border-bottom: 1px solid var(--edms-stisc-400);
}
.registry-stisc .registry-table .col-filter {
    height: 1.85rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--edms-stisc-550);
    background: #fff;
}
.registry-stisc .registry-table .col-filter:focus {
    border-color: var(--edms-stisc-800);
    box-shadow: 0 0 0 2px rgba(74, 126, 184, 0.15);
    outline: none;
}
.registry-stisc .registry-table .col-filter::placeholder {
    color: var(--edms-text-muted);
}
.registry-stisc .registry-table tbody td {
    padding: 0.55rem 0.5rem;
    border: none;
    border-bottom: 1px solid rgba(34, 47, 126, 0.18);
    vertical-align: middle;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #000000;
    background: #fff;
}
.registry-stisc .registry-table tbody tr:nth-child(even) td {
    background: #f7f7f7;
}
.registry-stisc .registry-table tbody tr.registry-row:hover td {
    background: var(--edms-stisc-100) !important;
}
.registry-stisc .registry-table tbody tr.registry-row:last-child td {
    border-bottom: none;
}
.registry-row {
    cursor: pointer;
}
.registry-stisc .col-icon {
    width: 2rem;
    text-align: center;
    padding-left: 0.4rem !important;
    padding-right: 0.25rem !important;
}
.registry-stisc .col-control {
    width: 3rem;
    text-align: center;
}
.registry-stisc .col-delete {
    width: 2.35rem;
    text-align: center;
    padding-left: 0.2rem !important;
    padding-right: 0.35rem !important;
}
.registry-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    border: 1px solid #b91c1c;
    border-radius: 2px;
    background: #ffffff;
    color: #b91c1c;
    cursor: pointer;
    line-height: 1;
}
.registry-delete-btn:hover {
    background: #fff5f5;
    color: #991b1b;
    border-color: #991b1b;
}
.registry-stisc .col-date {
    width: 5.75rem;
    white-space: nowrap;
}
.registry-stisc .col-reg {
    width: 4.75rem;
    white-space: nowrap;
    font-weight: 600;
}
.registry-stisc .col-content,
.registry-stisc .col-res,
.registry-stisc .col-party {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.registry-stisc .registry-status-dot,
.guide-stisc .registry-status-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: rgba(34, 47, 126, 0.22);
    border: 1px solid #222f7e;
    vertical-align: middle;
}
.guide-stisc .guide-flag-list .registry-status-dot {
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.registry-stisc .registry-dot-red,
.guide-stisc .registry-dot-red { background: #ef4444; border-color: #dc2626; }
.registry-stisc .registry-dot-orange,
.guide-stisc .registry-dot-orange { background: #f97316; border-color: #ea580c; }
.registry-stisc .registry-dot-yellow,
.guide-stisc .registry-dot-yellow { background: #eab308; border-color: #ca8a04; }
.registry-stisc .registry-dot-purple,
.guide-stisc .registry-dot-purple { background: #6366f1; border-color: #4f46e5; }
.registry-stisc .registry-cell-link {
    color: var(--edms-stisc-800);
    cursor: pointer;
    text-decoration: none;
}
.registry-stisc .registry-cell-link:hover {
    text-decoration: underline;
    color: var(--edms-stisc-900);
}
.registry-stisc .registry-row.row-flag-red .registry-cell-link,
.registry-stisc .registry-row.row-flag-orange .registry-cell-link,
.registry-stisc .registry-row.row-flag-yellow .registry-cell-link,
.registry-stisc .registry-row.row-flag-purple .registry-cell-link {
    color: inherit;
}
.registry-stisc .registry-control-mark {
    color: var(--edms-stisc-800);
    font-weight: 700;
    font-size: 0.875rem;
}
.registry-stisc .registry-row.row-flag-red td { color: #b91c1c !important; }
.registry-stisc .registry-row.row-flag-orange td { color: #c2410c !important; }
.registry-stisc .registry-row.row-flag-yellow td { color: #a16207 !important; }
.registry-stisc .registry-row.row-flag-purple td { color: #4338ca !important; }
.registry-empty,
.registry-loading {
    text-align: center;
    padding: 3rem 1rem !important;
    color: var(--edms-text-muted);
    font-size: 0.9rem;
    background: #fff !important;
}
@media (max-width: 991.98px) {
    .registry-page-head,
    .registry-stisc .registry-toolbar-stisc,
    .registry-stisc .registry-flag-legend,
    .registry-meta-bar {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
    .registry-table-panel {
        margin: 0.5rem 0.65rem 0.85rem;
        border-radius: 6px;
    }
    .registry-stisc .registry-field-grow,
    .registry-stisc .registry-flag-field {
        flex: 1 1 100%;
        max-width: none;
    }
    .registry-add-btn-primary span {
        display: none;
    }
}


/* ─── Shell pagină unificat (toate view-urile) ─── */
.edms-page-head,
.registry-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1.15rem 0.65rem;
    background: linear-gradient(180deg, #fff 0%, var(--edms-stisc-150) 100%);
    border-bottom: 1px solid var(--edms-stisc-500);
    flex-shrink: 0;
}
.edms-page-breadcrumb,
.registry-breadcrumb {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--edms-text-muted);
}
.edms-page-title,
.registry-page-title {
    margin: 0.1rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--edms-ink);
    line-height: 1.2;
}
.edms-page-actions,
.registry-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}
.edms-page-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.45rem 1.15rem;
    background: var(--edms-stisc-150);
    border-bottom: 1px solid var(--edms-stisc-400);
    flex-shrink: 0;
}
.edms-page-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0.65rem 1.15rem 1rem;
    background: #fff;
    border: 1px solid var(--edms-stisc-500);
    border-radius: 8px;
    overflow: hidden;
}
.edms-page-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0.85rem 1rem;
}
.edms-page-panel > .nom-table-wrap,
.edms-page-panel > .search-table-wrap,
.edms-page-panel > .audit-table-wrap,
.edms-page-panel > .users-grouped-table-wrap,
.edms-page-panel > .dynamic-numbering-panel,
.edms-page-panel > .settings-stisc-scroll,
.edms-page-panel > .settings-stisc-form,
.edms-page-panel > .profile-stisc-layout {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}
.nom-page.nom-stisc,
.search-page.search-stisc,
.reports-page.reports-stisc,
.guide-stisc {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: #f3f6fa;
    height: 100%;
}
.nom-stisc .nom-toolbar-stisc,
.users-stisc .users-grouped-toolbar,
.audit-stisc .audit-filter-form {
    margin: 0;
    padding: 0.75rem 1.15rem;
    background: #fff;
    border-bottom: 1px solid var(--edms-stisc-400);
    border-radius: 0;
}
.nom-stisc .nom-toolbar-footer {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--edms-stisc-400);
}
.nom-stisc .nom-table-wrap,
.audit-stisc .nom-table-wrap,
.users-stisc .nom-table-wrap {
    margin: 0;
    border: none;
    border-radius: 0;
    background: #fff;
}
.nom-stisc .nom-table thead th {
    background: var(--edms-stisc-250);
    color: var(--edms-ink);
    font-size: 0.6875rem;
    font-weight: 700;
    border: none;
    border-bottom: 1px solid var(--edms-stisc-500);
    padding: 0.55rem 0.5rem;
}
.nom-stisc .nom-table thead,
.search-stisc .search-table thead,
.report-table thead,
.audit-stisc .audit-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
}
.nom-stisc .nom-table tbody td {
    border: none;
    border-bottom: 1px solid rgba(34, 47, 126, 0.18);
    padding: 0.55rem 0.5rem;
    vertical-align: middle;
}
.nom-stisc .nom-table tbody tr:nth-child(even) td {
    background: #f7f7f7;
}
.settings-stisc .settings-stisc-form,
.settings-stisc .settings-stisc-scroll,
.dynamic-numbering-stisc .dynamic-numbering-panel {
    background: transparent;
}
.reports-page.reports-stisc {
    overflow: auto;
    padding: 0 0 1rem;
}
.reports-mode-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.65rem 1.15rem 0.55rem;
    background: #fff;
    border-bottom: 1px solid var(--edms-stisc-400);
    flex-shrink: 0;
}
.reports-mode-btn {
    border: 1px solid var(--edms-stisc-550);
    background: #fff;
    color: var(--edms-ink);
    border-radius: 6px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}
.reports-mode-btn:hover {
    background: var(--edms-stisc-100);
}
.reports-mode-btn.active {
    background: var(--edms-stisc-800);
    border-color: var(--edms-stisc-800);
    color: #fff;
}
.reports-filters-panel {
    margin-top: 0.65rem;
}
.reports-filter-form {
    padding: 0.85rem 1rem 0.75rem;
}
.reports-page.reports-stisc .report-results-section {
    margin-top: 0.65rem;
}
.search-page.search-stisc .search-filters {
    flex-shrink: 0;
}
.search-filters-toolbar {
    padding: 0.75rem 1.15rem 0.85rem;
    background: #fff;
    border-bottom: 1px solid var(--edms-stisc-400);
}
.search-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.65rem 0.85rem;
    align-items: end;
}
.search-filter-grid .form-control,
.reports-filter-form .form-control {
    height: 2.15rem;
    font-size: 0.8125rem;
    border-radius: 6px;
    border: 1px solid var(--edms-stisc-550);
}
.search-filter-grid .registry-field-grow {
    grid-column: span 2;
    min-width: 0;
}
.search-filter-grid .search-field-dates {
    grid-column: span 2;
    min-width: 16.5rem;
}
.search-range-pair,
.search-inline-tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    width: 100%;
}
.search-range-pair .form-control,
.search-inline-tools .form-select,
.search-inline-tools .form-control {
    flex: 1 1 auto;
    min-width: 0;
}
.search-range-pair--dates {
    flex-wrap: nowrap;
    gap: 0.3rem;
}
.search-range-pair--dates .doc-form-pair-sep {
    flex: 0 0 auto;
    color: var(--edms-text-muted);
    line-height: 1;
}
.search-range-pair--dates .edms-date-wrap {
    flex: 0 0 7.75rem;
    width: 7.75rem;
    min-width: 7.75rem;
    max-width: 7.75rem;
}
.search-range-pair--dates .search-range-date,
.search-range-pair--dates .edms-date-wrap .form-control {
    width: 100%;
    min-width: 0;
    flex: none;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}
.search-inline-tools--pick,
.search-inline-tools--check {
    align-items: stretch;
}
.search-inline-tools--pick .form-select,
.search-inline-tools--pick .form-control,
.search-inline-tools--check .form-select,
.search-inline-tools--check .form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 2.15rem;
}
.search-inline-tools .doc-form-check-inline {
    flex: 0 0 auto;
    align-self: center;
    white-space: nowrap;
    padding: 0 0.15rem;
    min-height: 2.15rem;
}
.search-actions-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    margin-top: 0.85rem;
}
.search-actions-bar .registry-add-btn-primary,
.search-actions-bar .sheet-footer-btn {
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.search-columns-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--edms-stisc-400);
}
.search-columns-block .search-col-checks {
    flex: 1 1 auto;
}
.search-advanced-block {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--edms-stisc-400);
}
.search-advanced-block[hidden] {
    display: none !important;
}
.search-filter-grid-simple {
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}
.search-filter-grid-simple .search-field-dates {
    grid-column: span 2;
}
#searchToggleAdvanced.active {
    border-color: var(--edms-stisc-800);
    color: var(--edms-stisc-800);
    font-weight: 600;
}
.search-page.search-stisc .search-results-section {
    margin-top: 0.65rem;
}
.search-page.search-stisc .search-results-section[hidden] {
    display: none !important;
}
.search-link-today {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.25rem;
}
@media (max-width: 991.98px) {
    .edms-page-head,
    .edms-page-meta {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
    .edms-page-panel {
        margin: 0.5rem 0.65rem 0.85rem;
    }
    .search-filter-grid .registry-field-grow,
    .search-filter-grid .search-field-dates {
        grid-column: span 1;
    }
    .search-range-pair--dates {
        flex-wrap: wrap;
    }
    .search-range-pair--dates .edms-date-wrap {
        flex: 1 1 7.5rem;
        width: auto;
        min-width: 7.5rem;
        max-width: none;
    }
    .search-filters-toolbar,
    .reports-mode-bar {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}

.edms-page-title-block,
.registry-page-title-block {
    min-width: 0;
}
.edms-page-actions .sheet-footer-btn {
    margin: 0;
}
.edms-page-panel .settings-stisc-scroll,
.edms-page-panel .settings-stisc-form {
    padding: 0.85rem 1rem;
}
.edms-page-panel .settings-stisc-footer,
.edms-page-panel .dynamic-numbering-footer {
    margin: 0;
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--edms-stisc-400);
    background: #fff !important;
    background-image: none !important;
}
.edms-page-panel .users-institution-wrap {
    margin: 0;
    border: none;
    max-width: none;
}
.edms-page-panel .users-institution-wrap,
.edms-page-panel > .profile-stisc-panel {
    padding: 0.85rem 1rem;
}
.audit-stisc .audit-login-toolbar,
.audit-stisc .audit-email-toolbar {
    margin: 0;
    padding: 0.75rem 1.15rem;
    background: #fff;
    border-bottom: 1px solid var(--edms-stisc-400);
}
.audit-stisc .audit-pagination-footer {
    padding: 0.45rem 0.75rem;
    border-top: 1px solid var(--edms-stisc-400);
    background: #fff;
}
.register-page-hint {
    color: var(--edms-text-muted);
    font-size: 0.875rem;
}

/* ─── Căutare — tip Registru ─── */
.search-page.search-stisc {
    font-size: 0.8125rem;
}
.search-stisc .search-toolbar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.45rem 1rem;
    border: none;
    background: var(--edms-stisc-150);
    border-bottom: 1px solid var(--edms-stisc-400);
}
.search-stisc .search-meta {
    font-size: 0.8125rem;
    color: var(--edms-text-muted);
}
.search-stisc .search-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
}
.search-stisc .search-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.8125rem;
}
.search-stisc .search-table thead th {
    background: var(--edms-stisc-300);
    color: var(--edms-ink);
    font-size: 11px;
    font-weight: 600;
    padding: 0.3rem 0.35rem;
    border: 1px solid #b8c9dc;
    vertical-align: middle;
    white-space: nowrap;
}
.search-stisc .search-table tbody td {
    padding: 0.2rem 0.35rem;
    border: 1px solid #d8e0ea;
    vertical-align: top;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-stisc .search-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}
.search-stisc .search-table tbody tr.search-row {
    cursor: pointer;
}
.search-stisc .search-table tbody tr.search-row:hover {
    background: rgba(26, 95, 180, 0.08) !important;
}

/* ― Raportare STISC ― */
body.edms-view-reports {
    overflow: auto;
}
body.edms-view-reports .edms-main {
    overflow: visible;
    padding: 0;
}
.report-document-header {
    text-align: center;
    padding: 0.65rem 0.5rem 0.55rem;
    border-bottom: 1px solid #d8e0ea;
    margin-bottom: 0.35rem;
}
.report-doc-institution {
    font-size: 12px;
    font-weight: 700;
    color: #000000;
}
.report-doc-title {
    font-size: 12px;
    font-weight: 700;
    color: #000000;
}
.report-doc-period {
    font-size: 12px;
    font-weight: 700;
    color: #000000;
}
.report-table-wrap {
    max-height: none;
    overflow-x: auto;
}
.report-table.report-table-wide {
    min-width: 58rem;
}
.report-doc-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: #000000;
}
.report-col-pct {
    width: 5.5rem;
    white-space: nowrap;
}
.report-table thead th {
    background: var(--edms-stisc-300);
    font-size: 11px;
    font-weight: 600;
    padding: 0.3rem 0.45rem;
    border: 1px solid #b8c9dc;
    vertical-align: middle;
}
.report-table tbody td {
    font-size: 12px;
    padding: 0.22rem 0.45rem;
    border: 1px solid #d8e0ea;
    vertical-align: top;
}
.report-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}
.report-col-nr {
    width: 2.5rem;
    text-align: center;
}
.report-col-num {
    width: 4.5rem;
    white-space: nowrap;
}
.report-total-row th {
    background: #eef2f7;
    font-size: 12px;
    font-weight: 700;
    padding: 0.3rem 0.45rem;
    border: 1px solid #b8c9dc;
}

/* Nomenclatoare STISC */
.nom-toolbar-stisc {
    margin-bottom: 0.35rem;
}
.nom-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.35rem 0.5rem;
}
.nom-toolbar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding: 0.15rem 0;
}
.nom-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.12rem;
}
.nom-select {
    min-width: 4.5rem;
    font-size: 12px;
    padding: 0.15rem 1.5rem 0.15rem 0.35rem;
    border-color: #b8c9dc;
}
.nom-select-wide {
    min-width: 14rem;
}
.nom-search-field {
    margin-left: auto;
}
.nom-search-input {
    min-width: 11rem;
    font-size: 12px;
    padding: 0.15rem 0.4rem;
    border-color: #b8c9dc;
}
.nom-toolbar-spacer {
    flex: 1 1 auto;
}
.nom-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
}
.nom-pagination-info {
    font-size: 11px;
    color: #475569;
}
.nom-page-link {
    font-size: 11px;
    min-width: 1.6rem;
    padding: 0.12rem 0.35rem;
    border: 1px solid #b8c9dc;
    background: #f7f7f7;
    color: #000000;
    border-radius: 2px;
    cursor: pointer;
}
.nom-page-link:hover:not(:disabled):not(.active) {
    background: #eef2f7;
}
.nom-page-link.active {
    background: #2f6fb8;
    border-color: #2563a8;
    color: #fff;
}
.nom-page-link:disabled {
    opacity: 0.45;
    cursor: default;
}
.nom-page-ellipsis {
    font-size: 11px;
    color: var(--edms-text-muted);
    padding: 0 0.15rem;
}
.nom-table-wrap {
    overflow-x: auto;
    border: 1px solid #b8c9dc;
}
.nom-stisc .nom-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.nom-stisc .nom-table thead th {
    background: var(--edms-stisc-300);
    font-size: 11px;
    font-weight: 600;
    padding: 0.3rem 0.45rem;
    border: 1px solid #b8c9dc;
    vertical-align: middle;
    white-space: nowrap;
}
.nom-stisc .nom-table tbody td {
    font-size: 12px;
    padding: 0.22rem 0.45rem;
    border: 1px solid #d8e0ea;
    vertical-align: top;
}
.nom-stisc .nom-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}
.nom-stisc .nom-table tbody tr.nom-row {
    cursor: pointer;
}
.nom-stisc .nom-table tbody tr.nom-row:hover {
    background: #f7f7f7;
}
.nom-stisc .nom-table tbody tr.nom-row-inactive td {
    opacity: 0.55;
}
.nom-col-short {
    max-width: 12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nom-col-nr {
    width: 2.5rem;
    white-space: nowrap;
}
.nom-stisc .nom-table tbody td.nom-title-bold {
    font-weight: 700;
}

/* Administrare utilizatori STISC */

.users-stisc .users-table .users-filter-row th {
    background: rgba(34, 47, 126, 0.18);
    padding: 0.2rem 0.25rem;
}
.users-stisc .users-table .col-filter {
    height: 22px;
    padding: 0.1rem 0.3rem;
    font-size: 11px;
    border-radius: 2px;
    border-color: #b8c5d6;
}
.users-stisc .users-col-nr {
    width: 2.5rem;
    white-space: nowrap;
}
.users-stisc .users-col-flag {
    width: 4.5rem;
}
.users-stisc .users-grouped-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.65rem 1.15rem;
    background: #fff;
    border-bottom: 1px solid var(--edms-stisc-400);
}
.users-stisc .users-institution-wrap {
    margin-bottom: 0.35rem;
}
.users-stisc .users-institution-select {
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    border-color: #b8c9dc;
    padding: 0.25rem 0.45rem;
}
.users-stisc .users-grouped-table-wrap {
    max-height: calc(100vh - var(--edms-nav-h, 32px) - 9rem);
}
.users-stisc .users-grouped-table tbody tr.users-subdiv-header td {
    background: #eef2f7;
    border-top: 1px solid #b8c9dc;
    padding: 0.28rem 0.45rem;
}
.users-stisc .users-grouped-table tbody tr.users-subdiv-header.is-empty td {
    background: #f5f7fa;
    color: #334155;
}
.users-stisc .users-subdiv-name {
    font-weight: 700;
    color: #000000;
    padding-left: calc(0.45rem + (var(--users-depth, 0) * 1.15rem));
}
.users-stisc .users-user-row .users-col-person {
    padding-left: calc(1.15rem + (var(--users-depth, 0) * 1.15rem));
}
.users-stisc .users-col-person,
.users-stisc .users-col-email,
.users-stisc .users-col-role {
    white-space: nowrap;
}
.users-stisc .users-grouped-table thead th {
    white-space: nowrap;
}

/* SetÄƒri sistem STISC */
.settings-stisc {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--edms-nav-h, 32px) - var(--edms-footer-h, 40px));
}
.settings-stisc-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.settings-stisc-scroll {
    flex: 1;
    overflow: auto;
    padding: 0.35rem 0.15rem 0.5rem;
}
.settings-stisc-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 0.45rem 1rem;
    margin-bottom: 0.75rem;
    max-width: 52rem;
}
.settings-field-wide {
    grid-column: 1 / -1;
}
.settings-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--edms-text-muted);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}
.settings-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.settings-input {
    max-width: 6rem;
    font-size: 12px;
    border-color: #b8c9dc;
}
.settings-input-wide {
    max-width: 20rem;
}
.settings-suffix {
    font-size: 11px;
    color: var(--edms-text-muted);
}
.settings-select {
    max-width: 42rem;
    font-size: 12px;
    border-color: #b8c9dc;
}
.settings-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.2rem 1.25rem;
    margin-bottom: 0.85rem;
    max-width: 56rem;
}
.settings-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 11px;
    color: #000000;
    margin: 0;
    padding: 0.12rem 0;
    cursor: pointer;
}
.settings-check-item .form-check-input {
    margin-top: 0.1rem;
    flex-shrink: 0;
}
.settings-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.35rem;
}
.settings-file-types {
    max-width: 56rem;
    border-top: 1px solid #d8e0ea;
    padding-top: 0.5rem;
}
.settings-email-retry {
    max-width: 56rem;
    margin-top: 0.85rem;
    padding-top: 0.5rem;
    border-top: 1px solid #d8e0ea;
}
.settings-email-retry-hint {
    margin: 0 0 0.55rem;
    font-size: 0.75rem;
    color: #334155;
    line-height: 1.4;
}
.settings-file-row {
    display: grid;
    grid-template-columns: 11rem 1fr auto;
    gap: 0.5rem;
    align-items: start;
    padding: 0.2rem 0;
    font-size: 11px;
}
.settings-file-label {
    font-weight: 600;
    color: #334155;
}
.settings-file-value {
    color: #475569;
    word-break: break-word;
    line-height: 1.35;
}
.settings-manage-btn {
    /* unified via .sheet-footer-btn alias */
}
.settings-stisc-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem 0.5rem;
    border-top: 1px solid var(--edms-stisc-550);
    padding: 0.35rem 0.45rem;
    background: linear-gradient(180deg, var(--edms-stisc-250) 0%, var(--edms-stisc-350) 100%);
}
.settings-ext-textarea {
    font-size: 12px;
    font-family: Consolas, monospace;
}
.settings-danger-zone {
    margin-top: 1rem;
    padding: 0.75rem 0.65rem;
    border: 1px solid #f1c0c0;
    background: #fff7f7;
}
.settings-danger-hint {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    color: #7f1d1d;
    line-height: 1.4;
}
.settings-danger-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
}
.settings-danger-row .settings-label {
    margin: 0;
}
.settings-danger-btn {
    color: #b91c1c !important;
    border-color: #c4a4a4 !important;
}
@media (max-width: 768px) {
    .settings-checkbox-grid {
        grid-template-columns: 1fr;
    }
    .settings-file-row {
        grid-template-columns: 1fr;
    }
}

/* Numerotare documente dinamicÄƒ STISC */
.dynamic-numbering-stisc .dynamic-numbering-panel {
    max-width: 52rem;
    margin: 0.35rem 0.15rem;
    border: 1px solid var(--edms-ink);
    background: var(--edms-paper);
    box-shadow: 0 1px 4px rgba(34, 47, 126, 0.08);
}
.dynamic-numbering-groups {
    padding: 0.65rem 0.75rem 0.35rem;
}
.dynamic-numbering-group + .dynamic-numbering-group {
    margin-top: 0.75rem;
    padding-top: 0.55rem;
    border-top: 1px solid #d8e0ea;
}
.dynamic-numbering-group-title {
    font-size: 12px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.45rem;
}
.dynamic-numbering-row {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 14rem) auto;
    gap: 0.45rem 0.65rem;
    align-items: center;
    margin-bottom: 0.35rem;
}
.dynamic-numbering-label {
    font-size: 11px;
    color: #334155;
    margin: 0;
}
.dynamic-numbering-select {
    font-size: 12px;
    border-color: #b8c9dc;
}
.dynamic-numbering-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem 0.5rem;
    padding: 0.35rem 0.45rem;
    border-top: 1px solid var(--edms-stisc-550);
    background: linear-gradient(180deg, var(--edms-stisc-250) 0%, var(--edms-stisc-350) 100%);
}
.dynamic-numbering-footer .dynamic-numbering-footer-links {
    margin-left: auto;
}
.dynamic-numbering-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.dynamic-numbering-link {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 11px;
    color: #1e40af;
    text-decoration: underline;
}
.dynamic-numbering-link:hover {
    color: #222f7e;
}
.dynamic-numbering-sep {
    color: var(--edms-text-muted);
    font-size: 11px;
}
.dynamic-numbering-preview-body {
    display: grid;
    gap: 0.55rem;
}
.dynamic-numbering-preview-item {
    padding: 0.45rem 0.55rem;
    border: 1px solid #d8e0ea;
    background: #f7f7f7;
}
.dynamic-numbering-preview-name {
    font-size: 12px;
    font-weight: 700;
    color: #000000;
}
.dynamic-numbering-preview-meta {
    font-size: 11px;
    color: var(--edms-text-muted);
}
.dynamic-numbering-preview-value {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}
@media (max-width: 768px) {
    .dynamic-numbering-row {
        grid-template-columns: 1fr;
    }
}

/* SetÄƒri securitate STISC */
.security-settings-stisc .security-settings-panel {
    max-width: 42rem;
    display: grid;
    gap: 0.45rem;
}
.security-settings-stisc .security-settings-check {
    margin: 0.15rem 0;
}

/* Căutare — filtre tip Registru */
.search-page.search-stisc {
    font-size: 0.8125rem;
}
.search-stisc .search-toolbar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.45rem 1rem;
    border: none;
    background: var(--edms-stisc-150);
    border-bottom: 1px solid var(--edms-stisc-400);
}
.search-stisc .search-meta {
    font-size: 0.8125rem;
    color: var(--edms-text-muted);
}
.search-stisc .search-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
}
.search-stisc .search-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.8125rem;
}
.search-col-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
}
.search-col-check {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
}
.search-col-check input {
    width: 0.85rem;
    height: 0.85rem;
    margin: 0;
}
.search-results-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}
.search-preset-link {
    font-size: 0.75rem;
    color: var(--edms-stisc-800);
    text-decoration: underline;
    white-space: nowrap;
}
.search-page .search-pick-select {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
}
.search-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
}
.search-stisc .search-table tbody tr.search-row {
    cursor: pointer;
}
.search-stisc .search-table tbody tr.search-row:hover {
    background: rgba(26, 95, 180, 0.08) !important;
}

/* Formulare modal / fișă */
.req { color: #dc2626; }
.quill-editor {
    min-height: 120px;
    background: #fff;
    border-radius: 0.375rem;
}
.quill-editor.quill-sm { min-height: 80px; }
.ql-toolbar.ql-snow {
    border-radius: 0.375rem 0.375rem 0 0;
    border-color: #ced4da;
}
.ql-container.ql-snow {
    border-radius: 0 0 0.375rem 0.375rem;
    border-color: #ced4da;
}

.modal-header-flow-in { border-top: 4px solid #dc2626; }
.modal-header-flow-out { border-top: 4px solid #ea580c; }
.modal-header-flow-int { border-top: 4px solid #059669; }
.modal-content {
    border: none;
    box-shadow: var(--edms-shadow-lg);
    border-radius: var(--edms-radius);
}
.modal-header {
    border-bottom: 1px solid var(--edms-border);
}

/* Modale — lățime și spațiere ca la Înregistrare */
#docModal .doc-register-dialog,
#docSheetModal .doc-sheet-dialog,
#userModal .user-profile-dialog,
.user-profile-modal .modal-dialog,
.user-profile-modal .user-profile-dialog,
.modal-dialog.nom-dialog,
#settingsExtensionsModal .nom-dialog,
#auditDetailModal .nom-dialog,
#dynamicNumberingPreviewModal .nom-dialog,
#inboxModal .inbox-dialog {
    max-width: var(--edms-modal-max);
    width: calc(100% - var(--edms-modal-gutter));
}
#docModal .doc-register-dialog {
    max-width: var(--edms-modal-max);
    width: calc(100% - var(--edms-modal-gutter));
    max-height: calc(100vh - 0.5rem);
    margin: 0.25rem auto;
}
#docModal.modal.show {
    align-items: flex-start;
    padding-top: 0.25rem;
    overflow: hidden;
}
#docModal .modal-dialog.doc-register-dialog {
    overflow: hidden;
}
#docSheetModal .doc-sheet-dialog {
    max-width: var(--edms-modal-max);
    width: calc(100% - var(--edms-modal-gutter));
    height: auto;
    max-height: calc(100vh - 0.5rem);
    margin: 0.25rem auto;
}
#docSheetModal.modal.show {
    align-items: flex-start;
    padding-top: 0.25rem;
}
#docSheetModal .edms-modal-sheet.doc-sheet-stisc {
    height: auto;
    max-height: calc(100vh - 0.5rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid var(--edms-stisc-700);
    border-radius: 0;
    background: #fff;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}
#docSheetModal .sheet-chrome,
#docSheetModal .doc-register-chrome.sheet-chrome {
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--edms-stisc-250) 0%, var(--edms-stisc-350) 100%);
    border-bottom: 1px solid var(--edms-stisc-700);
}
#docSheetModal .doc-register-titlebar.sheet-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.45rem 0.25rem;
    min-height: 1.75rem;
}
#docSheetModal .doc-register-titlebar.modal-header-flow-in {
    border-top: 3px solid #dc2626;
}
#docSheetModal .doc-register-titlebar.modal-header-flow-out {
    border-top: 3px solid #7c3aed;
}
#docSheetModal .doc-register-titlebar.modal-header-flow-int {
    border-top: 3px solid #059669;
}
#docSheetModal .doc-register-title {
    flex: 1 1 auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--edms-ink);
    line-height: 1.2;
}
#docSheetModal .doc-register-close {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: 1px solid #c4a4a4;
    border-radius: 2px;
    background: linear-gradient(180deg, #fff 0%, #f5e8e8 100%);
    color: #dc2626;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
}
#docSheetModal .sheet-tabbar {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0 0.35rem;
    padding-right: 0.25rem;
    background: linear-gradient(180deg, var(--edms-stisc-350) 0%, var(--edms-stisc-400) 100%);
    border-top: 1px solid var(--edms-stisc-550);
}
#docSheetModal .sheet-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    flex: 1 1 auto;
    min-width: 0;
}
#docSheetModal .sheet-tabs-nav .doc-register-tab {
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--edms-ink);
    padding: 0.2rem 0.65rem;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    margin-bottom: -1px;
}
#docSheetModal .sheet-tabs-nav .doc-register-tab.active {
    background: #f0f4f7;
    border-color: var(--edms-stisc-700);
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}
#docSheetModal .sheet-record-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
    padding-bottom: 0.15rem;
}
#docSheetModal .sheet-nav-btn {
    min-width: 26px;
    height: 24px;
    padding: 0 0.25rem;
    border: 1px solid var(--edms-stisc-600);
    border-radius: 2px;
    background: linear-gradient(180deg, #fff 0%, var(--edms-stisc-150) 100%);
    color: var(--edms-stisc-800);
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}
#docSheetModal .sheet-nav-btn:hover:not(:disabled) {
    background: var(--edms-stisc-200);
}
#docSheetModal .sheet-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
#docSheetModal .sheet-body {
    position: relative;
    flex: 0 1 auto;
    min-height: 0;
    max-height: calc(100vh - 8.5rem);
    overflow: hidden;
    padding: 0.35rem 0.5rem 0.45rem;
    background: #f0f4f7;
    border-top: 1px solid var(--edms-stisc-700);
}
#docSheetModal .sheet-footer-stisc {
    flex-shrink: 0;
}
/* Shared STISC action strip â€” sheet / search / reports / register */
.sheet-footer-stisc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem 0.5rem;
    padding: 0.35rem 0.45rem;
    border-top: 1px solid var(--edms-stisc-550);
    background: linear-gradient(180deg, var(--edms-stisc-250) 0%, var(--edms-stisc-350) 100%);
}
.sheet-footer-btn,
.search-alege-btn,
.edms-form-stisc-btn {
    min-width: 5.5rem;
    padding: 0.18rem 0.55rem;
    border: 1px solid var(--edms-ink);
    border-radius: 2px;
    background: var(--edms-ink);
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.25;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.sheet-footer-btn .bi,
.search-alege-btn .bi,
.edms-form-stisc-btn .bi {
    font-size: 0.95em;
    line-height: 1;
}
.sheet-footer-btn span,
.search-alege-btn span,
.edms-form-stisc-btn span {
    line-height: 1.2;
}
.sheet-footer-btn:hover:not(:disabled),
.search-alege-btn:hover,
.edms-form-stisc-btn:hover {
    background: var(--edms-ink-hover, #1a2463);
    border-color: var(--edms-ink-hover, #1a2463);
    color: #ffffff;
}
.sheet-footer-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.sheet-footer-btn-danger {
    background: #ffffff;
    color: #b91c1c;
    border-color: #b91c1c;
    margin-left: auto;
}
.sheet-footer-btn-danger:hover:not(:disabled) {
    background: #fff5f5;
    color: #991b1b;
    border-color: #991b1b;
}
.search-alege-btn {
    flex: 0 0 auto;
    align-self: stretch;
    min-width: 3.75rem;
    height: 2.15rem;
    padding: 0 0.65rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
/* Icon / compact toolbar buttons — same chrome, square */
.nom-refresh-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    border: 1px solid var(--edms-stisc-700);
    border-radius: 2px;
    background: linear-gradient(180deg, #fff 0%, var(--edms-stisc-150) 100%);
    color: #000000;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 #fff;
}
.nom-refresh-btn:hover {
    background: linear-gradient(180deg, #fff 0%, var(--edms-stisc-100) 100%);
    border-color: var(--edms-stisc-800);
}
#docSheetModal .doc-form-compact {
    font-size: 0.6875rem;
}
#docSheetModal .doc-form-row {
    grid-template-columns: 9.25rem 1fr;
    gap: 0.15rem 0.4rem;
    margin-bottom: 0.18rem;
}
#docSheetModal .doc-form-label:not(.doc-form-label-empty):not(.doc-form-label-editor)::after {
    content: ':';
}
#docSheetModal .doc-form-inline-label::after {
    content: ':';
}
#docSheetModal .doc-form-label-editor > span::after {
    content: ':';
}
#docSheetModal .doc-form-label-empty {
    visibility: hidden;
}
#docSheetModal .doc-form-row-editor {
    margin-bottom: 0.4rem;
}
#docSheetModal .doc-form-row-res-editor {
    align-items: start;
    margin-top: -0.12rem;
    margin-bottom: 0.22rem;
}
#docSheetModal .doc-form-field-coord {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
#docSheetModal .doc-form-field-coord .form-select-sm {
    flex: 1 1 auto;
    min-width: 0;
}
#docSheetModal .sheet-coord-ok {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: var(--edms-text-muted);
    user-select: none;
}
#docSheetModal .sheet-quill .ql-toolbar.ql-snow,
#docSheetModal .sheet-quill .ql-container.ql-snow {
    border-radius: 0;
    border-color: #222f7e;
    background: #fff;
}
#docSheetModal .doc-form-label {
    font-size: 0.6875rem;
}
#docSheetModal .doc-form-inline-label {
    font-size: 0.6875rem;
}
#docSheetModal .doc-form-clear-btn {
    font-size: 0.625rem;
}
#docSheetModal .doc-form-field .form-control-sm,
#docSheetModal .doc-form-field .form-select-sm {
    font-size: 0.6875rem;
    min-height: calc(1.35em + 0.2rem + 2px);
    border-radius: 0;
    border-color: #222f7e;
    box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.06);
    background-color: #fff;
}
#docSheetModal .doc-form-field .form-select-sm {
    padding-right: 2.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-position: right 0.5rem center;
    background-size: 12px 10px;
}
#docSheetModal .doc-form-field .form-control-sm[readonly] {
    background-color: #fff;
}
#docSheetModal .doc-form-field-pair--nums #sheetRegNumber,
#docSheetModal .doc-form-field-pair--nums #sheetDocNumber {
    flex: 0 0 5.75rem;
    width: 5.75rem;
    max-width: 5.75rem;
}
#docSheetModal .doc-form-field-pair--dates .edms-date-wrap {
    flex: 0 0 7.75rem;
    width: 7.75rem;
    max-width: 7.75rem;
}
#docSheetModal .doc-form-field-pair--term {
    width: 100%;
    max-width: 100%;
    gap: 0.45rem 0.55rem;
    align-items: center;
}
#docSheetModal .doc-form-field-pair--term .doc-deadline-preset {
    flex: 0 0 7.25rem;
    width: 7.25rem;
    max-width: 7.25rem;
}
#docSheetModal .doc-form-field-pair--term .edms-date-wrap {
    flex: 0 0 7.75rem;
    width: 7.75rem;
    max-width: 7.75rem;
}
#docSheetModal .doc-form-field-pair--dates .sheet-date-text {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
}
#docSheetModal .doc-form-field-pair--term .sheet-date-text {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
}
#docSheetModal .doc-form-check-inline .form-check-label {
    font-size: 0.6875rem;
}
#docSheetModal .doc-form-row-files .form-control-sm {
    font-size: 0.6875rem;
}
#docSheetModal .doc-form-field-pair--cat #sheetCategoryId,
#docSheetModal .doc-form-field-pair--cat #sheetDeliveryMethodId {
    flex: 1 1 0;
    min-width: 0;
}
#docSheetModal .quill-editor.quill-compact {
    min-height: 0;
    width: 100%;
}
#docSheetModal .quill-editor.quill-compact .ql-toolbar.ql-snow {
    padding: 0.1rem 0.2rem;
    line-height: 1;
}
#docSheetModal .quill-editor.quill-compact .ql-toolbar .ql-formats {
    margin-right: 0.25rem;
}
#docSheetModal .quill-editor.quill-compact .ql-toolbar button {
    width: 22px;
    height: 22px;
    padding: 2px;
}
#docSheetModal .quill-editor.quill-compact .ql-container.ql-snow {
    border-top: 1px solid rgba(34, 47, 126, 0.22);
}
#docSheetModal .quill-editor.quill-compact .ql-editor {
    min-height: 2.75rem;
    max-height: 2.75rem;
    padding: 0.15rem 0.35rem;
    line-height: 1.2;
    overflow: hidden;
}
#docSheetModal .quill-editor.quill-compact.quill-brief .ql-editor {
    min-height: 5rem;
    max-height: 7rem;
    overflow-y: auto;
}
#docSheetModal .sheet-file-attached-wrap,
#docSheetModal .sheet-files-add-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
}
#docSheetModal .sheet-file-add-btn {
    flex-shrink: 0;
    width: 26px;
    min-width: 26px;
    padding: 0;
    border: 1px solid var(--edms-stisc-600);
    border-radius: 2px;
    background: linear-gradient(180deg, #fff 0%, var(--edms-stisc-150) 100%);
    color: var(--edms-stisc-800);
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    align-self: stretch;
}
#docSheetModal .sheet-file-hidden {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}
#docSheetModal .sheet-files-box {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 3.25rem;
    max-height: 4.5rem;
    overflow-y: auto;
    border: 1px solid #222f7e;
    background: #fff;
}
#docSheetModal .sheet-files-edit {
    list-style: none;
    margin: 0;
    padding: 0.1rem 0.15rem;
    background: #fff;
}
#docSheetModal .sheet-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.1rem 0.15rem;
    font-size: 0.75rem;
}
#docSheetModal .sheet-file-item a {
    color: var(--edms-stisc-800);
    text-decoration: underline;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#docSheetModal .sheet-file-remove {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    background: none;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
#docSheetModal .sheet-download-all {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.2rem;
    border: none;
    background: none;
    padding: 0;
    font-size: 0.75rem;
    color: var(--edms-stisc-800);
    text-decoration: underline;
    cursor: pointer;
}
#docSheetModal .sheet-panel[data-sheet-panel="fisa"] {
    display: block !important;
    position: relative;
    z-index: 1;
    max-height: calc(100vh - 9.3rem);
    overflow-y: auto;
}
#docSheetModal .sheet-panel[data-sheet-panel="fisa"]:not(.active) {
    visibility: hidden;
    pointer-events: none;
}
#docSheetModal .sheet-panel:not([data-sheet-panel="fisa"]) {
    display: none;
}
#docSheetModal .sheet-panel:not([data-sheet-panel="fisa"]).active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    bottom: 0.45rem;
    left: 0.5rem;
    z-index: 2;
    overflow: auto;
    background: #f0f4f7;
}

/* Tab Executare â€” STISC */
#docSheetModal .sheet-exec-stisc {
    font-size: 0.6875rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}
#docSheetModal .sheet-exec-list-box {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    margin-bottom: 0.35rem;
    padding: 0.25rem 0.35rem;
    border: 1px solid #222f7e;
    background: #fff;
}
#docSheetModal .sheet-exec-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}
#docSheetModal .sheet-exec-add-btn {
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--edms-stisc-700);
    border-radius: 2px;
    background: linear-gradient(180deg, #fff 0%, var(--edms-stisc-150) 100%);
    font-size: 0.6875rem;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    box-shadow: inset 0 1px 0 #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
#docSheetModal .sheet-exec-add-btn:hover {
    background: linear-gradient(180deg, #fff 0%, var(--edms-stisc-100) 100%);
}
#docSheetModal .sheet-exec-notif-btn.is-off {
    border-color: #b45309;
    color: #9a3412;
}
#docSheetModal .sheet-exec-table-wrap {
    overflow: auto;
    max-height: 11rem;
}
#docSheetModal .sheet-exec-table-stisc {
    font-size: 0.6875rem;
}
#docSheetModal .sheet-exec-table-stisc thead th {
    white-space: nowrap;
    font-weight: 600;
    background: #f7f7f7;
    border-bottom: 1px solid #222f7e;
    padding: 0.2rem 0.35rem;
}
#docSheetModal .sheet-exec-table-stisc td {
    padding: 0.15rem 0.35rem;
    vertical-align: middle;
    border-color: rgba(34, 47, 126, 0.18);
}
#docSheetModal .sheet-exec-table-stisc tr.is-current td {
    background: #fef9c3;
}
#docSheetModal .sheet-exec-table-stisc tr.is-primary .sheet-exec-name {
    font-weight: 700;
}
#docSheetModal .sheet-exec-empty {
    color: var(--edms-text-muted, #64748b);
    text-align: center;
    padding: 0.5rem !important;
}
#docSheetModal .sheet-exec-name {
    font-weight: 600;
}
#docSheetModal .sheet-exec-primary {
    font-size: 0.625rem;
    color: var(--edms-stisc-800);
}
#docSheetModal .sheet-exec-form-stisc {
    flex-shrink: 0;
    margin-top: 0.15rem;
}
#docSheetModal .sheet-exec-form-stisc .doc-form-field-pair--exec {
    width: 100%;
    max-width: 100%;
}
#docSheetModal .sheet-exec-form-stisc .doc-form-field-pair--exec .edms-date-wrap {
    flex: 0 0 8.25rem;
    width: 8.25rem;
    min-width: 8.25rem;
    max-width: 8.25rem;
}
#docSheetModal .sheet-exec-form-stisc .doc-form-field-pair--exec .sheet-date-text {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
}
#docSheetModal .sheet-exec-form-stisc .doc-form-field-pair--exec #sheetExecResult {
    flex: 1 1 auto;
    min-width: 0;
}
#docSheetModal .sheet-exec-col-remove {
    width: 1.85rem;
    text-align: center;
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
}
#docSheetModal .sheet-exec-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    padding: 0;
    border: 1px solid #b91c1c;
    border-radius: 2px;
    background: #fff;
    color: #b91c1c;
    cursor: pointer;
    line-height: 1;
    font-size: 0.7rem;
}
#docSheetModal .sheet-exec-remove-btn:hover {
    background: #fff5f5;
    color: #991b1b;
    border-color: #991b1b;
}
#docSheetModal .sheet-exec-remove-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
#docSheetModal .sheet-exec-hint {
    margin: 0.25rem 0 0;
    font-size: 0.625rem;
    color: var(--edms-text-muted, #64748b);
}

/* Modal Adăugare executanți — z-index doar când e deschis (evită overlay mort) */
#executorPickerModal.show {
    z-index: 1080;
    display: block;
}
.modal-backdrop.edms-modal-backdrop-nested {
    z-index: 1070 !important;
    opacity: 0.45;
}
.executor-picker-dialog {
    max-width: 28rem;
    width: calc(100% - var(--edms-modal-gutter, 1rem));
    margin: 0.25rem auto;
}
.executor-picker-body {
    padding: 0.5rem 0.65rem 0.35rem !important;
}
.executor-picker-toolbar {
    margin-bottom: 0.35rem;
}
.executor-picker-filter {
    max-width: 12rem;
    font-size: 0.75rem !important;
    border-radius: 2px !important;
}
.executor-picker-table-wrap {
    max-height: min(50vh, 22rem);
    overflow: auto;
    border: 1px solid #222f7e;
    background: #fff;
}
.executor-picker-table {
    font-size: 0.75rem;
    margin-bottom: 0;
}
.executor-picker-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(34, 47, 126, 0.18);
    font-weight: 600;
    padding: 0.25rem 0.35rem;
    border-bottom: 1px solid #222f7e;
}
.executor-picker-col-primary,
.executor-picker-col-exec {
    width: 1.75rem;
    text-align: center;
    vertical-align: middle;
}
.executor-picker-group td {
    background: var(--edms-stisc-800, #1a5fb4);
    color: #fff;
    font-weight: 600;
    padding: 0.28rem 0.35rem;
}
.executor-picker-group .executor-pick-group {
    accent-color: #fff;
}
.executor-picker-user td {
    background: #fef9c3;
    padding: 0.2rem 0.35rem;
    vertical-align: middle;
    border-color: #e7e5e4;
}
.executor-picker-table .executor-pick-primary,
.executor-picker-table .executor-pick-group {
    width: 0.9rem;
    height: 0.9rem;
    margin: 0;
    cursor: pointer;
    accent-color: var(--edms-stisc-700, #1a5fb4);
}
.executor-picker-table .executor-pick-exec {
    width: 0.9rem;
    height: 0.9rem;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid #475569;
    border-radius: 50%;
    background: #fff;
    vertical-align: middle;
}
.executor-picker-table .executor-pick-exec:checked {
    border-color: var(--edms-stisc-700, #1a5fb4);
    background: radial-gradient(circle at center, var(--edms-stisc-700, #1a5fb4) 0 35%, #fff 38%);
}
.executor-picker-table .executor-pick-exec:disabled {
    opacity: 0.55;
    cursor: default;
}
.executor-picker-hint {
    margin-top: 0.35rem;
    font-size: 0.6875rem;
    color: var(--edms-text-muted);
}

/* Tab Mersul examinÄƒrii â€” STISC */
#docSheetModal .sheet-exam-stisc {
    font-size: 0.6875rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}
#docSheetModal .sheet-exam-list-box,
#docSheetModal .sheet-exam-form-box {
    border: 1px solid #222f7e;
    background: #fff;
}
#docSheetModal .sheet-exam-list-box {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    margin-bottom: 0.35rem;
    padding: 0.25rem 0.35rem;
}
#docSheetModal .sheet-exam-form-box {
    flex-shrink: 0;
    min-height: 4rem;
    padding: 0.3rem 0.35rem 0.35rem;
}
#docSheetModal .sheet-exam-form-box.d-none {
    display: none !important;
}
#docSheetModal .sheet-exam-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
}
#docSheetModal .sheet-exam-refresh-btn {
    flex-shrink: 0;
    width: 26px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--edms-stisc-600);
    border-radius: 2px;
    background: linear-gradient(180deg, #fff 0%, var(--edms-stisc-150) 100%);
    color: var(--edms-stisc-800);
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#docSheetModal .sheet-exam-timeline {
    max-height: 8rem;
    overflow-y: auto;
}
#docSheetModal .sheet-exam-item {
    padding: 0.2rem 0.15rem;
    border-top: 1px solid rgba(34, 47, 126, 0.18);
    font-size: 0.6875rem;
}
#docSheetModal .sheet-exam-item.is-private {
    border-left: 2px solid #f59e0b;
    padding-left: 0.35rem;
}
#docSheetModal .sheet-exam-item-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}
#docSheetModal .sheet-exam-item-head strong {
    font-weight: 600;
}
#docSheetModal .sheet-exam-item-head span {
    color: var(--edms-text-muted, #64748b);
    font-size: 0.625rem;
}
#docSheetModal .sheet-exam-private-tag {
    font-size: 0.625rem;
    color: #b45309;
    font-weight: 600;
}
#docSheetModal .sheet-exam-item-meta {
    color: var(--edms-stisc-800);
    font-size: 0.625rem;
    margin-top: 0.05rem;
}
#docSheetModal .sheet-exam-item-comment {
    margin-top: 0.1rem;
    line-height: 1.25;
}
#docSheetModal .sheet-exam-form-stisc .doc-form-field-pair--exam .form-select-sm {
    flex: 1 1 0;
    min-width: 0;
}
#docSheetModal .sheet-exam-private-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    margin: 0;
    cursor: pointer;
}

/* Tab Spre informare â€” STISC */
#docSheetModal .sheet-inform-stisc {
    display: flex;
    flex-direction: column;
    font-size: 0.6875rem;
    min-height: 0;
    flex: 1;
}
#docSheetModal .sheet-inform-toolbar {
    flex-shrink: 0;
    margin-bottom: 0.35rem;
}
#docSheetModal .sheet-inform-search {
    width: 100%;
    max-width: 22rem;
    font-size: 0.6875rem;
    min-height: calc(1.35em + 0.28rem + 2px);
    padding: 0.15rem 0.45rem;
    border-radius: 0;
    border-color: #222f7e;
}
#docSheetModal .sheet-inform-list-box {
    border: 1px solid #222f7e;
    background: #fff;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}
#docSheetModal .sheet-inform-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.6875rem;
}
#docSheetModal .sheet-inform-table td {
    padding: 0.12rem 0.35rem;
    border-bottom: 1px solid #d8e0ea;
    vertical-align: middle;
    line-height: 1.35;
}
#docSheetModal .sheet-inform-subdiv td {
    background: var(--edms-stisc-300);
    color: var(--edms-ink);
    font-weight: 700;
    font-style: italic;
    padding: 0.18rem 0.35rem;
    border-bottom: 1px solid #b8c9dc;
}
#docSheetModal .sheet-inform-check-cell {
    width: 1.75rem;
    text-align: center;
    padding-left: 0.25rem;
    padding-right: 0.15rem;
}
#docSheetModal .sheet-inform-check-cell input {
    margin: 0;
    vertical-align: middle;
}
#docSheetModal .sheet-inform-name-cell {
    color: #000000;
}
#docSheetModal .sheet-inform-user-row:nth-child(even) td {
    background: #f7f7f7;
}
#docSheetModal .sheet-inform-empty {
    text-align: center;
    color: var(--edms-text-muted);
    padding: 0.75rem !important;
}
#docSheetModal .sheet-inform-pagination {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-top: 0.35rem;
    padding-top: 0.25rem;
}
#docSheetModal .sheet-inform-page-info {
    font-size: 0.6875rem;
    color: var(--edms-text-muted);
}
#docSheetModal .sheet-inform-page-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
}
#docSheetModal .sheet-inform-page-nav .registry-page-link {
    min-width: 26px;
    height: 26px;
    padding: 0 0.35rem;
    border: 1px solid #b8c5d6;
    border-radius: 3px;
    background: #fff;
    color: var(--edms-stisc-700);
    font-size: 12px;
    cursor: pointer;
}
#docSheetModal .sheet-inform-page-nav .registry-page-link:hover:not(:disabled):not(.active) {
    background: var(--edms-stisc-100);
}
#docSheetModal .sheet-inform-page-nav .registry-page-link.active {
    background: var(--edms-stisc-500);
    border-color: var(--edms-stisc-600);
    color: #fff;
    font-weight: 600;
}
#docSheetModal .sheet-inform-page-nav .registry-page-link:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#nomModal .nom-dialog {
    max-width: var(--edms-modal-max);
    width: calc(100% - var(--edms-modal-gutter));
    margin: 0.25rem auto;
}
#nomModal .nom-dialog--numbering {
    max-width: var(--edms-modal-max);
    width: calc(100% - var(--edms-modal-gutter));
}
#nomModal .nom-dialog--numbering .nom-modal-body {
    max-height: min(88vh, 720px);
    overflow-y: auto;
    overflow-x: auto;
    padding: 0.4rem 0.65rem 0.5rem;
}
.nom-numbering-modal-layout {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.nom-numbering-form {
    flex: 0 0 auto;
}
.nom-numbering-tags-hint {
    margin: 0;
    font-size: 0.75rem;
    color: #475569;
}
.nom-numbering-modal-tags {
    flex: 1 1 auto;
    min-width: 0;
}
.nom-numbering-tags-table {
    font-size: 0.8125rem;
    width: 100%;
    margin-bottom: 0;
}
.nom-numbering-tags-table th {
    background: #e8f0fa;
    font-weight: 600;
    padding: 0.4rem 0.55rem;
    white-space: nowrap;
}
.nom-numbering-tags-table td {
    padding: 0.32rem 0.55rem;
    line-height: 1.35;
    vertical-align: top;
}
.nom-numbering-tag-label {
    min-width: 11rem;
}
.nom-numbering-tag-key {
    font-size: 0.78rem;
    color: #1e40af;
    white-space: nowrap;
}
.nom-numbering-tag-desc {
    color: #475569;
    font-size: 0.78rem;
    min-width: 8rem;
}
.nom-numbering-tag-row {
    cursor: pointer;
    user-select: none;
}
.nom-numbering-form-only .doc-form-row-template .doc-form-field .form-control-sm {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.8125rem;
}
#nomTemplateInput.nom-template-insert-flash {
    background-color: #e8f4ff;
    transition: background-color 0.35s ease;
}
.nom-numbering-tag-row:hover td {
    background: #e8f2ff;
}
.nom-numbering-tag-row.is-selected td {
    background: #cfe0ff;
}
.nom-state-picker {
    position: relative;
}
.nom-state-picker-list {
    overflow-y: auto;
    background: #fff;
    border: 1px solid #222f7e;
    border-radius: 1px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}
.nom-state-picker-list[hidden] {
    display: none !important;
}
.nom-state-picker-option {
    display: block;
    width: 100%;
    padding: 0.22rem 0.45rem;
    border: 0;
    background: transparent;
    color: #000000;
    font-size: 0.75rem;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}
.nom-state-picker-option:hover,
.nom-state-picker-option.is-active {
    background: #cfe0ff;
}
.nom-state-picker-empty {
    padding: 0.35rem 0.45rem;
    font-size: 0.75rem;
    color: var(--edms-text-muted);
}
#nomModal .nom-modal-body,
#userModal .user-profile-modal-body {
    max-height: min(80vh, 760px);
    overflow-y: auto;
}
#userModal .user-profile-dialog {
    max-width: var(--edms-modal-max);
    width: calc(100% - var(--edms-modal-gutter));
}
.edms-confirm-dialog {
    max-width: 26rem;
    width: calc(100% - var(--edms-modal-gutter, 1rem));
    margin: 0.25rem auto;
}
.edms-confirm-message {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--edms-ink, #000);
    padding: 0.45rem 0.15rem 0.55rem;
}
#edmsConfirmModal .edms-form-stisc-footer .edms-form-stisc-btn-danger {
    margin-left: 0;
}

/* Modal formulare STISC â€” structurÄƒ Corespondent (titlu albastru, etichete dreapta) */
.modal-content.edms-form-stisc {
    max-height: calc(100vh - 1rem);
    display: flex;
    flex-direction: column;
    border: 2px solid var(--edms-stisc-700);
    border-radius: 0;
    background: #fff;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.edms-form-stisc form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.edms-form-stisc-chrome {
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--edms-stisc-250) 0%, var(--edms-stisc-350) 100%);
    border-bottom: 1px solid var(--edms-stisc-700);
}
.edms-form-stisc-titlebar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.45rem 0.25rem;
    min-height: 1.75rem;
}
.edms-form-stisc-title-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    background: #222f7e;
    color: #ffffff;
    font-size: 0.75rem;
    line-height: 1;
}
.edms-form-stisc-title-stack {
    flex: 1 1 auto;
    min-width: 0;
}
.edms-form-stisc-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--edms-ink);
    line-height: 1.2;
    margin: 0;
}
.edms-form-stisc-title-sub {
    margin: 0.08rem 0 0;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--edms-ink);
    opacity: 0.72;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}
.edms-form-stisc-title-sub:empty,
.edms-form-stisc-title-sub[hidden] {
    display: none;
}
.edms-form-stisc-close {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: 1px solid #c4a4a4;
    border-radius: 2px;
    background: linear-gradient(180deg, #fff 0%, #f5e8e8 100%);
    color: #dc2626;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
}
.edms-form-stisc-close:hover {
    background: #fee2e2;
}
.edms-form-stisc-body {
    padding: 0.4rem 0.65rem 0.5rem;
    flex: 1 1 auto;
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--edms-stisc-700);
}
.edms-form-stisc-footer {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    justify-content: flex-start;
    border-top: 1px solid var(--edms-stisc-550);
    background: linear-gradient(180deg, var(--edms-stisc-250) 0%, var(--edms-stisc-350) 100%);
    padding: 0.35rem 0.45rem;
    min-height: 0;
}
.edms-form-stisc-footer .btn,
.edms-form-stisc-footer .edms-form-stisc-btn-primary {
    min-width: 5.5rem;
    min-height: 0;
    padding: 0.18rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 500;
}
.edms-form-stisc-footer .edms-form-stisc-btn-danger {
    margin-left: auto;
}
.edms-form-stisc-btn {
    /* chrome via shared .sheet-footer-btn alias */
}
.edms-form-stisc-btn-primary {
    font-weight: 600;
}
.edms-form-stisc-btn-secondary {
    background: #ffffff;
    color: var(--edms-ink);
    border-color: var(--edms-ink);
}
.edms-form-stisc-btn-secondary:hover {
    background: #f7f7f7;
    color: var(--edms-ink);
    border-color: var(--edms-ink);
}
.edms-form-stisc-btn-danger {
    background: #ffffff;
    color: #b91c1c;
    border-color: #b91c1c;
}
.edms-form-stisc-btn-danger:hover {
    background: #fff5f5;
    color: #991b1b;
    border-color: #991b1b;
}
.edms-form-stisc .doc-form-row-checks .doc-form-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}
.edms-form-stisc .doc-form-row-editor {
    align-items: start;
}
.edms-form-stisc .doc-form-row-editor .doc-form-label {
    padding-top: 0.2rem;
}
.edms-form-stisc .doc-form-field textarea.form-control-sm {
    width: 100%;
    min-height: 3.25rem;
    resize: vertical;
}
.edms-form-stisc .doc-form-field-hint {
    font-size: 0.625rem;
    color: var(--edms-text-muted);
    margin-top: 0.12rem;
    line-height: 1.25;
}
.edms-form-stisc .doc-form-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--edms-stisc-800);
    margin: 0.35rem 0 0.2rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--edms-stisc-300);
}
.edms-form-stisc .doc-form-section-title:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}
.edms-form-stisc .doc-form-field .input-group-sm .form-control {
    font-size: 0.75rem;
    min-height: calc(1.35em + 0.25rem + 2px);
}
.edms-form-stisc .doc-form-field .input-group-sm .btn {
    font-size: 0.6875rem;
    padding: 0.15rem 0.45rem;
}
.edms-form-stisc .doc-form-row {
    grid-template-columns: 8.75rem 1fr;
}
.edms-form-stisc .doc-form-field-pair--group .form-select-sm {
    flex: 1 1 auto;
    min-width: 0;
}
.edms-form-stisc .nom-add-group-btn {
    flex: 0 0 auto;
    min-width: 1.75rem;
    padding: 0.15rem 0.4rem;
    font-weight: 700;
    line-height: 1;
}
#userModal .doc-form-row {
    grid-template-columns: 12.5rem 1fr;
}
.nom-fields-wide-labels .doc-form-row {
    grid-template-columns: 10.75rem 1fr;
}
.edms-form-stisc .doc-form-field-pair--exec-term input[type="number"] {
    flex: 0 0 3.5rem;
    width: 3.5rem;
    max-width: 3.5rem;
}
.edms-form-stisc .doc-form-field-pair--exec-term .form-select-sm {
    flex: 1 1 auto;
    min-width: 0;
}
.edms-form-stisc .edms-form-stisc-note {
    padding: 0.5rem 0.75rem;
    border: 1px solid #c5d4e8;
    background: #f4f8fc;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #334155;
}

/* Modal Ã®nregistrare â€” layout intern */
#docModal .edms-modal-register {
    max-height: calc(100vh - 0.5rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 2px solid var(--edms-stisc-700);
    border-radius: 0;
    background: #fff;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
}
#docModal #docForm {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}
#docModal .doc-register-chrome {
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--edms-stisc-250) 0%, var(--edms-stisc-350) 100%);
    border-bottom: 1px solid var(--edms-stisc-700);
}
#docModal .doc-register-titlebar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.45rem 0.25rem;
    min-height: 1.75rem;
}
#docModal .doc-register-titlebar.modal-header-flow-in {
    border-top: 3px solid #dc2626;
}
#docModal .doc-register-titlebar.modal-header-flow-out {
    border-top: 3px solid #ea580c;
}
#docModal .doc-register-titlebar.modal-header-flow-int {
    border-top: 3px solid #059669;
}
#docModal .doc-register-title-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-right: 0;
    border-radius: 2px;
    background: #dc2626;
}
#docModal .doc-register-titlebar.modal-header-flow-out .doc-register-title-icon {
    background: #ea580c;
}
#docModal .doc-register-titlebar.modal-header-flow-int .doc-register-title-icon {
    background: #059669;
}
#docModal .doc-register-title {
    flex: 1 1 auto;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--edms-ink);
    line-height: 1.2;
}
#docModal .doc-register-close {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: 1px solid #c4a4a4;
    border-radius: 2px;
    background: linear-gradient(180deg, #fff 0%, #f5e8e8 100%);
    color: #dc2626;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
}
#docModal .doc-register-close:hover {
    background: #fee2e2;
}
#docModal .doc-register-tabbar {
    padding: 0 0.35rem;
    background: linear-gradient(180deg, var(--edms-stisc-350) 0%, var(--edms-stisc-400) 100%);
    border-top: 1px solid var(--edms-stisc-550);
}
#docModal .doc-register-tab {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--edms-ink);
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--edms-stisc-700);
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    background: #fff;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}

/* Antet: meniu snow, pătratul din stânga = culoarea fluxului (Intrare / Ieșire / Intern) */
#docModal .doc-register-chrome,
#docSheetModal .doc-register-chrome {
    --flow-color: #dc2626;
}
#docModal .doc-register-chrome:has(.modal-header-flow-out) {
    --flow-color: #ea580c;
}
#docSheetModal .doc-register-chrome:has(.modal-header-flow-out) {
    --flow-color: #7c3aed;
}
#docModal .doc-register-chrome:has(.modal-header-flow-int),
#docSheetModal .doc-register-chrome:has(.modal-header-flow-int) {
    --flow-color: #059669;
}
#docModal .doc-register-chrome,
#docSheetModal .doc-register-chrome,
#docSheetModal .doc-register-chrome.sheet-chrome,
#docSheetModal .sheet-chrome {
    background: #fffafa;
    border-bottom: 1px solid var(--edms-ink);
}
#docModal .edms-modal-register:has(.modal-header-flow-in),
#docSheetModal .edms-modal-sheet:has(.modal-header-flow-in) {
    border-color: #dc2626;
}
#docModal .edms-modal-register:has(.modal-header-flow-out) {
    border-color: #ea580c;
}
#docSheetModal .edms-modal-sheet:has(.modal-header-flow-out) {
    border-color: #7c3aed;
}
#docModal .edms-modal-register:has(.modal-header-flow-int),
#docSheetModal .edms-modal-sheet:has(.modal-header-flow-int) {
    border-color: #059669;
}
#docModal .doc-register-titlebar,
#docSheetModal .doc-register-titlebar.sheet-titlebar {
    border-top: none;
    background: transparent;
}
#docModal .doc-register-tabbar,
#docSheetModal .sheet-tabbar {
    background: #fffafa;
    border-top: 1px solid #e8e8e8;
}
#docModal .doc-register-title,
#docSheetModal .doc-register-title {
    color: var(--edms-ink);
}
#docModal .doc-register-title-icon,
#docSheetModal .doc-register-title-icon,
#docModal .doc-register-titlebar.modal-header-flow-out .doc-register-title-icon,
#docModal .doc-register-titlebar.modal-header-flow-int .doc-register-title-icon {
    background: var(--flow-color);
}
#docSheetModal .doc-register-title-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-right: 0;
    border-radius: 2px;
}
#docModal .doc-register-body {
    padding: 0.4rem 0.65rem 0.5rem;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: none;
    min-height: 0;
    background: #fff;
    border-top: 1px solid var(--edms-stisc-700);
}
#docModal .doc-register-footer {
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    gap: 0.35rem 0.5rem;
}

#docModal .doc-form-compact {
    font-size: 0.75rem;
}
#docModal .doc-form-row {
    grid-template-columns: 8.75rem 1fr;
    margin-bottom: 0.28rem;
}
#docModal .doc-form-label {
    font-size: 0.75rem;
    text-align: right;
    color: #000000;
}
#docModal .doc-form-label:not(.doc-form-label-empty):not(.doc-form-label-editor)::after,
#docModal .doc-form-inline-label::after {
    content: ':';
}
#docModal .doc-form-label-editor > span::after {
    content: ':';
}
#docModal .doc-form-label-empty {
    visibility: hidden;
}
#docModal .doc-form-inline-label {
    font-size: 0.75rem;
}
#docModal .doc-form-clear-btn {
    font-size: 0.6875rem;
    color: var(--edms-ink);
    text-decoration: underline;
}
#docModal .doc-form-field .form-control-sm,
#docModal .doc-form-field .form-select-sm {
    font-size: 0.75rem;
    min-height: calc(1.35em + 0.28rem + 2px);
    border-radius: 3px;
    border-color: #222f7e;
    box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.06);
    background-color: #fff;
    max-width: 100%;
}
#docModal .doc-form-field .form-select-sm {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding-right: 2.15rem;
    background-position: right 0.5rem center;
    background-size: 12px 10px;
}
#docModal .doc-date-text {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
    padding-right: 1.65rem;
}
.edms-date-wrap {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    vertical-align: top;
    max-width: 100%;
}
.edms-date-wrap.is-disabled {
    opacity: 0.65;
    pointer-events: none;
}
.edms-date-wrap .doc-date-text,
.edms-date-wrap .sheet-date-text,
.edms-date-wrap .search-range-date,
.edms-date-wrap .audit-filter-input,
.edms-date-wrap .form-control {
    padding-right: 1.65rem;
}
.edms-date-native {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1px;
    min-width: 0;
    max-width: 1px;
    height: 1px;
    opacity: 0;
    border: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}
.edms-date-cal-btn {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    padding: 0;
    border: none;
    border-radius: 0 2px 2px 0;
    background: transparent;
    color: var(--edms-stisc-800, #4a7eb8);
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
}
.edms-date-cal-btn:hover {
    color: var(--edms-stisc-900, #3a6599);
    background: rgba(74, 126, 184, 0.12);
}
#docModal .doc-form-field-pair--dates .edms-date-wrap,
#docModal .doc-form-field-pair--term .edms-date-wrap,
.doc-form-field-pair--dates .edms-date-wrap,
.doc-form-field-pair--term .edms-date-wrap {
    flex: 0 0 7.75rem;
    width: 7.75rem;
    max-width: 7.75rem;
}
.search-range-pair .edms-date-wrap {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
}
.search-range-pair--dates .edms-date-wrap {
    flex: 0 0 7.75rem;
    width: 7.75rem;
    min-width: 7.75rem;
    max-width: 7.75rem;
}
#docModal .doc-form-attachments {
    margin-top: 0.45rem;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(34, 47, 126, 0.22);
}
#docModal .doc-form-attachments > summary {
    cursor: pointer;
    font-size: 0.6875rem;
    color: var(--edms-text-muted);
    user-select: none;
    list-style: none;
}
#docModal .doc-form-attachments > summary::-webkit-details-marker {
    display: none;
}
#docModal .doc-form-attachments[open] > summary {
    margin-bottom: 0.35rem;
    color: var(--edms-ink);
}
#docModal .doc-form-label {
    font-weight: 600;
}
#docModal #subRegisterId:invalid,
#docModal #subRegisterId.is-invalid,
#docModal #subRegisterId:required:not(:valid) {
    border-color: #dc2626;
    box-shadow: inset 1px 1px 1px rgba(220, 38, 38, 0.12);
}
#docModal #subRegisterId {
    border-color: #dc2626;
}
#docModal .doc-form-check-inline .form-check-label {
    font-size: 0.75rem;
    color: #000000;
}
#docModal .doc-form-row-files .form-control-sm {
    font-size: 0.6875rem;
}
#docModal .doc-form-row-res-editor {
    align-items: start;
    margin-top: -0.1rem;
    margin-bottom: 0.28rem;
}
#docModal .doc-form-label-editor {
    align-items: flex-end;
    gap: 0.2rem;
    padding-top: 0.2rem;
}

/* Quill â€” ca Ã®n captura STISC */
#docModal .quill-editor.quill-compact {
    min-height: 0;
    width: 100%;
}
#docModal .quill-editor.quill-compact .ql-toolbar.ql-snow,
#docModal .quill-editor.quill-compact .ql-container.ql-snow {
    border-radius: 0;
    border-color: #222f7e;
    background: #fff;
}
#docModal .quill-editor.quill-compact .ql-toolbar.ql-snow {
    padding: 0.15rem 0.25rem;
    line-height: 1;
    background: linear-gradient(180deg, #f7f7f7 0%, #eef2f7 100%);
}
#docModal .quill-editor.quill-compact .ql-toolbar .ql-formats {
    margin-right: 0.3rem;
}
#docModal .quill-editor.quill-compact .ql-toolbar button {
    width: 22px;
    height: 22px;
    padding: 2px;
}
#docModal .quill-editor.quill-compact .ql-container.ql-snow {
    border-top: 0;
}
#docModal .quill-editor.quill-compact .ql-editor {
    min-height: 5.5rem;
    max-height: 8rem;
    padding: 0.35rem 0.45rem;
    line-height: 1.35;
    overflow-y: auto;
    font-size: 0.8125rem;
}
#docModal .quill-editor.quill-compact.quill-brief .ql-editor {
    min-height: 5.5rem;
    max-height: 8rem;
}
#docModal .quill-editor {
    min-height: 0;
}
#docModal .ql-toolbar.ql-snow {
    padding: 0.15rem 0.25rem;
}
#docModal .ql-toolbar.ql-snow .ql-formats {
    margin-right: 0.3rem;
}
#docModal .ql-container.ql-snow {
    font-size: 0.8125rem;
}

@media (max-height: 720px) {
    #docModal .doc-register-dialog {
        max-height: calc(100vh - 0.25rem);
        margin: 0.125rem auto;
    }
    #docModal .doc-register-body {
        overflow-y: auto;
        max-height: calc(100vh - 5.5rem);
    }
    #docModal .quill-editor.quill-compact .ql-editor,
    #docModal .quill-editor.quill-compact.quill-brief .ql-editor {
        min-height: 3.75rem;
        max-height: 5.5rem;
    }
}

/* Formular compact STISC â€” etichetÄƒ stÃ¢nga, cÃ¢mp dreapta (comun: Ã®nregistrare + fiÈ™Äƒ + search) */
.doc-form-compact {
    font-size: 0.75rem;
}
.doc-form-row {
    display: grid;
    grid-template-columns: 7.25rem 1fr;
    gap: 0.18rem 0.45rem;
    align-items: center;
    margin-bottom: 0.22rem;
}
.doc-form-field-num {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    min-width: 0;
}
.doc-form-inline-fields {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    width: 100%;
    min-width: 0;
}
.doc-form-inline-fields .doc-form-inline-label {
    flex: 0 0 7.5rem;
    width: 7.5rem;
    min-width: 7.5rem;
    margin: 0;
    text-align: right;
}
.doc-form-inline-fields #regNumber,
.doc-form-inline-fields #docNumber,
.doc-form-inline-fields #sheetRegNumber,
.doc-form-inline-fields #sheetDocNumber,
.doc-form-field-num #regNumber,
.doc-form-field-num #docNumber,
.doc-form-field-num #sheetRegNumber,
.doc-form-field-num #sheetDocNumber {
    flex: 0 0 7.75rem;
    width: 7.75rem;
    max-width: 7.75rem;
}
.doc-form-inline-fields > input[type="hidden"] {
    display: none;
}
.doc-form-inline-fields > .edms-date-wrap,
.doc-form-inline-fields > .doc-date-text,
.doc-form-inline-fields > .sheet-date-text {
    flex: 0 0 7.75rem;
    width: 7.75rem;
    max-width: 7.75rem;
}
.doc-form-inline-fields > .edms-date-wrap {
    display: inline-flex;
}
.doc-form-label {
    text-align: right;
    padding-right: 0.25rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: #000000;
    margin: 0;
    line-height: 1.1;
}
.doc-form-clear-btn {
    font-size: 0.625rem;
    line-height: 1;
    text-decoration: underline;
    color: var(--edms-stisc-800);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.doc-form-field .form-control-sm,
.doc-form-field .form-select-sm {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    min-height: calc(1.35em + 0.25rem + 2px);
    line-height: 1.2;
    border-color: #222f7e;
    border-radius: 1px;
    background-color: #fff;
}
.doc-form-field .form-select-sm {
    padding-right: 2.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px 10px;
}
.form-select {
    padding-right: 2.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px 10px;
}
.doc-form-field > .form-select-sm,
.doc-form-row:not(.doc-form-row-pair) .doc-form-field .form-control-sm {
    width: 100%;
}
.doc-form-inline-fields > .form-select-sm {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}
.doc-form-field-pair {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.2rem 0.35rem;
    width: fit-content;
    max-width: 100%;
}
.doc-form-field-pair--nums #regNumber,
.doc-form-field-pair--nums #docNumber,
.doc-form-field-pair--nums #sheetRegNumber,
.doc-form-field-pair--nums #sheetDocNumber {
    flex: 0 0 5.75rem;
    width: 5.75rem;
    max-width: 5.75rem;
}
.doc-form-field-pair--dates input[type="date"],
.doc-form-field-pair--dates .sheet-date-text,
.doc-form-field-pair--dates .doc-date-text {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
}
.doc-form-field-pair--term {
    width: 100%;
    max-width: 100%;
    gap: 0.45rem 0.55rem;
    align-items: center;
}
.doc-form-field-pair--term .doc-deadline-preset {
    flex: 0 0 7.25rem;
    width: 7.25rem;
    max-width: 7.25rem;
}
.doc-form-field-pair--term #execution_deadline,
.doc-form-field-pair--term .doc-date-text,
.doc-form-field-pair--term .sheet-date-text {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
}
.doc-form-field-pair--cat #categoryId,
.doc-form-field-pair--cat #deliveryMethodId {
    flex: 1 1 0;
    min-width: 0;
}
.doc-form-row-files .form-control-sm {
    font-size: 0.6875rem;
    padding: 0.12rem 0.35rem;
}
.doc-form-row-editor {
    align-items: start;
    margin-bottom: 0.28rem;
}
.doc-form-label-editor {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    padding-top: 0.15rem;
}
.doc-form-field {
    min-width: 0;
}
.doc-form-inline-label {
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--edms-text, #1e293b);
}
.doc-form-inline-label::after {
    content: ':';
}
.doc-form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    min-height: 0;
}
.doc-form-check-inline .form-check-input {
    margin: 0;
    flex-shrink: 0;
}
.doc-form-check-inline .form-check-label {
    font-size: 0.6875rem;
    line-height: 1.15;
}

.form-row[data-flow-fields] { display: none !important; }
.form-row[data-flow-fields].visible,
.form-row.two-cols > [data-flow-fields].visible { display: block !important; }
.form-row.two-cols[data-flow-fields].visible { display: grid !important; }

/* Layout full-height (registru) */
body.page-full {
    overflow: hidden;
}
body.page-full .edms-main {
    overflow: hidden;
}
#view-registry.view-panel.active,
#view-guide.view-panel.active {
    overflow: hidden;
}

.muted { color: var(--edms-text-muted); }

/* FiÈ™Äƒ document â€” panouri tab */
.sheet-panel { display: none; }
.sheet-panel.active { display: block; animation: edmsFadeIn 0.2s ease; }
@keyframes edmsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.sheet-loading,
.sheet-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--edms-text-muted);
}
.sheet-tab-hint { color: var(--edms-text-muted); padding: 1.5rem; text-align: center; }

/* Nomenclatoare â€” tabel & formular */
.nom-table-wrap { max-height: calc(100vh - 280px); }
.nom-row.inactive td { opacity: 0.55; }
.col-actions { white-space: nowrap; width: 1%; }

/* Profil / Contacte — același limbaj vizual ca Registru */
.profile-stisc-layout {
    max-width: 72rem;
    width: 100%;
    padding: 1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.profile-stisc-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #f7f7f7;
    border: 1px solid var(--edms-stisc-400);
    border-radius: 8px;
}
.profile-stisc-hero-main {
    flex: 1 1 auto;
    min-width: 0;
}
.profile-stisc-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}
.profile-stisc-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--edms-stisc-800, #1a5fb4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--edms-stisc-400);
    padding: 0;
    cursor: pointer;
}
.profile-stisc-avatar-initials {
    position: relative;
    z-index: 0;
}
.profile-stisc-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background: #fff;
}
.profile-stisc-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}
.profile-stisc-photo-actions .btn {
    font-size: 0.8125rem;
    padding: 0.28rem 0.7rem;
}
.profile-stisc-photo-hint {
    margin: 0.3rem 0 0;
    font-size: 0.75rem;
    color: var(--edms-text-muted);
}
.profile-stisc-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.25;
}
.profile-stisc-role-badge {
    font-size: 0.8125rem;
    color: var(--edms-text-muted);
    margin-top: 0.15rem;
}
.profile-expiry {
    margin: 0;
    padding: 0.45rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 6px;
    background: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}
.profile-expiry.profile-expiry-warn {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}
.profile-stisc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    gap: 0.85rem;
    align-items: stretch;
}
.profile-stisc-side {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}
.profile-stisc-card {
    background: #fff;
    border: 1px solid var(--edms-stisc-400);
    border-radius: 8px;
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}
.profile-stisc-card-wide {
    width: 100%;
}
.profile-stisc-card-title {
    margin: 0;
    padding: 0 0 0.45rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--edms-stisc-800, #1a5fb4);
    border-bottom: 1px solid var(--edms-stisc-400);
}
.profile-stisc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-bottom: 0;
}
.profile-stisc-card-head .profile-stisc-card-title {
    border-bottom: none;
    padding-bottom: 0;
}
.profile-kv-list {
    display: grid;
    gap: 0;
}
.profile-kv,
.profile-form-row {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.35rem 0.85rem;
    padding: 0.38rem 0;
    border-bottom: 1px solid #eef2f7;
}
.profile-kv:last-child,
.profile-form-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}
.profile-kv-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--edms-text-muted);
    line-height: 1.3;
}
.profile-kv-value,
.profile-stisc-value {
    font-size: 0.875rem;
    color: #000000;
    min-width: 0;
    overflow-wrap: anywhere;
}
.profile-stisc-value a {
    color: var(--edms-stisc-800, #1a5fb4);
    text-decoration: none;
}
.profile-stisc-value a:hover {
    text-decoration: underline;
}
.profile-stisc-form-actions {
    padding-top: 0.15rem;
    display: flex;
    justify-content: flex-end;
}
.profile-stisc-card .user-password-hints {
    margin-top: 0.15rem;
    font-size: 0.75rem;
}
.profile-notify-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--edms-stisc-400);
    border-radius: 6px;
}
.profile-notify-table {
    font-size: 0.8125rem;
    margin: 0;
    width: 100%;
}
.profile-notify-table th,
.profile-notify-table td {
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
    padding: 0.5rem 0.65rem;
}
.profile-notify-table thead th {
    font-weight: 600;
    background: #f7f7f7;
    color: #334155;
}
.profile-notify-table tbody th {
    text-align: left;
    font-weight: 600;
    padding-left: 0.85rem;
    width: 8rem;
}
.profile-notify-table tbody tr:nth-child(even) td,
.profile-notify-table tbody tr:nth-child(even) th {
    background: #f7f7f7;
}
.profile-notify-check {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
    justify-content: center;
}
.edms-nav-avatar {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.edms-nav-tool.has-photo {
    overflow: hidden;
    border-radius: 50%;
}
.contacts-stisc .contacts-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.15rem 1.5rem;
}
.contacts-stisc .contacts-hero {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
    background: #222f7e;
    color: #ffffff;
    border-radius: 8px;
}
.contacts-stisc .contacts-hero-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.35rem;
}
.contacts-stisc .contacts-hero-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}
.contacts-stisc .contacts-hero-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
}
.contacts-stisc .contacts-hero-lead {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}
.contacts-stisc .contacts-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.85rem;
}
.contacts-stisc .contacts-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-height: 9rem;
    padding: 1rem 1.1rem 1.05rem;
    background: #ffffff;
    border: 1px solid #222f7e;
    border-radius: 8px;
    color: #000000;
    text-decoration: none;
}
.contacts-stisc .contacts-card-link:hover {
    background: #f7f7f7;
    color: #000000;
}
.contacts-stisc .contacts-card-icon {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    border-radius: 6px;
    background: #222f7e;
    color: #ffffff;
    font-size: 1rem;
}
.contacts-stisc .contacts-card-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.55);
}
.contacts-stisc .contacts-card-value {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #222f7e;
    word-break: break-word;
}
.contacts-stisc .contacts-card-action {
    margin-top: auto;
    padding-top: 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #222f7e;
}
.contacts-stisc .contacts-card-action .bi {
    font-size: 0.7rem;
}
@media (max-width: 960px) {
    .profile-stisc-grid {
        grid-template-columns: 1fr;
    }
    .profile-kv,
    .profile-form-row {
        grid-template-columns: 7.5rem minmax(0, 1fr);
    }
}
@media (max-width: 560px) {
    .profile-stisc-hero {
        align-items: flex-start;
    }
    .profile-kv,
    .profile-form-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
        padding: 0.45rem 0;
    }
}
/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--edms-paper, #ffffff);
    padding: 1.5rem;
}
.login-card { max-width: 420px; width: 100%; }
.login-page .card {
    border-radius: 1rem;
    overflow: hidden;
    background: var(--edms-paper, #ffffff);
    border: 1px solid var(--edms-ink, #222f7e);
}
.login-page h1 {
    color: var(--edms-ink, #222f7e);
}
.login-page .form-label {
    color: #000000;
}
.login-page .btn-primary {
    background: var(--edms-ink, #222f7e);
    border-color: var(--edms-ink, #222f7e);
    color: #ffffff;
}
.login-page .btn-primary:hover {
    background: var(--edms-ink-hover, #1a2463);
    border-color: var(--edms-ink-hover, #1a2463);
}

/* AJAX loading */
#ajaxLoadingBar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
    background: transparent;
}
#ajaxLoadingBar.active {
    background: linear-gradient(90deg, transparent, var(--edms-ink), #3a478c, transparent);
    animation: ajaxLoad 0.9s ease-in-out infinite;
}
@keyframes ajaxLoad {
    0% { opacity: 0.4; transform: scaleX(0.3); transform-origin: left; }
    50% { opacity: 1; transform: scaleX(1); transform-origin: center; }
    100% { opacity: 0.4; transform: scaleX(0.3); transform-origin: right; }
}

/* Profil utilizator â€” administrare */
.user-profile-modal .modal-dialog,
.user-profile-modal .user-profile-dialog {
    max-width: var(--edms-modal-max);
    width: calc(100% - var(--edms-modal-gutter));
    max-height: calc(100vh - 0.5rem);
    margin: 0.25rem auto;
}
.user-profile-modal .user-profile-modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 0.5rem);
    overflow: hidden;
}
.user-profile-modal #userForm {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.user-profile-modal .edms-form-stisc-chrome {
    flex-shrink: 0;
}
.user-profile-modal .user-profile-modal-footer {
    justify-content: flex-start;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.35rem 0.45rem;
    min-height: 0;
}
.user-profile-footer-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
#userModal .user-profile-modal-footer .edms-form-stisc-btn-danger {
    margin-left: auto;
}
#userModal .user-profile-modal-footer .btn {
    min-width: 5.5rem;
    min-height: 0;
    padding: 0.18rem 0.55rem;
    font-size: 0.75rem;
    letter-spacing: 0;
}
#userModal .user-profile-modal-footer .edms-form-stisc-btn-primary {
    min-width: 5.5rem;
    font-weight: 500;
}
.user-profile-modal .user-profile-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.4rem 0.65rem 0.5rem;
}
#userModal .doc-form-section-title {
    font-size: 0.6875rem;
    margin: 0.35rem 0 0.2rem;
}
#userModal .doc-form-label {
    font-size: 0.75rem;
}
#userModal .doc-form-field .form-control-sm,
#userModal .doc-form-field .form-select-sm,
#userModal .edms-multi-combo-btn {
    min-height: calc(1.35em + 0.25rem + 2px);
    font-size: 0.75rem;
}
#userModal .edms-multi-combo-menu {
    max-height: 280px;
}
#userModal .doc-form-field-hint,
#userModal .text-muted.small {
    font-size: 0.7rem;
    line-height: 1.35;
}
#userModal .user-password-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}
#userModal .user-password-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}
#userModal .user-password-group .btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.15rem;
}
#userModal .user-password-hints {
    font-size: 0.7rem;
    line-height: 1.3;
    padding: 0.35rem 0.5rem;
}

.user-form-pretty {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.user-form-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    align-items: start;
}
.user-form-block {
    background: #fff;
    border: 1px solid #d7e0ec;
    border-radius: 2px;
    padding: 0.45rem 0.55rem 0.5rem;
}
.user-form-block-title {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--edms-ink, #222f7e);
    letter-spacing: 0;
}
.user-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.28rem 0.45rem;
}
.user-form-cell {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.user-form-cell--wide {
    grid-column: 1 / -1;
}
.user-form-cell--check {
    padding-top: 0.15rem;
}
.user-form-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
}
.user-form-hint {
    margin: 0 0 0.45rem;
    font-size: 0.7rem;
    line-height: 1.35;
    color: var(--edms-text-muted, #64748b);
}
.user-form-cell .user-form-hint {
    margin: 0;
}
.user-role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.user-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.22rem 0.55rem;
    border: 1px solid #c5d4e8;
    border-radius: 999px;
    background: #f7f9fc;
    font-size: 0.75rem;
    cursor: pointer;
}
.user-role-chip:hover {
    background: #eef3fa;
}
.user-role-chip:has(input:checked) {
    border-color: var(--edms-ink, #222f7e);
    background: #e8edf8;
    color: var(--edms-ink, #222f7e);
    font-weight: 600;
}
.user-role-chip input {
    margin: 0;
}
.user-notify-table-wrap {
    overflow-x: auto;
    border: 1px solid #d7e0ec;
    border-radius: 6px;
}
.user-notify-table {
    width: 100%;
    margin: 0;
    font-size: 0.75rem;
    border-collapse: collapse;
}
.user-notify-table th,
.user-notify-table td {
    vertical-align: middle;
    text-align: center;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #eef2f7;
}
.user-notify-table thead th {
    background: #f4f7fb;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}
.user-notify-table tbody th {
    text-align: left;
    font-weight: 600;
    padding-left: 0.7rem;
    white-space: nowrap;
    background: #fff;
}
.user-notify-table tbody tr:nth-child(even) td,
.user-notify-table tbody tr:nth-child(even) th {
    background: #f7f9fc;
}
.user-notify-check {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
    justify-content: center;
}
.user-password-hints-wrap {
    margin-top: 0.45rem;
}
@media (max-width: 900px) {
    .user-form-cols,
    .user-form-grid {
        grid-template-columns: 1fr;
    }
    .user-form-cell--wide {
        grid-column: auto;
    }
    #userModal .user-profile-modal-footer {
        flex-wrap: wrap;
    }
    #userModal .user-profile-modal-footer .edms-form-stisc-btn-danger {
        margin-left: 0;
    }
}
@media (max-width: 991.98px) {
    .user-profile-modal .modal-dialog,
    .user-profile-modal .user-profile-modal-content {
        max-height: 100vh;
    }
}
.user-form-single-page {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.user-form-card {
    border: 1px solid var(--edms-border);
    border-radius: var(--edms-radius);
    margin-bottom: 0.5rem;
    background: #fff;
}
.user-form-section-divider {
    margin: 1rem 0 0.75rem;
    border-color: var(--edms-border);
    opacity: 1;
}
.user-form-card .card-header {
    background: #f7f7f7;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--edms-text-muted);
    padding: 0.6rem 1rem;
}
.user-form-fieldset {
    border: 1px solid var(--edms-stisc-500);
    border-radius: var(--edms-radius);
    padding: 1rem 1rem 0.75rem;
    margin: 0;
    background: #fff;
}
.user-form-fieldset legend {
    float: none;
    width: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--edms-text);
    padding: 0 0.35rem;
    margin-bottom: 0.75rem;
}
.user-flow-label { margin-bottom: 0.35rem; }
.user-flow-label-intrare { color: #0369a1; }
.user-flow-label-iesire { color: #6d28d9; }
.user-flow-label-intern { color: #047857; }
.edms-multi-combo { position: relative; }
.edms-multi-combo-btn {
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 12px 10px;
}
.edms-multi-combo-btn.is-placeholder { color: var(--edms-text-muted); }
.edms-multi-combo-btn.dropdown-toggle::after { display: none; }
.edms-multi-combo-menu {
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    padding: 0.35rem;
    z-index: 1065;
}
.edms-multi-combo-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    padding: 0.4rem 0.5rem;
    border-radius: 0.35rem;
    cursor: pointer;
    font-size: 0.8125rem;
    user-select: none;
}
.edms-multi-combo-option:hover { background: #f7f7f7; }
.edms-multi-combo-option input { margin-top: 0.15rem; flex-shrink: 0; }
.edms-multi-combo-option span { line-height: 1.35; }
.user-form-grid-2 {
    display: grid;
    grid-template-columns: minmax(7rem, 9rem) 1fr;
    gap: 0.5rem 1rem;
    align-items: center;
}
.user-form-grid-2 .form-label {
    margin-bottom: 0;
    font-size: 0.875rem;
    font-weight: 600;
}
.user-password-hints {
    background: #f7f7f7;
    font-size: 0.75rem;
}

@media (max-width: 991px) {
    .registry-layout-full { margin: 0; }
    .registry-select-wide { max-width: 100%; min-width: 0; width: 100%; }
    .user-form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Audit STISC */
.audit-stisc {
    padding: 0;
}
.audit-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 0.85rem;
    margin: 0;
    padding: 0.75rem 1.15rem;
    background: #fff;
    border: none;
    border-bottom: 1px solid var(--edms-stisc-400);
    border-radius: 0;
}
.audit-filter-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 120px;
}
.audit-filter-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--edms-text-muted);
    margin: 0;
}
.audit-filter-input {
    min-width: 130px;
    max-width: 180px;
    height: 2.15rem;
    border-radius: 6px;
    border: 1px solid var(--edms-stisc-550);
}
.audit-filter-actions {
    min-width: auto;
    padding-bottom: 0;
}
.audit-results-head {
    display: flex;
    justify-content: flex-end;
    margin: 0.35rem 0 0.25rem;
}
.audit-table-wrap {
    border: 1px solid var(--edms-border, #dbe3ef);
}
.audit-table th,
.audit-table td {
    font-size: 0.78rem;
    vertical-align: middle;
}
.audit-col-nr { width: 2.5rem; }
.audit-col-doc { width: 4.5rem; }
.audit-col-reg { min-width: 6rem; }
.audit-col-regdate { width: 6.5rem; }
.audit-col-detail { width: 5.5rem; }
.audit-detail-btn {
    border: 1px solid #7eb8e8;
    background: #e8f4fc;
    color: #1a5fb4;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.1rem 0.55rem;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.audit-detail-btn:hover {
    background: #cfe8f8;
}
.audit-pagination-footer {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}
.audit-detail-pre {
    font-size: 0.78rem;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f7f7f7;
    border: 1px solid var(--edms-border, #dbe3ef);
    padding: 0.75rem;
    border-radius: 4px;
    max-height: 60vh;
    overflow: auto;
}

.audit-login-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 0.75rem 0 0.5rem;
    padding: 0.65rem 0.75rem;
    background: #f7f7f7;
    border: 1px solid var(--edms-border, #dbe3ef);
    border-radius: 4px;
}
.audit-login-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1.25rem;
}
.audit-login-page-size .nom-select {
    min-width: 72px;
}
.audit-login-summary {
    font-size: 0.78rem;
    color: var(--edms-text-muted, #64748b);
    max-width: 42rem;
    line-height: 1.35;
}
.audit-login-table-wrap .audit-login-filter-row th {
    background: #e8f4fc;
    padding: 0.25rem 0.35rem;
    border-top: none;
}
.audit-login-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}
.audit-login-table thead tr:first-child th {
    background: #d9ebf8;
}

.audit-nom-table-wrap .audit-nom-filter-row th {
    background: #e8f4fc;
}
.audit-nom-table thead tr:first-child th {
    background: #d9ebf8;
}
.audit-nom-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}
.audit-nom-col-id { width: 4.5rem; }
.audit-nom-col-source { min-width: 7rem; }
.audit-nom-col-action { width: 5.5rem; }
.audit-nom-col-user { min-width: 7rem; }
.audit-nom-col-date { width: 8.5rem; white-space: nowrap; }
.audit-nom-col-ip { width: 7rem; }
.audit-nom-col-fields { min-width: 14rem; }
.audit-nom-changes-cell {
    font-size: 0.74rem;
    line-height: 1.35;
    vertical-align: top;
}
.audit-nom-change-line + .audit-nom-change-line {
    margin-top: 0.15rem;
}
.audit-nom-field-label {
    font-weight: 600;
}
.audit-nom-arrow {
    color: var(--edms-text-muted, #64748b);
    padding: 0 0.15rem;
}
.audit-nom-new {
    color: #15803d;
    font-weight: 600;
}

.audit-email-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 0.75rem 0 0.5rem;
    padding: 0.65rem 0.75rem;
    background: #f7f7f7;
    border: 1px solid var(--edms-border, #dbe3ef);
    border-radius: 4px;
}
.audit-email-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    flex: 1 1 auto;
}
.audit-email-status-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.audit-email-filter-btn {
    min-width: 0;
    padding: 0.18rem 0.55rem;
    border: 1px solid var(--edms-stisc-700);
    border-radius: 2px;
    background: linear-gradient(180deg, #fff 0%, var(--edms-stisc-150) 100%);
    color: #000000;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.25;
    box-shadow: inset 0 1px 0 #fff;
}
.audit-email-filter-btn:hover {
    background: linear-gradient(180deg, #fff 0%, var(--edms-stisc-100) 100%);
    border-color: var(--edms-stisc-800);
}
.audit-email-filter-btn.active {
    font-weight: 600;
    background: linear-gradient(180deg, var(--edms-stisc-100) 0%, var(--edms-stisc-250) 100%);
    border-color: var(--edms-stisc-800);
}
.audit-email-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}
.audit-email-search-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--edms-text-muted, #64748b);
    margin: 0;
    white-space: nowrap;
}
.audit-email-search-input {
    min-width: 160px;
    max-width: 220px;
}
.audit-email-table-wrap .audit-email-table thead th {
    background: #d9ebf8;
}
.audit-email-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}
.audit-email-col-id { width: 5rem; }
.audit-email-col-subject { min-width: 16rem; }
.audit-email-subject-cell { font-size: 0.74rem; line-height: 1.35; }
.audit-email-col-to { min-width: 10rem; }
.audit-email-col-date { width: 8.5rem; white-space: nowrap; font-size: 0.74rem; }
.audit-email-date-cell { white-space: nowrap; font-size: 0.74rem; }
.audit-email-col-status { width: 5.5rem; }
.audit-email-col-response { width: 5rem; }

/* Inbox notificări (clopoțel) */
#inboxModal .inbox-dialog {
    max-width: var(--edms-modal-max);
    width: calc(100% - var(--edms-modal-gutter));
    margin: 0.25rem auto;
}
#inboxModal .inbox-modal-content {
    border: 1px solid #c5cdd6;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}
#inboxModal .inbox-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.85rem;
    padding: 0.55rem 0.7rem 0.35rem;
}
#inboxModal .inbox-mark-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.75rem;
    color: #000000;
    cursor: pointer;
    user-select: none;
}
#inboxModal .inbox-mark-all input {
    margin: 0;
    width: 0.9rem;
    height: 0.9rem;
}
#inboxModal .inbox-search {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}
#inboxModal .inbox-search label {
    margin: 0;
    font-size: 0.75rem;
    color: #334155;
    white-space: nowrap;
}
#inboxModal .inbox-search input {
    width: 11.5rem;
    height: 1.65rem;
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-color: #b8c9dc;
}
#inboxModal .inbox-close {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--edms-text-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
#inboxModal .inbox-close:hover {
    color: #0f172a;
}
#inboxModal .inbox-length {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.7rem 0.4rem;
    font-size: 0.75rem;
    color: #334155;
}
#inboxModal .inbox-length label {
    margin: 0;
}
#inboxModal .inbox-length select {
    width: auto;
    min-width: 3.5rem;
    height: 1.65rem;
    font-size: 0.75rem;
    padding: 0.05rem 1.5rem 0.05rem 0.35rem;
    border-color: #b8c9dc;
}
#inboxModal .inbox-table-wrap {
    padding: 0 0.7rem;
    overflow: auto;
    max-height: min(22.5rem, calc(100vh - 12rem));
}
#inboxModal .inbox-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
#inboxModal .inbox-table thead th {
    background: #e8eef4;
    font-size: 0.75rem;
    font-weight: 600;
    color: #000000;
    padding: 0.32rem 0.5rem;
    border: 1px solid #c5d0dc;
    white-space: nowrap;
}
#inboxModal .inbox-table tbody td {
    font-size: 0.75rem;
    padding: 0.28rem 0.5rem;
    border: 1px solid #dce3ea;
    vertical-align: middle;
    color: #000000;
}
#inboxModal .inbox-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}
#inboxModal .inbox-table tbody tr.inbox-row {
    cursor: pointer;
}
#inboxModal .inbox-table tbody tr.inbox-row:hover {
    background: #e8f1fb;
}
#inboxModal .inbox-table tbody tr.inbox-row.is-unread td {
    font-weight: 600;
}
#inboxModal .inbox-empty {
    text-align: center;
    color: var(--edms-text-muted);
    padding: 1.1rem 0.5rem !important;
    font-weight: 400 !important;
}
#inboxModal .inbox-col-viewed {
    width: 5.5rem;
    text-align: center;
}
#inboxModal .inbox-col-date {
    width: 8.5rem;
    white-space: nowrap;
}
#inboxModal .inbox-col-user {
    width: 9.5rem;
    white-space: nowrap;
}
#inboxModal .inbox-viewed-dot {
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    vertical-align: middle;
}
#inboxModal .inbox-viewed-dot.is-unread {
    background: #2f7de1;
}
#inboxModal .inbox-viewed-dot.is-read {
    background: transparent;
    border: 2px solid #222f7e;
}
#inboxModal .inbox-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.75rem;
    padding: 0.45rem 0.7rem 0.6rem;
}
#inboxModal .inbox-page-info {
    font-size: 0.75rem;
    color: #475569;
}
#inboxModal .inbox-page-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
}
#inboxModal .inbox-page-link {
    min-width: 1.7rem;
    height: 1.7rem;
    padding: 0 0.4rem;
    border: 1px solid #c5d0dc;
    border-radius: 2px;
    background: #fff;
    color: #000000;
    font-size: 0.75rem;
    cursor: pointer;
}
#inboxModal .inbox-page-link:hover:not(:disabled):not(.active) {
    background: #f7f7f7;
}
#inboxModal .inbox-page-link.active {
    background: #d7e7f7;
    border-color: #9bb8d4;
    font-weight: 600;
}
#inboxModal .inbox-page-link:disabled {
    opacity: 0.45;
    cursor: default;
}
#inboxModal .inbox-page-ellipsis {
    font-size: 0.75rem;
    color: var(--edms-text-muted);
    padding: 0 0.15rem;
}

/* Dropdown clopoțel */
.inbox-dropdown {
    position: fixed;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    max-height: min(28rem, calc(100vh - 4.5rem));
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}
.inbox-dropdown[hidden] {
    display: none !important;
}
.inbox-dd-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem 0.5rem;
    border-bottom: 1px solid #e8edf3;
    flex-shrink: 0;
}
.inbox-dd-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}
.inbox-dd-mark-all {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222f7e;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.inbox-dd-mark-all:hover {
    color: #222f7e;
    text-decoration: underline;
}
.inbox-dd-close {
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--edms-text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.inbox-dd-close:hover {
    color: #0f172a;
}
.inbox-dd-list {
    overflow-y: auto;
    min-height: 4rem;
}
.inbox-dd-empty {
    padding: 1.1rem 0.85rem;
    text-align: center;
    color: var(--edms-text-muted);
    font-size: 0.8rem;
}
.inbox-dd-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid #eef2f6;
    cursor: pointer;
}
.inbox-dd-item:last-child {
    border-bottom: 0;
}
.inbox-dd-item:hover {
    background: #f7f7f7;
}
.inbox-dd-dot {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: rgba(34, 47, 126, 0.22);
}
.inbox-dd-dot.is-unread {
    background: #2f7de1;
}
.inbox-dd-body {
    min-width: 0;
    flex: 1 1 auto;
}
.inbox-dd-text {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #000000;
}
.inbox-dd-item.is-unread .inbox-dd-text {
    font-weight: 700;
}
.inbox-dd-time {
    margin: 0.15rem 0 0;
    font-size: 0.6875rem;
    color: var(--edms-text-muted);
}
.inbox-dd-avatar {
    flex-shrink: 0;
    width: 1.7rem;
    height: 1.7rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: #222f7e;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.inbox-dd-check {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.15rem;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #3b82f6;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.inbox-dd-check:hover:not(:disabled) {
    background: #222f7e;
}
.inbox-dd-check:disabled {
    background: rgba(34, 47, 126, 0.22);
    cursor: default;
}
.inbox-dd-foot {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem 0.6rem;
    border-top: 1px solid #e8edf3;
}
.inbox-dd-see-all {
    padding: 0;
    border: 0;
    background: transparent;
    color: #222f7e;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.inbox-dd-see-all:hover {
    color: #222f7e;
    text-decoration: underline;
}

/* Ghid de utilizare */
.guide-stisc .edms-page-panel {
    overflow: hidden;
}
.guide-layout {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #fff;
}
.guide-toc {
    flex: 0 0 11.5rem;
    width: 11.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.7rem 0.55rem 0.85rem;
    border-right: 1px solid var(--edms-stisc-400);
    background: #f7f7f7;
    overflow: auto;
}
.guide-toc-label {
    margin: 0 0.35rem 0.35rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #222f7e;
}
.guide-toc-link {
    display: block;
    padding: 0.32rem 0.5rem;
    border-radius: 4px;
    color: #000;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25;
}
.guide-toc-link:hover {
    background: #fff;
    color: #222f7e;
    text-decoration: none;
}
.guide-toc-link.active {
    background: #222f7e;
    color: #fff;
}
.guide-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow: auto;
    padding: 1rem 1.15rem 1.5rem;
}
.guide-hero {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1.05rem;
    margin-bottom: 1rem;
    background: #222f7e;
    color: #fff;
    border-radius: 8px;
}
.guide-hero-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.25rem;
}
.guide-hero-kicker {
    margin: 0 0 0.15rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}
.guide-hero-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}
.guide-hero-meta {
    margin: 0.3rem 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}
.guide-section {
    margin-bottom: 1.15rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid #e8edf3;
}
.guide-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.guide-section-title {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #222f7e;
}
.guide-content p,
.guide-content li {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #000;
}
.guide-content p {
    margin: 0 0 0.5rem;
}
.guide-content ul,
.guide-content ol {
    margin: 0 0 0.5rem;
    padding-left: 1.2rem;
}
.guide-content li + li {
    margin-top: 0.22rem;
}
.guide-content a {
    color: #222f7e;
}
.guide-flag-list {
    list-style: none;
    padding-left: 0;
}
.guide-flag-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}
.guide-figure {
    margin: 0.5rem 0 0.75rem;
    max-width: 20rem;
}
.guide-figure-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    text-align: left;
}
.guide-figure img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #222f7e;
    border-radius: 6px;
    background: #fff;
}
.guide-figure figcaption {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: rgba(0, 0, 0, 0.62);
}
.guide-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
}
.guide-lightbox[hidden] {
    display: none !important;
}
.guide-lightbox img {
    max-width: min(1100px, 96vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    background: #fff;
    border: 1px solid #222f7e;
    border-radius: 8px;
}
.guide-lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #222f7e;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

@media print {
    @page {
        margin: 12mm;
    }
    body.edms-view-guide {
        height: auto !important;
        overflow: visible !important;
        background: #fff !important;
    }
    body.edms-view-guide .edms-sidebar,
    body.edms-view-guide .edms-sidebar-open,
    body.edms-view-guide .edms-sidebar-backdrop,
    body.edms-view-guide .edms-page-header-bar,
    body.edms-view-guide .guide-toc,
    body.edms-view-guide .edms-page-actions,
    body.edms-view-guide .modal,
    body.edms-view-guide #ajaxLoadingBar,
    body.edms-view-guide .guide-lightbox,
    body.edms-view-guide #inboxDropdown {
        display: none !important;
    }
    body.edms-view-guide .edms-shell,
    body.edms-view-guide .edms-main,
    body.edms-view-guide #view-guide,
    body.edms-view-guide .guide-stisc,
    body.edms-view-guide .edms-page-panel,
    body.edms-view-guide .guide-layout,
    body.edms-view-guide .guide-content {
        display: block !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        position: static !important;
        flex: none !important;
        border: none !important;
        box-shadow: none !important;
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }
    body.edms-view-guide .guide-lightbox,
    body.edms-view-guide .guide-figure-btn {
        cursor: default;
    }
    body.edms-view-guide .guide-hero {
        background: #222f7e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    body.edms-view-guide .guide-section,
    body.edms-view-guide .guide-figure {
        break-inside: avoid;
    }
    body.edms-view-guide .guide-figure,
    body.edms-view-guide .guide-figure-btn,
    body.edms-view-guide .guide-figure img {
        max-width: 16rem;
    }
    body.edms-view-guide .guide-figure img {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
