/**
 * Paletă blocată — doar Ink / Paper / Page / Text
 * Ink #222f7e · Paper #ffffff · Page #f7f7f7 · Text #000000
 */

:root,
.edms-ui-modern,
.edms-app,
.login-page {
    --edms-ink: #222f7e;
    --edms-ink-hover: #222f7e;
    --edms-paper: #ffffff;
    --edms-page: #f7f7f7;
    --edms-text: #000000;
    --edms-text-muted: rgba(0, 0, 0, 0.55);
    --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-hover: #222f7e;
    --edms-primary-light: #f7f7f7;
    --edms-primary-soft: #f7f7f7;
    --edms-accent: #222f7e;
    --edms-surface: #ffffff;
    --edms-bg: #f7f7f7;
    --edms-border: #222f7e;
    --bs-primary: #222f7e;
    --bs-primary-rgb: 34, 47, 126;
    --bs-border-color: #222f7e;
    --bs-body-color: #000000;
    --bs-body-bg: #f7f7f7;
}

body.edms-app,
body.edms-ui-modern,
.edms-main,
.view-panel.active {
    background: #f7f7f7;
    color: #000000;
}

/* Sidebar — Ink + text alb */
.edms-sidebar,
.edms-sidebar-top,
.edms-sidebar-footer {
    background: #222f7e !important;
    border-color: #222f7e !important;
}
.edms-stisc-nav .nav-link {
    color: #ffffff !important;
}
.edms-stisc-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
}
.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,
#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,
.edms-ui-modern #navRegisterItem > .nav-link:hover,
.edms-ui-modern #navRegisterItem.show > .nav-link,
.edms-ui-modern #navRegistryItem > .nav-link:hover,
.edms-ui-modern #navRegistryItem.show > .nav-link {
    color: #222f7e !important;
    background: #ffffff !important;
    box-shadow: inset 3px 0 0 #222f7e !important;
}
.edms-stisc-dropdown .dropdown-item,
.edms-stisc-dropdown-menu .edms-stisc-menu-item,
.edms-stisc-dropdown-register .edms-stisc-menu-item {
    color: #ffffff !important;
}
.edms-stisc-dropdown .dropdown-item:hover,
.edms-stisc-dropdown-menu .edms-stisc-menu-item:hover,
.edms-stisc-dropdown-register .edms-stisc-menu-item:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}
.edms-ui-modern .edms-stisc-dropdown-menu,
.edms-ui-modern .edms-stisc-dropdown-register {
    border: none !important;
}

/* Header, titluri, borduri */
.edms-page-header-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #222f7e !important;
}
#sidebarCollapseBtnTop {
    background: #222f7e !important;
    border-color: #222f7e !important;
    color: #ffffff !important;
}
#sidebarCollapseBtnTop:hover {
    background: #1a2463 !important;
    border-color: #1a2463 !important;
    color: #ffffff !important;
}
body.edms-sidebar-collapsed #sidebarCollapseBtnTop {
    background: #ffffff !important;
    border-color: #222f7e !important;
    color: #222f7e !important;
}
body.edms-sidebar-collapsed #sidebarCollapseBtnTop:hover {
    background: #f7f7f7 !important;
    color: #222f7e !important;
}

.edms-page-header-title,
.edms-page-header-user-name,
.edms-nav-tool,
.edms-nav-guide,
h1, h2, h3, h4, h5, h6,
.registry-page-title,
.doc-register-title,
.edms-form-stisc-title,
.nom-page-title {
    color: #222f7e;
}
.contacts-stisc .contacts-hero-title,
.guide-stisc .guide-hero-title {
    color: #ffffff !important;
}
#docModal .doc-register-chrome,
#docSheetModal .doc-register-chrome,
#docSheetModal .doc-register-chrome.sheet-chrome,
#docSheetModal .sheet-chrome {
    background: #fffafa !important;
    border-bottom-color: #222f7e !important;
}
#docModal .doc-register-chrome .doc-register-title,
#docSheetModal .doc-register-chrome .doc-register-title {
    color: #222f7e !important;
}
#docModal .doc-register-title-icon,
#docSheetModal .doc-register-title-icon {
    background: var(--flow-color, #dc2626) !important;
}
#docModal .edms-modal-register:has(.modal-header-flow-in),
#docSheetModal .edms-modal-sheet:has(.modal-header-flow-in) {
    border-color: #dc2626 !important;
}
#docModal .edms-modal-register:has(.modal-header-flow-out) {
    border-color: #ea580c !important;
}
#docSheetModal .edms-modal-sheet:has(.modal-header-flow-out) {
    border-color: #7c3aed !important;
}
#docModal .edms-modal-register:has(.modal-header-flow-int),
#docSheetModal .edms-modal-sheet:has(.modal-header-flow-int) {
    border-color: #059669 !important;
}

.registry-stisc .registry-flag-combo-btn.is-red { color: #b91c1c !important; }
.registry-stisc .registry-flag-combo-btn.is-orange { color: #c2410c !important; }
.registry-stisc .registry-flag-combo-btn.is-yellow { color: #a16207 !important; }
.registry-stisc .registry-flag-combo-btn.is-purple { color: #4338ca !important; }
.edms-page-header-user-role,
.muted,
.text-muted {
    color: rgba(0, 0, 0, 0.55) !important;
}

/* Butoane */
.btn-primary,
.registry-add-btn-primary,
.sheet-footer-btn,
.search-alege-btn,
.edms-form-stisc-btn,
.login-page .btn-primary,
.inbox-dd-check,
.inbox-page-link.active {
    background: #222f7e !important;
    border-color: #222f7e !important;
    color: #ffffff !important;
}
.btn-primary:hover,
.registry-add-btn-primary:hover,
.sheet-footer-btn:hover:not(:disabled),
.search-alege-btn:hover,
.edms-form-stisc-btn:hover,
.login-page .btn-primary:hover {
    background: #222f7e !important;
    border-color: #222f7e !important;
    color: #ffffff !important;
    opacity: 0.9;
}
.edms-form-stisc-btn-secondary,
.edms-form-stisc-btn-secondary:hover {
    background: #ffffff !important;
    border-color: #222f7e !important;
    color: #222f7e !important;
    opacity: 1;
}
.edms-form-stisc-btn-secondary:hover {
    background: #f7f7f7 !important;
}
.edms-form-stisc-btn-danger,
.edms-form-stisc-btn-danger:hover {
    background: #ffffff !important;
    border-color: #b91c1c !important;
    color: #b91c1c !important;
    opacity: 1;
}
.edms-form-stisc-btn-danger:hover {
    background: #fff5f5 !important;
}
.sheet-footer-btn-danger,
.sheet-footer-btn-danger:hover,
.registry-delete-btn,
.registry-delete-btn:hover {
    background: #ffffff !important;
    border-color: #b91c1c !important;
    color: #b91c1c !important;
    opacity: 1;
}
.sheet-footer-btn-danger:hover,
.registry-delete-btn:hover {
    background: #fff5f5 !important;
    color: #991b1b !important;
    border-color: #991b1b !important;
}

/* Carduri / tabele / inputuri */
.card,
.edms-page-panel,
.registry-table-panel,
.registry-table,
.nom-table,
.search-table,
.report-table,
.inbox-table,
.modal-content,
.login-page .card {
    background: #ffffff;
}
.registry-table tbody tr:nth-child(even) td,
.nom-table tbody tr:nth-child(even) td,
.search-table tbody tr:nth-child(even),
.report-table tbody tr:nth-child(even),
.audit-login-table tbody tr:nth-child(even),
.audit-nom-table tbody tr:nth-child(even),
.audit-email-table tbody tr:nth-child(even),
.inbox-table tbody tr:nth-child(even),
.profile-notify-table tbody tr:nth-child(even) td,
.sheet-inform-user-row:nth-child(even) td {
    background: #f7f7f7 !important;
}

input, select, textarea, .form-control, .form-select {
    color: #000000;
    border-color: #222f7e !important;
    background: #ffffff;
}

.registry-stisc .registry-flag-combo-btn,
.registry-stisc .registry-flag-combo-menu {
    background: #ffffff !important;
    border-color: #222f7e !important;
}
.registry-stisc .registry-flag-combo-btn {
    color: #000000;
}

.ql-toolbar.ql-snow,
.ql-container.ql-snow {
    border-color: #222f7e !important;
}

body.login-page,
body.login-page.edms-ui-modern,
.login-page {
    background: #ffffff !important;
}
.login-page h1 {
    color: #222f7e !important;
}

.sheet-footer-stisc,
.doc-register-footer,
.edms-form-stisc-footer {
    background: #f7f7f7 !important;
    border-top: 1px solid #222f7e !important;
}

.edms-form-stisc-title-icon {
    background: #222f7e !important;
    color: #ffffff !important;
}
