:root {
    --brand: #4f46e5;
    --brand-dark: #3730a3;
    --brand-soft: #eef2ff;
    --ink: #172033;
    --muted: #6b7280;
    --line: #e8eaf0;
    --surface: #ffffff;
    --surface-soft: #f7f8fb;
    --danger: #dc2626;
    --success: #0f766e;
    --header-height: 68px;
    --sidebar-width: 300px;
    --shadow-sm: 0 1px 2px rgba(23, 32, 51, .05);
    --shadow-md: 0 16px 40px rgba(23, 32, 51, .13);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--surface-soft);
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: var(--surface-soft);
}

button,
input,
textarea {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(79, 70, 229, .28);
    outline-offset: 2px;
}

.btn,
.btn-large,
.btn-small {
    border-radius: 9px;
    background: var(--brand);
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 650;
}

.btn:hover,
.btn:focus {
    background: var(--brand-dark);
    box-shadow: none;
}

.btn-flat {
    border-radius: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.icon-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #4b5563;
    background: transparent;
    place-items: center;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.icon-button:hover,
.icon-button:focus {
    color: var(--ink);
    background: #f0f2f6;
}

.icon-button .material-icons {
    font-size: 21px;
}

.mobile-only {
    display: none;
}

.admin-menu {
    position: relative;
}

.admin-menu__panel {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 8px);
    right: 0;
    width: 245px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-md);
    height: auto;
    min-height: 0;
    line-height: 1.25;
    overflow: visible;
}

.admin-menu__panel a {
    display: flex;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 9px;
    color: var(--ink);
    align-items: center;
    font-weight: 650;
    height: auto;
    line-height: 1.25;
}

.admin-menu__panel a:hover,
.admin-menu__panel a:focus {
    color: var(--brand);
    background: var(--brand-soft);
}

.admin-menu__panel .material-icons {
    color: var(--brand);
    font-size: 21px;
    height: auto;
    line-height: 1;
}

/* Catálogos administrativos */
.catalog-page {
    min-height: 100vh;
    padding-top: var(--header-height);
    background: #f7f8fb;
    overflow-x: hidden;
}

.catalog-shell {
    width: min(100% - 40px, 980px);
    margin: 38px auto 60px;
}

.catalog-heading {
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
    padding: 4px 0 22px;
    border-bottom: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
}

.catalog-title {
    display: flex;
    gap: 14px;
    min-width: 0;
    align-items: center;
}

.catalog-title-icon {
    display: inline-grid;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, #6259ed, #4338ca);
    box-shadow: 0 10px 24px rgba(79, 70, 229, .22);
    place-items: center;
}

.catalog-title-icon .material-icons {
    font-size: 27px;
}

.catalog-title p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.catalog-heading h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.catalog-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.catalog-toolbar {
    display: flex;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    justify-content: flex-start;
}

.catalog-search-control {
    position: relative;
    width: min(100%, 270px);
}

.catalog-search-control > .material-icons {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12px;
    color: #8a93a4;
    font-size: 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.catalog-search {
    width: 100% !important;
    height: 39px !important;
    margin: 0 !important;
    padding: 0 40px !important;
    border: 1px solid #d8dce6 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.catalog-search::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
}

.catalog-search-clear {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 5px;
    display: inline-grid;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #697386;
    background: transparent;
    transform: translateY(-50%);
    place-items: center;
    cursor: pointer;
}

.catalog-search-clear:hover,
.catalog-search-clear:focus {
    color: var(--ink);
    background: #eef0f5;
}

.catalog-search-clear .material-icons {
    font-size: 19px;
}

.catalog-table-wrap {
    overflow-x: auto;
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
}

.catalog-table th,
.catalog-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    vertical-align: middle;
}

.catalog-table th {
    color: #596174;
    background: #fafbfc;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.catalog-table tbody tr:last-child td {
    border-bottom: 0;
}

.catalog-table tbody tr[data-search]:nth-child(odd) td {
    background: #ffffff;
}

.catalog-table tbody tr[data-search]:nth-child(even) td {
    background: #f7f8fc;
}

.catalog-table tbody tr[data-search]:hover td {
    background: #eef2ff;
}

.catalog-table__actions {
    width: 160px;
    text-align: center !important;
    white-space: nowrap;
}

.catalog-protected {
    display: inline-flex;
    gap: 6px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

.catalog-protected .material-icons {
    color: var(--brand);
    font-size: 18px;
}

.catalog-options {
    position: relative;
    display: inline-block;
    text-align: left;
}

.catalog-options__trigger {
    display: inline-flex;
    gap: 4px;
    height: 36px;
    padding: 0 10px 0 13px;
    border: 1px solid var(--brand);
    border-radius: 8px;
    color: #fff;
    background: var(--brand);
    align-items: center;
    cursor: pointer;
}

.catalog-options__trigger:hover,
.catalog-options__trigger:focus {
    color: #fff;
    border-color: var(--brand-dark);
    background: var(--brand-dark);
}

.catalog-options__trigger .material-icons {
    font-size: 19px;
}

.catalog-options__menu {
    position: fixed;
    z-index: 1600;
    width: 155px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8f7ff;
    box-shadow: var(--shadow-md);
}

.catalog-options__menu a,
.catalog-options__menu button {
    display: flex;
    gap: 9px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    color: var(--ink);
    background: rgba(255, 255, 255, .62);
    align-items: center;
    text-align: left;
    cursor: pointer;
}

.catalog-options__menu a:hover,
.catalog-options__menu a:focus,
.catalog-options__menu button:hover,
.catalog-options__menu button:focus {
    color: var(--brand);
    background: #e9e7ff;
}

.catalog-options__menu button[data-delete] {
    color: var(--danger);
}

.catalog-options__menu .material-icons {
    font-size: 19px;
}

/* M.Dropdown y clases equivalentes a las utilizadas en Yo Cocino. */
.dropdown-opciones.btn,
a.dropdown-opciones.btn,
.dropdown-trigger.dropdown-opciones.btn {
    display: inline-flex !important;
    min-width: 104px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border: 1px solid var(--brand) !important;
    border-radius: 9px !important;
    color: #fff !important;
    background: var(--brand) !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 34px !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-transform: none !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

.dropdown-opciones.btn:hover,
.dropdown-opciones.btn:focus,
.dropdown-opciones.btn:active,
.dropdown-opciones.btn.dropdown-trigger.active {
    color: #fff !important;
    border-color: var(--brand-dark) !important;
    background: var(--brand-dark) !important;
}

.dropdown-content.catalog-options-menu {
    min-width: 104px !important;
    padding: 6px !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    background: #f8f7ff !important;
    box-shadow: var(--shadow-md) !important;
    overflow: hidden !important;
}

.dropdown-content.catalog-options-menu li {
    min-height: 36px !important;
    background: transparent !important;
}

.dropdown-content.catalog-options-menu li > a {
    display: flex !important;
    gap: 8px;
    min-height: 36px !important;
    padding: 0 11px !important;
    border-radius: 8px !important;
    color: var(--ink) !important;
    background: rgba(255, 255, 255, .65) !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 36px !important;
    align-items: center;
    justify-content: flex-start;
}

.dropdown-content.catalog-options-menu li > a:hover,
.dropdown-content.catalog-options-menu li > a:focus {
    color: var(--brand-dark) !important;
    background: #e9e7ff !important;
}

.dropdown-content.catalog-options-menu li > a.catalog-option-danger {
    color: var(--danger) !important;
}

body.confirmation-open {
    overflow: hidden;
}

#modalConfirmacion.demo-confirm-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    width: 100vw !important;
    height: 100vh !important;
    padding: 24px !important;
    background: rgba(15, 23, 42, .58) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: auto !important;
}

#modalConfirmacion.demo-confirm-modal[style*="display: block"],
#modalConfirmacion.demo-confirm-modal[style*="display:block"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#modalConfirmacion .demo-confirm-modal__dialog {
    display: flex;
    width: 100%;
    min-height: 100%;
    padding-top: 72px;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
}

#modalConfirmacion .demo-confirm-modal__content {
    width: min(92vw, 520px);
    padding: 24px 24px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

#modalConfirmacion .demo-confirm-modal__title {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

#modalConfirmacion .demo-confirm-modal__message {
    margin: 0 0 18px;
    color: #374151;
    font-size: .98rem;
    line-height: 1.55;
    text-align: center;
}

#modalConfirmacion .demo-confirm-modal__message strong {
    color: var(--ink);
}

#modalConfirmacion .demo-confirm-modal__check {
    display: flex;
    justify-content: center;
}

#modalConfirmacion .demo-confirm-modal__check label {
    color: #374151;
}

#modalConfirmacion .demo-confirm-modal__check input[type="checkbox"] + span:not(.lever) {
    color: #374151 !important;
}

#modalConfirmacion .demo-confirm-modal__footer {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

#modalConfirmacion .demo-confirm-modal__footer .btn {
    min-width: 120px;
    height: 44px;
    padding: 0 22px;
    border-radius: 9px;
    color: #fff;
    line-height: 44px;
}

#modalConfirmacion #btnCancelDelete {
    border-color: var(--brand);
    background: var(--brand);
}

#modalConfirmacion #btnCancelDelete:hover,
#modalConfirmacion #btnCancelDelete:focus {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
}

#modalConfirmacion #btnConfirmDelete {
    border-color: var(--danger);
    background: var(--danger);
}

#modalConfirmacion #btnConfirmDelete:hover,
#modalConfirmacion #btnConfirmDelete:focus {
    border-color: #b91c1c;
    background: #b91c1c;
}

#modalConfirmacion #btnConfirmDelete:disabled {
    border-color: var(--line) !important;
    color: #9ca3af !important;
    background: var(--surface) !important;
    opacity: .75;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    #modalConfirmacion.demo-confirm-modal {
        padding: 14px !important;
    }

    #modalConfirmacion .demo-confirm-modal__dialog {
        padding-top: 46px;
    }

    #modalConfirmacion .demo-confirm-modal__footer {
        flex-direction: column-reverse;
    }

    #modalConfirmacion .demo-confirm-modal__footer .btn {
        width: 100%;
    }
}

.catalog-action {
    display: inline-grid;
    width: 34px;
    height: 34px;
    margin-left: 5px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: var(--brand);
    background: var(--brand-soft);
    place-items: center;
    cursor: pointer;
}

.catalog-action--danger {
    color: var(--danger);
    background: #fef2f2;
}

.catalog-action .material-icons {
    font-size: 19px;
}

.catalog-empty {
    padding: 42px 20px !important;
    color: var(--muted);
    text-align: center !important;
}

.catalog-form-shell {
    width: min(100% - 40px, 560px);
    margin: 38px auto 60px;
}

.catalog-form-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.catalog-form-card .browser-default {
    width: 100%;
    height: 42px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #9e9e9e;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.catalog-form-card .input-field {
    margin: 20px 0 24px;
}

.catalog-form-card .input-field .prefix,
.catalog-form-card .input-field .prefix.active {
    display: grid;
    top: 0;
    width: 3rem;
    height: 3rem;
    color: var(--brand);
    font-size: 23px;
    line-height: 1;
    place-items: center;
}

.form-select-field {
    display: flex;
    gap: 0;
    width: 100%;
    margin: 20px 0 24px;
    align-items: flex-end;
}

.form-select-field__icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    color: var(--brand);
    font-size: 23px;
    line-height: 1;
    place-items: center;
}

.form-select-field__control {
    min-width: 0;
    flex: 1 1 auto;
}

.form-select-field__control > label {
    display: block;
    margin-bottom: 2px;
    color: var(--brand);
    font-size: .8rem;
    font-family: inherit;
    font-weight: 700;
    transition: color .18s ease;
}

.form-select-field select.browser-default {
    display: block;
    width: 100%;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #d8dce6;
    border-radius: 10px;
    color: var(--ink);
    background: transparent;
    box-shadow: none;
    outline: 0;
}

.form-select-field:focus-within .form-select-field__icon,
.form-select-field:focus-within .form-select-field__control > label {
    color: var(--brand);
}

.form-select-field select.browser-default:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, .14);
}

.form-select-field select.browser-default.select-nativo.error-focus {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, .14) !important;
}

.catalog-description,
.catalog-form-card textarea.materialize-textarea.catalog-description {
    height: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
    overflow-y: auto !important;
    resize: none !important;
    line-height: 1.45;
}

.catalog-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    justify-content: flex-end;
}

.btn-danger,
a.btn-danger,
button.btn-danger {
    color: #fff !important;
    background: var(--danger) !important;
    border-color: var(--danger) !important;
}

.btn-secondary,
button.btn-secondary,
a.btn-secondary {
    color: var(--brand) !important;
    border: 1px solid #c7d2fe !important;
    background: var(--brand-soft) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
button.btn-secondary:hover,
button.btn-secondary:focus,
a.btn-secondary:hover,
a.btn-secondary:focus {
    color: #fff !important;
    border-color: var(--brand) !important;
    background: var(--brand) !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
a.btn-danger:hover,
a.btn-danger:focus,
a.btn-danger:active,
button.btn-danger:hover,
button.btn-danger:focus,
button.btn-danger:active {
    color: #fff !important;
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

.catalog-help {
    margin: -10px 0 22px;
    color: var(--muted);
    font-size: 14px;
}

.catalog-user-found {
    margin: 0 0 22px;
    padding: 13px 15px;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    color: #3730a3;
    background: #eef2ff;
}

@media (max-width: 620px) {
    .catalog-shell,
    .catalog-form-shell {
        width: min(100% - 24px, 980px);
        margin-top: 22px;
    }

    .catalog-heading {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .catalog-heading .btn {
        margin-left: auto;
    }

    .catalog-heading h1 {
        font-size: 25px;
    }

    .catalog-table th,
    .catalog-table td {
        padding: 12px;
    }
}

/* Login */
.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 12%, rgba(79, 70, 229, .16), transparent 30%),
        radial-gradient(circle at 88% 86%, rgba(15, 118, 110, .12), transparent 26%),
        #f7f8fb;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    padding: 32px 20px;
    place-items: center;
}

@media (min-width: 821px) {
    .company-selection-page .auth-shell {
        min-height: 100vh;
        padding-top: clamp(128px, 15vh, 150px);
        place-items: start center;
    }

    .company-switch-page .auth-shell {
        min-height: calc(100vh - var(--header-height));
        padding-top: clamp(64px, 8vh, 90px);
        place-items: start center;
    }
}

.auth-card {
    width: min(100%, 430px);
    padding: 42px 42px 38px;
    border: 1px solid rgba(229, 231, 235, .9);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-md);
}

.brand-mark,
.app-brand__mark {
    display: inline-grid;
    color: #fff;
    background: linear-gradient(145deg, #6259ed, #4338ca);
    place-items: center;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    box-shadow: 0 10px 24px rgba(79, 70, 229, .27);
}

.brand-mark .material-icons {
    font-size: 31px;
}

.auth-brand {
    display: flex;
    gap: 14px;
    margin-bottom: 17px;
    align-items: center;
    justify-content: center;
}

.auth-brand h1 {
    margin: 0;
    color: var(--ink);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.auth-heading {
    margin-bottom: 32px;
    text-align: center;
}

.auth-card .input-field {
    margin: 20px 0 24px;
}

.auth-card .input-field .prefix {
    display: grid;
    top: 0;
    height: 3rem;
    color: var(--brand);
    font-size: 23px;
    line-height: 1;
    place-items: center;
}

.auth-card .input-field .prefix.active {
    color: var(--brand);
}

.auth-card input:not([type]):focus:not([readonly]),
.auth-card input[type=text]:focus:not([readonly]),
.auth-card input[type=tel]:focus:not([readonly]),
.auth-card input[type=password]:focus:not([readonly]) {
    border-bottom-color: var(--brand);
    box-shadow: 0 1px 0 0 var(--brand);
}

.auth-card input:not([type]):focus:not([readonly]) + label,
.auth-card input[type=text]:focus:not([readonly]) + label,
.auth-card input[type=tel]:focus:not([readonly]) + label,
.auth-card input[type=password]:focus:not([readonly]) + label {
    color: var(--brand);
}

.auth-card input[type=tel] + label.active,
.auth-card input[type=tel].valid + label,
.auth-card input[type=tel].invalid + label {
    color: var(--brand) !important;
}

.auth-card input[type=tel].valid:not(:focus),
.auth-card input[type=tel].invalid:not(:focus) {
    border-bottom-color: #9e9e9e !important;
    box-shadow: none !important;
}

.auth-card--change-password .input-field input:focus + label,
.auth-card--change-password .input-field input:not(:placeholder-shown) + label,
.auth-card--change-password .input-field label.active {
    transform: translateY(-14px) scale(.8);
    transform-origin: 0 0;
}

.auth-submit {
    display: block;
    width: min(100%, 216px);
    height: 46px;
    margin: 8px auto 0;
    line-height: 46px;
}

/* En la selección de empresa, los iconos no desplazan el texto del centro. */
.company-selection-page .auth-submit {
    position: relative;
    padding-right: 48px !important;
    padding-left: 48px !important;
    text-align: center !important;
}

.company-selection-page .auth-submit > .material-icons {
    position: absolute;
    top: 50%;
    width: 24px;
    margin: 0 !important;
    line-height: 1;
    transform: translateY(-50%);
}

.company-selection-page .auth-submit > .material-icons.left { left: 16px; }
.company-selection-page .auth-submit > .material-icons.right { right: 16px; }

.auth-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    align-items: center;
    justify-content: center;
}

.auth-form-actions .btn,
.auth-form-actions .auth-submit {
    width: auto;
    min-width: 128px;
    height: 44px;
    margin: 0;
    padding: 0 16px;
    line-height: 44px;
}

.turnstile-container {
    width: min(100%, 300px);
    min-height: 65px;
    margin: 18px auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.turnstile-container .cf-turnstile {
    width: 100%;
}

.turnstile-container--contract {
    margin-top: 22px;
    margin-bottom: 2px;
}

@media (max-width: 430px) {
    .auth-form-actions {
        gap: 8px;
    }

    .auth-form-actions .btn,
    .auth-form-actions .auth-submit {
        min-width: 0;
        flex: 1 1 0;
        padding: 0 9px;
        font-size: 12px;
    }
}

.form-alert {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: -10px 0 22px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #991b1b;
    background: #fef2f2;
    font-size: 14px;
}

.form-alert .material-icons {
    font-size: 19px;
}

.form-validation-banner {
    display: flex;
    gap: 9px;
    width: 100%;
    margin: 0 0 18px;
    padding: 10px 13px;
    border: 1px solid rgba(220, 38, 38, .24);
    border-radius: 10px;
    color: #b42318;
    background: rgba(220, 38, 38, .08);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    align-items: center;
    justify-content: center;
    text-align: center;
    scroll-margin-top: calc(var(--header-height) + 18px);
}

.edit-lock-banner { display:flex; gap:10px; align-items:center; justify-content:center; margin:0 0 14px; padding:10px 14px; border:1px solid #c7d2fe; border-radius:10px; color:var(--brand-dark); background:var(--brand-soft); text-align:center; }
.edit-lock-banner[hidden] { display:none; }
.edit-lock-banner .material-icons { color:var(--brand); }
.edit-lock-banner .btn-flat { color:var(--brand); font-weight:800; }

.form-validation-banner .material-icons {
    flex: 0 0 auto;
    font-size: 20px;
}

.task-modal .form-validation-banner {
    margin-top: 4px;
}

input.error-focus:not([type="checkbox"]):not([type="radio"]),
textarea.error-focus,
select.error-focus {
    border-color: var(--danger) !important;
    border-bottom-color: var(--danger) !important;
    box-shadow: 0 1px 0 0 var(--danger) !important;
}

select.browser-default.error-focus {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, .14) !important;
}

.input-field:has(input.error-focus) > label,
.input-field:has(textarea.error-focus) > label,
.input-field:has(input.error-focus) > .prefix,
.input-field:has(textarea.error-focus) > .prefix {
    color: var(--danger) !important;
}

.field-with-voice:has(.error-focus),
.calendar-datetime-grid:has(.error-focus) {
    --validation-error-color: var(--danger);
}

form .input-field input:not(.error-focus):focus:not([readonly]),
form .input-field textarea:not(.error-focus):focus:not([readonly]) {
    border-bottom-color: var(--brand) !important;
    box-shadow: 0 1px 0 0 var(--brand) !important;
}

form .input-field input:not(.error-focus):focus:not([readonly]) + label,
form .input-field textarea:not(.error-focus):focus:not([readonly]) + label,
form .input-field:focus-within > label {
    color: var(--brand) !important;
}

form .input-field:focus-within > .prefix {
    color: var(--brand) !important;
}

.form-success {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: -10px 0 22px;
    padding: 12px 14px;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    color: #065f46;
    background: #ecfdf5;
    font-size: 14px;
}

.form-success .material-icons {
    font-size: 19px;
}

.form-alert > span,
.form-validation-banner > span,
.form-success > span {
    text-align: center;
}

.auth-description {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.auth-secondary-action {
    margin-top: 16px;
    text-align: center;
}

.auth-remember {
    display: flex;
    margin: -4px 0 18px;
    justify-content: center;
}

.auth-remember label,
.auth-remember [type="checkbox"] + span:not(.lever) {
    color: var(--ink);
}

.auth-remember [type="checkbox"] + span:not(.lever) {
    height: auto;
    min-height: 22px;
    padding-left: 30px;
    font-size: 14px;
    line-height: 22px;
}

.auth-secondary-action a {
    color: var(--brand);
    font-size: 14px;
    font-weight: 650;
}

/* Application shell */
.app-page {
    min-height: 100vh;
    overflow: hidden;
}

.app-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: var(--header-height);
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.app-notice {
    position: fixed;
    z-index: 990;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: flex;
    min-height: 32px;
    padding: 3px 16px;
    color: #fff;
    background: #16a34a;
    box-shadow: 0 2px 5px rgba(22, 163, 74, .18);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity .16s ease;
}

.app-notice.is-visible {
    opacity: 1;
}

.app-notice.is-error {
    background: var(--danger);
    box-shadow: 0 2px 5px rgba(220, 38, 38, .18);
}

.app-brand {
    display: inline-flex;
    gap: 11px;
    color: var(--ink);
    align-items: center;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.app-brand:hover,
.app-brand:focus {
    color: var(--ink);
}

.app-brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.app-brand__mark .material-icons {
    font-size: 21px;
}

.app-user {
    display: flex;
    gap: 10px;
    align-items: center;
}

.app-user form {
    margin: 0;
}

.app-user .icon-button {
    color: var(--danger);
}

.app-user .icon-button:hover,
.app-user .icon-button:focus {
    color: #b91c1c;
}

.app-user .admin-menu .icon-button {
    color: var(--brand);
}

.app-user .admin-menu .icon-button:hover,
.app-user .admin-menu .icon-button:focus {
    color: var(--brand-dark);
}

.app-user__name {
    max-width: 260px;
    overflow: hidden;
    color: #3f4755;
    font-size: 14px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-layout {
    display: grid;
    height: 100vh;
    padding-top: var(--header-height);
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.project-sidebar {
    height: calc(100vh - var(--header-height));
    padding: 28px 18px 24px;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background: #fbfbfc;
}

.mobile-session-actions {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.mobile-session-actions form {
    margin: 0;
}

.mobile-session-action {
    display: flex;
    width: 100%;
    min-height: 46px;
    margin: 0 0 8px;
    padding: 0 14px;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.mobile-session-action--logout {
    color: var(--danger);
    background: #fff1f2;
}

.mobile-session-action--logout:hover,
.mobile-session-action--logout:focus {
    color: #b91c1c;
    background: #ffe4e6;
}

.admin-mobile-sidebar,
.admin-sidebar-overlay {
    display: none;
}

.admin-mobile-sidebar a.project-item,
.admin-mobile-sidebar a.calendar-sidebar-button,
.admin-mobile-sidebar a.new-project-button {
    text-decoration: none;
}

.sidebar-first-row {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    align-items: center;
}

.sidebar-first-row .calendar-sidebar-button {
    width: auto;
    min-width: 0;
    margin-bottom: 0;
    flex: 1;
}

.mobile-company-context {
    display: none;
}

.new-project-button {
    display: flex;
    width: 100%;
    min-height: 45px;
    gap: 10px;
    margin: 24px 0 18px;
    padding: 0 13px;
    border: 1px dashed #cdd1db;
    border-radius: 11px;
    color: var(--brand);
    align-items: center;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: border .18s ease, background .18s ease;
}

.new-project-button:hover,
.new-project-button:focus {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.new-project-button .material-icons {
    font-size: 20px;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: normal;
    outline: 0 !important;
}

.project-item {
    display: grid;
    width: 100%;
    min-height: 54px;
    padding: 10px 8px;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
    border-left: 0 !important;
    border-radius: 0;
    color: #444c5b;
    align-items: center;
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    grid-template-columns: 20px minmax(0, 1fr) auto 30px;
    gap: 10px;
    text-align: left;
    transition: color .16s ease;
}

.project-item:hover,
.project-item:focus,
.project-item:focus-visible,
.project-item:active {
    color: var(--ink);
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.project-item::before,
.project-item::after {
    display: none !important;
    background: transparent !important;
    content: none !important;
}

.project-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--project-color, var(--brand));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.project-item__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-item__count {
    min-width: 20px;
    padding: 0;
    color: #697180;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.project-handle {
    display: inline-grid;
    width: 30px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #9299a6;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    place-items: center;
    cursor: grab;
    touch-action: none;
}

.project-handle:hover,
.project-handle:focus,
.project-handle:active {
    color: #697180;
    background: #f0f2f5 !important;
}

.project-handle:active {
    cursor: grabbing;
}

.project-handle .material-icons {
    font-size: 19px;
}

.is-sorting-projects {
    cursor: grabbing;
    user-select: none;
}

.is-sorting-projects .project-item {
    touch-action: none;
}

.sidebar-loading {
    padding: 14px 10px;
    color: var(--muted);
    font-size: 13px;
}

.task-main {
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: var(--surface);
}

.task-workspace {
    width: min(100%, 970px);
    min-height: 100%;
    margin: 0 auto;
    padding: 52px 48px 90px;
}

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

.workspace-title {
    display: flex;
    min-width: 0;
    gap: 15px;
    align-items: center;
}

.project-color-large {
    width: 11px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--project-color, var(--brand));
}

.workspace-title h1 {
    max-width: 620px;
    margin: 0;
    overflow: hidden;
    padding-bottom: .1em;
    color: var(--ink);
    font-size: 30px;
    font-weight: 790;
    line-height: 1.2;
    letter-spacing: -.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-creator { margin:2px 0 0 !important; color:var(--muted); font-size:12px; line-height:1.35; }

.workspace-title p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.workspace-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    align-items: center;
}

.add-task-button {
    min-width: 116px;
}

.text-to-list-button {
    display: inline-flex;
    height: 40px;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid #c7d2fe;
    border-radius: 9px;
    color: var(--brand);
    background: var(--brand-soft);
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.text-to-list-button:hover,
.text-to-list-button:focus {
    color: var(--brand-dark);
    background: #e5e7ff;
}

.text-to-list-button .material-icons {
    font-size: 20px;
}

.add-task-symbol {
    display: inline-block;
    margin-right: 8px;
    font-family: Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    vertical-align: -1px;
}

.task-list {
    border-top: 1px solid var(--line);
}

.task-status-toolbar {
    display: flex;
    margin: -26px 0 12px;
    justify-content: flex-end;
}

.task-status-toolbar .calendar-status-select {
    width: 210px;
}

.task-row {
    position: relative;
    display: grid;
    min-height: 66px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
    align-items: center;
    grid-template-columns: 38px minmax(0, 1fr) auto auto;
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.task-row:hover {
    background: #fcfcfd;
}

.task-row.without-complete {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.task-row.is-read-only {
    grid-template-columns: minmax(0, 1fr);
}

.task-row.is-history {
    grid-template-columns: 38px minmax(0, 1fr);
}

.task-history-status {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
}

.task-history-status .material-icons {
    font-size: 21px;
}

.task-history-status--concluida {
    color: var(--brand);
}

.task-history-status--eliminada {
    color: var(--danger);
}

.task-row.is-priority::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 5px;
    border-radius: 999px;
    background: var(--danger);
    content: "";
}

.task-row.is-completing {
    opacity: 0;
    transform: translateX(18px);
}

.task-complete {
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    place-items: center;
    cursor: pointer;
}

.task-complete::before {
    width: 18px;
    height: 18px;
    border: 1.5px solid #a5acb8;
    border-radius: 50%;
    content: "";
    transition: border .15s ease, background .15s ease, box-shadow .15s ease;
}

.task-complete:hover::before,
.task-complete:focus::before {
    border-color: var(--brand);
    background: rgba(79, 70, 229, .08);
    box-shadow: inset 0 0 0 4px #fff;
}

.task-content {
    min-width: 0;
    padding: 5px 10px 5px 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.task-content:hover,
.task-content:focus,
.task-content:focus-visible,
.task-content:active {
    color: var(--ink);
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.task-title {
    display: block;
    overflow: hidden;
    font-size: 14px;
    font-weight: 590;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-description {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-responsible {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--brand);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-order-controls {
    display: flex;
    opacity: 0;
    transition: opacity .16s ease;
}

.task-row:hover .task-order-controls,
.task-row:focus-within .task-order-controls {
    opacity: 1;
}

.task-order-button,
.task-handle {
    display: inline-grid;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #9299a6;
    background: transparent;
    place-items: center;
}

.task-order-button {
    cursor: pointer;
}

.task-order-button:hover,
.task-order-button:focus {
    color: var(--ink);
    background: #f0f2f5;
}

.task-order-button:disabled {
    opacity: .28;
    cursor: default;
}

.task-order-button .material-icons,
.task-handle .material-icons {
    font-size: 19px;
}

.task-handle {
    cursor: grab;
    touch-action: none;
}

.task-handle:active {
    cursor: grabbing;
}

.is-sorting-tasks {
    cursor: grabbing;
    user-select: none;
}

.is-sorting-tasks .task-row {
    touch-action: none;
}

.sortable-ghost {
    opacity: .35;
    background: var(--brand-soft);
}

.sortable-chosen {
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.empty-workspace {
    display: grid;
    width: min(100%, 560px);
    min-height: 100%;
    margin: 0 auto;
    padding: 44px 28px;
    place-content: center;
    justify-items: center;
    text-align: center;
}

.empty-illustration {
    display: grid;
    width: 92px;
    height: 92px;
    margin-bottom: 28px;
    border-radius: 29px;
    color: var(--brand);
    background: var(--brand-soft);
    place-items: center;
    transform: rotate(-3deg);
}

.empty-illustration .material-icons {
    font-size: 45px;
    transform: rotate(3deg);
}

.empty-workspace h1 {
    margin: 4px 0 10px;
    color: var(--ink);
    font-size: 29px;
    font-weight: 780;
    line-height: 1.2;
    letter-spacing: -.04em;
}

.empty-workspace p {
    max-width: 400px;
    margin: 0 0 25px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

@media (min-width: 821px) {
    .empty-workspace {
        padding-top: clamp(52px, 8vh, 88px);
        place-content: start center;
    }
}

.empty-tasks {
    padding: 70px 20px;
    color: var(--muted);
    text-align: center;
}

.empty-task-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: var(--success);
    background: #ecfdf5;
    place-items: center;
}

.empty-task-icon .material-icons {
    font-size: 31px;
}

.empty-tasks h2 {
    margin: 0 0 7px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 720;
}

.empty-tasks p {
    margin: 0 0 14px;
    font-size: 13px;
}

.empty-tasks.is-history p,
.empty-tasks.is-history #emptyNewTask {
    display: none !important;
}

/* Modals and forms */
.modal:not(.datepicker-modal):not(.timepicker-modal) {
    max-height: 90%;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.modal-small {
    width: min(92%, 500px);
}

.task-modal {
    width: min(92%, 680px);
}

.task-modal .modal-footer {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.task-modal .modal-footer .btn,
.task-modal .modal-footer .btn-flat {
    float: none;
    min-width: 112px;
    margin: 0;
    text-align: center;
}

.task-modal .modal-return-button {
    color: #fff;
    background: var(--danger);
}

.task-modal .modal-return-button:hover,
.task-modal .modal-return-button:focus {
    color: #fff;
    background: #b91c1c;
}

.confirm-modal {
    width: min(92%, 480px);
    border-radius: 16px;
}

#confirmModal {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.confirm-modal .modal-heading {
    margin-bottom: 16px;
}

.confirm-modal__message {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
    overflow-wrap: anywhere;
}

.confirm-modal__check {
    display: flex;
    margin-top: 18px;
    justify-content: center;
}

.confirm-modal__check label,
.confirm-modal__check [type="checkbox"] + span:not(.lever) {
    color: var(--ink) !important;
}

.confirm-modal .modal-footer {
    display: flex;
    min-height: 66px;
    gap: 14px;
    padding: 11px 22px 15px;
    border-top: 1px solid var(--line);
    background: #fff;
    align-items: center;
    justify-content: center;
}

.confirm-modal .modal-footer .btn,
.confirm-modal .modal-footer .btn-flat {
    float: none;
    min-width: 112px;
    margin: 0;
    text-align: center;
}

.confirm-modal .modal-return-button {
    color: #fff;
    background: var(--danger);
}

.confirm-modal .modal-return-button:hover,
.confirm-modal .modal-return-button:focus {
    color: #fff;
    background: #b91c1c;
}

.modal:not(.datepicker-modal):not(.timepicker-modal) .modal-content {
    padding: 28px 30px 16px;
}

.modal:not(.datepicker-modal):not(.timepicker-modal) .modal-footer {
    height: auto;
    min-height: 66px;
    padding: 11px 22px 15px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.modal-heading {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    align-items: flex-start;
    justify-content: space-between;
}

.modal-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 24px;
    font-weight: 760;
    letter-spacing: -.035em;
}

.modal:not(.datepicker-modal):not(.timepicker-modal) .input-field {
    margin-top: 24px;
}

.modal:not(.datepicker-modal):not(.timepicker-modal) input[type=text]:focus:not([readonly]),
.modal:not(.datepicker-modal):not(.timepicker-modal) textarea.materialize-textarea:focus:not([readonly]) {
    border-bottom-color: var(--brand);
    box-shadow: 0 1px 0 0 var(--brand);
}

.modal:not(.datepicker-modal):not(.timepicker-modal) input[type=text]:focus:not([readonly]) + label,
.modal:not(.datepicker-modal):not(.timepicker-modal) textarea.materialize-textarea:focus:not([readonly]) + label {
    color: var(--brand);
}

form .input-field > label,
form .input-field > label.active {
    color: var(--brand) !important;
    font-family: inherit;
    font-weight: 700;
}

.modal-icon-field .prefix,
.modal-icon-field .prefix.active {
    color: var(--brand);
    font-size: 22px;
}

.modal-field-heading {
    display: inline-flex;
    gap: 9px;
    align-items: center;
}

.modal-field-heading .material-icons {
    font-size: 21px;
}

.color-fieldset {
    margin: 26px 0 4px;
    padding: 0;
    border: 0;
}

.color-fieldset legend {
    margin-bottom: 14px;
    color: #555e6d;
    font-size: 13px;
    font-weight: 700;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.color-option {
    display: block;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.color-option [type="radio"] + span {
    display: block;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--project-color);
    box-shadow: 0 0 0 1px #d6d9e0;
    transition: transform .15s ease, box-shadow .15s ease;
}

.color-option [type="radio"] + span::before,
.color-option [type="radio"] + span::after {
    display: none;
}

.color-option [type="radio"]:checked + span {
    box-shadow: 0 0 0 2px var(--project-color);
    transform: scale(1.08);
}

.task-priority-fieldset {
    margin: 25px 0 4px;
    padding: 0;
    border: 0;
}

.pending-responsible-field {
    margin-top: 18px;
}

.task-priority-fieldset legend {
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}

.task-priority-options {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.task-priority-option {
    display: inline-flex;
    gap: 9px;
    color: #444c5b;
    align-items: center;
    cursor: pointer;
}

.task-priority-option [type="radio"] + .task-priority-dot {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 2px solid #a5acb8;
    border-radius: 50%;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.task-priority-option [type="radio"] + .task-priority-dot::before,
.task-priority-option [type="radio"] + .task-priority-dot::after {
    display: none;
}

.task-priority-option--priority [type="radio"] + .task-priority-dot {
    border-color: var(--danger);
}

.task-priority-option [type="radio"]:checked + .task-priority-dot {
    box-shadow: inset 0 0 0 4px #fff;
}

.task-priority-option--normal [type="radio"]:checked + .task-priority-dot {
    background: #697180;
}

.task-priority-option--priority [type="radio"]:checked + .task-priority-dot {
    background: var(--danger);
}

.danger-zone {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
}

.danger-text {
    color: var(--danger);
}

.success-text {
    color: var(--brand);
}

.field-with-voice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 10px;
    align-items: center;
}

.field-with-voice--textarea {
    align-items: start;
}

.field-with-voice--textarea .voice-button {
    margin-top: 29px;
}

#taskDescriptionInput,
#calendarTaskDescription {
    min-height: 86px;
    max-height: 180px;
    overflow-y: auto !important;
    resize: none;
    scrollbar-gutter: stable;
}

.voice-button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #d9dce4;
    border-radius: 50%;
    color: var(--brand);
    background: #fff;
    place-items: center;
    cursor: pointer;
    transition: background .17s ease, color .17s ease, border .17s ease, transform .17s ease;
}

.voice-button:hover,
.voice-button:focus {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.voice-button.is-recording {
    border-color: #ef4444;
    color: #fff;
    background: #ef4444;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, .12);
    animation: voice-pulse 1.4s infinite;
}

.voice-button:disabled {
    opacity: .5;
    cursor: wait;
}

.voice-button .material-icons {
    font-size: 21px;
}

.voice-status {
    min-height: 20px;
    color: var(--muted);
    font-size: 12px;
}

.batch-task-help {
    max-width: 500px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.batch-list-field {
    margin-top: 20px;
}

.batch-list-textarea {
    min-height: 180px !important;
    max-height: 230px !important;
    overflow-y: auto !important;
    resize: none;
}

.batch-list-count {
    min-height: 18px;
    margin: 0 0 2px 46px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}

.processing-overlay {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    padding: 24px;
    background: rgba(23, 32, 51, .4);
    backdrop-filter: blur(3px);
    place-items: center;
}

.processing-overlay[hidden] {
    display: none;
}

.processing-card {
    display: grid;
    width: min(100%, 390px);
    gap: 10px;
    padding: 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-md);
    justify-items: center;
    text-align: center;
}

.processing-card strong {
    margin-top: 5px;
    color: var(--ink);
    font-size: 16px;
}

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

/* Calendar */
.calendar-sidebar-button {
    display: flex;
    width: 100%;
    min-height: 46px;
    margin-bottom: 12px;
    padding: 0 13px;
    border: 0;
    border-radius: 10px;
    gap: 11px;
    color: #444c5b;
    background: transparent;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.calendar-sidebar-button:hover,
.calendar-sidebar-button:focus,
.calendar-sidebar-button.is-active {
    color: var(--brand);
    background: var(--brand-soft);
    outline: 0;
}

.calendar-sidebar-button .material-icons {
    color: var(--brand);
    font-size: 21px;
}

.calendar-sidebar-button span {
    font-size: 14px;
    font-weight: 700;
}

.calendar-workspace {
    min-height: 100%;
    padding: 38px 42px 64px;
}

.calendar-workspace.is-initializing {
    visibility: hidden;
}

.calendar-page-heading,
.calendar-header {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.calendar-page-heading {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

.calendar-page-title {
    display: flex;
    gap: 15px;
    align-items: center;
}

.calendar-title-icon {
    display: grid;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, #6259ed, #4338ca);
    box-shadow: 0 10px 24px rgba(79, 70, 229, .2);
    place-items: center;
}

.calendar-title-icon .material-icons {
    font-size: 27px;
}

.calendar-page-title h1 {
    margin: 0;
    color: var(--ink);
    font-size: 29px;
    font-weight: 780;
    line-height: 1.2;
    letter-spacing: -.04em;
}

.calendar-page-title p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.calendar-add-button {
    display: inline-flex;
    min-width: 116px;
    align-items: center;
    justify-content: center;
}

.calendar-header {
    margin-bottom: 16px;
    align-items: flex-start;
}

.calendar-header h2 {
    margin: 7px 0 0;
    color: var(--ink);
    font-size: 19px;
    font-weight: 740;
}

.calendar-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.calendar-status-select {
    width: 148px;
    min-height: 40px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background-color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.calendar-status-select:hover,
.calendar-status-select:focus {
    border-color: rgba(79, 70, 229, .35);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, .10);
    outline: 0;
}

.calendar-nav-button {
    display: inline-flex;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    gap: 5px;
    color: #4b5563;
    background: #fff;
    align-items: center;
    cursor: pointer;
}

.calendar-nav-button:hover,
.calendar-nav-button:focus {
    border-color: rgba(79, 70, 229, .25);
    color: var(--brand);
    background: var(--brand-soft);
    outline: 0;
}

.calendar-nav-button .material-icons {
    font-size: 18px;
}

.calendar-month-pill {
    display: inline-flex;
    min-width: 150px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(79, 70, 229, .14);
    border-radius: 999px;
    color: var(--ink);
    background: var(--brand-soft);
    font-size: 14px;
    font-weight: 750;
    align-items: center;
    justify-content: center;
}

.calendar-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(248, 247, 255, .96));
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-grid--head {
    border-bottom: 1px solid var(--line);
    background: #f5f4ff;
}

.calendar-head-cell {
    padding: 12px 8px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 750;
    text-align: center;
}

.calendar-day {
    display: flex;
    min-width: 0;
    min-height: 138px;
    padding: 9px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    gap: 8px;
    background: rgba(255, 255, 255, .92);
    flex-direction: column;
}

.calendar-grid--body .calendar-day:nth-child(7n) {
    border-right: 0;
}

.calendar-day.is-outside-month {
    background: #f7f7fa;
}

.calendar-day.is-today {
    background: #faf8ff;
    box-shadow: inset 0 0 0 2px rgba(79, 70, 229, .18);
}

.calendar-day__top {
    display: flex;
    align-items: center;
}

.calendar-day__number {
    display: inline-grid;
    width: 29px;
    height: 29px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: var(--brand-soft) !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 750;
    place-items: center;
    cursor: pointer;
}

.calendar-day__number:hover,
.calendar-day__number:focus,
.calendar-day__number:active {
    color: #fff;
    background: var(--brand) !important;
    outline: 0 !important;
}

.calendar-day.is-outside-month .calendar-day__number {
    color: #9aa1ad;
    background: #eceef2 !important;
}

.calendar-day__tasks {
    display: grid;
    min-width: 0;
    gap: 6px;
    align-content: start;
}

.calendar-task-chip {
    display: grid;
    min-width: 0;
    padding: 5px 6px;
    border: 1px solid rgba(79, 70, 229, .12);
    border-radius: 10px;
    background: var(--brand-soft);
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 5px;
    align-items: center;
}

.calendar-task-complete {
    display: grid;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent !important;
    box-shadow: none !important;
    place-items: center;
    cursor: pointer;
}

.calendar-task-complete::before {
    width: 13px;
    height: 13px;
    border: 1.5px solid #979fad;
    border-radius: 50%;
    content: "";
}

.calendar-task-complete:hover::before,
.calendar-task-complete:focus::before {
    border-color: var(--brand);
    background: rgba(79, 70, 229, .12);
}

.calendar-task-history-icon {
    font-size: 18px;
    text-align: center;
}

.calendar-task-history-icon.is-completed {
    color: var(--brand);
}

.calendar-task-history-icon.is-deleted {
    color: var(--danger);
}

.calendar-task-edit-actions > [hidden] {
    display: none !important;
}

.calendar-task-content {
    position: relative;
    display: grid;
    overflow: hidden;
    min-width: 0;
    padding: 0;
    border: 0;
    color: #3d4656;
    background: transparent !important;
    box-shadow: none !important;
    gap: 1px;
    text-align: left;
    cursor: pointer;
}

.calendar-task-content:hover,
.calendar-task-content:focus,
.calendar-task-content:active {
    color: var(--brand);
    background: transparent !important;
    outline: 0 !important;
}

.calendar-task-time {
    color: var(--brand);
    font-size: 9px;
    font-weight: 780;
    line-height: 1.1;
}

.calendar-task-title {
    display: block;
    overflow: hidden;
    color: #3d4656;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-task-reminder-icon {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--brand);
    font-size: 12px;
}

.calendar-loading {
    padding: 70px 20px;
    color: var(--muted);
    grid-column: 1 / -1;
    text-align: center;
}

.calendar-task-edit-actions {
    justify-content: space-between;
}

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

.calendar-datetime-grid input[type=text][readonly] {
    color: var(--ink);
    border-bottom: 1px solid #9e9e9e;
    cursor: pointer;
}

.calendar-datetime-grid input[type=text][readonly]:focus {
    border-bottom-color: var(--brand);
    box-shadow: 0 1px 0 0 var(--brand);
}

.task-modal .voice-status:empty {
    min-height: 0;
}

.calendar-reminder-section {
    margin: 22px 0 6px;
}

.calendar-reminder-heading {
    margin: 0 0 10px 22px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}

.calendar-reminder-box {
    padding: 16px 18px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
}

.calendar-reminder-switch {
    margin: 0 0 6px;
}

.calendar-reminder-switch label {
    color: #555e6d;
}

.calendar-reminder-fields {
    margin-top: 8px;
}

.calendar-reminder-status {
    margin: 6px 0 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.timepicker-modal {
    max-height: none;
    border-radius: 18px;
    overflow: visible;
}

.timepicker-digital-display {
    background: var(--brand);
}

.timepicker-clear,
.timepicker-close {
    color: var(--brand);
}

/* Date picker: misma composición y comportamiento visual que Yo Cocino. */
html body .datepicker-modal {
    width: min(420px, calc(100vw - 32px)) !important;
    max-width: 420px !important;
    max-height: none !important;
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-md) !important;
    overflow: hidden !important;
}

html body .datepicker-container {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html body .datepicker-modal .modal-content {
    padding: 0 !important;
}

html body .datepicker-date-display {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    gap: 12px !important;
    padding: 12px 22px !important;
    color: #fff !important;
    background: var(--brand) !important;
    align-items: baseline !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

html body .datepicker-date-display .year-text,
html body .datepicker-date-display .date-text {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    white-space: nowrap !important;
}

html body .datepicker-date-display .year-text {
    font-size: 1.18rem !important;
    line-height: 1.15 !important;
    opacity: .78;
}

html body .datepicker-date-display .date-text {
    font-size: 1.95rem !important;
    line-height: 1.1 !important;
}

html body .datepicker-calendar-container {
    float: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html body .datepicker-controls {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    gap: 8px !important;
    padding: 13px 10px 6px !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

html body .datepicker-controls .month-prev,
html body .datepicker-controls .month-next {
    display: inline-flex !important;
    width: 52px !important;
    height: 44px !important;
    flex: 0 0 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: #fff !important;
    background: var(--brand) !important;
    box-shadow: 0 5px 12px rgba(79, 70, 229, .24) !important;
    align-items: center !important;
    justify-content: center !important;
}

html body .datepicker-controls .month-prev:hover,
html body .datepicker-controls .month-prev:focus,
html body .datepicker-controls .month-next:hover,
html body .datepicker-controls .month-next:focus {
    background: var(--brand-dark) !important;
    box-shadow: 0 6px 14px rgba(79, 70, 229, .3) !important;
}

html body .datepicker-controls .month-prev svg,
html body .datepicker-controls .month-next svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
}

html body .datepicker-controls .selects-container {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
}

html body .datepicker-controls .select-month,
html body .datepicker-controls .select-year {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

html body .datepicker-controls .select-month { flex: 1.4 1 0 !important; }
html body .datepicker-controls .select-year { flex: .8 1 0 !important; }

html body .datepicker-controls .select-month .select-wrapper,
html body .datepicker-controls .select-year .select-wrapper,
html body .datepicker-controls .select-month input.select-dropdown,
html body .datepicker-controls .select-year input.select-dropdown,
html body .datepicker-controls .select-month .caret,
html body .datepicker-controls .select-year .caret {
    display: none !important;
}

html body .datepicker-controls .select-month select,
html body .datepicker-controls .select-year select,
html body .datepicker-controls select.datepicker-select {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 1px solid var(--line) !important;
    border-radius: 9px !important;
    color: #374151 !important;
    background: var(--surface) !important;
    box-shadow: none !important;
    font-size: .95rem !important;
    line-height: 38px !important;
    text-align: left !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    box-sizing: border-box !important;
}

html body .datepicker-table-wrapper {
    width: 100% !important;
    box-sizing: border-box !important;
}

html body .datepicker-table {
    width: 100% !important;
    table-layout: fixed !important;
}

html body .datepicker-table td.is-selected,
html body .datepicker-day-button:focus,
html body .datepicker-day-button:hover {
    color: #fff !important;
    background: var(--brand) !important;
}

html body .datepicker-table td.is-today,
html body .datepicker-table td.is-today .datepicker-day-button {
    color: var(--brand) !important;
}

html body .datepicker-footer {
    display: flex !important;
    gap: 16px !important;
    padding: 10px 16px 16px !important;
    align-items: center !important;
    justify-content: center !important;
}

html body .datepicker-footer .confirmation-btns {
    display: flex !important;
    gap: 16px !important;
    margin: 0 !important;
    align-items: center !important;
}

html body .datepicker-footer button.datepicker-clear,
html body .datepicker-footer button.datepicker-cancel,
html body .datepicker-footer button.datepicker-done {
    height: 42px !important;
    min-width: 88px !important;
    flex: 0 1 96px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: #fff !important;
    background: var(--brand) !important;
    box-shadow: 0 5px 12px rgba(79, 70, 229, .22) !important;
    font-size: .9rem !important;
    font-weight: 700 !important;
    line-height: 42px !important;
    text-align: center !important;
    text-transform: none !important;
}

html body .datepicker-footer button.datepicker-clear:hover,
html body .datepicker-footer button.datepicker-clear:focus,
html body .datepicker-footer button.datepicker-done:hover,
html body .datepicker-footer button.datepicker-done:focus {
    background: var(--brand-dark) !important;
}

html body .datepicker-footer button.datepicker-cancel {
    background: var(--danger) !important;
    box-shadow: 0 5px 12px rgba(220, 38, 38, .22) !important;
}

html body .datepicker-footer button.datepicker-cancel:hover,
html body .datepicker-footer button.datepicker-cancel:focus {
    background: #b91c1c !important;
}

@media (max-width: 900px) {
    html body .datepicker-modal,
    html body .datepicker-modal.modal,
    html body .datepicker-modal.modal.open {
        top: 92px !important;
        right: auto !important;
        left: 50% !important;
        width: calc(100vw - 92px) !important;
        max-width: 360px !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
    }

    html body .datepicker-date-display { padding: 7px 14px !important; }
    html body .datepicker-date-display .year-text { font-size: .9rem !important; }
    html body .datepicker-date-display .date-text { font-size: 1.25rem !important; }

    html body .datepicker-controls {
        gap: 6px !important;
        padding: 10px 9px 4px !important;
    }

    html body .datepicker-controls .month-prev,
    html body .datepicker-controls .month-next {
        width: 44px !important;
        height: 40px !important;
        flex-basis: 44px !important;
    }

    html body .datepicker-controls .selects-container { gap: 6px !important; }
    html body .datepicker-table th { padding: 2px 0 !important; font-size: .72rem !important; }
    html body .datepicker-table td { padding: 0 !important; }
    html body .datepicker-day-button { width: 30px !important; height: 30px !important; line-height: 30px !important; }

    html body .datepicker-footer,
    html body .datepicker-footer .confirmation-btns { gap: 8px !important; }

    html body .datepicker-footer { padding: 8px 9px 12px !important; }

    html body .datepicker-footer button.datepicker-clear,
    html body .datepicker-footer button.datepicker-cancel,
    html body .datepicker-footer button.datepicker-done {
        min-width: 0 !important;
        flex: 1 1 0 !important;
        padding: 0 7px !important;
        font-size: .82rem !important;
    }
}

.timepicker-canvas-bg,
.timepicker-canvas-bearing {
    fill: var(--brand);
}

.timepicker-canvas line {
    stroke: var(--brand);
}

.timepicker-tick.active,
.timepicker-tick:hover {
    background: rgba(79, 70, 229, .2);
}

.timepicker-footer {
    display: flex !important;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.timepicker-footer .confirmation-btns {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

@keyframes voice-pulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(239, 68, 68, .12); }
    50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, .04); }
}

/* Responsive */
@media (max-width: 820px) {
    :root {
        --header-height: 62px;
    }

    .mobile-only {
        display: inline-grid;
    }

    .mobile-session-actions.mobile-only {
        display: block;
        width: 100%;
    }

    .app-header {
        padding: 0 12px;
    }

    .app-brand {
        position: absolute;
        left: 50%;
        font-size: 17px;
        transform: translateX(-50%);
    }

    .app-brand__mark {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .app-user__name {
        display: none;
    }

    .header-logout-form {
        display: none;
    }

    .app-layout {
        display: block;
    }

    .project-sidebar {
        position: fixed;
        z-index: 1200;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(88vw, 330px);
        height: 100vh;
        padding-top: 25px;
        border-right: 0;
        box-shadow: var(--shadow-md);
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    .admin-mobile-sidebar {
        display: block;
    }

    .admin-sidebar-overlay:not([hidden]) {
        display: block;
    }

    .mobile-company-context.mobile-only {
        display: block;
        margin: -8px 0 20px;
        padding: 0 0 18px;
        border-bottom: 1px solid var(--line);
    }

    .mobile-company-context__heading,
    .mobile-company-context__identity,
    .mobile-company-context__change {
        display: flex;
        align-items: center;
    }

    .mobile-company-context__heading {
        gap: 10px;
        justify-content: space-between;
    }

    .mobile-company-context__identity {
        min-width: 0;
        gap: 11px;
    }

    .mobile-company-context__identity > .material-icons {
        color: var(--brand);
        font-size: 27px;
    }

    .mobile-company-context__identity div {
        min-width: 0;
    }

    .mobile-company-context__identity span,
    .mobile-company-context__identity strong {
        display: block;
    }

    .mobile-company-context__identity span {
        margin-bottom: 2px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .mobile-company-context__identity strong {
        overflow: hidden;
        color: var(--ink);
        font-size: 15px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-company-context__change {
        width: 100%;
        min-height: 42px;
        gap: 9px;
        margin-top: 14px;
        padding: 0 13px;
        border: 1px solid rgba(79, 70, 229, .2);
        border-radius: 10px;
        color: var(--brand);
        background: var(--brand-soft);
        font-weight: 750;
        justify-content: center;
    }

    .mobile-company-context__change:hover,
    .mobile-company-context__change:focus {
        color: var(--brand-dark);
        background: #e5e7ff;
    }

    .mobile-company-context__change .material-icons {
        font-size: 21px;
    }

    .project-sidebar.is-open {
        transform: translateX(0);
    }

    .project-sidebar.is-mobile-home {
        z-index: 1000;
        top: var(--header-height);
        width: 100%;
        max-width: none;
        height: calc(100vh - var(--header-height));
        padding: 25px 20px 30px;
        border-right: 0;
        box-shadow: none;
        transform: translateX(0);
    }

    .project-sidebar.is-mobile-home #closeProjects {
        display: none;
    }

    .sidebar-overlay {
        position: fixed;
        z-index: 1100;
        inset: 0;
        background: rgba(23, 32, 51, .38);
    }

    .task-main {
        height: calc(100vh - var(--header-height));
    }

    .task-workspace {
        padding: 30px 20px 84px;
    }

    .workspace-heading {
        margin-bottom: 24px;
    }

    .workspace-title h1 {
        max-width: calc(100vw - 245px);
        font-size: 25px;
    }

    .project-color-large {
        height: 47px;
    }

    .workspace-actions .icon-button {
        display: inline-grid;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        color: var(--brand);
        background: #fff;
        place-items: center;
    }

    .workspace-actions .icon-button:hover,
    .workspace-actions .icon-button:focus {
        color: var(--brand);
        background: var(--brand-soft);
    }

    .add-task-button {
        position: relative;
        min-width: 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
    }

    .add-task-button .add-task-symbol {
        position: absolute;
        top: 50%;
        left: 50%;
        margin: 0;
        font-size: 28px;
        font-weight: 700;
        line-height: 1;
        transform: translate(-50%, -50%);
    }

    .text-to-list-button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
    }

    .text-to-list-button .material-icons {
        font-size: 23px;
    }

    .batch-list-textarea {
        min-height: 155px !important;
        max-height: 190px !important;
    }

    .task-row {
        min-height: 70px;
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }

    .task-row.without-complete {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .task-row.is-read-only {
        grid-template-columns: minmax(0, 1fr);
    }

    .task-row.is-history {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .task-status-toolbar {
        margin-top: -18px;
    }

    .task-status-toolbar .calendar-status-select {
        width: 100%;
    }

    .task-order-controls {
        display: none;
    }

    .task-handle {
        width: 38px;
        height: 42px;
    }

    .task-title {
        white-space: normal;
    }

    .task-description {
        max-width: calc(100vw - 135px);
    }

    .modal:not(.datepicker-modal):not(.timepicker-modal) {
        width: calc(100% - 24px);
        max-height: calc(100% - 24px);
        top: 12px !important;
        border-radius: 14px;
    }

    .modal:not(.datepicker-modal):not(.timepicker-modal) .modal-content {
        padding: 23px 20px 12px;
    }

    .modal:not(.datepicker-modal):not(.timepicker-modal) .modal-footer {
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (max-width: 520px) {
    .auth-shell {
        padding: 0;
        align-items: stretch;
    }

    .auth-card {
        width: 100%;
        min-height: 100vh;
        padding: 58px 26px 36px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .workspace-title h1 {
        max-width: calc(100vw - 200px);
        font-size: 23px;
    }

    .workspace-title p {
        display: none;
    }

    .project-color-large {
        width: 8px;
        height: 39px;
    }

    .danger-zone {
        flex-direction: column;
        align-items: stretch;
    }

    .danger-zone .btn-flat {
        width: 100%;
        text-align: left;
    }
}

/* Vigencia, Mi cuenta y pagos de membresía. */
.account-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.account-menu-link:hover,
.account-menu-link:focus {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.account-menu-link .material-icons {
    font-size: 20px;
}

.membership-notice {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 18px;
    border-bottom: 1px solid #b91c1c;
    color: #fff;
    background: var(--danger);
    text-align: center;
    font-size: 14px;
}

.membership-notice .material-icons {
    color: #fff;
    font-size: 21px;
}

.membership-notice a {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
}

.membership-notice--blocked {
    border-color: #991b1b;
    color: #fff;
    background: #b91c1c;
}

.membership-notice--blocked .material-icons {
    color: #fff;
}

.app-page > .membership-notice {
    position: fixed;
    z-index: 990;
    top: var(--header-height);
    right: 0;
    left: 0;
}

.app-page.has-membership-notice .app-layout {
    padding-top: calc(var(--header-height) + 44px);
}

.app-page.has-membership-notice .project-sidebar,
.app-page.has-membership-notice .task-main {
    height: calc(100vh - var(--header-height) - 44px);
}

.app-page.has-membership-notice .app-notice {
    top: calc(var(--header-height) + 44px);
}

.account-page {
    min-height: 100vh;
    background: var(--surface-soft);
}

.account-shell {
    width: min(calc(100% - 40px), 980px);
    margin: 38px auto 60px;
    padding: 0;
}

.account-heading,
.account-heading__icon,
.membership-status-card,
.membership-contact-card {
    display: flex;
    align-items: center;
}

.account-heading {
    gap: 16px;
    margin-bottom: 24px;
}

.account-heading__icon {
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 15px;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 12px 28px rgba(79, 70, 229, .22);
}

.account-heading h1,
.account-section-title h2 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
}

.account-heading h1 { font-size: 30px; line-height: 1.2; }
.account-heading p,
.account-section-title p { margin: 4px 0 0; color: var(--muted); line-height: 1.4; }

.membership-status-card {
    flex-wrap: wrap;
    gap: 18px 34px;
    padding: 22px 26px;
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    background: var(--brand-soft);
}

.membership-status-card > div {
    display: grid;
    gap: 3px;
}

.membership-status-card span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.membership-status-card strong { color: var(--ink); font-size: 18px; }
.membership-status-card p { width: 100%; margin: 0; color: var(--brand-dark); font-weight: 650; }
.membership-status-card--blocked { border-color: #fecaca; background: #fef2f2; }
.membership-status-card--blocked p { color: #991b1b; }

.membership-plans,
.membership-history { margin-top: 32px; }
.account-section-title { margin-bottom: 16px; }
.account-section-title h2 { font-size: 21px; }
.membership-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.membership-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 28px 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.membership-plan--featured { border: 2px solid var(--brand); }
.membership-plan > .material-icons { color: var(--brand); font-size: 38px; }
.membership-plan h3 { margin: 4px 0 0; font-size: 20px; font-weight: 800; }
.membership-plan > strong { color: var(--brand-dark); font-size: 27px; }
.membership-plan > span { color: var(--muted); }
.membership-plan .btn { width: min(250px, 100%); }
.membership-plan__annual-breakdown {
    width: min(300px, 100%);
    margin: 5px 0 2px;
    padding: 12px 14px;
    display: grid;
    gap: 7px;
    border-radius: 11px;
    background: var(--brand-soft);
}
.membership-plan__annual-breakdown > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}
.membership-plan__annual-breakdown b { color: var(--ink); font-weight: 650; }
.membership-plan__annual-breakdown del {
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
}
.membership-plan__annual-breakdown .membership-plan__discount,
.membership-plan__annual-breakdown .membership-plan__discount strong { color: var(--brand-dark); }
.membership-plan__badge {
    position: absolute;
    top: -13px;
    right: 18px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #fff !important;
    background: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.membership-email-field { width: min(330px, 100%); margin: 22px 0 12px; text-align: left; }
.membership-email-field .prefix { color: var(--brand); }
.membership-contact-card { gap: 12px; margin-top: 28px; padding: 20px; border: 1px solid #c7d2fe; border-radius: 14px; background: var(--brand-soft); }
.membership-contact-card .material-icons { color: var(--brand); }
.membership-contact-card p { margin: 0; }

.membership-history__table { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.membership-history table { min-width: 700px; }
.membership-history th,
.membership-history td { padding: 14px 16px; text-align: center; }
.membership-history tbody tr:nth-child(even) { background: #f8f9ff; }
.payment-status { display: inline-block; padding: 4px 9px; border-radius: 999px; color: #4b5563; background: #f3f4f6; font-size: 12px; font-weight: 800; }
.payment-status--pagado { color: var(--brand-dark); background: var(--brand-soft); }
.payment-status--fallido,
.payment-status--cancelado,
.payment-status--expirado { color: #991b1b; background: #fef2f2; }
.payment-result-card .form-alert { margin: 24px 0; }
.payment-result-reference {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    margin: -7px 0 22px;
    color: var(--muted);
    text-align: center;
}
.payment-result-reference strong {
    color: var(--brand-dark);
    font-size: 18px;
}
.form-alert--success { border-color: #c7d2fe !important; color: var(--brand-dark) !important; background: var(--brand-soft) !important; }

@media (max-width: 820px) {
    .desktop-account-link { display: none; }
    .membership-notice { min-height: 68px; align-items: center; flex-wrap: wrap; gap: 5px 8px; font-size: 12px; }
    .membership-notice strong { width: calc(100% - 30px); }
    .app-page.has-membership-notice .app-layout { padding-top: calc(var(--header-height) + 68px); }
    .app-page.has-membership-notice .task-main { height: calc(100vh - var(--header-height) - 68px); }
    .app-page.has-membership-notice .project-sidebar.is-mobile-home {
        top: calc(var(--header-height) + 68px);
        height: calc(100vh - var(--header-height) - 68px);
        padding-top: 39px;
    }
    .app-page.has-membership-notice .app-notice { top: calc(var(--header-height) + 68px); }
    .app-notice {
        min-height: 28px;
        padding: 2px 12px;
        font-size: 11px;
        line-height: 1.2;
    }
}

@media (max-width: 650px) {
    .account-shell { width: min(100% - 24px, 520px); margin-top: 24px; }
    .account-heading h1 { font-size: 25px; }
    .membership-plan-grid { grid-template-columns: 1fr; }
    .membership-status-card { padding: 18px; gap: 15px; }
    .account-page .app-user__name { display: none; }
}

/* Todos los botones de acción de formas y modales comparten dimensiones. */
.catalog-form-actions > .btn,
.modal:not(.datepicker-modal):not(.timepicker-modal) .modal-footer > .btn,
.modal:not(.datepicker-modal):not(.timepicker-modal) .modal-footer > .btn-flat,
#modalConfirmacion .demo-confirm-modal__footer > .btn,
.calendar-task-edit-actions > .btn,
.calendar-task-edit-actions > .btn-flat {
    display: inline-flex !important;
    width: 142px !important;
    min-width: 142px !important;
    max-width: 142px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 142px !important;
    gap: 6px;
}

.catalog-form-actions > .btn .material-icons,
.modal:not(.datepicker-modal):not(.timepicker-modal) .modal-footer > .btn .material-icons,
.modal:not(.datepicker-modal):not(.timepicker-modal) .modal-footer > .btn-flat .material-icons,
.calendar-task-edit-actions > .btn .material-icons,
.calendar-task-edit-actions > .btn-flat .material-icons {
    float: none !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.catalog-form-actions,
.modal:not(.datepicker-modal):not(.timepicker-modal) .modal-footer,
#modalConfirmacion .demo-confirm-modal__footer,
.calendar-task-edit-actions {
    flex-wrap: wrap !important;
}

html body .datepicker-footer button.datepicker-clear,
html body .datepicker-footer button.datepicker-cancel,
html body .datepicker-footer button.datepicker-done,
html body .timepicker-footer button {
    display: inline-flex !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 8px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 92px !important;
}

@media (max-width: 520px) {
    #modalConfirmacion .demo-confirm-modal__footer > .btn {
        width: 100% !important;
        max-width: none !important;
        flex-basis: 44px !important;
    }

    html body .datepicker-footer button.datepicker-clear,
    html body .datepicker-footer button.datepicker-cancel,
    html body .datepicker-footer button.datepicker-done,
    html body .timepicker-footer button {
        width: 84px !important;
        min-width: 84px !important;
        max-width: 84px !important;
        flex-basis: 84px !important;
    }
}

/* Los controles activos usan siempre el color principal de Link2Task. */
html body .switch label input[type="checkbox"]:checked + .lever {
    background-color: rgba(79, 70, 229, .38) !important;
}

html body .switch label input[type="checkbox"]:checked + .lever::after {
    background-color: var(--brand) !important;
}

html body [type="checkbox"]:checked + span:not(.lever)::before {
    border-right-color: var(--brand) !important;
    border-bottom-color: var(--brand) !important;
}

html body [type="checkbox"].filled-in:checked + span:not(.lever)::after {
    border-color: var(--brand) !important;
    background-color: var(--brand) !important;
}

.task-reminder-method .task-reminder-check {
    color: var(--brand) !important;
}

/* Modal de calendario por etapas: sin desplazamiento interno. */
#calendarTaskModal {
    width: min(94%, 720px);
    max-height: none;
    overflow: hidden;
}

.task-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 2px 0 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-soft);
    overflow: hidden;
}

.task-tabs.has-two-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.task-tab[hidden] { display: none !important; }

.task-tab {
    display: flex;
    min-width: 0;
    min-height: 48px;
    padding: 7px 9px;
    border: 0;
    border-right: 1px solid var(--line);
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.task-tab:last-child { border-right: 0; }
.task-tab .material-icons { font-size: 19px; }
.task-tab:hover,
.task-tab:focus,
.task-tab:active {
    color: var(--brand) !important;
    background: var(--brand-soft) !important;
}
.task-tab.is-active,
.task-tab.is-active:hover,
.task-tab.is-active:focus,
.task-tab.is-active:active {
    color: #fff !important;
    background: var(--brand) !important;
}
.task-tab:focus-visible { outline: 3px solid rgba(79, 70, 229, .2); outline-offset: -3px; }
.task-tab-panel[hidden] { display: none !important; }
.task-tab-panel { min-height: 285px; }
#projectModal #projectPanelData { min-height: 0; }
.task-panel-help { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.4; text-align: center; }

.task-participant-creator,
.task-participant-row {
    display: grid;
    min-height: 54px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    align-items: center;
}

.task-participant-creator {
    grid-template-columns: 28px minmax(0, 1fr) 24px;
    margin-bottom: 7px;
    color: var(--brand);
}

.task-participant-creator > .material-icons { font-size: 21px; }
.task-participant-creator span,
.task-participant-choice > span { display: flex; min-width: 0; padding-left: 0 !important; flex-direction: column; }
.task-participant-creator strong,
.task-participant-choice strong { color: var(--ink); font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-participant-creator small,
.task-participant-choice small { color: var(--muted); font-size: 11px; line-height: 1.25; }
.task-participant-lock { color: var(--muted); }
.task-participant-list { display: grid; gap: 7px; }
.task-participant-row { grid-template-columns: minmax(0, 1fr) 135px; gap: 10px; }
.task-participant-row.is-selected { border-color: #c7c3ff; background: #f7f6ff; }
.task-participant-choice { display: flex; min-width: 0; align-items: center; }
.task-participant-choice [type="checkbox"] + span:not(.lever) { display: flex; height: auto; min-height: 22px; padding-left: 31px !important; justify-content: center; }
.task-participant-row select,
.task-responsible-field select {
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 30px 0 10px;
    border: 1px solid #cfd5e1;
    border-radius: 9px;
    color: var(--ink);
    background: #fff;
    font-size: 12px;
}
.task-participant-row select:disabled { color: var(--muted); background: #f1f3f7; }
.task-participant-access {
    display: inline-flex;
    gap: 6px;
    min-height: 36px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 750;
    align-items: center;
    justify-content: center;
}
.task-participant-access .material-icons { font-size: 18px; }
.task-participant-empty { margin: 22px 0; color: var(--muted); font-size: 13px; text-align: center; }
.task-participant-pagination { display: flex; height: 34px; margin-top: 5px; align-items: center; justify-content: center; gap: 10px; }
.task-participant-pagination .icon-button { width: 30px; height: 30px; color: var(--brand); }
.task-participant-pagination span { min-width: 42px; color: var(--muted); font-size: 11px; text-align: center; }
.task-responsible-field { display: grid; margin-top: 8px; grid-template-columns: 28px minmax(0, 1fr); align-items: end; gap: 7px; }
.task-responsible-field > .material-icons { margin-bottom: 7px; color: var(--brand); font-size: 21px; }
.task-responsible-field label { display: block; margin-bottom: 3px; color: var(--brand); font-size: 11px; font-weight: 700; }

.calendar-reminder-section { margin-top: 5px; }
.calendar-reminder-fields { align-items: end; }
.task-reminder-method {
    display: grid;
    min-height: 58px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    grid-column: 1 / -1;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}
.task-reminder-method > .material-icons { color: var(--brand); font-size: 21px; }
.task-reminder-method span { display: flex; min-width: 0; flex-direction: column; }
.task-reminder-method strong { color: var(--ink); font-size: 13px; }
.task-reminder-method small { color: var(--muted); font-size: 11px; line-height: 1.25; }
.task-reminder-method .task-reminder-check { color: var(--success); }
.task-reminder-method .switch label { white-space: nowrap; }

@media (max-width: 520px) {
    #calendarTaskModal { top: 2% !important; width: calc(100% - 20px); margin: 0 10px; }
    #calendarTaskModal .modal-content { padding-right: 18px; padding-left: 18px; }
    .task-tabs { margin-bottom: 9px; }
    .task-tab { min-height: 42px; padding: 5px 3px; font-size: 10px; gap: 3px; }
    .task-tab .material-icons { font-size: 17px; }
    .task-tab-panel { min-height: 300px; }
    .task-panel-help { margin-bottom: 6px; font-size: 11px; }
    .task-participant-creator,
    .task-participant-row { min-height: 48px; padding: 6px 9px; }
    .task-participant-list { gap: 5px; }
    .task-participant-row { grid-template-columns: minmax(0, 1fr) 112px; gap: 6px; }
    .task-participant-row select { height: 33px; padding-left: 7px; font-size: 11px; }
    .task-responsible-field { margin-top: 5px; }
    .calendar-reminder-section { margin-top: 0; }
    .calendar-reminder-box { padding: 12px 12px 8px; }
    .calendar-reminder-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .task-reminder-method { min-height: 52px; padding: 6px 8px; }
    .task-reminder-method small { font-size: 10px; }
}

@media (max-width: 768px) {
    .calendar-workspace {
        padding: 26px 14px 50px;
    }

    .calendar-page-heading {
        margin-bottom: 22px;
        padding-bottom: 19px;
    }

    .calendar-title-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .calendar-title-icon .material-icons {
        font-size: 23px;
    }

    .calendar-page-title {
        gap: 11px;
    }

    .calendar-page-title h1 {
        font-size: 24px;
    }

    .calendar-page-title p {
        display: none;
    }

    .calendar-add-button {
        position: relative;
        min-width: 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
    }

    .calendar-add-button .add-task-symbol {
        position: absolute;
        top: 50%;
        left: 50%;
        margin: 0;
        font-size: 28px;
        font-weight: 700;
        line-height: 1;
        transform: translate(-50%, -50%);
    }

    .calendar-header {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-header h2 {
        margin-top: 0;
    }

    .calendar-toolbar {
        width: 100%;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .calendar-status-select {
        width: 100%;
        min-height: 35px;
        flex: 0 0 100%;
    }

    .calendar-nav-button {
        min-height: 35px;
        padding: 0 8px;
        gap: 1px;
        font-size: 11px;
        white-space: nowrap;
    }

    .calendar-nav-button .material-icons {
        font-size: 16px;
    }

    .calendar-month-pill {
        min-width: 0;
        min-height: 35px;
        padding: 0 10px;
        font-size: 12px;
        white-space: nowrap;
        flex: 0 1 auto;
    }

    .calendar-card {
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .calendar-grid {
        min-width: 560px;
    }

    .calendar-head-cell {
        padding: 8px 2px;
        font-size: 10px;
    }

    .calendar-day {
        min-height: 110px;
        padding: 6px 5px;
        gap: 5px;
    }

    .calendar-day__number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .calendar-day__tasks {
        gap: 3px;
    }

    .calendar-task-chip {
        padding: 5px 6px;
        border-radius: 8px;
        grid-template-columns: minmax(0, 1fr);
        cursor: pointer;
    }

    .calendar-task-complete {
        display: none;
    }

    .calendar-task-content {
        width: 100%;
        gap: 2px;
    }

    .calendar-task-time {
        font-size: 9px;
    }

    .calendar-task-title {
        display: -webkit-box;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 520px) {
    .calendar-datetime-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #calendarTaskModal .modal-content {
        padding-top: 17px;
        padding-bottom: 6px;
    }

    #calendarTaskModal .modal-heading {
        margin-bottom: 6px;
    }

    #calendarTaskModal .input-field {
        margin-top: 12px;
        margin-bottom: 6px;
    }

    #taskDescriptionInput,
    #calendarTaskDescription {
        min-height: 72px;
        max-height: 120px;
    }

    #calendarTaskModal .calendar-task-edit-actions {
        margin-top: 10px;
        padding-top: 8px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    #calendarTaskModal .calendar-task-edit-actions .btn-flat {
        width: auto;
        text-align: center;
    }

    #calendarTaskModal .modal-footer {
        position: sticky;
        z-index: 2;
        bottom: 0;
        min-height: 54px;
        padding-top: 7px;
        padding-bottom: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Acciones homogéneas: secundarios a la izquierda, principales a la derecha. */
.catalog-form-actions,
.auth-form-actions,
.modal:not(.datepicker-modal):not(.timepicker-modal) .modal-footer,
.confirm-modal .modal-footer,
#modalConfirmacion .demo-confirm-modal__footer,
.calendar-task-edit-actions,
.datepicker-footer,
.datepicker-footer .confirmation-btns,
.timepicker-footer,
.timepicker-footer .confirmation-btns {
    gap: 18px !important;
    align-items: center !important;
    justify-content: center !important;
}

.catalog-form-actions .btn,
.auth-form-actions .btn,
.modal:not(.datepicker-modal):not(.timepicker-modal) .modal-footer .btn,
.modal:not(.datepicker-modal):not(.timepicker-modal) .modal-footer .btn-flat,
#modalConfirmacion .demo-confirm-modal__footer .btn,
.calendar-task-edit-actions .btn,
.calendar-task-edit-actions .btn-flat,
.datepicker-footer button,
.timepicker-footer button {
    text-align: center !important;
}

@media (max-width: 520px) {
    .catalog-form-actions,
    .auth-form-actions,
    .modal:not(.datepicker-modal):not(.timepicker-modal) .modal-footer,
    .confirm-modal .modal-footer,
    #modalConfirmacion .demo-confirm-modal__footer,
    .calendar-task-edit-actions,
    .datepicker-footer,
    .datepicker-footer .confirmation-btns,
    .timepicker-footer,
    .timepicker-footer .confirmation-btns {
        gap: 10px !important;
    }
}
