body.theme-modern .nom-outer {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%) !important;
    border: 1px solid #d7e3f0 !important;
    border-radius: 24px !important;
    box-shadow: 0 22px 52px rgba(20, 48, 86, 0.14) !important;
    overflow: hidden !important;
}

body.theme-modern .nom-title {
    background: linear-gradient(135deg, #1f4772 0%, #2f6ba7 52%, #4a6cf7 100%) !important;
    color: #fff !important;
    padding: 18px 22px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    border-bottom: 0 !important;
}

body.theme-modern .nom-tabs {
    padding: 14px 16px 0 !important;
    gap: 10px !important;
    background: linear-gradient(180deg, rgba(225, 236, 248, 0.92) 0%, rgba(241, 246, 252, 0.78) 100%) !important;
    border-bottom: 1px solid #dae5f2 !important;
}

body.theme-modern .nom-tab {
    border: 1px solid #c6d6e7 !important;
    background: linear-gradient(180deg, #ffffff 0%, #edf4fb 100%) !important;
    color: #23415f !important;
    padding: 10px 15px !important;
    border-radius: 14px 14px 0 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 14px rgba(27, 60, 104, 0.08) !important;
}

body.theme-modern .nom-tab:hover {
    transform: translateY(-1px) !important;
    border-color: #8fb0d4 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%) !important;
    color: #183654 !important;
}

body.theme-modern .nom-tab.active-tab,
body.theme-modern .nom-tab.nom-tab-constructii.active-tab,
body.theme-modern .nom-tab.nom-tab-terenuri.active-tab,
body.theme-modern .nom-tab.nom-tab-corectie.active-tab {
    background: #ffffff !important;
    border-color: #7fa4cc !important;
    color: #0f3151 !important;
    box-shadow: 0 -2px 0 #4a6cf7, 0 12px 28px rgba(18, 47, 81, 0.10) !important;
}

body.theme-modern .nom-tab.nom-tab-constructii {
    background: linear-gradient(180deg, #fff5ea 0%, #ffe4c8 100%) !important;
    border-color: #e2b381 !important;
    color: #79451d !important;
}

body.theme-modern .nom-tab.nom-tab-terenuri {
    background: linear-gradient(180deg, #effbef 0%, #d7f0d7 100%) !important;
    border-color: #9ccd9c !important;
    color: #245427 !important;
}

body.theme-modern .nom-tab.nom-tab-corectie {
    background: linear-gradient(180deg, #eef6ff 0%, #dbeafa 100%) !important;
    border-color: #99b7d7 !important;
    color: #24507b !important;
}

body.theme-modern .nom-body {
    margin: 0 14px 14px !important;
    padding: 18px !important;
    border: 1px solid #d9e4f0 !important;
    border-radius: 0 0 20px 20px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,254,0.94) 100%) !important;
    gap: 14px !important;
}

body.theme-modern .nom-tbl-wrap {
    border: 1px solid #d8e4f1 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(15, 39, 74, 0.06) !important;
    min-height: 130px !important;
}

body.theme-modern .nom-tbl {
    width: 100% !important;
    font-size: 11px !important;
}

body.theme-modern .nom-tbl th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, #f7faff 0%, #edf4fb 100%) !important;
    color: #27415f !important;
    border: 1px solid #d9e4ef !important;
    padding: 8px 10px !important;
    font-weight: 700 !important;
}

body.theme-modern .nom-tbl td {
    background: #ffffff !important;
    color: #25374c !important;
    border: 1px solid #e7eef6 !important;
    padding: 8px 10px !important;
    height: 36px !important;
}

body.theme-modern .nom-tbl tbody tr:nth-child(even) td {
    background: #fbfdff !important;
}

body.theme-modern .nom-tbl tbody tr:hover td {
    background: #f1f7ff !important;
}

body.theme-modern .nom-tbl tr.selected td {
    background: #dcebff !important;
    box-shadow: inset 0 0 0 1px #98bce4;
}

body.theme-modern .nom-btn-row {
    gap: 10px !important;
    flex-wrap: wrap !important;
    padding: 2px 0 !important;
}

body.theme-modern .nom-btn {
    min-height: 40px !important;
    padding: 9px 16px !important;
    border: 1px solid #c4d5e7 !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #ffffff 0%, #eef4fa 100%) !important;
    color: #1f3b58 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 8px 16px rgba(20, 48, 86, 0.10) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease !important;
}

body.theme-modern .nom-btn:hover {
    transform: translateY(-1px) !important;
    border-color: #8eb1d4 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%) !important;
    box-shadow: 0 12px 22px rgba(20, 48, 86, 0.15) !important;
}

body.theme-modern .nom-btn.nom-btn-save {
    background: linear-gradient(180deg, #effff4 0%, #d4f5df 100%) !important;
    border-color: #96c7a5 !important;
    color: #1f5a31 !important;
}

body.theme-modern .nom-btn.nom-btn-del {
    background: linear-gradient(180deg, #fff4f5 0%, #ffdfe3 100%) !important;
    border-color: #e2a2aa !important;
    color: #8d2632 !important;
}

body.theme-modern .nom-edit {
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7fc 100%) !important;
    border: 1px solid #d7e4ef !important;
    border-radius: 18px !important;
    padding: 16px !important;
    gap: 12px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 10px 22px rgba(16, 42, 76, 0.05) !important;
}

body.theme-modern .nom-erow {
    gap: 10px !important;
    align-items: flex-end !important;
}

body.theme-modern .nom-erow label,
body.theme-modern .nom-coef-cell label,
body.theme-modern .nom-coef-meta label,
body.theme-modern .nom-salub-inline {
    color: #31506d !important;
    font-weight: 700 !important;
}

body.theme-modern .nom-erow input,
body.theme-modern .nom-erow select,
body.theme-modern .nom-erow textarea,
body.theme-modern .nom-coef-cell input,
body.theme-modern .nom-coef-meta input {
    border: 1px solid #c8d7e6 !important;
    border-radius: 10px !important;
    background: #fff !important;
    min-height: 34px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset !important;
}

body.theme-modern .nom-erow textarea {
    min-height: 88px !important;
    resize: vertical !important;
}

body.theme-modern .nom-erow input:focus,
body.theme-modern .nom-erow select:focus,
body.theme-modern .nom-erow textarea:focus,
body.theme-modern .nom-coef-cell input:focus,
body.theme-modern .nom-coef-meta input:focus {
    outline: none !important;
    border-color: #7aa8ff !important;
    box-shadow: 0 0 0 4px rgba(122, 168, 255, 0.18) !important;
}

body.theme-modern .nom-coef-grid {
    gap: 10px 14px !important;
}

body.theme-modern .nom-coef-grid-tight {
    gap: 8px 10px !important;
}

body.theme-modern .nom-coef-cell {
    background: rgba(255,255,255,0.72);
    border: 1px solid #e1eaf3;
    border-radius: 12px;
    padding: 8px 10px;
}

body.theme-modern .nom-subsection {
    background: linear-gradient(180deg, #fcfdff 0%, #f4f8fd 100%);
    border: 1px solid #dde7f1;
    border-radius: 18px;
    padding: 16px;
}

body.theme-modern .nom-subtitle {
    font-size: 14px !important;
    color: #1f456d !important;
    margin-bottom: 6px !important;
}

body.theme-modern .nom-tab-placeholder {
    padding: 44px 24px !important;
    border: 1px dashed #c7d7e7 !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%) !important;
    color: #60758d !important;
}

@media (max-width: 900px) {
    body.theme-modern .nom-title {
        font-size: 16px !important;
        padding: 16px 18px !important;
    }

    body.theme-modern .nom-tabs {
        gap: 8px !important;
        padding: 12px 12px 0 !important;
    }

    body.theme-modern .nom-tab {
        width: 100%;
        border-radius: 14px !important;
    }

    body.theme-modern .nom-body {
        margin: 0 10px 10px !important;
        padding: 14px !important;
        border-radius: 0 0 16px 16px !important;
    }

    body.theme-modern .nom-coef-grid,
    body.theme-modern .nom-coef-grid-tight {
        grid-template-columns: 1fr !important;
    }
}
