/* ==================================================================
 * Smart Attendance — Professional PHIMS-style Frontend
 * Color palette: Teal #006666, White, Light Gray
 * ================================================================== */

/* ---------- Reset & Base ---------- */
.sa-app *,
.sa-app *::before,
.sa-app *::after {
        box-sizing: border-box;
}

.sa-app {
        font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
        margin: 0;
        padding: 0;
        line-height: 1.6;
        color: #333;
        max-width: 100%;
}

/* ---------- Full-page background ---------- */
.sa-app-wrapper {
        min-height: 100vh;
        background: #0a1628;
        background-image: url('../images/phims_BG.png');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        position: relative;
}

.sa-app-wrapper::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(0, 50, 80, 0.85) 0%, rgba(0, 102, 102, 0.75) 50%, rgba(0, 40, 70, 0.85) 100%);
        z-index: 0;
}

.sa-app-inner {
        position: relative;
        z-index: 1;
        max-width: 960px;
        margin: 0 auto;
        padding: 20px 16px 40px;
}

/* ---------- Header with Logos ---------- */
.sa-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 28px;
        background: rgba(255, 255, 255, 0.97);
        border-radius: 14px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
        margin-bottom: 24px;
}

.sa-header-left {
        display: flex;
        align-items: center;
        gap: 16px;
}

.sa-header-right {
        display: flex;
        align-items: center;
        gap: 16px;
}

.sa-header-logo {
        height: 60px;
        width: auto;
        object-fit: contain;
        border-radius: 4px;
}

.sa-header-title-group {
        display: flex;
        flex-direction: column;
        gap: 2px;
}

.sa-header-title {
        font-size: 20px;
        font-weight: 700;
        color: #006666;
        margin: 0;
        line-height: 1.3;
}

.sa-header-subtitle {
        font-size: 12px;
        color: #777;
        margin: 0;
        font-weight: 400;
}

/* ---------- Cards ---------- */
.sa-card {
        background: rgba(255, 255, 255, 0.97);
        border: none;
        border-radius: 14px;
        padding: 28px;
        margin-bottom: 24px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
        transition: box-shadow 0.3s ease;
}

.sa-card:hover {
        box-shadow: 0 6px 32px rgba(0, 0, 0, 0.18);
}

.sa-card h3 {
        margin: 0 0 6px;
        font-size: 18px;
        font-weight: 700;
        color: #006666;
        padding-bottom: 12px;
        border-bottom: 2px solid #e8f4f4;
}

.sa-card h3 .sa-card-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, #006666, #008080);
        border-radius: 8px;
        margin-right: 10px;
        vertical-align: middle;
}

.sa-card h3 .sa-card-icon svg {
        width: 18px;
        height: 18px;
        fill: #fff;
}

/* ---------- Status Text ---------- */
.sa-status-text {
        font-size: 14px;
        color: #555;
        padding: 10px 0;
        margin: 0;
}

/* ---------- Assignment Banner ---------- */
.sa-assignment-banner {
        background: #e8f8f5;
        border: 1px solid #a3d9cc;
        border-radius: 10px;
        padding: 14px 18px;
        margin-bottom: 20px;
        font-size: 13px;
        color: #006666;
        line-height: 1.6;
}

.sa-assignment-banner strong {
        color: #004d4d;
}

.sa-assignment-banner ul {
        margin: 6px 0 0 18px;
        padding: 0;
}

.sa-assignment-banner li {
        margin-bottom: 2px;
}

.sa-assignment-banner.sa-error {
        background: #fef0ef;
        border-color: #f3a6a4;
        color: #a11e1e;
}

/* ---------- Camera Section ---------- */
.sa-camera-section {
        text-align: center;
        padding: 16px 0;
}

.sa-camera-section video,
.sa-camera-section canvas,
.sa-camera-section img {
        display: none;
        width: 100%;
        max-width: 380px;
        height: auto;
        max-height: 70vh;
        border-radius: 12px;
        margin: 0 auto;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
        object-fit: cover;
        background: #000;
}

/* Reserve a sensible box before the camera's real aspect ratio is known
   (right after getUserMedia resolves but before the first frame paints),
   so the layout never collapses to 0 or balloons to the stream's raw
   pixel height. Ignored by browsers that don't support aspect-ratio —
   they simply wait for intrinsic size like they always have. */
.sa-camera-section video {
        aspect-ratio: 3 / 4;
}

.sa-camera-section img {
        border: 3px solid #e8f4f4;
}

/* ---------- Buttons ---------- */
.sa-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 16px;
        justify-content: center;
}

.sa-actions .button,
.sa-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 22px;
        border: 2px solid transparent;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s ease;
        text-decoration: none;
        line-height: 1.4;
        min-height: 42px;
}

.sa-btn-camera {
        background: #f0f7f7;
        color: #006666;
        border-color: #b2d8d8;
}

.sa-btn-camera:hover:not(:disabled) {
        background: #e0efef;
        border-color: #006666;
}

.sa-btn-capture {
        background: #ff9800;
        color: #fff;
        border-color: #e68a00;
}

.sa-btn-capture:hover:not(:disabled) {
        background: #e68a00;
}

.sa-btn-checkin {
        background: linear-gradient(135deg, #006666, #008080);
        color: #fff;
        border-color: #004d4d;
        box-shadow: 0 2px 8px rgba(0, 102, 102, 0.3);
}

.sa-btn-checkin:hover:not(:disabled) {
        background: linear-gradient(135deg, #004d4d, #006666);
        box-shadow: 0 4px 12px rgba(0, 102, 102, 0.4);
        transform: translateY(-1px);
}

.sa-btn-checkout {
        background: linear-gradient(135deg, #d35400, #e67e22);
        color: #fff;
        border-color: #a04000;
        box-shadow: 0 2px 8px rgba(211, 84, 0, 0.3);
}

.sa-btn-checkout:hover:not(:disabled) {
        background: linear-gradient(135deg, #a04000, #d35400);
        box-shadow: 0 4px 12px rgba(211, 84, 0, 0.4);
        transform: translateY(-1px);
}

.sa-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
}

/* Override WP default button styles inside our container */
.sa-app .button,
.sa-app .button-primary {
        border-radius: 8px !important;
        font-weight: 600 !important;
        padding: 10px 22px !important;
        min-height: 42px !important;
        font-size: 14px !important;
        transition: all 0.25s ease !important;
}

.sa-app .button-primary {
        background: linear-gradient(135deg, #006666, #008080) !important;
        border-color: #004d4d !important;
        box-shadow: 0 2px 8px rgba(0, 102, 102, 0.3) !important;
}

.sa-app .button-primary:hover {
        background: linear-gradient(135deg, #004d4d, #006666) !important;
}

/* ---------- Messages ---------- */
.sa-message {
        color: #d63638;
        font-size: 13px;
        min-height: 20px;
        padding: 8px 0;
        text-align: center;
        font-weight: 500;
}

.sa-message:empty {
        display: none;
}

/* ---------- User Welcome Bar ---------- */
.sa-welcome-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        margin-bottom: 20px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        gap: 16px;
}

.sa-welcome-bar .sa-welcome-text {
        font-size: 15px;
        font-weight: 600;
        color: #006666;
}

.sa-welcome-bar .sa-welcome-text span {
        color: #333;
        font-weight: 400;
}

/* Right side: clock on top, date under, then the Logout button
   next to that whole stack. On narrow screens the logout button
   wraps below. */
.sa-welcome-bar .sa-welcome-right {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-shrink: 0;
}

.sa-welcome-bar .sa-welcome-clock-wrap {
        text-align: right;
}

.sa-welcome-bar .sa-live-clock {
        font-size: 22px;
        font-weight: 700;
        color: #006666;
        font-variant-numeric: tabular-nums;
        letter-spacing: 0.5px;
}

.sa-welcome-bar .sa-live-date {
        font-size: 12px;
        color: #888;
        text-align: right;
}

/* Logout button — slimmer than the check-in/out buttons, but still
   unmistakable. Red-ish tint to signal a destructive-ish action. */
.sa-logout-btn {
        background: #fff;
        color: #b32d2e;
        border-color: #f1c4c4;
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 600;
        box-shadow: 0 1px 3px rgba(179, 45, 46, 0.1);
}

.sa-logout-btn:hover {
        background: #b32d2e;
        color: #fff;
        border-color: #b32d2e;
        box-shadow: 0 2px 6px rgba(179, 45, 46, 0.3);
        transform: translateY(-1px);
}

/* ---------- Quick Stats Row ---------- */
.sa-stats-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-bottom: 24px;
}

.sa-stat-card {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        padding: 18px 16px;
        text-align: center;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        border-top: 3px solid #006666;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.sa-stat-card.sa-stat-late {
        border-top-color: #f39c12;
}

.sa-stat-card.sa-stat-absent {
        border-top-color: #e74c3c;
}

.sa-stat-card.sa-stat-leave {
        border-top-color: #3498db;
}

.sa-stat-value {
        font-size: 28px;
        font-weight: 800;
        color: #006666;
        line-height: 1.2;
}

.sa-stat-card.sa-stat-late .sa-stat-value {
        color: #f39c12;
}

.sa-stat-card.sa-stat-absent .sa-stat-value {
        color: #e74c3c;
}

.sa-stat-card.sa-stat-leave .sa-stat-value {
        color: #3498db;
}

.sa-stat-label {
        font-size: 12px;
        color: #888;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 4px;
}

/* ---------- History Table ---------- */
.sa-history-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 16px;
}

.sa-history-header h3 {
        margin: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
}

.sa-export-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: linear-gradient(135deg, #006666, #008080) !important;
        color: #fff !important;
        border: none;
        border-radius: 8px;
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s ease;
        box-shadow: 0 2px 8px rgba(0, 102, 102, 0.3);
}

.sa-export-btn:hover {
        background: linear-gradient(135deg, #004d4d, #006666) !important;
        box-shadow: 0 4px 12px rgba(0, 102, 102, 0.4);
        transform: translateY(-1px);
}

.sa-export-icon {
        flex-shrink: 0;
}

.sa-table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
        border: 1px solid #e8efef;
}

.sa-table {
        width: 100%;
        border-collapse: collapse;
        margin: 0;
        font-size: 14px;
}

.sa-table thead th {
        background: linear-gradient(135deg, #006666, #008080);
        color: #fff;
        font-weight: 600;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 12px 14px;
        text-align: left;
        white-space: nowrap;
        position: sticky;
        top: 0;
        z-index: 2;
}

.sa-table thead th:first-child {
        border-radius: 9px 0 0 0;
}

.sa-table thead th:last-child {
        border-radius: 0 9px 0 0;
}

.sa-table tbody td {
        padding: 11px 14px;
        border-bottom: 1px solid #f0f5f5;
        font-size: 13px;
        color: #444;
        white-space: nowrap;
}

.sa-table tbody tr:nth-child(even) {
        background: #f9fcfc;
}

.sa-table tbody tr:hover {
        background: #e8f4f4;
        transition: background 0.2s ease;
}

.sa-table tbody tr:last-child td {
        border-bottom: none;
}

/* ---------- Badges ---------- */
.sa-badge {
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 700;
        text-transform: capitalize;
        display: inline-block;
        letter-spacing: 0.3px;
}

.sa-badge-present          { background: #d4edda; color: #155724; }
.sa-badge-late             { background: #fff3cd; color: #856404; }
.sa-badge-absent           { background: #f8d7da; color: #721c24; }
.sa-badge-pending          { background: #fff3cd; color: #856404; }
.sa-badge-approved         { background: #d4edda; color: #155724; }
.sa-badge-rejected         { background: #f8d7da; color: #721c24; }
.sa-badge-full_day         { background: #d4edda; color: #155724; text-transform: none; }
.sa-badge-half_day         { background: #fff3cd; color: #856404; text-transform: none; }
.sa-badge-full_day_leave   { background: #d1ecf1; color: #0c5460; text-transform: none; }
.sa-badge-half_day_leave   { background: #e2d9f3; color: #4b2a8a; text-transform: none; }
.sa-badge-leave-approved   { background: #d1ecf1; color: #0c5460; text-transform: none; font-size: 11px; }

/* ---------- Cell Modifiers ---------- */
.sa-cell-date { min-width: 70px; }
.sa-cell-day  { min-width: 80px; }
.sa-cell-leave small { color: #555; font-weight: 400; }
.sa-cell-low-duty {
        color: #721c24 !important;
        font-weight: 700;
        background: #fde2e1;
        border-radius: 4px;
        padding: 2px 8px !important;
}

.sa-row-sunday { background: #fafafa !important; }
.sa-row-sunday td:first-child { color: #aaa; }

.sa-loading {
        text-align: center;
        color: #999;
        padding: 30px 8px !important;
        font-style: italic;
        font-size: 14px;
}

/* ---------- Leave Form ---------- */
.sa-leave-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 16px;
}

.sa-form-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
}

.sa-form-group label {
        font-size: 13px;
        font-weight: 600;
        color: #555;
        text-transform: uppercase;
        letter-spacing: 0.3px;
}

.sa-form-group select,
.sa-form-group input[type="date"],
.sa-form-group textarea {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #d1d9d9;
        border-radius: 8px;
        font-size: 14px;
        color: #333;
        background: #fafcfc;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
        min-width: unset;
        font-family: inherit;
}

.sa-form-group select:focus,
.sa-form-group input[type="date"]:focus,
.sa-form-group textarea:focus {
        outline: none;
        border-color: #006666;
        box-shadow: 0 0 0 3px rgba(0, 102, 102, 0.1);
        background: #fff;
}

.sa-form-group textarea {
        resize: vertical;
        min-height: 80px;
}

.sa-form-full {
        grid-column: 1 / -1;
}

.sa-leave-submit-row {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 8px;
}

.sa-leave-submit-row .sa-btn {
        background: linear-gradient(135deg, #006666, #008080);
        color: #fff;
        border-color: #004d4d;
        padding: 12px 36px;
        font-size: 15px;
        box-shadow: 0 2px 8px rgba(0, 102, 102, 0.3);
}

.sa-leave-submit-row .sa-btn:hover {
        background: linear-gradient(135deg, #004d4d, #006666);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 102, 102, 0.4);
}

/* ---------- Team Attendance (PCM/RM/ITO manager view) ---------- */
.sa-team-card {
        padding: 0;
        overflow: hidden;
}

.sa-team-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: none;
        border: none;
        cursor: pointer;
        padding: 20px 22px;
        font-size: 15px;
        font-weight: 700;
        color: #1e3c72;
        text-align: left;
        transition: background 0.15s ease;
}

.sa-team-toggle:hover {
        background: #f7fafa;
}

.sa-team-toggle-left {
        display: flex;
        align-items: center;
}

.sa-team-toggle-left .sa-card-icon {
        margin-bottom: 0;
}

.sa-team-toggle-arrow {
        font-size: 14px;
        color: #888;
        transition: transform 0.2s ease;
        flex-shrink: 0;
        margin-left: 12px;
}

.sa-team-card.sa-team-open .sa-team-toggle-arrow {
        transform: rotate(180deg);
}

.sa-team-body {
        padding: 0 22px 22px;
}

.sa-team-subhead {
        font-size: 13px;
        font-weight: 700;
        color: #444;
        margin: 18px 0 8px;
}

.sa-team-body .sa-table-scroll {
        margin-bottom: 6px;
}

/* Small inline buttons used in the Team Attendance leave-request table */
.sa-btn-xs {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 5px 12px;
        border: 1px solid transparent;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        line-height: 1.4;
}

.sa-btn-approve-xs {
        background: #d4edda;
        color: #155724;
        border-color: #b6dfc1;
}

.sa-btn-approve-xs:hover:not(:disabled) {
        background: #c3e6cb;
}

.sa-btn-reject-xs {
        background: #f8d7da;
        color: #721c24;
        border-color: #f1b0b7;
}

.sa-btn-reject-xs:hover:not(:disabled) {
        background: #f5c6cb;
}

.sa-btn-xs:disabled {
        opacity: 0.5;
        cursor: not-allowed;
}

/* ---------- Manager summary strip (Team Attendance) ----------
   Always-visible card row between the toggle and the collapsible
   details: Team size / Checked In / Not In / Pending Leaves. */
.sa-team-summary {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0 22px 16px;
}

.sa-sum-card {
        background: #f7fafa;
        border: 1px solid #e3ebee;
        border-radius: 10px;
        padding: 10px 8px;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
}

.sa-sum-num {
        font-size: 20px;
        font-weight: 800;
        line-height: 1.1;
        color: #1e3c72;
        font-variant-numeric: tabular-nums;
}

.sa-sum-label {
        font-size: 11px;
        font-weight: 600;
        color: #667;
        letter-spacing: 0.3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
}

.sa-sum-ok .sa-sum-num { color: #1e7e46; }
.sa-sum-warn .sa-sum-num { color: #b26a00; }

.sa-sum-danger .sa-sum-num { color: #a33; }

/* Pulse attention on the pending-leaves card when there is work to do. */
.sa-sum-has-items {
        background: #fdf1f1;
        border-color: #f3cccc;
}

/* In-flight state for one-tap approve/reject buttons */
.sa-btn-busy {
        opacity: 0.6;
        cursor: wait;
}

/* ---------- Toast notifications (approve/reject feedback) ---------- */
.sa-toast {
        position: fixed;
        left: 50%;
        bottom: 26px;
        transform: translate(-50%, 16px);
        z-index: 99999;
        max-width: min(420px, calc(100vw - 40px));
        padding: 12px 20px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
}

.sa-toast-show {
        opacity: 1;
        transform: translate(-50%, 0);
}

.sa-toast-ok {
        background: #1e7e46;
}

.sa-toast-err {
        background: #b23b3b;
}

/* Stack the summary cards 2x2 on narrow screens */
@media (max-width: 520px) {
        .sa-team-summary {
                grid-template-columns: repeat(2, 1fr);
                padding: 0 16px 14px;
        }
}

/* ---------- Standalone view tweaks ---------- */
.sa-standalone-view {
        max-width: 100%;
        margin: 0 auto;
        font-family: inherit;
}

/* ---------- Footer ---------- */
.sa-footer {
        text-align: center;
        padding: 20px 0 0;
        color: rgba(255, 255, 255, 0.7);
        font-size: 12px;
}

.sa-footer a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
}

/* ==================================================================
 * RESPONSIVE DESIGN
 * ================================================================== */

/* Tablets */
@media (max-width: 768px) {
        .sa-app-inner {
                padding: 12px 10px 30px;
        }

        .sa-header {
                flex-direction: column;
                gap: 12px;
                padding: 16px 20px;
                text-align: center;
        }

        .sa-header-left,
        .sa-header-right {
                justify-content: center;
        }

        .sa-header-logo {
                height: 48px;
        }

        .sa-header-title {
                font-size: 17px;
        }

        .sa-header-subtitle {
                font-size: 11px;
        }

        .sa-card {
                padding: 20px 16px;
                border-radius: 12px;
        }

        .sa-stats-row {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
        }

        .sa-stat-card {
                padding: 14px 10px;
        }

        .sa-stat-value {
                font-size: 24px;
        }

        .sa-stat-label {
                font-size: 10px;
        }

        .sa-welcome-bar {
                flex-direction: column;
                gap: 8px;
                text-align: center;
                padding: 12px 16px;
        }

        .sa-welcome-bar .sa-live-date {
                text-align: center;
        }

        .sa-leave-form-grid {
                grid-template-columns: 1fr;
        }
}

/* Mobile phones */
@media (max-width: 480px) {
        .sa-app-inner {
                padding: 8px 6px 24px;
        }

        .sa-header {
                padding: 12px 14px;
                border-radius: 10px;
                margin-bottom: 14px;
        }

        .sa-header-left {
                gap: 10px;
        }

        .sa-header-logo {
                height: 40px;
        }

        .sa-header-title {
                font-size: 15px;
        }

        .sa-header-subtitle {
                font-size: 10px;
        }

        .sa-header-right .sa-header-logo {
                height: 36px;
        }

        .sa-card {
                padding: 16px 12px;
                border-radius: 10px;
                margin-bottom: 14px;
        }

        .sa-card h3 {
                font-size: 16px;
                padding-bottom: 10px;
                margin-bottom: 4px;
        }

        .sa-card h3 .sa-card-icon {
                width: 28px;
                height: 28px;
                margin-right: 8px;
        }

        .sa-card h3 .sa-card-icon svg {
                width: 15px;
                height: 15px;
        }

        .sa-stats-row {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
                margin-bottom: 14px;
        }

        .sa-stat-card {
                padding: 12px 8px;
                border-radius: 10px;
        }

        .sa-stat-value {
                font-size: 20px;
        }

        .sa-stat-label {
                font-size: 9px;
        }

        .sa-actions {
                flex-direction: column;
                gap: 8px;
        }

        .sa-actions .button,
        .sa-actions .sa-btn {
                width: 100%;
                justify-content: center;
                padding: 11px 20px;
        }

        .sa-camera-section video,
        .sa-camera-section img {
                max-width: 220px;
        }

        .sa-table thead th {
                padding: 10px 10px;
                font-size: 11px;
        }

        .sa-table tbody td {
                padding: 9px 10px;
                font-size: 12px;
        }

        .sa-history-header {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
        }

        .sa-export-btn {
                width: 100%;
                justify-content: center;
                padding: 10px 16px;
        }

        .sa-form-group select,
        .sa-form-group input[type="date"],
        .sa-form-group textarea {
                padding: 9px 12px;
                font-size: 16px; /* Prevent zoom on iOS */
        }

        .sa-welcome-bar .sa-live-clock {
                font-size: 18px;
        }

        .sa-badge {
                font-size: 10px;
                padding: 3px 8px;
        }

        .sa-assignment-banner {
                font-size: 12px;
                padding: 10px 14px;
        }
}

/* Very small screens */
@media (max-width: 360px) {
        .sa-header-logo {
                height: 34px;
        }

        .sa-header-title {
                font-size: 13px;
        }

        .sa-stat-value {
                font-size: 18px;
        }

        .sa-card {
                padding: 14px 10px;
        }
}

/* ---------- Legacy app compat (no wrapper) ---------- */
.sa-app:not(.sa-app-wrapper .sa-app) {
        max-width: 100%;
}

/* ==================================================================
 * Public self-signup form  ([sa_signup])
 * ================================================================== */

.sa-signup-app {
        max-width: 720px;
        margin: 0 auto;
}

.sa-signup-card {
        padding: 28px;
}

.sa-signup-intro {
        font-size: 14px;
        color: #555;
        margin: 4px 0 18px;
        line-height: 1.6;
}

/* ----- Form layout ----- */
.sa-signup-form {
        display: flex;
        flex-direction: column;
        gap: 18px;
}

/* The form reuses .sa-form-group from the leave-form section, but the
   leave form is a 2-column grid while the signup form is a vertical
   stack with an explicit 2-up row for short field pairs. */
.sa-signup-form .sa-form-group {
        gap: 6px;
}

.sa-signup-form .sa-form-group label {
        font-size: 13px;
        font-weight: 600;
        color: #555;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        display: flex;
        align-items: baseline;
        gap: 4px;
}

.sa-signup-form .sa-form-group .sa-required {
        color: #c62828;
        font-weight: 700;
        font-size: 14px;
}

/* Text inputs use the same look as the leave form's date inputs but we
   widen the selector list because signup also uses type="text",
   type="email", type="password", and type="number" (the read-only radius). */
.sa-signup-form .sa-form-group input[type="text"],
.sa-signup-form .sa-form-group input[type="email"],
.sa-signup-form .sa-form-group input[type="password"],
.sa-signup-form .sa-form-group input[type="number"],
.sa-signup-form .sa-form-group select {
        width: 100%;
        padding: 11px 14px;
        border: 1px solid #d1d9d9;
        border-radius: 8px;
        font-size: 14px;
        color: #333;
        background: #fafcfc;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
        min-width: unset;
        font-family: inherit;
}

.sa-signup-form .sa-form-group input:focus,
.sa-signup-form .sa-form-group select:focus {
        outline: none;
        border-color: #006666;
        box-shadow: 0 0 0 3px rgba(0, 102, 102, 0.1);
        background: #fff;
}

/* The radius field is intentionally read-only — make it look "locked" so
   users don't try to edit it. */
.sa-signup-form .sa-form-group input[readonly] {
        background: #f1f5f5;
        color: #5d6d6d;
        cursor: not-allowed;
}

.sa-signup-form .sa-form-row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
}

.sa-field-hint {
        font-size: 11px;
        color: #888;
        line-height: 1.4;
        letter-spacing: 0.2px;
        text-transform: none;
}

/* ----- Password visibility toggle ----- */
.sa-password-wrap {
        position: relative;
}

.sa-password-wrap input {
        padding-right: 44px !important;
}

.sa-password-toggle {
        position: absolute;
        top: 50%;
        right: 8px;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        color: #006666;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: background 0.2s ease;
}

.sa-password-toggle:hover {
        background: rgba(0, 102, 102, 0.08);
}

.sa-password-toggle--on {
        color: #004d4d;
        background: rgba(0, 102, 102, 0.12);
}

/* ----- Location button + status ----- */
.sa-btn-location {
        background: #f0f7f7;
        color: #006666;
        border-color: #b2d8d8;
        align-self: flex-start;
        padding: 9px 18px;
        font-size: 13px;
}

.sa-btn-location:hover:not(:disabled) {
        background: #e0efef;
        border-color: #006666;
}

.sa-btn-location:disabled {
        opacity: 0.55;
        cursor: progress;
}

.sa-location-status {
        margin: -4px 0 0;
        font-size: 12px;
        min-height: 16px;
        line-height: 1.4;
}

.sa-location-status--ok {
        color: #1b7a4f;
}

.sa-location-status--err {
        color: #c62828;
}

/* ----- Inline validation cue ----- */
.sa-signup-form .sa-input-invalid {
        border-color: #e57373 !important;
        background: #fff6f6 !important;
        box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08) !important;
}

/* ----- Submit row ----- */
.sa-signup-submit-row {
        text-align: center;
        margin-top: 4px;
}

.sa-btn-submit {
        background: linear-gradient(135deg, #006666, #008080);
        color: #fff;
        border-color: #004d4d;
        padding: 13px 40px;
        font-size: 15px;
        box-shadow: 0 2px 8px rgba(0, 102, 102, 0.3);
}

.sa-btn-submit:hover:not(:disabled) {
        background: linear-gradient(135deg, #004d4d, #006666);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 102, 102, 0.4);
}

.sa-btn-submit:disabled,
.sa-btn-submit.sa-btn--loading {
        opacity: 0.75;
        cursor: progress;
        transform: none;
}

.sa-signup-footnote {
        text-align: center;
        margin: 0;
        font-size: 13px;
        color: #666;
}

.sa-signup-footnote a {
        color: #006666;
        font-weight: 600;
        text-decoration: none;
}

.sa-signup-footnote a:hover {
        text-decoration: underline;
}

/* ----- Inline banners (success / error from the redirect) ----- */
.sa-signup-banner {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 18px;
        border-radius: 10px;
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.55;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sa-signup-banner svg {
        flex-shrink: 0;
        margin-top: 2px;
}

.sa-signup-banner-success {
        background: #e8f8f0;
        border: 1px solid #a3d9c0;
        color: #1b5e3f;
}

.sa-signup-banner-success strong {
        color: #0e3a26;
        display: inline-block;
        margin-right: 4px;
}

.sa-signup-banner-error {
        background: #fef0ef;
        border: 1px solid #f3a6a4;
        color: #a11e1e;
}

.sa-signup-banner-error strong {
        color: #6b1414;
        display: inline-block;
        margin-right: 4px;
}

.sa-signup-banner-link {
        display: inline-block;
        margin-left: 8px;
        font-weight: 600;
        color: #1b5e3f;
        text-decoration: none;
}

.sa-signup-banner-link:hover {
        text-decoration: underline;
}

/* The "extra" detail line inside an inline result banner (used by the
   AJAX path to show server debug info when an admin is logged in). */
.sa-signup-result-extra {
        margin-top: 6px;
        font-size: 12px;
        color: #6b1414;
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        word-break: break-all;
}
.sa-signup-banner-success .sa-signup-result-extra {
        color: #0e3a26;
}

/* ----- Honeypot (visually hidden, but present in DOM) -----
   Using display:none AND off-screen positioning so even browsers
   that ignore one technique can't render the field. display:none
   alone is usually enough to prevent browser autofill (Chrome
   won't autofill fields that aren't rendered), but we layer both
   for robustness against future browser changes. */
.sa-hp-field {
        display: none !important;
        position: absolute !important;
        left: -10000px !important;
        top: auto !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
}

/* ----- New hospital fields wrapper -----
   Wrapped in a container that slides open/closed when the user
   picks "Add as new hospital" vs. an existing hospital name. */
.sa-new-hospital-fields {
        padding: 16px 18px;
        margin: 2px 0 0;
        border: 1px dashed #b2d8d8;
        border-radius: 10px;
        background: #f7fcfc;
        display: flex;
        flex-direction: column;
        gap: 16px;
        animation: sa-fields-fade-in 0.25s ease;
}

@keyframes sa-fields-fade-in {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
}

.sa-new-hospital-fields-heading {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 700;
        color: #006666;
        text-transform: uppercase;
        letter-spacing: 0.4px;
}

/* Datalist option styling — limited browser support, but we set
   it for browsers that honour it (Firefox). Chrome ignores it. */
#sa-hospital-datalist option {
        padding: 6px 10px;
        font-size: 14px;
}

/* ----- Mobile ----- */
@media (max-width: 600px) {
        .sa-signup-card {
                padding: 18px 14px;
        }

        .sa-signup-form .sa-form-row-2 {
                grid-template-columns: 1fr;
                gap: 14px;
        }

        .sa-btn-submit {
                width: 100%;
                padding: 13px 20px;
        }
}

/* ==================================================================
 * One-time password + email reset modal
 *
 * Triggered after the employee's first successful check-in (and re-
 * surfaced on subsequent page loads until they complete it). The
 * modal lives at the document-body level so it overlays the entire
 * page regardless of which shortcode view triggered it.
 * ================================================================== */

.sa-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 100000;
        padding: 20px;
        animation: sa-modal-fade-in 0.2s ease;
        -webkit-overflow-scrolling: touch;
}

@keyframes sa-modal-fade-in {
        from { opacity: 0; }
        to   { opacity: 1; }
}

.sa-modal {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        max-width: 480px;
        width: 100%;
        max-height: 92vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        animation: sa-modal-slide-up 0.25s ease;
}

@keyframes sa-modal-slide-up {
        from { transform: translateY(20px); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
}

.sa-modal-header {
        padding: 18px 24px;
        border-bottom: 1px solid #eee;
        background: linear-gradient(135deg, #006666, #008080);
        color: #fff;
}

.sa-modal-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.3;
}

.sa-modal-body {
        padding: 20px 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
}

.sa-modal-intro {
        margin: 0 0 16px;
        font-size: 13px;
        color: #555;
        line-height: 1.5;
}

.sa-field {
        margin-bottom: 14px;
}

.sa-field:last-child {
        margin-bottom: 0;
}

.sa-field label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #333;
        margin-bottom: 6px;
}

.sa-field input {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 14px;
        font-family: inherit;
        transition: border-color 0.2s, box-shadow 0.2s;
        box-sizing: border-box;
        background: #fff;
        color: #222;
}

.sa-field input:focus {
        outline: none;
        border-color: #006666;
        box-shadow: 0 0 0 3px rgba(0, 102, 102, 0.15);
}

.sa-field-hint {
        display: block;
        margin-top: 4px;
        font-size: 11px;
        color: #888;
}

.sa-modal-message {
        margin: 10px 0 0;
        font-size: 13px;
        min-height: 18px;
        text-align: center;
        font-weight: 500;
}

.sa-modal-message:empty {
        display: none;
}

.sa-modal-message-error {
        color: #d63638;
}

.sa-modal-message-success {
        color: #0a7a3d;
}

.sa-modal-footer {
        padding: 16px 24px;
        border-top: 1px solid #eee;
        background: #f8f9fa;
        display: flex;
        gap: 10px;
        justify-content: flex-end;
        flex-wrap: wrap;
}

.sa-btn-pwreset-skip {
        background: #f0f0f0;
        color: #555;
        border-color: #ccc;
}

.sa-btn-pwreset-skip:hover:not(:disabled) {
        background: #e0e0e0;
        border-color: #aaa;
}

.sa-btn-pwreset-submit {
        background: linear-gradient(135deg, #006666, #008080);
        color: #fff;
        border-color: #004d4d;
        box-shadow: 0 2px 8px rgba(0, 102, 102, 0.3);
}

.sa-btn-pwreset-submit:hover:not(:disabled) {
        background: linear-gradient(135deg, #004d4d, #006666);
        box-shadow: 0 4px 12px rgba(0, 102, 102, 0.4);
        transform: translateY(-1px);
}

/* Keep the modal usable on small screens — the form fields stack and
   the footer buttons stretch full-width so they're easy to tap. */
@media (max-width: 480px) {
        .sa-modal-overlay {
                padding: 12px;
        }

        .sa-modal-header,
        .sa-modal-body,
        .sa-modal-footer {
                padding-left: 16px;
                padding-right: 16px;
        }

        .sa-modal-footer {
                flex-direction: column-reverse;
        }

        .sa-modal-footer .sa-btn {
                width: 100%;
        }
}

/* ==================================================================
 * Branded public login page
 *
 * Rendered by [sa_today_attendance] when the visitor is not logged
 * in. Designed to be the "homepage" experience: full-viewport branded
 * background image, PLIC + PHIMC logo bar on top, a small centered
 * card with username/password/Sign In, and a footer.
 * ================================================================== */

.sa-login-page {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        font-family: inherit;
}

/* Background image — covers the full viewport. */
.sa-login-bg {
        position: fixed;
        inset: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 0;
}

/* Translucent dark overlay so the white card stands out even when the
   background image is bright. Tinted with the brand teal so the page
   reads as "on-brand" rather than "dark grey". */
.sa-login-bg-overlay {
        position: fixed;
        inset: 0;
        background: linear-gradient(
                135deg,
                rgba(0, 77, 77, 0.78) 0%,
                rgba(0, 102, 102, 0.72) 50%,
                rgba(0, 80, 80, 0.78) 100%
        );
        z-index: 1;
}

/* Top logo bar — sits above the overlay. */
.sa-login-topbar {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 32px;
}

.sa-login-topbar-left,
.sa-login-topbar-right {
        display: flex;
        align-items: center;
}

.sa-login-logo {
        max-height: 60px;
        width: auto;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

/* Centered login card. */
.sa-login-card-wrapper {
        position: relative;
        z-index: 2;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px 20px 32px;
}

.sa-login-card {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-radius: 16px;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
        padding: 32px 36px 28px;
        width: 100%;
        max-width: 400px;
        animation: sa-login-card-in 0.3s ease;
}

@keyframes sa-login-card-in {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: translateY(0); }
}

.sa-login-card-header {
        text-align: center;
        margin-bottom: 22px;
}

.sa-login-card-header h1 {
        margin: 0 0 6px;
        font-size: 24px;
        font-weight: 700;
        color: #006666;
        letter-spacing: -0.3px;
}

.sa-login-card-header p {
        margin: 0;
        font-size: 13px;
        color: #666;
}

/* Inline error banner above the form. */
.sa-login-error {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #fef0f0;
        color: #b32d2e;
        border: 1px solid #f5c6c6;
        border-radius: 8px;
        padding: 10px 12px;
        margin-bottom: 18px;
        font-size: 13px;
        font-weight: 500;
}

.sa-login-error svg {
        flex-shrink: 0;
}

/* Form fields. */
.sa-login-field {
        margin-bottom: 16px;
}

.sa-login-field label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #333;
        margin-bottom: 6px;
}

.sa-login-field input[type="text"],
.sa-login-field input[type="password"] {
        width: 100%;
        padding: 11px 14px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 14px;
        font-family: inherit;
        background: #fff;
        color: #222;
        transition: border-color 0.2s, box-shadow 0.2s;
        box-sizing: border-box;
}

.sa-login-field input:focus {
        outline: none;
        border-color: #006666;
        box-shadow: 0 0 0 3px rgba(0, 102, 102, 0.15);
}

/* Password field + show/hide toggle. */
.sa-login-password-wrap {
        position: relative;
}

.sa-login-password-wrap input {
        padding-right: 44px;
}

.sa-login-password-toggle {
        position: absolute;
        top: 50%;
        right: 6px;
        transform: translateY(-50%);
        background: transparent;
        border: 0;
        padding: 6px;
        cursor: pointer;
        color: #888;
        border-radius: 4px;
        line-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
}

.sa-login-password-toggle:hover,
.sa-login-password-toggle:focus-visible {
        background: #f0f0f0;
        color: #006666;
        outline: none;
}

.sa-login-password-toggle-active {
        color: #006666;
}

/* Remember-me checkbox row. */
.sa-login-remember-row {
        margin-bottom: 20px;
}

.sa-login-checkbox {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: #555;
        cursor: pointer;
}

.sa-login-checkbox input[type="checkbox"] {
        margin: 0;
        width: 16px;
        height: 16px;
        accent-color: #006666;
        cursor: pointer;
}

/* Submit button. */
.sa-login-submit {
        width: 100%;
        padding: 12px 20px;
        background: linear-gradient(135deg, #006666, #008080);
        color: #fff;
        border: 1px solid #004d4d;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
        box-shadow: 0 4px 14px rgba(0, 102, 102, 0.3);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
}

.sa-login-submit:hover:not(:disabled) {
        background: linear-gradient(135deg, #004d4d, #006666);
        box-shadow: 0 6px 18px rgba(0, 102, 102, 0.4);
        transform: translateY(-1px);
}

.sa-login-submit:active:not(:disabled) {
        transform: translateY(0);
}

.sa-login-submit:disabled {
        opacity: 0.7;
        cursor: progress;
}

.sa-login-submit-spinner {
        animation: sa-login-spin 0.8s linear infinite;
}

@keyframes sa-login-spin {
        from { transform: rotate(0deg); }
        to   { transform: rotate(360deg); }
}

/* "Don't have an account?" link below the form. */
.sa-login-footnote {
        text-align: center;
        font-size: 12px;
        color: #777;
        margin: 18px 0 0;
}

.sa-login-footnote a {
        color: #006666;
        text-decoration: none;
        font-weight: 600;
}

.sa-login-footnote a:hover {
        text-decoration: underline;
}

/* Footer */
.sa-login-footer {
        position: relative;
        z-index: 2;
        text-align: center;
        padding: 16px 20px 20px;
        color: rgba(255, 255, 255, 0.85);
        font-size: 12px;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Responsive — keep the card readable on phones. */
@media (max-width: 480px) {
        .sa-login-topbar {
                padding: 12px 16px;
        }

        .sa-login-logo {
                max-height: 44px;
        }

        .sa-login-card {
                padding: 24px 22px 20px;
                border-radius: 12px;
        }

        .sa-login-card-header h1 {
                font-size: 20px;
        }

        .sa-login-card-header p {
                font-size: 12px;
        }

        .sa-login-submit {
                padding: 13px 18px;
                font-size: 14px;
        }
}

/* ==================================================================
 * Live Location Map with Geofence Circle
 * ================================================================== */

#sa-location-map-wrapper {
        margin-bottom: 20px;
        border-radius: 12px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sa-location-status-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 18px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom: 1px solid #dee2e6;
        flex-wrap: wrap;
}

.sa-location-icon {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 14px;
        transition: all 0.3s ease;
}

.sa-location-icon.inside {
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white;
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

.sa-location-icon.outside {
        background: linear-gradient(135deg, #dc3545, #fd7e14);
        color: white;
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
        animation: pulse-outside 1.5s ease-in-out infinite;
}

.sa-location-icon.detecting {
        background: linear-gradient(135deg, #ffc107, #fd7e14);
        color: white;
        animation: spin 2s linear infinite;
}

@keyframes pulse-outside {
        0%, 100% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
}

.sa-location-status-text {
        font-size: 15px;
        font-weight: 600;
        color: #333;
        flex-grow: 1;
}

.sa-location-distance {
        font-size: 13px;
        color: #666;
        background: rgba(255, 255, 255, 0.8);
        padding: 4px 10px;
        border-radius: 20px;
        font-weight: 500;
}

.sa-location-map {
        width: 100%;
        height: 320px;
        z-index: 1;
}

.sa-location-hint {
        margin: 0;
        padding: 10px 18px;
        font-size: 13px;
        color: #666;
        background: rgba(0, 102, 102, 0.06);
        border-top: 1px solid rgba(0, 102, 102, 0.15);
        text-align: center;
}

/* Override Leaflet default styles for better integration */
#sa-location-map-wrapper .leaflet-container {
        background: #e8f4f8;
        font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

#sa-location-map-wrapper .leaflet-control-zoom {
        border-radius: 8px !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

#sa-location-map-wrapper .leaflet-control-zoom a {
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
        font-size: 16px !important;
        color: #006666 !important;
        background: white !important;
}

#sa-location-map-wrapper .leaflet-control-zoom a:hover {
        background: #f0f0f0 !important;
        color: #004d4d !important;
}

/* Responsive map */
@media (max-width: 480px) {
        .sa-location-map {
                height: 260px;
        }

        .sa-location-status-bar {
                padding: 10px 14px;
                gap: 8px;
        }

        .sa-location-status-text {
                font-size: 13px;
        }

        .sa-location-distance {
                font-size: 11px;
                padding: 3px 8px;
        }
}
