.eac-gw-down-day-btn {
    white-space: nowrap;
}

.eac-gw-table th.eac-gw-down-day-col,
.eac-gw-table td.eac-gw-down-day-col {
    background: #d4d7de !important;
}

.eac-gw-down-day-label {
    display: block;
    width: 100%;
    padding: 4px 6px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    color: #1f2937;
    white-space: normal;
    word-break: break-word;
}

.eac-down-days-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
}

.eac-down-days-modal[aria-hidden="false"] {
    display: block;
}

.eac-down-days-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
}

.eac-down-days-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 32px));
    margin: 72px auto;
    background: #ffffff;
    color: #0f172a;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.eac-down-days-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #dbe3ef;
}

.eac-down-days-header h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.eac-down-days-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.eac-down-days-body {
    padding: 18px;
}

.eac-down-days-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.eac-down-days-row label {
    font-weight: 700;
}

.eac-down-days-row select,
.eac-down-days-row input {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
}

.eac-down-days-status {
    min-height: 22px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #065f46;
}

.eac-down-days-status.is-error {
    color: #b91c1c;
}

.eac-down-days-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.eac-down-days-actions .eac-nav-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.eac-down-days-list-title {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.eac-down-days-existing {
    display: grid;
    gap: 8px;
}

.eac-down-days-existing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
}

.eac-down-days-existing-date {
    font-weight: 700;
}

.eac-down-days-existing-name {
    color: #334155;
}

.eac-down-days-empty {
    padding: 10px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #475569;
    background: #f8fafc;
}

@media (max-width: 782px) {
    .eac-down-days-dialog {
        width: calc(100vw - 18px);
        margin: 24px auto;
    }

    .eac-down-days-actions {
        flex-direction: column;
    }

    .eac-down-days-existing-item {
        align-items: flex-start;
        flex-direction: column;
    }
}
