/* SmartOffice Attendance Dashboard – Frontend (Shortcode) Styles */
/* Lightweight, Astra-compatible, mobile-first */

.sad-public-wrap {
    font-family: inherit;
    color: inherit;
    margin: 0 0 30px;
}

/* ── Summary Cards ───────────────────────────────────────────── */
.sad-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}
.sad-cards .sad-card {
    flex: 1 1 140px;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 16px 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.sad-card-value {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: #2271b1;
    line-height: 1;
}
.sad-card-label {
    display: block;
    font-size: 12px;
    color: #646970;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ── Filter Form ─────────────────────────────────────────────── */
.sad-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #f6f7f7;
    border-radius: 6px;
}
.sad-public-wrap .sad-input {
    border: 1px solid #8c8f94;
    border-radius: 4px;
    padding: 7px 12px;
    font-size: 14px;
    background: #fff;
    height: 38px;
    box-sizing: border-box;
    min-width: 160px;
    max-width: 100%;
}
.sad-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 7px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    height: 38px;
    transition: background .15s;
}
.sad-btn:hover { background: #135e96; color: #fff; }

/* ── Table ───────────────────────────────────────────────────── */
.sad-table-wrap { overflow-x: auto; }
.sad-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.sad-table th {
    background: #2271b1;
    color: #fff;
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
}
.sad-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #e2e4e7;
    vertical-align: middle;
}
.sad-table tbody tr:hover { background: #f0f6fc; }

/* ── Pagination ──────────────────────────────────────────────── */
.sad-pagination { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px; }
.sad-page-link {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 13px;
    color: #2271b1;
    text-decoration: none;
    background: #fff;
    transition: background .15s;
}
.sad-page-link:hover { background: #f0f6fc; }
.sad-page-link--active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    cursor: default;
}

/* ── Notices ─────────────────────────────────────────────────── */
.sad-notice {
    background: #fff8e1;
    border-left: 4px solid #f7c948;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    color: #646970;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .sad-cards .sad-card { flex: 1 1 100%; }
    .sad-filter-form { flex-direction: column; align-items: stretch; }
    .sad-public-wrap .sad-input { min-width: 100%; }
    .sad-btn { width: 100%; }
}
