/* public/assets/css/s42-attendance-filter-actions.css
   UI-only: Filter + Clear buttons on Attendance (All Records / Pending Approval).
   Scoped to .att-filter-form. No form names, routes or logic changed. */

.att-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.att-filter-form .att-filter-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    min-height: 40px;
    padding: 0 18px !important;
    border-radius: 12px !important;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.att-filter-form .att-filter-btn svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px;
    margin: 0 !important;
}
.att-filter-form .att-filter-apply {
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary, #2563eb) 32%, transparent);
}
.att-filter-form .att-filter-clear {
    background: transparent;
    border: 1.5px solid var(--border, #d7dce3) !important;
    color: var(--text-muted, #64748b);
}
.att-filter-form .att-filter-clear:hover {
    color: var(--danger, #dc2626);
    border-color: var(--danger, #dc2626) !important;
    background: color-mix(in srgb, var(--danger, #dc2626) 8%, transparent);
}
.att-filter-form .att-filter-btn:active { transform: scale(.97); }

/* ── Mobile: one full-width action row, Filter (wider) + Clear ── */
@media (max-width: 767.98px) {
    .filter-bar:not(.filter-form-compact) > .filter-form.att-filter-form > .att-filter-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        margin: 4px 0 0;
        padding-top: 12px;
        border-top: 1px dashed var(--border, #d7dce3);
    }
    .att-filter-form .att-filter-btn {
        width: 100% !important;
        height: 46px;
        min-height: 46px;
        font-size: .95rem;
    }
}
@media (max-width: 359.98px) {
    .att-filter-form .att-filter-btn { padding: 0 10px !important; gap: 6px; font-size: .88rem; }
}

/* Safety net: app.js / older cached JS may still add .hrms-icon-action
   (font-size:0; width:38px) to these buttons. That clashed with the 18px
   side padding above and squeezed the icon + label to nothing. Keep them
   as labelled buttons on every screen size. */
.att-filter-form .att-filter-btn.hrms-icon-action {
    font-size: .9rem !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 96px !important;
    padding: 0 18px !important;
    justify-content: center !important;
}
@media (max-width: 767.98px) {
    .att-filter-form .att-filter-btn.hrms-icon-action { width: 100% !important; min-width: 0 !important; font-size: .95rem !important; }
}
