.dmr-ph-holidays-card {
    margin: 0 0 24px;
    padding: 20px 22px;
    border: 1px solid #d5e3d6;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbf8 0%, #fff 100%);
    box-shadow: 0 1px 2px rgba(31, 92, 35, 0.06);
}

.dmr-ph-holidays-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.dmr-ph-holidays-card__intro {
    display: flex;
    gap: 14px;
    min-width: 0;
}

.dmr-ph-holidays-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #edf6ee;
    color: #256e29;
}

.dmr-ph-holidays-card__icon .dashicons {
    width: 22px;
    height: 22px;
    font-size: 22px;
}

.dmr-ph-holidays-card__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.dmr-ph-holidays-card__lead {
    margin: 0;
    max-width: 52ch;
    color: #50575e;
    line-height: 1.5;
}

.dmr-ph-holidays-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.dmr-ph-holidays-toggle__text {
    display: grid;
    gap: 2px;
    text-align: right;
}

.dmr-ph-holidays-toggle__label {
    font-size: 12px;
    font-weight: 600;
    color: #1d2327;
}

.dmr-ph-holidays-toggle__state {
    font-size: 11px;
    color: #646970;
}

.dmr-ph-holidays-toggle__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dmr-ph-holidays-toggle__track {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #c3c4c7;
    transition: background-color 0.2s ease;
}

.dmr-ph-holidays-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.dmr-ph-holidays-toggle__input:checked + .dmr-ph-holidays-toggle__track {
    background: #256e29;
}

.dmr-ph-holidays-toggle__input:checked + .dmr-ph-holidays-toggle__track .dmr-ph-holidays-toggle__thumb {
    transform: translateX(20px);
}

.dmr-ph-holidays-toggle__input:focus-visible + .dmr-ph-holidays-toggle__track {
    outline: 2px solid #256e29;
    outline-offset: 2px;
}

.dmr-ph-holidays-toggle.is-saving {
    opacity: 0.7;
    pointer-events: none;
}

.dmr-ph-holidays-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.dmr-ph-holidays-summary__item {
    padding: 14px 16px;
    border: 1px solid #e2e8e2;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.dmr-ph-holidays-summary__value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: #1f5c23;
}

.dmr-ph-holidays-summary__label {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #50575e;
}

.dmr-ph-holidays-summary__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.dmr-ph-holidays-summary__badge.is-on {
    background: #edf6ee;
    color: #1f5c23;
}

.dmr-ph-holidays-summary__badge.is-off {
    background: #f0f0f1;
    color: #646970;
}

.dmr-ph-holidays-controls {
    display: grid;
    gap: 14px;
}

.dmr-ph-holidays-api {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid #e2e8e2;
    border-radius: 10px;
    background: #fff;
}

.dmr-ph-holidays-api__label {
    font-size: 12px;
    font-weight: 600;
    color: #1d2327;
}

.dmr-ph-holidays-api__input {
    width: 100%;
    max-width: none;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
}

.dmr-ph-holidays-api__preview {
    margin: 0;
}

.dmr-ph-holidays-api__preview code {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f6f7f7;
    font-size: 11px;
    word-break: break-all;
}

.dmr-ph-holidays-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid #e2e8e2;
    border-radius: 10px;
    background: #fff;
}

.dmr-ph-holidays-toolbar__year {
    display: grid;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #1d2327;
}

.dmr-ph-holidays-toolbar__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.dmr-ph-holidays-toolbar__actions .button,
.dmr-ph-holidays-toolbar__actions .dmr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 7px 14px;
    min-height: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 999px;
    white-space: nowrap;
}

.dmr-ph-holidays-toolbar__actions .button .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.dmr-ph-holidays-status {
    margin: 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    line-height: 1.45;
}

.dmr-ph-holidays-status.is-info {
    background: #f0f6fc;
    color: #135e96;
    border: 1px solid #c5d9ed;
}

.dmr-ph-holidays-status.is-success {
    background: #edf6ee;
    color: #1f5c23;
    border: 1px solid #c8e0ca;
}

.dmr-ph-holidays-status.is-error {
    background: #fcf0f1;
    color: #8a2424;
    border: 1px solid #f0c5c5;
}

.dmr-ph-holidays-synced {
    margin: 0;
    color: #646970;
    font-size: 12px;
}

.dmr-ph-holidays-list {
    border: 1px solid #e2e8e2;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.dmr-ph-holidays-list__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    background: #fafbfc;
    color: #1d2327;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.dmr-ph-holidays-list__toggle:hover,
.dmr-ph-holidays-list__toggle:focus {
    background: #f3f6f3;
    color: #1f5c23;
}

.dmr-ph-holidays-list__chevron {
    transition: transform 0.2s ease;
}

.dmr-ph-holidays-list__toggle[aria-expanded="true"] .dmr-ph-holidays-list__chevron {
    transform: rotate(180deg);
}

.dmr-ph-holidays-table-wrap {
    display: none;
    border-top: 1px solid #e2e8e2;
}

.dmr-ph-holidays-table-wrap.is-open {
    display: block;
}

.dmr-ph-holidays-table {
    margin: 0;
    border: 0;
    border-radius: 0;
}

.dmr-ph-holidays-table th,
.dmr-ph-holidays-table td {
    vertical-align: top;
}

.dmr-ph-holidays-table__date {
    display: block;
    font-weight: 600;
    color: #1d2327;
}

.dmr-ph-holidays-table__iso {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #8c8f94;
}

@media (max-width: 782px) {
    .dmr-ph-holidays-card__header {
        flex-direction: column;
    }

    .dmr-ph-holidays-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .dmr-ph-holidays-toggle__text {
        text-align: left;
    }

    .dmr-ph-holidays-summary {
        grid-template-columns: 1fr;
    }

    .dmr-ph-holidays-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dmr-ph-holidays-toolbar__actions {
        flex-direction: column;
    }

    .dmr-ph-holidays-toolbar__actions .button,
    .dmr-ph-holidays-toolbar__actions .dmr-btn {
        justify-content: center;
        width: 100%;
    }
}

.dmr-profile-wrapper--dmr-admin .dmr-ph-holidays-card {
    margin-bottom: 28px;
}

.dmr-profile-wrapper--dmr-admin .dmr-ph-holidays-toolbar__year input {
    width: 100%;
    max-width: 120px;
    padding: 8px 10px;
    border: 1px solid #d5e3d6;
    border-radius: 8px;
    font-size: 0.9rem;
}

.dmr-profile-wrapper--dmr-admin .dmr-ph-holidays-api__input {
    padding: 10px 12px;
    border: 1px solid #d5e3d6;
    border-radius: 8px;
    background: #fff;
}

.dmr-profile-wrapper--dmr-admin .dmr-ph-holidays-toolbar__actions .dmr-btn {
    margin: 0;
    padding: 7px 14px;
    min-height: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 999px;
    border-width: 1.5px;
}

.dmr-profile-wrapper--dmr-admin .dmr-ph-holidays-toolbar__actions {
    align-items: center;
}

.dmr-profile-wrapper--dmr-admin .dmr-ph-holidays-table {
    width: 100%;
    border-collapse: collapse;
}

.dmr-profile-wrapper--dmr-admin .dmr-ph-holidays-table th,
.dmr-profile-wrapper--dmr-admin .dmr-ph-holidays-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8efe9;
    text-align: left;
}

.dmr-profile-wrapper--dmr-admin .dmr-ph-holidays-table thead th {
    background: #f6faf6;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a6d60;
}
