:root {
    --navy: #101B35;
    --navy-light: #192847;
    --white: #FFFFFF;
    --text: #25334A;
    --muted: #8793A6;
    --cyan: #35C5E8;
    --purple: #9563E9;
    --green: #35BD91;
    --gradient: linear-gradient(100deg, #35C5E8 0%, #9563E9 52%, #35BD91 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--navy);
    color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

button, .btn {
    border: 0;
    border-radius: 12px;
    padding: 12px 20px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    background: var(--gradient);
    transition: transform .2s, box-shadow .2s;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(53, 197, 232, .2);
}

/* LOGIN */
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--navy);
}

.login-container {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    color: var(--text);
    border-radius: 24px;
    padding: 42px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: white;
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient);
}

.brand-name {
    font-size: 25px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 1px;
}

.login-container h1 {
    font-size: 27px;
    margin-bottom: 9px;
    color: var(--navy);
}

.login-description {
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #DCE2EC;
    border-radius: 11px;
    outline: none;
    color: var(--text);
    background: #F8FAFC;
}

.form-group input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(53, 197, 232, .13);
}

.login-container button {
    width: 100%;
    margin-top: 8px;
}

.error-message {
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 10px;
    color: #A52B36;
    background: #FFF0F1;
    font-size: 14px;
}

/* PANEL PRINCIPAL */
.app-layout {
    min-height: 100vh;
    display: flex;
    background: var(--navy);
}

.sidebar {
    width: 255px;
    min-height: 100vh;
    padding: 28px 18px;
    background: var(--navy);
    border-right: 1px solid rgba(255,255,255,.1);
    flex-shrink: 0;
}

.sidebar .brand {
    padding: 0 10px;
    margin-bottom: 42px;
}

.sidebar .brand-name {
    color: white;
}

.menu-label {
    padding: 0 12px;
    margin: 25px 0 12px;
    color: #8793A6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    margin-bottom: 7px;
    border-radius: 11px;
    color: #D5DDEC;
    font-size: 14px;
    transition: background .2s;
}

.menu-link:hover,
.menu-link.active {
    background: var(--navy-light);
    color: white;
}

.menu-link.active {
    border-left: 3px solid var(--cyan);
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 34px;
    background: var(--navy);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.topbar h1 {
    color: white;
    font-size: 27px;
}

.topbar p {
    margin-top: 7px;
    color: #AAB7CC;
    font-size: 14px;
}

.user-chip {
    padding: 11px 16px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 12px;
    color: white;
    background: var(--navy-light);
}

/* TARJETAS BLANCAS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card,
.content-card {
    padding: 25px;
    border-radius: 18px;
    background: var(--white);
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.stat-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.stat-card h2 {
    margin-top: 13px;
    color: var(--navy);
    font-size: 34px;
}

.content-card h2 {
    margin-bottom: 10px;
    color: var(--navy);
    font-size: 20px;
}

.content-card p {
    color: var(--muted);
    line-height: 1.7;
}

.section-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

.status-label {
    display: inline-block;
    margin-top: 18px;
    padding: 8px 12px;
    border-radius: 20px;
    color: #147B5B;
    background: #E7F8F1;
    font-size: 12px;
    font-weight: 700;
}

/* MENSAJES Y RESPONSIVE */
.messages {
    list-style: none;
    margin-bottom: 18px;
}

.messages li {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #FFF0F1;
    color: #A52B36;
}

@media (max-width: 900px) {
    .sidebar {
        width: 210px;
    }

    .main-content {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .app-layout {
        display: block;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        padding: 15px;
    }

    .sidebar .brand {
        margin-bottom: 15px;
    }

    .menu-label {
        margin-top: 15px;
    }

    .main-content {
        padding: 20px 15px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-container {
        padding: 28px 22px;
    }
}

/* MODULO DE DEPARTAMENTOS */
.orange-btn {
    background: linear-gradient(100deg, #F28C28, #FFAD42);
    color: #fff;
}

.department-section {
    margin-top: 24px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.section-heading h2 {
    color: var(--navy);
    margin-bottom: 7px;
}

.section-heading p,
.department-card > p {
    color: var(--muted);
    line-height: 1.6;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.department-card {
    padding: 22px;
    border: 1px solid #E8EDF4;
    border-radius: 16px;
    background: #FBFCFE;
}

.department-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.department-icon,
.empty-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 13px;
    background: #FFF1E2;
    color: #E9821E;
    font-size: 24px;
}

.department-card h3 {
    color: var(--navy);
    font-size: 18px;
    margin-bottom: 9px;
}

.department-card > p {
    min-height: 48px;
    font-size: 13px;
}

.department-status {
    padding: 7px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.active-status {
    background: #E6F8F0;
    color: #16845D;
}

.inactive-status {
    background: #FFF0E8;
    color: #B65D22;
}

.department-members {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 14px 0;
    margin-top: 12px;
    border-top: 1px solid #E8EDF4;
    color: var(--muted);
    font-size: 13px;
}

.department-members strong {
    color: var(--navy);
    font-size: 20px;
}

.department-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.small-btn {
    display: inline-block;
    padding: 9px 13px;
    font-size: 12px;
    border-radius: 9px;
}

.secondary-btn {
    background: #EAF0F8;
    color: #34445E;
}

.empty-state {
    padding: 45px 20px;
    text-align: center;
}

.empty-icon {
    margin: 0 auto 15px;
}

.empty-state h3 {
    color: var(--navy);
    margin-bottom: 9px;
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 20px;
}

.department-form-card {
    max-width: 850px;
}

.department-form-card .form-control {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #DCE2EC;
    border-radius: 10px;
    outline: none;
    color: var(--text);
    background: #F8FAFC;
}

.department-form-card .form-control:focus {
    border-color: #F28C28;
    box-shadow: 0 0 0 3px rgba(242, 140, 40, .12);
}

.department-form-card select[multiple] {
    min-height: 170px;
}

.form-help {
    color: var(--muted);
    font-size: 12px;
    margin: 7px 0 10px;
}

.form-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    color: var(--text);
    font-weight: 600;
}

.cancel-btn {
    background: #EAF0F8;
    color: #34445E;
}

.form-actions {
    margin-top: 25px;
}

.errorlist {
    color: #B42332;
    font-size: 13px;
    list-style: none;
    margin-top: 7px;
}

@media (max-width: 600px) {
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .department-actions form {
        margin: 0;
    }
}

/* ==========================================
   MODULO DE COLABORADORES
========================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.stats-grid .stat-card {
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid #E8EDF4;
    border-radius: 15px;
    box-shadow: 0 5px 18px rgba(20, 40, 75, .04);
}

.stats-grid .stat-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.stats-grid .stat-card strong {
    color: var(--navy);
    font-size: 27px;
}

.search-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.search-form .form-control {
    flex: 1;
    min-width: 220px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.collaborator-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    text-align: left;
}

.collaborator-table th {
    padding: 15px 12px;
    background: #F4F7FB;
    color: #52627A;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.collaborator-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #EAEFF5;
    color: var(--text);
    font-size: 13px;
    vertical-align: middle;
}

.collaborator-table td strong,
.collaborator-table td small {
    display: block;
}

.collaborator-table td strong {
    color: var(--navy);
    margin-bottom: 5px;
}

.collaborator-table td small,
.muted-text {
    color: var(--muted);
}

.department-tag {
    display: inline-block;
    padding: 5px 9px;
    margin: 2px;
    border-radius: 7px;
    background: #EAF3FF;
    color: #24558D;
    font-size: 11px;
    font-weight: 700;
}

.danger-btn {
    background: #FDEBEC;
    color: #B42332;
}

.empty-table {
    padding: 30px !important;
    text-align: center;
    color: var(--muted) !important;
}

.notice {
    padding: 13px 16px;
    margin: 12px 0;
    border-radius: 10px;
    background: #EAF8F0;
    color: #18734D;
    font-size: 13px;
}

.collaborator-form-card {
    max-width: 950px;
}

.collaborator-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 18px 0;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

.form-section-title {
    margin: 25px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E8EDF4;
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
}

.form-errors {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 9px;
    background: #FDEBEC;
    color: #B42332;
}

.collaborator-form-card .errorlist {
    color: #B42332;
    font-size: 12px;
    list-style: none;
}

.collaborator-form-card select[multiple] {
    min-height: 150px;
}

@media (max-width: 600px) {
    .collaborator-fields {
        grid-template-columns: 1fr;
    }

    .search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .search-form .form-control {
        width: 100%;
    }
}

/* ===== NUEVO FORMULARIO KONNECTA ===== */
.new-user-page {
    max-width: 1050px;
    margin: 8px auto 40px;
    padding: 12px;
}

.new-user-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.new-user-eyebrow {
    color: #e87924;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.new-user-heading h2 {
    color: #172b4d;
    font-size: 30px;
    margin: 8px 0;
    font-weight: 800;
}

.new-user-heading p,
.new-user-card-top p {
    color: #78869b;
    margin: 0;
    font-size: 14px;
}

.new-user-back {
    color: #243b60;
    text-decoration: none;
    background: white;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 700;
}

.new-user-card {
    background: #fff;
    border: 1px solid #e9edf4;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 12px 38px rgba(27, 48, 79, .07);
}

.new-user-card-top {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 25px;
    margin-bottom: 27px;
    border-bottom: 1px solid #edf0f5;
}

.new-user-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: #fff2e8;
    color: #e87924;
    border-radius: 14px;
    font-size: 28px;
    font-weight: 500;
}

.new-user-card-top h3 {
    color: #172b4d;
    font-size: 19px;
    margin: 0 0 5px;
}

.new-user-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.new-user-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.new-user-field label {
    color: #263957;
    font-size: 13px;
    font-weight: 750;
}

.new-user-field input,
.new-user-field select {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    border: 1px solid #dce3ed;
    border-radius: 11px;
    background: #fbfcfe;
    color: #20334f;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.new-user-field input:focus,
.new-user-field select:focus {
    border-color: #ed8a3a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(237, 138, 58, .12);
}

.new-user-field small {
    color: #8995a7;
    font-size: 11px;
}

.new-user-field .errorlist,
.new-user-errors {
    color: #c0392b;
    font-size: 12px;
    margin: 0;
    padding-left: 17px;
}

.new-user-divider {
    height: 1px;
    background: #edf0f5;
    margin: 30px 0;
}

.department-select-field select {
    min-height: 125px;
    padding: 10px;
}

.new-user-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 13px;
    margin-top: 32px;
    padding-top: 23px;
    border-top: 1px solid #edf0f5;
}

.new-user-cancel,
.new-user-submit {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 10px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    box-sizing: border-box;
}

.new-user-cancel {
    color: #53647d;
    background: #f3f5f8;
}

.new-user-submit {
    border: 0;
    color: white;
    background: linear-gradient(135deg, #ed8a3a, #e56c20);
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(229, 108, 32, .2);
}

.new-user-submit:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.new-user-footer {
    text-align: center;
    color: #9aa5b4;
    font-size: 11px;
    margin-top: 22px;
}

@media (max-width: 700px) {
    .new-user-page {
        padding: 5px;
    }

    .new-user-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .new-user-heading h2 {
        font-size: 25px;
    }

    .new-user-card {
        padding: 21px 17px;
        border-radius: 15px;
    }

    .new-user-grid {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .new-user-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .new-user-cancel,
    .new-user-submit {
        width: 100%;
    }
}


/* Botón cancelar en rojo */
.new-user-page .new-user-actions a,
.new-user-page a.new-user-cancel {
    background: #dc2626;
    color: #ffffff;
    border: 1px solid #dc2626;
}

.new-user-page .new-user-actions a:hover,
.new-user-page a.new-user-cancel:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
}

/* CORRECCION DEFINITIVA: CANCELAR */
a.new-user-cancel,
a.new-user-cancel:link,
a.new-user-cancel:visited {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 1px solid #dc2626 !important;
    box-shadow: 0 5px 12px rgba(220, 38, 38, .18);
}

a.new-user-cancel:hover,
a.new-user-cancel:focus {
    background: #b91c1c !important;
    color: #ffffff !important;
    border-color: #b91c1c !important;
}

/* Cancelar del formulario de edición */
a.cancel-btn {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

a.cancel-btn:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}

/* ===== KONNECTA - FORMULARIO PROFESIONAL ===== */

.nu-hero {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:28px 30px;
    margin-bottom:22px;
    border-radius:18px;
    background:linear-gradient(120deg,#142b4d,#234c78);
    box-shadow:0 10px 25px rgba(20,43,77,.13);
}

.nu-eyebrow {
    color:#ffb36d;
    font-size:10px;
    font-weight:800;
    letter-spacing:2px;
}

.nu-hero h2 {
    color:#fff;
    font-size:27px;
    margin:9px 0 5px;
    font-weight:800;
}

.nu-hero p {
    color:#d5e1ef;
    margin:0;
    font-size:13px;
}

.nu-back {
    color:#fff;
    text-decoration:none;
    padding:11px 16px;
    border:1px solid rgba(255,255,255,.28);
    border-radius:10px;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}

.nu-back:hover {
    background:rgba(255,255,255,.12);
}

.nu-form {
    display:flex;
    flex-direction:column;
    gap:18px;
}

.nu-card {
    background:#fff;
    border:1px solid #e8edf4;
    border-radius:17px;
    padding:26px 29px;
    box-shadow:0 7px 24px rgba(30,50,80,.045);
}

.nu-card-heading {
    display:flex;
    align-items:center;
    gap:14px;
    padding-bottom:19px;
    margin-bottom:22px;
    border-bottom:1px solid #edf1f6;
}

.nu-icon {
    width:43px;
    height:43px;
    flex-shrink:0;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:#eaf1fc;
    color:#24548a;
    font-size:14px;
    font-weight:850;
}

.nu-icon-orange {
    background:#fff0e5;
    color:#e87924;
}

.nu-icon-blue {
    background:#e7f5fb;
    color:#1684a8;
}

.nu-card-heading h3 {
    color:#172b49;
    font-size:16px;
    font-weight:800;
    margin:0 0 5px;
}

.nu-card-heading p {
    color:#8491a4;
    font-size:12px;
    margin:0;
}

.nu-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:21px;
}

.nu-field {
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:0;
}

.nu-full {
    grid-column:1/-1;
}

.nu-field label {
    color:#263a58;
    font-size:12px;
    font-weight:800;
}

.nu-field input,
.nu-field select {
    width:100%;
    min-height:48px;
    box-sizing:border-box;
    border:1px solid #dce4ef;
    border-radius:10px;
    background:#f9fbfd;
    color:#243750;
    padding:12px 14px;
    font-size:13px;
    outline:none;
    transition:.2s ease;
}

.nu-field input:focus,
.nu-field select:focus {
    border-color:#e98a43;
    background:#fff;
    box-shadow:0 0 0 4px rgba(233,138,67,.12);
}

.nu-field small {
    color:#8996a8;
    font-size:11px;
}

.nu-field select[multiple] {
    min-height:145px;
    padding:10px;
}

.nu-field select[multiple] option {
    padding:9px;
    border-radius:5px;
}

.nu-field .errorlist,
.nu-errors {
    color:#c62828;
    font-size:12px;
    margin:0;
    padding-left:17px;
}

.nu-actions {
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:13px;
    padding:20px 5px 5px;
}

.nu-cancel,
.nu-submit {
    min-height:46px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:0 22px;
    border-radius:10px;
    font-size:13px;
    font-weight:750;
    text-decoration:none;
    box-sizing:border-box;
    transition:all .2s ease;
}

.nu-cancel {
    color:#fff !important;
    background:linear-gradient(135deg,#ef5350,#b71c1c);
    border:1px solid #c62828;
    box-shadow:0 5px 13px rgba(198,40,40,.16);
}

.nu-cancel:hover {
    background:linear-gradient(135deg,#e53935,#991b1b);
    transform:translateY(-1px);
}

.nu-submit {
    color:#fff;
    background:linear-gradient(135deg,#f29a4a,#e56c20);
    border:0;
    cursor:pointer;
    box-shadow:0 6px 15px rgba(229,108,32,.2);
}

.nu-submit:hover {
    filter:brightness(.96);
    transform:translateY(-1px);
}

.nu-footer {
    color:#9aa5b4;
    text-align:center;
    font-size:11px;
    margin:20px 0;
}

@media(max-width:700px) {
    .nu-hero {
        align-items:flex-start;
        flex-direction:column;
        padding:22px;
    }

    .nu-hero h2 {
        font-size:23px;
    }

    .nu-card {
        padding:21px 17px;
    }

    .nu-grid {
        grid-template-columns:1fr;
        gap:17px;
    }

    .nu-full {
        grid-column:auto;
    }

    .nu-actions {
        flex-direction:column-reverse;
        align-items:stretch;
    }

    .nu-cancel,
    .nu-submit {
        width:100%;
    }
}

/* ===== KONNECTA - DISEÑO BLANCO, AZUL Y NARANJA ===== */

.new-user-page {
    max-width: 1100px;
    background: #f3f6fb;
    border: 1px solid #e2e9f2;
    border-radius: 18px;
    padding: 20px;
    color: #203653;
}

.nu-hero {
    background: linear-gradient(120deg,#17375e,#285b8b);
    border-radius: 14px;
    padding: 27px 28px;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px rgba(23,55,94,.13);
}

.nu-eyebrow {
    color: #ffbd80;
}

.nu-hero h2 {
    color: #ffffff;
    font-size: 28px;
}

.nu-hero p {
    color: #dce9f6;
}

.nu-back {
    background: #ffffff;
    color: #24476d;
    border: 1px solid #ffffff;
}

.nu-back:hover {
    background: #fff1e4;
    color: #d66b20;
}

.nu-form {
    gap: 16px;
}

.nu-card {
    background: #ffffff;
    border: 1px solid #e3eaf2;
    border-radius: 14px;
    padding: 25px 27px;
    box-shadow: 0 5px 18px rgba(29,55,85,.055);
    position: relative;
}

.nu-card-heading {
    border-bottom: 1px solid #edf0f5;
    margin-bottom: 22px;
}

.nu-card-heading h3 {
    color: #193858;
    font-size: 17px;
}

.nu-card-heading p {
    color: #8391a3;
}

.nu-icon {
    background: #fff0df;
    color: #e87924;
    border: 1px solid #ffe0c1;
    border-radius: 12px;
}

.nu-icon-orange {
    background: #eaf2ff;
    color: #285b8b;
    border-color: #d8e6fa;
}

.nu-icon-blue {
    background: #fff0df;
    color: #e87924;
    border-color: #ffe0c1;
}

.nu-field label {
    color: #304966;
    font-size: 13px;
}

.nu-field input,
.nu-field select {
    background: #f9fbfd;
    border: 1px solid #dce5ef;
    border-radius: 9px;
    color: #263d59;
    min-height: 47px;
    font-size: 13px;
}

.nu-field input:focus,
.nu-field select:focus {
    background: #ffffff;
    border-color: #e98a43;
    box-shadow: 0 0 0 3px rgba(233,138,67,.13);
}

.nu-field small {
    color: #8b98a9;
}

.nu-field select[multiple] option {
    background: #ffffff;
    color: #263d59;
    padding: 8px;
}

.nu-actions {
    border-top: 1px solid #dfe7f0;
    padding-top: 22px;
}

.nu-cancel {
    background: linear-gradient(135deg,#ef5350,#b71c1c);
    border: 1px solid #c62828;
    color: #ffffff !important;
    box-shadow: 0 5px 12px rgba(198,40,40,.15);
}

.nu-cancel:hover {
    background: linear-gradient(135deg,#e53935,#991b1b);
}

.nu-submit {
    background: linear-gradient(135deg,#f29a4a,#e56c20);
    border: 1px solid #e87924;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(229,108,32,.19);
}

.nu-submit:hover {
    background: linear-gradient(135deg,#f5a45c,#d95e16);
    filter: none;
}

.nu-footer {
    color: #8493a6;
}

@media(max-width:700px) {
    .new-user-page {
        padding: 11px;
    }

    .nu-hero {
        padding: 21px;
    }

    .nu-card {
        padding: 19px 16px;
    }
}

