/**
 * Espace Notaires - Styles
 */

:root {
    --en-primary: #D80811;
    --en-primary-dark: #b00710;
    --en-text: #1a1a1a;
    --en-text-light: #666666;
    --en-border: #e5e5e5;
    --en-bg: #f5f5f5;
    --en-white: #ffffff;
    --en-success: #10b981;
    --en-error: #ef4444;
    --en-transition: 0.2s ease;
}

/* Auth */
.en-auth {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--en-bg);
}

.en-auth__container {
    width: 100%;
    max-width: 400px;
    background: var(--en-white);
    padding: 40px;
    border: 1px solid var(--en-border);
}

.en-auth__header {
    text-align: center;
    margin-bottom: 32px;
}

.en-auth__title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--en-text);
}

/* Alerts */
.en-alert {
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 14px;
}

.en-alert--error {
    background: #fef2f2;
    color: var(--en-error);
    border: 1px solid #fecaca;
}

.en-alert--success {
    background: #ecfdf5;
    color: var(--en-success);
    border: 1px solid #a7f3d0;
}

/* Forms */
.en-form__group {
    margin-bottom: 20px;
}

.en-form__group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--en-text);
}

.en-form__group--inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.en-form__hint {
    display: block;
    margin-top: 6px;
    color: var(--en-text-light);
    font-size: 12px;
}

.en-password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
}

.en-password-strength[hidden] {
    display: none;
}

.en-password-strength__bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--en-border);
    overflow: hidden;
}

.en-password-strength__bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--en-error);
    transition: width var(--en-transition), background var(--en-transition);
}

.en-password-strength[data-score="2"] .en-password-strength__bar span { background: #f59e0b; }
.en-password-strength[data-score="3"] .en-password-strength__bar span,
.en-password-strength[data-score="4"] .en-password-strength__bar span { background: var(--en-success); }

.en-password-strength__label {
    min-width: 70px;
    text-align: right;
    color: var(--en-text-light);
}

.en-folder-access-lock[hidden] {
    display: none !important;
}

.en-access-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 0;
    padding: 12px 14px;
    background: rgba(216, 8, 17, 0.08);
    border: 1px solid rgba(216, 8, 17, 0.28);
    color: var(--en-text);
    font-size: 14px;
    line-height: 1.45;
}

.en-access-notice[hidden] {
    display: none !important;
}

.en-access-notice svg,
.en-access-notice path {
    display: block;
    flex: 0 0 18px;
    width: 18px !important;
    height: 18px !important;
    margin-top: 1px;
    fill: var(--en-primary) !important;
    stroke: none !important;
}

.en-form__footer {
    text-align: center;
    margin-top: 20px;
}

.en-form__footer a,
.en-form__link {
    color: var(--en-primary);
    text-decoration: none;
    font-size: 14px;
}

.en-form__footer a:hover,
.en-form__link:hover {
    text-decoration: underline;
}

.en-input,
.en-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px !important;
    color: var(--en-text);
    background: var(--en-white);
    border: 1px solid var(--en-border);
    transition: border-color var(--en-transition);
}

.en-select {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzdweCIgaGVpZ2h0PSI0cHgiIHZpZXdCb3g9IjAgMCAzNyA0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA2MS4yICg4OTY1MykgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgICA8dGl0bGU+QXJ0Ym9hcmQ8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iQXJ0Ym9hcmQiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnJvdy1SaWdodCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTUuMDAwMDAwLCAwLjAwMDAwMCkiIGZpbGw9IiMzNDMzNTIiPgogICAgICAgICAgICA8cGF0aCBkPSJNMy44MDM4OTIyMiwzLjg3MiBMNi44NzQyNTE1LDAuNzU3MzMzMzMzIEM3LjA0MTkxNjE3LDAuNTc2IDcuMDQxOTE2MTcsMC4yOTg2NjY2NjcgNi44NzQyNTE1LDAuMTI4IEM2LjcwNjU4NjgzLC0wLjA0MjY2NjY2NjcgNi40MjM2NTI2OSwtMC4wNDI2NjY2NjY3IDYuMjU1OTg4MDIsMC4xMjggTDMuNSwyLjkzMzMzMzMzIEwwLjc0NDAxMTk3NiwwLjEyOCBDMC41NjU4NjgyNjMsLTAuMDQyNjY2NjY2NyAwLjI5MzQxMzE3NCwtMC4wNDI2NjY2NjY3IDAuMTI1NzQ4NTAzLDAuMTI4IEMtMC4wNDE5MTYxNjc3LDAuMjk4NjY2NjY3IC0wLjA0MTkxNjE2NzcsMC41NzYgMC4xMjU3NDg1MDMsMC43NTczMzMzMzMgTDMuMTg1NjI4NzQsMy44NzIgQzMuMzYzNzcyNDYsNC4wNDI2NjY2NyAzLjYzNjIyNzU0LDQuMDQyNjY2NjcgMy44MDM4OTIyMiwzLjg3MiBaIiBpZD0iUGF0aCI+PC9wYXRoPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+) !important;
    background-position-x: 100% !important;
    background-position-y: 50% !important;
    background-repeat: no-repeat !important;
    background-size: 50px !important;
}

.en-input:focus,
.en-select:focus {
    outline: none;
    border-color: var(--en-text);
}

.en-auth .en-input:-webkit-autofill,
.en-auth .en-input:-webkit-autofill:hover,
.en-auth .en-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--en-text);
    box-shadow: 0 0 0 1000px var(--en-white) inset;
    transition: background-color 9999s ease-out;
}

.en-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.en-checkbox input {
    width: 16px;
    height: 16px;
}

/* Buttons */
.en-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--en-transition);
}

.en-btn--primary {
    background: var(--en-primary);
    color: var(--en-white);
}

.en-btn--primary:hover {
    background: var(--en-primary-dark);
}

.en-btn--secondary {
    background: var(--en-white);
    color: var(--en-text);
    border: 1px solid var(--en-border);
}

.en-btn--secondary:hover {
    border-color: var(--en-text);
}

.en-btn--small {
    padding: 8px 16px;
    font-size: 13px;
}

.en-btn--full {
    width: 100%;
}

/* Dashboard */
.en-dashboard {
    background: var(--en-bg);
    min-height: 100vh;
    border: 1px solid var(--en-border);
    margin-top: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.en-login-page main,
.en-login-page .main-content,
.en-login-page .site-content,
.en-login-page .entry-content,
.en-login-page #main,
.en-login-page .content-area {
    background: var(--en-bg);  /* #f5f5f5 */
}



.en-dashboard__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--en-white);
    border-bottom: 1px solid var(--en-border);
}

.en-dashboard__title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.en-dashboard__header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.en-dashboard__user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.en-dashboard__name {
    color: var(--en-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.en-dashboard__role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--en-text-light);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.en-dashboard__role::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--en-primary);
}

.en-dashboard__content {
    display: flex;
    min-height: calc(100vh - 65px);
}

/* Sidebar */
.en-sidebar {
    width: 360px;
    min-width: 360px;
    background: var(--en-white);
    border-right: 1px solid var(--en-border);
    overflow-y: auto;
}

.en-sidebar__header {
    padding: 20px 16px 12px;
    border-bottom: 1px solid var(--en-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.en-sidebar__title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--en-text-light);
    margin: 0;
}

.en-sidebar__add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--en-bg);
    border: 1px solid var(--en-border);
    cursor: pointer;
    color: var(--en-text-light);
    transition: all var(--en-transition);
}

.en-sidebar__add:hover {
    background: var(--en-primary);
    border-color: var(--en-primary);
    color: var(--en-white);
}

.en-sidebar__nav {
    padding: 8px 0;
}

.en-folder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--en-text);
    text-decoration: none;
    font-size: 14px;
    transition: background var(--en-transition);
}

.en-folder-item:hover {
    background: var(--en-bg);
}

.en-folder-item.active {
    background: #fef2f2;
    color: var(--en-primary);
}

.en-folder-item svg {
    flex-shrink: 0;
}

.en-folder-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: var(--en-text-light);
    line-height: 0;
    cursor: pointer;
}

.en-folder-item.active .en-folder-toggle {
    color: inherit;
}

.en-folder-toggle--empty {
    cursor: default;
}

.en-folder-toggle svg {
    display: block;
    transition: transform 0.15s ease;
}

.en-folder-toggle svg,
.en-folder-toggle svg path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.en-folder-node.is-open > .en-folder-item .en-folder-toggle svg {
    transform: rotate(90deg);
}

.en-folder-children {
    display: none;
    padding-left: 16px;
}

.en-folder-node.is-open > .en-folder-children {
    display: block;
}

.en-folder-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.en-folder-item span.en-folder-toggle,
.en-folder-item .en-folder-toggle {
    flex: 0 0 18px;
    width: 18px;
    max-width: 18px;
    overflow: visible;
}

.en-folder-item__link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.en-folder-menu {
    position: relative;
    flex: 0 0 auto;
}

.en-folder-menu__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--en-text-light);
    cursor: pointer;
}

.en-folder-menu__trigger:hover,
.en-folder-menu__trigger:focus-visible,
.en-folder-menu.is-open .en-folder-menu__trigger {
    color: var(--en-text);
    background: rgba(0, 0, 0, 0.05);
}

.en-folder-menu__trigger svg,
.en-folder-menu__trigger svg circle {
    display: block;
    fill: currentColor !important;
    stroke: none !important;
}

.en-folder-menu__panel {
    min-width: 148px;
    padding: 4px;
    background: var(--en-white);
    border: 1px solid var(--en-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.en-folder-menu__panel[hidden] {
    display: none !important;
}

.en-folder-menu__item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: var(--en-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.en-folder-menu__item:hover,
.en-folder-menu__item:focus-visible {
    background: var(--en-bg);
}

.en-folder-menu__item--danger,
.en-folder-menu__item--danger:hover,
.en-folder-menu__item--danger:focus-visible {
    color: var(--en-error);
}

.en-folder-warning {
    margin: 0;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--en-text);
    font-size: 14px;
    line-height: 1.5;
}

.en-folder-warning__name {
    margin: 12px 0 0;
    font-size: 15px;
    font-weight: 600;
}

.en-btn--danger {
    background: var(--en-error);
    color: var(--en-white);
}

.en-btn--danger:hover {
    background: #dc2626;
}

.en-folder-item__lock {
    color: var(--en-text-light);
}

.en-folder-item__count {
    font-size: 12px;
    color: var(--en-text-light);
    background: var(--en-bg);
    padding: 2px 8px;
    max-width: 30px;
    text-align: center;
}

/* Main */
.en-main {
    flex: 1;
    padding: 24px;
    overflow-x: auto;
}

/* Toolbar */
.en-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.en-toolbar__left {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.en-toolbar__right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.en-dropdown {
    position: relative;
    width: auto;
    min-width: 148px;
}

.en-dropdown__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
}

.en-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 10px 0 14px;
    border: 1px solid #e4e4e4;
    border-radius: 0 !important;
    background: var(--en-white);
    color: var(--en-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: none;
}

.en-dropdown__trigger:hover,
.en-dropdown.is-open .en-dropdown__trigger {
    border-color: #d0d0d0;
    background: var(--en-white);
    color: var(--en-text);
}

.en-dropdown--field {
    display: block;
    width: 100%;
    min-width: 0;
}

.en-dropdown--field .en-dropdown__trigger {
    min-height: 46px;
    height: auto;
    padding: 12px 10px 12px 16px;
    font-size: 14px;
    font-weight: 400;
}

.en-dropdown__value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.en-dropdown__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.en-dropdown__lock {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px;
    color: var(--en-text-light);
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
}

.en-dropdown__lock[hidden] {
    display: none !important;
}

.en-dropdown__lock path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.en-dropdown__chevron {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px;
    fill: currentColor !important;
    color: #8a8a8a;
    transition: transform 0.2s ease;
}

.en-dropdown__chevron path {
    fill: currentColor !important;
}

.en-dropdown.is-open .en-dropdown__chevron {
    transform: rotate(180deg);
}

.en-dropdown__menu {
    position: fixed;
    z-index: 100002;
    display: block;
    margin: 0 !important;
    padding: 6px !important;
    list-style: none !important;
    background: var(--en-white);
    border: 1px solid #ececec;
    border-radius: 0 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    max-height: 260px;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
}

.en-dropdown.is-open .en-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.en-dropdown__menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.en-dropdown__option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--en-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: none;
}

.en-dropdown__option:hover,
.en-dropdown__option:focus {
    background: #f5f5f5;
    color: var(--en-text);
    outline: none;
}

.en-dropdown__option.is-selected {
    font-weight: 600;
    color: var(--en-primary);
    background: rgba(216, 8, 17, 0.06);
}

.en-search {
    position: relative;
}

.en-search input {
    padding-right: 40px;
}

.en-search svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--en-text-light);
    pointer-events: none;
}

/* Documents */
.en-documents {
    background: var(--en-white);
    border: 1px solid var(--en-border);
}

.en-documents__row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--en-border);
    transition: background var(--en-transition);
}

.en-documents__body .en-documents__row:last-child {
    border-bottom: none;
}

.en-documents__row:hover {
    background: var(--en-bg);
}

.en-documents__row--folder {
    color: var(--en-text);
    text-decoration: none;
}

.en-documents__row--folder:hover .en-documents__link {
    color: var(--en-primary);
}

.en-documents__icon {
    display: flex;
    flex-shrink: 0;
}

.en-documents__icon--folder {
    color: var(--en-text-light);
}

/* Dossiers réservés au comité : seuls à apparaître en rouge. */
.en-documents__row--restricted .en-documents__icon--folder,
.en-documents__row--restricted .en-folder-item__lock {
    color: var(--en-primary);
}

.en-documents__name {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.en-documents__link {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--en-text);
    text-decoration: none;
    font-weight: 500;
}

.en-documents__link:hover {
    color: var(--en-primary);
}

.en-documents__ext {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--en-text-light);
    white-space: nowrap;
}

.en-documents__meta {
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--en-text-light);
    white-space: nowrap;
}

.en-documents__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
}

.en-documents__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--en-text-light);
    transition: color var(--en-transition);
}

.en-documents__action:hover {
    color: var(--en-text);
}

.en-documents__action--danger:hover {
    color: var(--en-error);
}

.en-documents__empty {
    padding: 48px;
    text-align: center;
    color: var(--en-text-light);
}

/* File Upload */
.en-file-upload {
    position: relative;
    border: 2px dashed var(--en-border);
    padding: 32px;
    text-align: center;
    transition: border-color var(--en-transition);
}

.en-file-upload:hover {
    border-color: var(--en-text-light);
}

.en-file-upload__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.en-file-upload__placeholder {
    color: var(--en-text-light);
}

.en-file-upload__placeholder svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.en-file-upload__placeholder p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.en-file-upload__placeholder small {
    display: block;
    font-size: 12px;
}

.en-file-upload__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.en-file-upload__name {
    font-size: 14px;
    font-weight: 500;
}

.en-file-upload__remove {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--en-text-light);
}

.en-file-upload__remove:hover {
    color: var(--en-error);
}

/* Modal */
.en-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.en-modal.active {
    display: flex;
}

.en-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.en-modal__content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--en-white);
    overflow: auto;
    margin: 24px;
}

.en-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--en-border);
}

.en-modal__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.en-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--en-text-light);
    line-height: 1;
}

.en-modal__close:hover {
    color: var(--en-text);
}

.en-modal__body {
    padding: 24px;
}

.en-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--en-border);
}

/* Responsive */
@media (max-width: 768px) {
    .en-dashboard {
        max-width: none;
        margin-top: 12px;
        border-top: 0;
        border-left: 0;
        border-right: 0;
    }

    .en-dashboard__header {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 0;
    }

    .en-dashboard__header-left,
    .en-dashboard__header-right {
        flex: 1 1 100%;
        min-width: 0;
    }

    .en-dashboard__title {
        font-size: 22px;
        line-height: 1.15;
    }

    .en-dashboard__header-right {
        justify-content: space-between;
        gap: 12px;
    }

    .en-dashboard__user {
        align-items: flex-start;
        text-align: left;
        min-width: 0;
    }

    .en-dashboard__header-right .en-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 12px;
    }

    .en-dashboard__content {
        flex-direction: column;
    }
    
    .en-sidebar {
        width: 100%;
        min-width: 0;
        max-height: none;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid var(--en-border);
    }
    
    .en-sidebar__header {
        padding: 20px 0;
    }

    .en-sidebar__nav {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px 0;
        gap: 8px;
    }
    
    .en-folder-item {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 12px;
        background: var(--en-bg);
    }

    .en-folder-node,
    .en-folder-node.is-open > .en-folder-children {
        display: contents;
    }

    .en-folder-toggle--empty {
        display: none;
    }

    .en-folder-item span {
        flex: 0 1 auto;
        overflow: visible;
        text-overflow: unset;
    }
    
    .en-main {
        padding: 16px;
        overflow-x: hidden;
    }

    .en-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .en-toolbar__left {
        max-width: none;
        min-width: 0;
    }
    
    .en-toolbar__right {
        flex-wrap: nowrap;
        gap: 8px;
        min-width: 0;
    }

    .en-toolbar__right .en-dropdown {
        flex: 1 1 auto;
        min-width: 0;
    }

    .en-toolbar__right .en-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 14px;
    }
    
    .en-documents__row {
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 4px 8px;
    }

    .en-documents__meta {
        order: 3;
        flex-basis: 100%;
        padding-left: 32px;
        font-size: 12px;
    }

    .en-documents__actions {
        gap: 0;
    }
    
    .en-modal__content {
        margin: 16px;
    }

    .en-auth {
        min-height: 0;
        align-items: flex-start;
        padding: 16px 0;
    }

    .en-auth__container {
        padding: 24px 20px;
    }

    .en-auth__header {
        margin-bottom: 20px;
    }

    .en-auth__title {
        font-size: 22px;
    }

    .en-auth .en-alert {
        margin-bottom: 16px;
        padding: 10px 12px;
    }

    .en-auth .en-form__group {
        margin-bottom: 14px;
    }

    .en-auth .en-form__group label {
        margin-bottom: 6px;
    }

    .en-auth .en-input {
        padding: 10px 12px;
        font-size: 16px !important;
    }

    .en-auth .en-form__group--inline {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .en-auth .en-checkbox {
        font-size: 13px;
    }

    .en-auth .en-checkbox span {
        white-space: nowrap;
    }

    .en-auth .en-form__link {
        align-self: flex-end;
        font-size: 13px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .en-auth .en-btn {
        padding: 12px 16px;
    }
}
