/* Shared modals — always loaded (dark + light variants) */

/* ========== Info modal (global) ========== */
.tw-info-modal .modal-dialog {
    width: 420px;
    max-width: calc(100% - 32px);
    margin: 12vh auto;
}

.tw-info-modal .modal-content,
.tw-info-modal__card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--tw-line);
    border-radius: 16px;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(194, 65, 12, 0.22), transparent 55%),
        linear-gradient(165deg, #2c2c2c 0%, #1f1f1f 55%, #1a1a1a 100%);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    color: var(--tw-ink);
    padding: 28px 28px 24px;
    text-align: center;
    font-family: 'Outfit', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.tw-info-modal__glow {
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    bottom: -100px;
    border-radius: 50%;
    border: 1px solid rgba(194, 65, 12, 0.25);
    box-shadow: 0 0 0 36px rgba(194, 65, 12, 0.05);
    pointer-events: none;
}

.tw-info-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--tw-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.tw-info-modal__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.tw-info-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 4px auto 18px;
    border-radius: 16px;
    background: var(--tw-accent-soft);
    border: 1px solid rgba(194, 65, 12, 0.35);
    color: #fdba74;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(194, 65, 12, 0.2);
}

.tw-info-modal__title {
    margin: 0 0 10px;
    padding: 0 12px;
    font-family: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: #fff;
}

.tw-info-modal__body {
    margin: 0 0 22px;
    padding: 0 8px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--tw-muted);
    white-space: pre-line;
}

.tw-info-modal__ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--tw-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 24px rgba(194, 65, 12, 0.28);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tw-info-modal__ok:hover,
.tw-info-modal__ok:focus {
    background: var(--tw-accent-hover);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.32);
}

.tw-info-modal__ok:active {
    transform: translateY(0);
}

.tw-info-modal.fade .modal-dialog {
    transform: translate(0, 12px) scale(0.98);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
    opacity: 0;
}

.tw-info-modal.in .modal-dialog {
    transform: translate(0, 0) scale(1);
    opacity: 1;
}

.tw-info-modal--warn .tw-info-modal__card {
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(248, 113, 113, 0.18), transparent 55%),
        linear-gradient(165deg, #2c2c2c 0%, #1f1f1f 55%, #1a1a1a 100%);
}

.tw-info-modal--warn .tw-info-modal__glow {
    border-color: rgba(248, 113, 113, 0.28);
    box-shadow: 0 0 0 36px rgba(248, 113, 113, 0.05);
}

.tw-info-modal--warn .tw-info-modal__icon {
    background: rgba(127, 29, 29, 0.35);
    border-color: rgba(248, 113, 113, 0.35);
    color: #f87171;
    box-shadow: 0 8px 24px rgba(185, 28, 28, 0.25);
}

.tw-info-modal--warn .tw-info-modal__ok {
    background: #b91c1c;
    box-shadow: 0 8px 24px rgba(185, 28, 28, 0.28);
}

.tw-info-modal--warn .tw-info-modal__ok:hover,
.tw-info-modal--warn .tw-info-modal__ok:focus {
    background: #dc2626;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.32);
}

/* ========== Vacations modal ========== */
.tw-vacations-modal .modal-dialog {
    width: 440px;
}

.tw-vacations-modal .tw-info-modal__card {
    text-align: left;
    padding-bottom: 22px;
}

.tw-vacations-modal .tw-info-modal__icon {
    margin-left: 0;
}

.tw-vacations-modal .tw-info-modal__title {
    text-align: left;
    padding: 0;
}

.tw-vacations-modal .tw-info-modal__ok {
    margin-top: 4px;
}

.tw-vacations-modal__lead {
    margin: 0 0 14px;
    padding: 0;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #d1d5db;
}

.tw-vacations-modal__list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.tw-vacations-modal__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--tw-line);
}

.tw-vacations-modal__list li:last-child {
    margin-bottom: 0;
}

.tw-vacations-modal__avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fed7aa;
    background: linear-gradient(145deg, rgba(194, 65, 12, 0.45), rgba(234, 88, 12, 0.2));
    border: 1px solid rgba(194, 65, 12, 0.35);
}

.tw-vacations-modal__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tw-vacations-modal__meta strong {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.tw-vacations-modal__meta small {
    font-size: 12px;
    color: var(--tw-muted);
    line-height: 1.35;
    white-space: pre-line;
}

.tw-vacations-modal__empty {
    margin: 0 0 20px;
    padding: 16px;
    border-radius: 10px;
    border: 1px dashed var(--tw-line);
    color: var(--tw-muted);
    text-align: center;
    font-size: 13px;
}

/* ========== Light theme — info / vacations modals ========== */
html.tw-theme-light .tw-info-modal .modal-content,
html.tw-theme-light .tw-info-modal__card {
    border-color: var(--tw-line);
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(194, 65, 12, 0.1), transparent 55%),
        linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(15, 23, 42, 0.04) inset;
    color: var(--tw-ink);
}

html.tw-theme-light .tw-info-modal__glow {
    border-color: rgba(194, 65, 12, 0.2);
    box-shadow: 0 0 0 36px rgba(194, 65, 12, 0.04);
}

html.tw-theme-light .tw-info-modal__close {
    color: var(--tw-muted);
}

html.tw-theme-light .tw-info-modal__close:hover {
    color: #111;
    background: rgba(15, 23, 42, 0.06);
}

html.tw-theme-light .tw-info-modal__title {
    color: #111827;
}

html.tw-theme-light .tw-info-modal__body {
    color: var(--tw-muted);
}

html.tw-theme-light .tw-info-modal--warn .tw-info-modal__card {
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(248, 113, 113, 0.12), transparent 55%),
        linear-gradient(165deg, #ffffff 0%, #fef2f2 55%, #fff 100%);
}

html.tw-theme-light .tw-vacations-modal__lead {
    color: #374151;
}

html.tw-theme-light .tw-vacations-modal__list li {
    background: #f8fafc;
    border-color: var(--tw-line);
}

html.tw-theme-light .tw-vacations-modal__meta strong {
    color: #111827;
}

html.tw-theme-light .tw-vacations-modal__avatar {
    color: #9a3412;
    background: linear-gradient(145deg, rgba(194, 65, 12, 0.18), rgba(234, 88, 12, 0.08));
}


