/* ── Minimum Wages Page ── */



/* ── Content Layout & Animations ── */
.mw-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mw-order-1 {
    order: 1;
}

.mw-order-2 {
    order: 2;
}

.mw-order-3 {
    order: 3;
}

.mw-animate-in {
    animation: slideUpFade 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Controls bar */
.mw-controls-section {
    background: #f7f9fc;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
}

.mw-controls-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.mw-select-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.mw-select-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
}

.mw-select-group label {
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mw-select-group select {
    padding: 9px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a3358;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 240px;
}

.mw-select-group select:focus {
    outline: none;
    border-color: #f58732;
    box-shadow: 0 0 0 3px rgba(245, 135, 50, 0.15);
}

/* Main section */
.mw-data-section {
    padding: 40px 0 60px;
}

.mw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Empty state */
.mw-empty-prompt {
    text-align: center;
    padding: 60px 20px;
    color: #4a5568;
}

.mw-empty-prompt i {
    font-size: 48px;
    color: #cbd5e0;
    display: block;
    margin-bottom: 16px;
}

.mw-empty-prompt p {
    font-size: 16px;
}

/* State heading */
.mw-state-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f58732;
}

.mw-state-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0b1f3a;
    margin: 0;
}

.mw-eff-date {
    font-size: 13px;
    color: #4a5568;
}

/* Group block */
.mw-group-block {
    margin-bottom: 40px;
}

.mw-group-block:last-of-type {
    margin-bottom: 16px;
}

.mw-group-header {
    background: #0b1f3a;
    color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 16px 20px;
}

.mw-group-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.mw-group-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    flex: 1;
}

.mw-wef {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 8px;
}

.mw-notif-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f58732;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #f58732;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.mw-notif-link:hover {
    background: #f58732;
    color: #fff;
}

.mw-notif-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

/* Admin Actions */
.mw-admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    /* push to the right if there is space */
}

.mw-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-edit {
    background: #3182ce;
    color: #fff;
}

.btn-edit:hover {
    background: #2b6cb0;
    border-color: #bee3f8;
    color: #fff;
}

.btn-add {
    background: #38a169;
    color: #fff;
}

.btn-add:hover {
    background: #2f855a;
    border-color: #c6f6d5;
    color: #fff;
}

.btn-mweditor {
    background: #d69e2e;
    color: #fff;
}

.btn-mweditor:hover {
    background: #b7791f;
    border-color: #fefcbf;
    color: #fff;
}

/* Toggle buttons */
.mw-toggle-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.mw-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s, border-color 0.2s;
}

.mw-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.mw-notes-panel {
    background: rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 10px;
    padding: 10px 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    border-radius: 0 0 4px 4px;
}

/* Wage table */
.mw-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mw-table thead th {
    background: #1a3358;
    color: #fff;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mw-table thead th.zone-header {
    background: #0f6e56;
    font-size: 13px;
}

.mw-table tbody td {
    padding: 9px 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    color: #2d3748;
    white-space: nowrap;
}

.mw-table tbody tr:nth-child(even) td {
    background: #f7f9fc;
}

.mw-table tbody tr:hover td {
    background: #eef2ff;
}

.mw-table td.cat-name {
    text-align: left;
    font-weight: 600;
    color: #0b1f3a;
    min-width: 180px;
    white-space: normal;
}

.mw-table td.col-monthly {
    font-weight: 700;
    color: #0b1f3a;
}

.mw-table td.incr-pos {
    color: #0f6e56;
    font-weight: 600;
}

.mw-table td.incr-neg {
    color: #c53030;
    font-weight: 600;
}

/* Latest updates block */
.mw-updates-block {
    margin-top: 16px;
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

.mw-updates-block.is-first {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.mw-updates-title {
    font-size: 20px;
    font-weight: 700;
    color: #0b1f3a;
    margin: 0 0 20px;
}

.mw-updates-table thead th {
    background: #f58732;
}

.mw-state-link {
    color: #0b1f3a;
    font-weight: 600;
    text-decoration: none;
}

.mw-state-link:hover {
    color: #f58732;
    text-decoration: underline;
}

.mw-na {
    color: #a0aec0;
}

/* Responsive */
@media (max-width: 768px) {
    .mw-select-row {
        flex-direction: column;
    }

    .mw-select-group {
        min-width: 100%;
    }

    .mw-state-header {
        flex-direction: column;
        gap: 4px;
    }
}