@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ==========================
   BINARAYA BRAND THEME
========================== */

:root {
    --gold: #D4AF37;
    --light-gold: #F7C35E;
    --black: #1E1E1E;
    --dark-black: #111111;
    --gray: #6B6B6B;
    --light-gray: #E6E6E6;
    --white: #FFFFFF;
    --soft-bg: #F5F5F5;
    --danger: #DC2626;
    --success: #15803D;

    --border-gold: rgba(212, 175, 55, 0.32);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 8px 22px rgba(212, 175, 55, 0.24);
}

/* ==========================
   GLOBAL STYLE
========================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--black);
    font-size: 15px;
}

a {
    transition: 0.2s ease;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

input::placeholder,
textarea::placeholder {
    color: #6B7280;
    opacity: 0.85;
    font-size: 13px;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: #9CA3AF;
}

/* ==========================
   APP LAYOUT
========================== */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    min-height: 100vh;
    padding: 34px;
    background:
        radial-gradient(
            circle at top left,
            rgba(212, 175, 55, 0.16),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #F7F7F7 0%,
            #E6E6E6 100%
        );
}

.page-title {
    margin-bottom: 26px;
}

.page-title h1 {
    margin: 0;
    color: var(--dark-black);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.page-title p {
    margin: 8px 0 0;
    color: var(--gray);
    font-weight: 500;
    line-height: 1.5;
}

/* ==========================
   SIDEBAR
========================== */

.sidebar {
    width: 88px;
    min-height: 100vh;
    background:
        linear-gradient(
            180deg,
            #050505 0%,
            #111111 55%,
            #1E1E1E 100%
        );
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 12px;
    border-right: 1px solid rgba(212, 175, 55, 0.28);
    position: relative;
    z-index: 1000;
}

.sidebar-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.28);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.sidebar-menu {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-menu a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    text-decoration: none;
    border-radius: 14px;
    margin-bottom: 13px;
    font-size: 20px;
    transition: 0.2s ease;
}

.sidebar-menu a:hover {
    background-color: rgba(212, 175, 55, 0.14);
    color: var(--light-gold);
    transform: translateY(-1px);
}

/* ==========================
   SIDEBAR ACCOUNT
========================== */

.sidebar-account {
    position: relative;
    margin-top: auto;
    z-index: 9999;
}

.account-button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    width: auto;
}

.account-photo,
.account-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.account-photo {
    object-fit: cover;
}

.account-placeholder {
    background-color: #2F3642;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.account-dropdown {
    display: none;
    position: absolute;
    left: 66px;
    bottom: 0;
    width: 240px;
    background-color: var(--white);
    color: var(--dark-black);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    padding: 12px;
    z-index: 99999;
}

.account-dropdown.show {
    display: block;
}

.account-info {
    padding: 10px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 8px;
}

.account-info strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.account-info small {
    color: #6B7280;
    word-break: break-word;
    font-size: 12px;
}

.account-dropdown a {
    display: block;
    color: var(--dark-black);
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
}

.account-dropdown a:hover {
    background-color: rgba(212, 175, 55, 0.12);
}

.account-dropdown .logout {
    color: var(--danger);
}

/* ==========================
   DASHBOARD CARDS
========================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 22px;
}

.dashboard-card {
    background:
        linear-gradient(
            145deg,
            #FFFFFF 0%,
            #F5F5F5 100%
        );
    padding: 26px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--black);
    border: 1px solid var(--border-gold);
    box-shadow:
        var(--shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.15),
        0 0 18px rgba(212, 175, 55, 0.25);
}

.dashboard-card h3 {
    margin: 0 0 10px;
    color: var(--dark-black);
    font-weight: 800;
}

.dashboard-card p {
    margin-bottom: 0;
    color: #4B5563;
    font-weight: 500;
    line-height: 1.5;
}

/* ==========================
   CARD, FORM, PROFILE
========================== */

.profile-card,
.history-card {
    background:
        linear-gradient(
            145deg,
            #FFFFFF 0%,
            #F7F7F7 100%
        );
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: var(--shadow-soft);
}

.profile-card {
    max-width: 780px;
}

.profile-card h3 {
    margin: 8px 0 18px;
    color: var(--dark-black);
    font-weight: 800;
}

.profile-card label,
.auth-card label {
    color: var(--dark-black);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 7px;
}

.profile-card input,
.profile-card select,
.profile-card textarea,
.auth-card input {
    width: 100%;
    max-width: 520px;
    padding: 12px 13px;
    border: 1px solid #D1D5DB;
    border-radius: 11px;
    background-color: var(--white);
    color: var(--dark-black);
    transition: 0.2s ease;
}

.profile-card input,
.profile-card select,
.profile-card textarea {
    margin-top: 4px;
    margin-bottom: 4px;
}

.auth-card input {
    max-width: 100%;
    margin-bottom: 15px;
}

.profile-card textarea {
    resize: vertical;
    min-height: 96px;
}

.profile-card input[type="file"] {
    padding: 10px;
    background-color: var(--white);
}

.profile-card input:focus,
.profile-card select:focus,
.profile-card textarea:focus,
.auth-card input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.profile-card small {
    display: inline-block;
    margin-top: 6px;
    color: var(--gray);
    font-size: 12px;
    line-height: 1.4;
}

.profile-card img {
    max-width: 220px;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    margin-top: 8px;
}

/* ==========================
   BUTTONS
========================== */

button,
.auth-card button,
.profile-card button,
.admin-action-btn,
.btn-link-gold,
.auth-main-link {
    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--light-gold)
        );
    color: var(--dark-black) !important;
    border: none;
    border-radius: 11px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease;
}

button,
.auth-card button,
.profile-card button {
    padding: 13px 18px;
}

.auth-card button {
    width: 100%;
}

.profile-card button {
    min-width: 180px;
    margin-top: 10px;
}

button:hover,
.auth-card button:hover,
.profile-card button:hover,
.admin-action-btn:hover,
.btn-link-gold:hover,
.auth-main-link:hover {
    background:
        linear-gradient(
            135deg,
            var(--light-gold),
            var(--gold)
        );
    color: var(--dark-black) !important;
    transform: translateY(-1px);
}

.btn-link-gold,
.auth-main-link {
    display: inline-block;
    padding: 12px 17px;
    box-shadow: var(--shadow-gold);
}

.auth-main-link {
    display: block;
    width: 100%;
    text-align: center;
}

/* ==========================
   TABLE / HISTORY
========================== */

.history-card {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 14px;
}

.history-table th,
.history-table td {
    border-bottom: 1px solid #E5E7EB;
    padding: 13px 12px;
    vertical-align: top;
    text-align: left;
}

.history-table th {
    background-color: #F9FAFB;
    color: var(--dark-black);
    font-weight: 800;
    white-space: nowrap;
}

.history-table td {
    color: #374151;
}

.history-table tr:hover td {
    background-color: rgba(212, 175, 55, 0.05);
}

.history-table img {
    border-radius: 9px;
    border: 1px solid #E5E7EB;
    margin-bottom: 8px;
}

.history-table a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 700;
}

.history-table a:hover {
    text-decoration: underline;
}

.table-link-gold {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    color: var(--dark-black) !important;
    text-decoration: none !important;
    padding: 7px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 6px;
}

.table-link-gold:hover {
    background: linear-gradient(135deg, var(--light-gold), var(--gold));
    text-decoration: none !important;
}

.table-profile-photo {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

/* ==========================
   STATUS BADGE
========================== */

.status-present {
    display: inline-block;
    background-color: rgba(34, 197, 94, 0.12);
    color: var(--success);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
}

.status-late {
    display: inline-block;
    background-color: rgba(220, 38, 38, 0.12);
    color: #B91C1C;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
}

/* ==========================
   AUTH PAGE
========================== */

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at center,
            rgba(212, 175, 55, 0.18),
            transparent 26%
        ),
        linear-gradient(
            rgba(0, 0, 0, 0.88),
            rgba(0, 0, 0, 0.94)
        ),
        #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background:
        linear-gradient(
            145deg,
            #FFFFFF 0%,
            #F0F0F0 100%
        );
    padding: 34px;
    border-radius: 22px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.42),
        0 0 20px rgba(212, 175, 55, 0.18);
}

.auth-logo {
    text-align: center;
    margin-bottom: 20px;
}

.auth-logo img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.auth-card h2 {
    margin: 0;
    text-align: center;
    color: var(--dark-black);
    font-size: 28px;
    font-weight: 800;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray);
    margin: 10px 0 25px;
    line-height: 1.5;
    font-weight: 500;
}

.auth-message,
.profile-message {
    background: rgba(212, 175, 55, 0.14);
    color: var(--dark-black);
    border: 1px solid rgba(212, 175, 55, 0.45);
    padding: 12px 14px;
    border-radius: 11px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.5;
}

.auth-footer {
    text-align: center;
    margin-top: 18px;
    color: var(--gray);
    line-height: 1.5;
}

.auth-footer a {
    color: var(--dark-black);
    font-weight: 800;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--gold);
}

/* ==========================
   ADMIN
========================== */

.admin-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.admin-action-btn {
    display: inline-block;
    padding: 11px 16px;
    box-shadow: var(--shadow-gold);
}

.logout-btn,
.admin-logout-link {
    background: linear-gradient(135deg, #DC2626, #EF4444) !important;
    color: var(--white) !important;
}

.logout-btn:hover,
.admin-logout-link:hover {
    background: linear-gradient(135deg, #B91C1C, #DC2626) !important;
    color: var(--white) !important;
}

.admin-logout-link {
    display: inline-block;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 800;
    margin-top: 8px;
}

/* ==========================
   FORGOT PASSWORD SUCCESS
========================== */

.auth-success-box {
    text-align: center;
    margin-top: 10px;
}

.auth-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid var(--success);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    margin: 0 auto 18px;
}

.auth-success-box h3 {
    margin: 0 0 10px;
    color: var(--dark-black);
    font-size: 22px;
    font-weight: 800;
}

.auth-success-box p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 22px;
}

/* ==========================
   CHANGE PASSWORD PAGE
========================== */

.password-layout {
    display: grid;
    grid-template-columns: minmax(300px, 460px) 1fr;
    gap: 28px;
    align-items: start;
}

.password-form-card {
    max-width: 100%;
}

.password-form-card input {
    max-width: 100%;
}

.password-rule-card {
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.password-rule-card h3 {
    margin-top: 0;
    color: var(--dark-black);
    font-weight: 800;
}

.password-rule-card ul {
    padding-left: 20px;
    margin-bottom: 22px;
}

.password-rule-card li {
    margin-bottom: 10px;
    color: var(--dark-black);
    font-weight: 500;
    line-height: 1.45;
}

.password-rule-card li::marker {
    color: var(--gold);
}

.password-rule-card p {
    color: var(--dark-black);
}

.auth-password-rule {
    margin-top: 20px;
    padding: 18px;
}

.auth-password-rule h3 {
    font-size: 15px;
}

.auth-password-rule li {
    font-size: 13px;
    margin-bottom: 8px;
}

/* ==========================
   PASSWORD SHOW / HIDE
========================== */

.password-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin-bottom: 15px;
}

.auth-card .password-wrapper,
.password-form-card .password-wrapper {
    max-width: 100%;
}

.password-wrapper input {
    width: 100% !important;
    padding-right: 52px !important;
    margin-bottom: 0 !important;
}

.password-wrapper .password-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #4B5563 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.password-wrapper .password-toggle:hover,
.password-wrapper .password-toggle:focus,
.password-wrapper .password-toggle:active {
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--gold) !important;
}

.password-wrapper .toggle-icon {
    width: 22px;
    height: 22px;
    display: block;
    pointer-events: none;
}

/* ==========================
   POPUP
========================== */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.popup-card {
    width: 100%;
    max-width: 380px;
    background:
        linear-gradient(
            145deg,
            #FFFFFF 0%,
            #F1F1F1 100%
        );
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 18px;
    padding: 32px 26px;
    text-align: center;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(212, 175, 55, 0.18);
    animation: popupFadeIn 0.2s ease;
}

.popup-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
}

.popup-icon-success {
    color: var(--success);
    border: 4px solid var(--success);
}

.popup-icon-error {
    color: #B91C1C;
    border: 4px solid #B91C1C;
}

.popup-icon-warning {
    color: var(--gold);
    border: 4px solid var(--gold);
}

.popup-card h3 {
    margin: 0 0 10px;
    color: var(--dark-black);
    font-weight: 800;
}

.popup-card p {
    margin: 0 0 24px;
    color: #4B5563;
    line-height: 1.5;
    font-size: 14px;
}

.popup-card button {
    min-width: 100px;
    padding: 11px 20px;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================
   RESPONSIVE MOBILE
========================== */

@media (max-width: 768px) {

    body {
        font-size: 14px;
    }

    .app-layout {
        display: block;
        min-height: 100vh;
    }

    .main-content {
        padding: 18px;
        padding-bottom: 105px;
        min-height: 100vh;
    }

    .page-title {
        margin-bottom: 18px;
    }

    .page-title h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .page-title p {
        font-size: 14px;
        line-height: 1.5;
    }

    .sidebar {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 76px;
        min-height: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 14px;
        z-index: 9999;
        border-right: none;
        border-top: 1px solid rgba(212, 175, 55, 0.28);
    }

    .sidebar-logo {
        display: none;
    }

    .sidebar-menu {
        flex: 1;
        width: auto;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 6px;
    }

    .sidebar-menu a {
        width: 42px;
        height: 42px;
        margin-bottom: 0;
        font-size: 19px;
        border-radius: 14px;
    }

    .sidebar-account {
        margin-top: 0;
        margin-left: 8px;
    }

    .account-photo,
    .account-placeholder {
        width: 42px;
        height: 42px;
    }

    .account-dropdown {
        left: auto;
        right: 0;
        bottom: 56px;
        width: 230px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dashboard-card {
        padding: 20px;
        border-radius: 16px;
    }

    .dashboard-card h3 {
        font-size: 18px;
    }

    .dashboard-card p {
        font-size: 14px;
    }

    .profile-card,
    .history-card {
        max-width: 100%;
        padding: 20px;
        border-radius: 16px;
    }

    .profile-card input,
    .profile-card select,
    .profile-card textarea {
        max-width: 100%;
        font-size: 14px;
    }

    .profile-card button {
        width: 100%;
        padding: 13px;
    }

    .profile-card img {
        max-width: 100%;
        height: auto;
    }

    .history-card {
        padding: 16px;
        overflow-x: auto;
    }

    .history-table {
        min-width: 900px;
        font-size: 13px;
    }

    .history-table th,
    .history-table td {
        padding: 10px;
    }

    .history-table img {
        width: 70px;
        height: auto;
    }

    .auth-page {
        padding: 16px;
        align-items: flex-start;
        padding-top: 45px;
    }

    .auth-card {
        padding: 24px;
        border-radius: 18px;
    }

    .auth-logo img {
        width: 72px;
        height: 72px;
    }

    .auth-card h2 {
        font-size: 24px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .auth-card input {
        font-size: 14px;
    }

    .password-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .password-rule-card {
        padding: 20px;
    }

    .admin-top-actions {
        flex-direction: column;
        gap: 10px;
    }

    .admin-action-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================
   SIDEBAR ICON POLISH
========================== */

.sidebar-svg {
    width: 22px;
    height: 22px;
    display: block;
}

.sidebar-label {
    display: none;
}

.sidebar-menu a.active {
    background-color: rgba(212, 175, 55, 0.18);
    color: var(--light-gold);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.28);
}

.sidebar-menu a.active::before {
    content: "";
    position: absolute;
    left: -12px;
    width: 4px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        var(--gold),
        var(--light-gold)
    );
}

.sidebar-menu a {
    position: relative;
}

/* Mobile bottom navigation label */
@media (max-width: 768px) {
    .sidebar-menu a {
        flex-direction: column;
        gap: 3px;
        width: 54px;
        height: 54px;
        font-size: 11px;
    }

    .sidebar-svg {
        width: 20px;
        height: 20px;
    }

    .sidebar-label {
        display: block;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
    }

    .sidebar-menu a.active::before {
        display: none;
    }
}

/* ==========================
   DASHBOARD HERO POLISH
========================== */

.dashboard-hero {
    background:
        linear-gradient(
            135deg,
            #111111 0%,
            #1E1E1E 62%,
            rgba(212, 175, 55, 0.92) 100%
        );
    color: #FFFFFF;
    border-radius: 22px;
    padding: 30px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.dashboard-kicker {
    margin: 0 0 8px;
    color: var(--light-gold);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.dashboard-hero h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.dashboard-hero p {
    max-width: 640px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.dashboard-date-card {
    min-width: 160px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 18px;
    text-align: right;
    backdrop-filter: blur(8px);
}

.dashboard-date-card span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 6px;
}

.dashboard-date-card strong {
    color: #FFFFFF;
    font-size: 18px;
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.summary-card {
    background: linear-gradient(145deg, #FFFFFF, #F7F7F7);
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: var(--shadow-soft);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.summary-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-icon svg {
    width: 24px;
    height: 24px;
}

.summary-card span {
    display: block;
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.summary-card strong {
    color: var(--dark-black);
    font-size: 15px;
    font-weight: 800;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: #B91C1C !important;
}

.dashboard-alert-card {
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 24px;
}

.dashboard-alert-card strong {
    color: var(--dark-black);
    font-size: 16px;
}

.dashboard-alert-card p {
    color: #4B5563;
    line-height: 1.5;
    margin: 8px 0 16px;
}

.dashboard-section-title {
    margin: 26px 0 16px;
}

.dashboard-section-title h2 {
    margin: 0;
    color: var(--dark-black);
    font-size: 22px;
    font-weight: 800;
}

.dashboard-section-title p {
    margin: 6px 0 0;
    color: var(--gray);
    font-weight: 500;
}

.dashboard-action-card {
    position: relative;
    overflow: hidden;
}

.dashboard-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.dashboard-card-icon svg {
    width: 27px;
    height: 27px;
}

.dashboard-action-card::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.10);
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 22px;
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-hero h1 {
        font-size: 25px;
    }

    .dashboard-date-card {
        width: 100%;
        text-align: left;
    }

    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================
   CLEAN MESSAGE TEXT
========================== */

.profile-message strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
}

.profile-message span {
    display: block;
    line-height: 1.6;
    font-weight: 600;
}


/* ==========================
   BINARAYA - PREMIUM ATTENDANCE UI
========================== */

:root {
    --binaraya-gold: #D4AF37;
    --binaraya-gold-soft: #F7C35E;
    --binaraya-dark: #0F172A;
    --binaraya-dark-2: #111827;
    --binaraya-text: #1F2937;
    --binaraya-muted: #6B7280;
    --binaraya-border: rgba(212, 175, 55, 0.22);
    --binaraya-surface: rgba(255, 255, 255, 0.88);
    --binaraya-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.main-content {
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), transparent 28%),
        linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);
}


/* ==========================
   HERO HEADER
========================== */

.page-hero {
    width: 100%;
    max-width: 1180px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88));
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 24px;
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: var(--binaraya-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.page-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-hero-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.28);
    flex-shrink: 0;
}

.page-hero h1 {
    margin: 0 0 6px;
    font-size: 34px;
    font-weight: 800;
    color: var(--binaraya-dark);
    line-height: 1.1;
}

.page-hero p {
    margin: 0;
    color: var(--binaraya-muted);
    font-size: 15px;
    line-height: 1.6;
}

.page-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.hero-chip {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--binaraya-dark);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}


/* ==========================
   ATTENDANCE SHELL
========================== */

.profile-card.attendance-shell {
    width: 100%;
    max-width: 1180px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.84));
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--binaraya-shadow);
    backdrop-filter: blur(10px);
}


/* ==========================
   WARNING BOX
========================== */

.profile-card .attendance-warning {
    width: 100%;
    background:
        linear-gradient(
            145deg,
            rgba(212, 175, 55, 0.16),
            rgba(247, 195, 94, 0.08)
        );
    border: 1px solid rgba(212, 175, 55, 0.36);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.profile-card .attendance-warning strong {
    display: block;
    color: var(--binaraya-dark);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.profile-card .attendance-warning p {
    margin: 6px 0 0;
    color: #4B5563;
    line-height: 1.6;
    font-size: 14px;
}


/* ==========================
   ATTENDANCE FORM GRID
========================== */

.profile-card .attendance-form {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.profile-card .attendance-section {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--binaraya-border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.profile-card .attendance-section:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.profile-card .attendance-section:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
}

.profile-card .attendance-section:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
}

.profile-card .attendance-submit {
    grid-column: 1 / -1;
}

.profile-card .attendance-section-header {
    display: block;
    margin-bottom: 14px;
}

.profile-card .attendance-section-header h3 {
    margin: 0 0 6px;
    color: var(--binaraya-dark);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
}

.profile-card .attendance-section-header p {
    margin: 0;
    color: var(--binaraya-muted);
    font-size: 14px;
    line-height: 1.6;
}


/* ==========================
   CAMERA BOX
========================== */

.profile-card .camera-box {
    width: 100%;
    max-width: 100%;
    height: 390px;
    background: #050505;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.42);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255,255,255,0.04);
    margin-top: 12px;
    position: relative;
}

.profile-card .camera-box-top {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.58);
    color: white;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.camera-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
}

.profile-card .camera-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ==========================
   STATUS BOX
========================== */

.profile-card .attendance-status {
    width: 100%;
    max-width: 100%;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    color: #4B5563;
    padding: 12px 14px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 800;
    margin: 12px 0 0;
    line-height: 1.5;
}


/* ==========================
   FORM GROUP
========================== */

.profile-card .form-group {
    display: block;
    width: 100%;
}

.profile-card .form-group label {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    font-weight: 800;
    font-size: 15px;
    color: var(--binaraya-dark);
}

.profile-card .form-group textarea,
.profile-card .form-group input,
.profile-card .form-group select {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid #D1D5DB;
    background: rgba(255,255,255,0.96);
    padding: 14px 16px;
    font-size: 14px;
    color: var(--binaraya-text);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.profile-card .form-group textarea::placeholder,
.profile-card .form-group input::placeholder {
    color: #9CA3AF;
}

.profile-card .form-group textarea:focus,
.profile-card .form-group input:focus,
.profile-card .form-group select:focus {
    outline: none;
    border-color: var(--binaraya-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

.profile-card .form-group textarea {
    min-height: 150px;
    resize: vertical;
}


/* ==========================
   SUBMIT BUTTON
========================== */

.profile-card .attendance-submit {
    display: block;
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    color: #111827 !important;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(212, 175, 55, 0.24);
    transition: all 0.2s ease;
}

.profile-card .attendance-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(212, 175, 55, 0.28);
}

.profile-card .attendance-submit:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    filter: grayscale(0.15);
    transform: none;
}


/* ==========================
   GOLD LINK BUTTON
========================== */

.btn-link-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    color: #111827 !important;
    font-weight: 800;
    text-decoration: none;
    border: none;
    box-shadow: 0 10px 18px rgba(212, 175, 55, 0.22);
}

.btn-link-gold:hover {
    transform: translateY(-1px);
}


/* ==========================
   RESPONSIVE ATTENDANCE
========================== */

@media (max-width: 1100px) {
    .profile-card .attendance-form {
        grid-template-columns: 1fr;
    }

    .profile-card .attendance-section:nth-of-type(1),
    .profile-card .attendance-section:nth-of-type(2),
    .profile-card .attendance-section:nth-of-type(3),
    .profile-card .attendance-submit {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 992px) {
    .page-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero-chips {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .profile-card.attendance-shell {
        padding: 18px;
        border-radius: 22px;
    }

    .page-hero {
        padding: 18px;
        border-radius: 20px;
    }

    .page-hero-left {
        align-items: flex-start;
    }

    .page-hero-badge {
        width: 52px;
        height: 52px;
        font-size: 22px;
        border-radius: 16px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .profile-card .attendance-section {
        padding: 16px;
        border-radius: 18px;
    }

    .profile-card .attendance-section-header h3 {
        font-size: 18px;
    }

    .profile-card .camera-box {
        height: 260px;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        gap: 14px;
    }

    .page-hero-left {
        flex-direction: row;
        gap: 12px;
    }

    .page-hero h1 {
        font-size: 24px;
    }

    .page-hero p {
        font-size: 14px;
    }

    .hero-chip {
        font-size: 12px;
        padding: 8px 12px;
    }

    .profile-card.attendance-shell {
        padding: 14px;
    }

    .profile-card .attendance-warning,
    .profile-card .attendance-section {
        padding: 14px;
    }

    .profile-card .form-group textarea,
    .profile-card .form-group input,
    .profile-card .form-group select {
        padding: 12px 14px;
        font-size: 14px;
    }

    .profile-card .attendance-submit {
        padding: 14px 16px;
    }
}

/* ==========================
   ATTENDANCE SUMMARY ITEM
========================== */

.attendance-summary-list {
    display: grid;
    gap: 12px;
}

.attendance-summary-item {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 16px;
    padding: 14px 16px;
}

.attendance-summary-item span {
    display: block;
    color: var(--binaraya-muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

.attendance-summary-item strong {
    display: block;
    color: var(--binaraya-dark);
    font-size: 16px;
    font-weight: 800;
}

/* ==========================
   PREMIUM HERO ICON
========================== */

.page-hero-badge {
    color: #111827;
}

.page-hero-icon {
    width: 30px;
    height: 30px;
    display: block;
}

@media (max-width: 768px) {
    .page-hero-icon {
        width: 26px;
        height: 26px;
    }
}

/* ==========================
   PREMIUM HERO CHIP ICON
========================== */

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-chip-icon {
    width: 16px;
    height: 16px;
    display: block;
    color: currentColor;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-chip-icon {
        width: 15px;
        height: 15px;
    }
}

/* ==========================
   PREMIUM HISTORY PAGE
========================== */

.history-note-card {
    width: 100%;
    max-width: 1180px;
    background:
        linear-gradient(
            145deg,
            rgba(212, 175, 55, 0.16),
            rgba(247, 195, 94, 0.08)
        );
    border: 1px solid rgba(212, 175, 55, 0.36);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.history-note-card strong {
    display: block;
    color: var(--binaraya-dark);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.history-note-card p {
    margin: 0;
    color: #4B5563;
    line-height: 1.6;
    font-size: 14px;
}

.history-summary-grid {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.history-summary-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--binaraya-shadow);
}

.history-summary-card span {
    display: block;
    color: var(--binaraya-muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.history-summary-card strong {
    color: var(--binaraya-dark);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.history-modern-card {
    width: 100%;
    max-width: 1180px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.84));
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--binaraya-shadow);
}

.history-modern-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.history-modern-header h2 {
    margin: 0 0 6px;
    color: var(--binaraya-dark);
    font-size: 24px;
    font-weight: 800;
}

.history-modern-header p {
    margin: 0;
    color: var(--binaraya-muted);
    font-size: 14px;
    line-height: 1.6;
}

.history-list {
    display: grid;
    gap: 16px;
}

.history-item {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 22px;
    padding: 18px;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.history-date-box {
    width: 86px;
    height: 86px;
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, 0.20),
            rgba(247, 195, 94, 0.10)
        );
    border: 1px solid rgba(212, 175, 55, 0.26);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.history-date-box span {
    color: var(--binaraya-dark);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.history-date-box small {
    margin-top: 6px;
    color: var(--binaraya-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.history-item-content {
    min-width: 0;
}

.history-item-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.history-item-top h3 {
    margin: 0 0 5px;
    color: var(--binaraya-dark);
    font-size: 18px;
    font-weight: 800;
}

.history-item-top p {
    margin: 0;
    color: var(--binaraya-muted);
    font-size: 13px;
    line-height: 1.5;
}

.history-badge-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.history-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.history-info-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 13px 14px;
}

.history-info-item span {
    display: block;
    color: var(--binaraya-muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}

.history-info-item strong {
    color: var(--binaraya-dark);
    font-size: 15px;
    font-weight: 800;
}

.history-empty-state {
    background: rgba(255, 255, 255, 0.76);
    border: 1px dashed rgba(212, 175, 55, 0.45);
    border-radius: 22px;
    padding: 28px;
    text-align: center;
}

.history-empty-state strong {
    display: block;
    color: var(--binaraya-dark);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.history-empty-state p {
    margin: 0 0 18px;
    color: var(--binaraya-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .history-summary-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .history-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .history-modern-card {
        padding: 18px;
        border-radius: 22px;
    }

    .history-item {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .history-date-box {
        width: 100%;
        height: auto;
        min-height: 72px;
        flex-direction: row;
        gap: 8px;
    }

    .history-date-box span {
        font-size: 24px;
    }

    .history-date-box small {
        margin-top: 0;
    }

    .history-item-top {
        flex-direction: column;
    }

    .history-badge-group {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .history-summary-grid {
        grid-template-columns: 1fr;
    }

    .history-note-card,
    .history-summary-card,
    .history-modern-card {
        border-radius: 18px;
    }

    .history-modern-header h2 {
        font-size: 21px;
    }
}

/* ==========================
   DESKTOP WIDE CONTAINER FIX
========================== */

@media (min-width: 1024px) {

    .main-content {
        width: 100%;
        padding: 34px 38px;
    }

    .page-hero,
    .profile-card.attendance-shell,
    .history-note-card,
    .history-summary-grid,
    .history-modern-card {
        width: 100%;
        max-width: 1500px;
    }

    .history-summary-grid {
        grid-template-columns: repeat(4, minmax(180px, 1fr));
    }
}

/* ==========================
   HISTORY CARD CLEAN HEADER
========================== */

.history-item-top-simple {
    justify-content: flex-end;
    margin-bottom: 14px;
}

.history-item-top-simple .history-badge-group {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .history-item-top-simple {
        justify-content: flex-start;
    }

    .history-item-top-simple .history-badge-group {
        justify-content: flex-start;
    }
}

/* ==========================
   HISTORY CARD FINAL ALIGNMENT FIX
========================== */

.history-item {
    align-items: center;
    grid-template-columns: 92px minmax(0, 1fr);
}

.history-date-box {
    align-self: center;
}

.history-item-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.history-item-top-simple {
    grid-column: 2;
    grid-row: 1;
    margin: 0 !important;
    justify-content: flex-end;
    align-self: start;
}

.history-item-top-simple .history-badge-group {
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    min-width: 150px;
}

.history-info-grid {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
    align-items: stretch;
}

.history-info-item {
    min-height: 66px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Supaya badge tidak bikin ruang kosong terlalu besar di layar sedang */
@media (max-width: 1100px) {
    .history-item-content {
        grid-template-columns: 1fr;
    }

    .history-item-top-simple {
        grid-column: 1;
        grid-row: 1;
        justify-content: flex-start;
        margin-bottom: 12px !important;
    }

    .history-item-top-simple .history-badge-group {
        justify-content: flex-start;
        min-width: 0;
    }

    .history-info-grid {
        grid-column: 1;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .history-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .history-item-content {
        display: block;
    }

    .history-item-top-simple {
        margin-top: 12px !important;
        margin-bottom: 12px !important;
    }

    .history-info-item {
        min-height: auto;
    }
}

/* ==========================
   PREMIUM ADMIN PRESENSI PAGE
========================== */

.admin-filter-card,
.admin-presensi-shell {
    width: 100%;
    max-width: 1500px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.84));
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--binaraya-shadow);
    margin-bottom: 22px;
}

.admin-filter-form {
    display: flex;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-filter-form label {
    display: block;
    color: var(--binaraya-dark);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-filter-form input {
    width: 260px;
    max-width: 100%;
    border-radius: 14px;
    border: 1px solid #D1D5DB;
    background: rgba(255,255,255,0.96);
    padding: 13px 14px;
    font-size: 14px;
    color: var(--binaraya-text);
}

.admin-filter-form input:focus {
    outline: none;
    border-color: var(--binaraya-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

.admin-filter-form button {
    padding: 13px 18px;
    border-radius: 14px;
}

.admin-summary-grid {
    grid-template-columns: repeat(5, minmax(160px, 1fr));
}

.admin-presensi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-presensi-header h2 {
    margin: 0 0 6px;
    color: var(--binaraya-dark);
    font-size: 25px;
    font-weight: 800;
}

.admin-presensi-header p {
    margin: 0;
    color: var(--binaraya-muted);
    font-size: 14px;
    line-height: 1.6;
}

.admin-presensi-list {
    display: grid;
    gap: 18px;
}

.admin-presensi-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.admin-presensi-card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.admin-worker-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-worker-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.22);
    flex-shrink: 0;
}

.admin-worker-info h3 {
    margin: 0 0 5px;
    color: var(--binaraya-dark);
    font-size: 19px;
    font-weight: 800;
}

.admin-worker-info p {
    margin: 0;
    color: var(--binaraya-muted);
    font-size: 13px;
    word-break: break-word;
}

.admin-presensi-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-proof-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 16px;
}

.admin-proof-section {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 20px;
    padding: 16px;
}

.admin-proof-section h4 {
    margin: 0 0 13px;
    color: var(--binaraya-dark);
    font-size: 15px;
    font-weight: 800;
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
}

.admin-photo-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 12px;
}

.admin-photo-card span,
.admin-note-card span {
    display: block;
    color: var(--binaraya-muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-photo-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 13px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    display: block;
}

.admin-empty-proof,
.admin-empty-location {
    background: #F9FAFB;
    border: 1px dashed #D1D5DB;
    color: var(--binaraya-muted);
    border-radius: 13px;
    min-height: 54px;
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.admin-location-grid {
    display: grid;
    gap: 10px;
}

.admin-location-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    color: #111827 !important;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(212, 175, 55, 0.18);
}

.admin-location-link:hover {
    transform: translateY(-1px);
}

.admin-note-grid {
    display: grid;
    gap: 10px;
}

.admin-note-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 13px 14px;
}

.admin-note-card p {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

@media (max-width: 1200px) {
    .admin-summary-grid {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }

    .admin-presensi-info-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .admin-proof-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-filter-card,
    .admin-presensi-shell {
        padding: 18px;
        border-radius: 22px;
    }

    .admin-filter-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-filter-form input,
    .admin-filter-form button {
        width: 100%;
    }

    .admin-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-presensi-header {
        flex-direction: column;
    }

    .admin-presensi-card {
        padding: 16px;
        border-radius: 20px;
    }

    .admin-presensi-card-top {
        flex-direction: column;
    }

    .admin-presensi-info-grid,
    .admin-photo-grid {
        grid-template-columns: 1fr;
    }

    .admin-photo-card img {
        height: 220px;
    }
}

/* ==========================
   ADMIN PRESENSI SIMPLE REPORT
========================== */

.admin-report-card {
    width: 100%;
    max-width: 1500px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.84));
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--binaraya-shadow);
    margin-bottom: 22px;
}

.admin-report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-report-header h2 {
    margin: 0 0 6px;
    color: var(--binaraya-dark);
    font-size: 25px;
    font-weight: 800;
}

.admin-report-header p {
    margin: 0;
    color: var(--binaraya-muted);
    line-height: 1.6;
}

.admin-simple-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-simple-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 950px;
}

.admin-simple-table th {
    color: var(--binaraya-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    text-align: left;
    white-space: nowrap;
}

.admin-simple-table td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
    vertical-align: middle;
    color: #111827;
}

.admin-simple-table tr:hover td {
    background: rgba(212, 175, 55, 0.045);
}

.admin-worker-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.admin-worker-avatar.small {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 16px;
}

.admin-worker-inline strong {
    display: block;
    color: var(--binaraya-dark);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

.admin-worker-inline span {
    display: block;
    color: var(--binaraya-muted);
    font-size: 12px;
    word-break: break-word;
}

.admin-status-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-detail-box {
    position: relative;
}

.admin-detail-box summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.32);
    color: var(--binaraya-dark);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.admin-detail-box summary::-webkit-details-marker {
    display: none;
}

.admin-detail-box[open] summary {
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    color: #111827;
}

.admin-detail-panel {
    margin-top: 14px;
    min-width: 720px;
    background: #F9FAFB;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 18px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 14px;
}

.admin-detail-section {
    background: rgba(255,255,255,0.82);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 14px;
}

.admin-detail-section h4 {
    margin: 0 0 12px;
    color: var(--binaraya-dark);
    font-size: 14px;
    font-weight: 800;
}

.admin-photo-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 12px;
}

.admin-photo-compact-grid span,
.admin-note-compact-grid span {
    display: block;
    color: var(--binaraya-muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
}

.admin-photo-compact-grid img {
    width: 100%;
    height: 125px;
    object-fit: cover;
    border-radius: 13px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    display: block;
}

.admin-photo-compact-grid p,
.admin-note-compact-grid p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
    font-size: 13px;
}

.admin-detail-actions {
    display: grid;
    gap: 10px;
}

.admin-detail-actions a,
.admin-detail-actions span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 13px;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
}

.admin-detail-actions a {
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    color: #111827 !important;
    text-decoration: none;
}

.admin-detail-actions span {
    background: #FFFFFF;
    color: var(--binaraya-muted);
    border: 1px dashed #D1D5DB;
}

.admin-note-compact-grid {
    display: grid;
    gap: 10px;
}

.admin-note-compact-grid div {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 13px;
    padding: 11px 12px;
}

.admin-simple-filter .btn-link-gold {
    height: 45px;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 1200px) {
    .admin-summary-grid {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }
}

@media (max-width: 992px) {
    .admin-detail-panel {
        min-width: 640px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-report-card {
        padding: 18px;
        border-radius: 22px;
    }

    .admin-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-detail-panel {
        min-width: 520px;
    }

    .admin-filter-form .btn-link-gold {
        width: 100%;
    }
}

/* ==========================
   PREMIUM ADMIN DASHBOARD
========================== */

.admin-main-hero {
    max-width: 1500px;
}

.admin-logout-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.10);
    color: #B91C1C !important;
    border: 1px solid rgba(220, 38, 38, 0.18);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.admin-logout-soft:hover {
    background: rgba(220, 38, 38, 0.16);
    transform: translateY(-1px);
}

.admin-dashboard-summary {
    width: 100%;
    max-width: 1500px;
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-dashboard-stat {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--binaraya-shadow);
}

.admin-dashboard-stat span {
    display: block;
    color: var(--binaraya-muted);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-dashboard-stat strong {
    display: block;
    color: var(--binaraya-dark);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.admin-dashboard-stat p {
    margin: 0;
    color: #4B5563;
    font-size: 13px;
    font-weight: 600;
}

.admin-performance-grid {
    width: 100%;
    max-width: 1500px;
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.admin-performance-card {
    border-radius: 26px;
    padding: 24px;
    box-shadow: var(--binaraya-shadow);
    color: #FFFFFF;
}

.performance-weekly {
    background:
        linear-gradient(
            135deg,
            #1D4ED8 0%,
            #2563EB 100%
        );
}

.performance-monthly {
    background:
        linear-gradient(
            135deg,
            #047857 0%,
            #059669 100%
        );
}

.admin-performance-header h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
}

.admin-performance-header p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.admin-performance-list {
    display: grid;
    gap: 10px;
}

.admin-performance-item {
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 13px 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.admin-performance-item strong {
    display: block;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

.admin-performance-item span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 700;
}

.admin-performance-count {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-performance-count span {
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}

.admin-performance-count strong {
    display: inline;
    color: #FFFFFF;
    font-size: 13px;
}

.admin-dashboard-grid {
    width: 100%;
    max-width: 1500px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
}

.admin-dashboard-panel,
.admin-dashboard-side {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.84));
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--binaraya-shadow);
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-panel-header h2 {
    margin: 0 0 6px;
    color: var(--binaraya-dark);
    font-size: 24px;
    font-weight: 800;
}

.admin-panel-header p {
    margin: 0;
    color: var(--binaraya-muted);
    font-size: 14px;
    line-height: 1.6;
}

.admin-dashboard-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.admin-dashboard-table th {
    text-align: left;
    color: var(--binaraya-muted);
    font-size: 12px;
    font-weight: 800;
    padding: 13px 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    text-transform: uppercase;
}

.admin-dashboard-table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
    vertical-align: middle;
}

.admin-dashboard-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.admin-shortcut-card {
    display: block;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.20);
    text-decoration: none;
}

.admin-shortcut-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.48);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.admin-shortcut-card strong {
    display: block;
    color: var(--binaraya-dark);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.admin-shortcut-card span {
    color: var(--binaraya-muted);
    font-size: 13px;
    line-height: 1.5;
}

.admin-empty-mini,
.admin-muted-text {
    background: rgba(255, 255, 255, 0.58);
    border: 1px dashed rgba(212, 175, 55, 0.32);
    color: var(--binaraya-muted);
    border-radius: 16px;
    padding: 18px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 1200px) {
    .admin-dashboard-summary {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .admin-performance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-dashboard-summary {
        grid-template-columns: 1fr;
    }

    .admin-performance-card,
    .admin-dashboard-panel,
    .admin-dashboard-side {
        padding: 18px;
        border-radius: 22px;
    }

    .admin-panel-header {
        flex-direction: column;
    }

    .admin-panel-header .btn-link-gold {
        width: 100%;
        text-align: center;
    }

    .admin-performance-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-performance-count {
        justify-content: flex-start;
    }
}

/* ==========================
   ADMIN CONTROL DASHBOARD - LIGHT BINARAYA FIX
========================== */

.admin-control-main {
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 28%),
        linear-gradient(135deg, #F7F7F7 0%, #E6E6E6 100%) !important;
    min-height: 100vh;
    color: var(--dark-black) !important;
}

.admin-control-shell {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.86));
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--binaraya-shadow);
}

.admin-control-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    margin-bottom: 24px;
}

.admin-control-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-control-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    border: 1px solid rgba(212, 175, 55, 0.42);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.24);
}

.admin-control-profile h1 {
    margin: 0 0 5px;
    color: var(--binaraya-dark);
    font-size: 30px;
    font-weight: 800;
}

.admin-control-profile p {
    margin: 0;
    color: var(--binaraya-muted);
    font-size: 14px;
    font-weight: 600;
}

.admin-control-profile strong {
    color: var(--binaraya-dark);
}

.admin-control-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #B91C1C !important;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.18);
    padding: 11px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
}

.admin-control-logout:hover {
    background: rgba(220, 38, 38, 0.14);
    transform: translateY(-1px);
}

.admin-control-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.admin-control-stat {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.admin-control-stat span {
    display: block;
    color: var(--binaraya-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.admin-control-stat strong {
    display: block;
    color: var(--binaraya-dark);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.admin-control-stat small {
    display: block;
    margin-top: 8px;
    color: #6B7280;
    font-weight: 700;
}

/* ==========================
   REPORT & MONITOR PANEL
========================== */

.admin-report-panel,
.admin-monitor-panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.84));
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 26px;
    box-shadow: var(--binaraya-shadow);
}

.admin-report-panel-header,
.admin-monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    margin-bottom: 18px;
}

.admin-report-panel-header h2,
.admin-monitor-header h2 {
    margin: 0 0 6px;
    color: var(--binaraya-dark);
    font-size: 20px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

.admin-report-panel-header p,
.admin-monitor-header p {
    margin: 0;
    color: var(--binaraya-muted);
    font-size: 14px;
    line-height: 1.6;
}

.admin-export-btn,
.admin-small-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    color: #111827 !important;
    border: none;
    border-radius: 13px;
    padding: 11px 15px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 10px 18px rgba(212, 175, 55, 0.20);
}

/* ==========================
   FILTER
========================== */

.admin-report-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) 180px;
    gap: 14px;
    margin-bottom: 18px;
}

.admin-report-filter label {
    display: block;
    color: var(--binaraya-dark);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.admin-report-filter select,
.admin-report-filter button {
    width: 100%;
    height: 48px;
    border-radius: 13px;
    border: 1px solid #D1D5DB;
    background: rgba(255, 255, 255, 0.96);
    color: var(--binaraya-dark);
    padding: 0 14px;
    font-weight: 800;
}

.admin-report-filter select:focus {
    outline: none;
    border-color: var(--binaraya-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

.admin-report-filter button {
    margin-top: 24px;
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    color: #111827 !important;
    border: none;
    cursor: pointer;
}

/* ==========================
   RESULT CARDS
========================== */

.admin-report-result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.admin-report-result {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.20);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
}

.admin-report-result span {
    display: block;
    color: var(--binaraya-muted);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-report-result strong {
    color: var(--binaraya-dark);
    font-size: 22px;
    font-weight: 800;
}

.admin-report-note {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--binaraya-muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-report-note strong {
    color: var(--binaraya-dark);
}

/* ==========================
   MONITOR TABLE
========================== */

.admin-monitor-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-monitor-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.admin-monitor-table th {
    text-align: left;
    color: var(--binaraya-muted);
    padding: 14px 12px;
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.admin-monitor-table td {
    padding: 16px 12px;
    color: #374151;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
    vertical-align: middle;
}

.admin-monitor-table tr:hover td {
    background: rgba(212, 175, 55, 0.045);
}

.admin-monitor-table td strong {
    display: block;
    color: var(--binaraya-dark);
    font-weight: 800;
    margin-bottom: 4px;
}

.admin-monitor-table td span {
    display: block;
    color: var(--binaraya-muted);
    font-size: 12px;
}

.admin-time-in {
    color: #15803D !important;
    font-weight: 800;
}

.admin-time-out {
    color: #B91C1C !important;
    font-weight: 800;
}

/* ==========================
   DETAIL COLLAPSE
========================== */

.admin-control-detail summary {
    list-style: none;
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.32);
    color: var(--binaraya-dark);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.admin-control-detail summary::-webkit-details-marker {
    display: none;
}

.admin-control-detail[open] summary {
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    color: #111827;
}

.admin-control-detail-panel {
    margin-top: 12px;
    min-width: 680px;
    background: #F9FAFB;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 18px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.admin-control-detail-panel h4 {
    margin: 0 0 10px;
    color: var(--binaraya-dark);
    font-size: 14px;
    font-weight: 800;
}

.admin-control-photo-grid,
.admin-control-action-grid {
    display: grid;
    gap: 10px;
}

.admin-control-photo-grid a,
.admin-control-action-grid a,
.admin-control-action-grid span {
    display: block;
    background: rgba(212, 175, 55, 0.14);
    color: var(--binaraya-dark) !important;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 12px;
    padding: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: 800;
    font-size: 12px;
}

.admin-control-detail-panel p {
    color: #374151;
    line-height: 1.6;
    font-size: 13px;
}

/* ==========================
   SHORTCUT
========================== */

.admin-control-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
}

.admin-control-shortcut-grid a {
    display: block;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.20);
    border-radius: 18px;
    padding: 18px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.admin-control-shortcut-grid a:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.42);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.admin-control-shortcut-grid strong {
    display: block;
    color: var(--binaraya-dark);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.admin-control-shortcut-grid span {
    color: var(--binaraya-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 1200px) {
    .admin-control-stat-grid,
    .admin-report-result-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .admin-report-filter {
        grid-template-columns: 1fr;
    }

    .admin-report-filter button {
        margin-top: 0;
    }

    .admin-control-shortcut-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-control-shell {
        padding: 20px;
        border-radius: 22px;
    }

    .admin-control-top,
    .admin-report-panel-header,
    .admin-monitor-header,
    .admin-report-note {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-control-stat-grid,
    .admin-report-result-grid {
        grid-template-columns: 1fr;
    }

    .admin-control-profile {
        align-items: flex-start;
    }

    .admin-control-profile h1 {
        font-size: 24px;
    }

    .admin-control-logout,
    .admin-export-btn,
    .admin-small-link {
        width: 100%;
    }

    .admin-control-detail-panel {
        min-width: 560px;
        grid-template-columns: 1fr;
    }
}

/* ==========================
   FINAL ADMIN DASHBOARD PATCH
========================== */

.admin-report-filter {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) 160px 160px;
}

.admin-export-submit {
    margin-top: 24px !important;
    background: linear-gradient(135deg, #15803D, #22C55E) !important;
    color: #FFFFFF !important;
    border: none !important;
    height: 48px;
    border-radius: 13px;
    font-weight: 800;
    cursor: pointer;
}

.admin-export-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.admin-control-shortcut-single {
    grid-template-columns: 1fr;
}

.admin-control-shortcut-single a {
    max-width: 100%;
}

@media (max-width: 1200px) {
    .admin-report-filter {
        grid-template-columns: 1fr;
    }

    .admin-export-submit {
        margin-top: 0 !important;
    }
}

/* =========================================================
   FINAL ADMIN DASHBOARD - LIGHT BINARAYA ALL IN ONE
   Tempel di PALING BAWAH style.css
========================================================= */

.admin-control-main {
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 28%),
        linear-gradient(135deg, #F7F7F7 0%, #E6E6E6 100%) !important;
    min-height: 100vh;
    color: var(--dark-black) !important;
    padding: 28px !important;
}

.admin-control-shell {
    width: 100% !important;
    max-width: 1500px !important;
    margin: 0 auto !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88)) !important;
    border: 1px solid rgba(212, 175, 55, 0.24) !important;
    border-radius: 28px !important;
    padding: 30px !important;
    box-shadow: var(--binaraya-shadow) !important;
}

.admin-control-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 18px !important;
    padding-bottom: 22px !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18) !important;
    margin-bottom: 22px !important;
}

.admin-control-profile {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.admin-control-avatar {
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft)) !important;
    border: 1px solid rgba(212, 175, 55, 0.42) !important;
    color: #111827 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.24) !important;
}

.admin-control-profile h1 {
    margin: 0 0 5px !important;
    color: var(--binaraya-dark) !important;
    font-size: 30px !important;
    font-weight: 800 !important;
}

.admin-control-profile p {
    margin: 0 !important;
    color: var(--binaraya-muted) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.admin-control-profile strong {
    color: var(--binaraya-dark) !important;
}

.admin-control-logout {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #B91C1C !important;
    background: rgba(220, 38, 38, 0.08) !important;
    border: 1px solid rgba(220, 38, 38, 0.18) !important;
    padding: 11px 16px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 800 !important;
}

.admin-control-logout:hover {
    background: rgba(220, 38, 38, 0.14) !important;
    transform: translateY(-1px) !important;
}

.admin-control-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(160px, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

.admin-control-stat {
    background: rgba(255, 255, 255, 0.82) !important;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    text-align: center !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04) !important;
}

.admin-control-stat span {
    display: block !important;
    color: var(--binaraya-muted) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
}

.admin-control-stat strong {
    display: block !important;
    color: var(--binaraya-dark) !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.admin-control-stat small {
    display: block !important;
    margin-top: 8px !important;
    color: #6B7280 !important;
    font-weight: 700 !important;
}

.admin-report-panel,
.admin-monitor-panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.84)) !important;
    border: 1px solid rgba(212, 175, 55, 0.18) !important;
    border-radius: 24px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: var(--binaraya-shadow) !important;
}

.admin-report-panel-header,
.admin-monitor-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 18px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18) !important;
    margin-bottom: 18px !important;
}

.admin-report-panel-header h2,
.admin-monitor-header h2 {
    margin: 0 0 6px !important;
    color: var(--binaraya-dark) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.admin-report-panel-header p,
.admin-monitor-header p {
    margin: 0 !important;
    color: var(--binaraya-muted) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.admin-report-filter {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) 160px 160px !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
    align-items: end !important;
}

.admin-report-filter label {
    display: block !important;
    color: var(--binaraya-dark) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
}

.admin-report-filter select,
.admin-report-filter button,
.admin-export-link {
    width: 100% !important;
    height: 48px !important;
    border-radius: 13px !important;
    border: 1px solid #D1D5DB !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--binaraya-dark) !important;
    padding: 0 14px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
}

.admin-report-filter select:focus {
    outline: none !important;
    border-color: var(--binaraya-gold) !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14) !important;
}

.admin-report-filter button[type="submit"] {
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft)) !important;
    color: #111827 !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: 0 !important;
}

.admin-export-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #15803D, #22C55E) !important;
    color: #FFFFFF !important;
    border: none !important;
    margin-top: 0 !important;
    box-shadow: 0 10px 18px rgba(21, 128, 61, 0.18) !important;
}

.admin-export-link:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.03) !important;
}

.admin-report-result-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
    gap: 14px !important;
    margin-top: 16px !important;
}

.admin-report-result {
    background: rgba(255, 255, 255, 0.80) !important;
    border: 1px solid rgba(212, 175, 55, 0.20) !important;
    border-radius: 18px !important;
    padding: 18px !important;
    text-align: center !important;
}

.admin-report-result span {
    display: block !important;
    color: var(--binaraya-muted) !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
}

.admin-report-result strong {
    color: var(--binaraya-dark) !important;
    font-size: 22px !important;
    font-weight: 800 !important;
}

.admin-report-note {
    margin-top: 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 14px !important;
    color: var(--binaraya-muted) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.admin-report-note strong {
    color: var(--binaraya-dark) !important;
}

.admin-monitor-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
}

.admin-monitor-table {
    width: 100% !important;
    min-width: 980px !important;
    border-collapse: collapse !important;
}

.admin-monitor-table th {
    text-align: left !important;
    color: var(--binaraya-muted) !important;
    padding: 14px 12px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22) !important;
}

.admin-monitor-table td {
    padding: 16px 12px !important;
    color: #374151 !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14) !important;
    vertical-align: middle !important;
}

.admin-monitor-table tr:hover td {
    background: rgba(212, 175, 55, 0.045) !important;
}

.admin-monitor-table td strong {
    display: block !important;
    color: var(--binaraya-dark) !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
}

.admin-monitor-table td span {
    display: block !important;
    color: var(--binaraya-muted) !important;
    font-size: 12px !important;
}

.admin-time-in {
    color: #15803D !important;
    font-weight: 800 !important;
}

.admin-time-out {
    color: #B91C1C !important;
    font-weight: 800 !important;
}

.admin-status-stack {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
}

.admin-detail-button {
    border: 1px solid rgba(212, 175, 55, 0.36) !important;
    background: rgba(212, 175, 55, 0.14) !important;
    color: var(--binaraya-dark) !important;
    border-radius: 999px !important;
    padding: 8px 13px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    min-width: auto !important;
    margin: 0 !important;
}

.admin-detail-button:hover {
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft)) !important;
    color: #111827 !important;
    transform: translateY(-1px) !important;
}

body.modal-open {
    overflow: hidden !important;
}

.admin-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: rgba(15, 23, 42, 0.42) !important;
    backdrop-filter: blur(5px) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 22px !important;
}

.admin-modal-overlay.show {
    display: flex !important;
}

.admin-modal-card {
    width: 100% !important;
    max-width: 860px !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92)) !important;
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
    border-radius: 24px !important;
    padding: 24px !important;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28) !important;
}

.admin-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 18px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.20) !important;
    margin-bottom: 18px !important;
}

.admin-modal-header h3 {
    margin: 0 0 5px !important;
    color: var(--binaraya-dark) !important;
    font-size: 22px !important;
    font-weight: 800 !important;
}

.admin-modal-header p {
    margin: 0 !important;
    color: var(--binaraya-muted) !important;
    font-size: 14px !important;
}

.admin-modal-header button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(220, 38, 38, 0.20) !important;
    background: rgba(220, 38, 38, 0.08) !important;
    color: #B91C1C !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
}

.admin-modal-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
    gap: 16px !important;
}

.admin-modal-section {
    background: rgba(255, 255, 255, 0.78) !important;
    border: 1px solid rgba(212, 175, 55, 0.18) !important;
    border-radius: 18px !important;
    padding: 16px !important;
}

.admin-modal-section h4 {
    margin: 0 0 14px !important;
    color: var(--binaraya-dark) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.admin-modal-actions {
    display: grid !important;
    gap: 10px !important;
}

.admin-modal-actions a,
.admin-modal-actions span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.admin-modal-actions a {
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft)) !important;
    color: #111827 !important;
    text-decoration: none !important;
}

.admin-modal-actions span {
    background: #F9FAFB !important;
    border: 1px dashed #D1D5DB !important;
    color: var(--binaraya-muted) !important;
}

.admin-modal-note {
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 14px !important;
    padding: 12px !important;
    margin-bottom: 10px !important;
}

.admin-modal-note strong {
    display: block !important;
    color: var(--binaraya-dark) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
}

.admin-modal-note p {
    margin: 0 !important;
    color: #374151 !important;
    line-height: 1.6 !important;
    font-size: 13px !important;
    word-break: break-word !important;
}

.admin-control-shortcut-grid.admin-control-shortcut-single {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
}

.admin-control-shortcut-single a {
    display: block !important;
    background: rgba(255, 255, 255, 0.80) !important;
    border: 1px solid rgba(212, 175, 55, 0.20) !important;
    border-radius: 18px !important;
    padding: 18px !important;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04) !important;
}

.admin-control-shortcut-single a:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(212, 175, 55, 0.42) !important;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08) !important;
}

.admin-control-shortcut-single strong {
    display: block !important;
    color: var(--binaraya-dark) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
}

.admin-control-shortcut-single span {
    color: var(--binaraya-muted) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

@media (max-width: 1200px) {
    .admin-control-stat-grid,
    .admin-report-result-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr)) !important;
    }

    .admin-report-filter {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 992px) {
    .admin-modal-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .admin-control-main {
        padding: 16px !important;
    }

    .admin-control-shell {
        padding: 20px !important;
        border-radius: 22px !important;
    }

    .admin-control-top,
    .admin-report-panel-header,
    .admin-monitor-header,
    .admin-report-note {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .admin-control-stat-grid,
    .admin-report-result-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-control-profile {
        align-items: flex-start !important;
    }

    .admin-control-profile h1 {
        font-size: 24px !important;
    }

    .admin-control-logout,
    .admin-export-link {
        width: 100% !important;
    }

    .admin-modal-card {
        padding: 18px !important;
        border-radius: 20px !important;
    }

    .admin-modal-header {
        align-items: flex-start !important;
    }
}

/* ==========================
   ADMIN DASHBOARD COLORFUL BINARAYA PATCH
========================== */

/* Biar halaman admin lebih hidup */
.admin-control-main {
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(17, 24, 39, 0.08), transparent 32%),
        linear-gradient(135deg, #F8F7F2 0%, #E7E3D7 100%) !important;
}

/* Shell utama tetap terang tapi lebih premium */
.admin-control-shell {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,248,241,0.92)) !important;
    border: 1px solid rgba(212, 175, 55, 0.32) !important;
    box-shadow:
        0 24px 55px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.82) !important;
}

/* Header admin dibuat mirip hero, tapi tetap light */
.admin-control-top {
    background:
        linear-gradient(
            135deg,
            #111111 0%,
            #1E1E1E 58%,
            rgba(180, 135, 24, 0.95) 100%
        );
    border-radius: 24px;
    padding: 24px !important;
    border-bottom: none !important;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.admin-control-profile h1 {
    color: #FFFFFF !important;
}

.admin-control-profile p {
    color: rgba(255,255,255,0.72) !important;
}

.admin-control-profile strong {
    color: var(--binaraya-gold-soft) !important;
}

.admin-control-avatar {
    background: rgba(212, 175, 55, 0.18) !important;
    border: 1px solid rgba(247, 195, 94, 0.45) !important;
    color: var(--binaraya-gold-soft) !important;
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.18) !important;
}

/* Logout tetap merah tapi lebih soft */
.admin-control-logout {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FCA5A5 !important;
    border: 1px solid rgba(252, 165, 165, 0.35) !important;
}

.admin-control-logout:hover {
    background: rgba(220, 38, 38, 0.22) !important;
}

/* Stat card dibuat lebih hidup */
.admin-control-stat {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86) !important;
    border: 1px solid rgba(212, 175, 55, 0.24) !important;
}

.admin-control-stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    border-radius: 20px 0 0 20px;
}

.admin-control-stat::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
}

.admin-control-stat:nth-child(1)::before {
    background: linear-gradient(180deg, #D4AF37, #F7C35E);
}

.admin-control-stat:nth-child(2)::before {
    background: linear-gradient(180deg, #2563EB, #60A5FA);
}

.admin-control-stat:nth-child(3)::before {
    background: linear-gradient(180deg, #15803D, #22C55E);
}

.admin-control-stat:nth-child(4)::before {
    background: linear-gradient(180deg, #DC2626, #F87171);
}

.admin-control-stat strong {
    position: relative;
    z-index: 1;
}

.admin-control-stat:nth-child(1) strong {
    color: #B48718 !important;
}

.admin-control-stat:nth-child(2) strong {
    color: #2563EB !important;
}

.admin-control-stat:nth-child(3) strong {
    color: #15803D !important;
}

.admin-control-stat:nth-child(4) strong {
    color: #B91C1C !important;
}

/* Panel laporan diberi aksen */
.admin-report-panel {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,248,225,0.74)) !important;
    border: 1px solid rgba(212, 175, 55, 0.30) !important;
}

.admin-report-panel-header h2::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    margin-right: 10px;
    vertical-align: -4px;
}

/* Result laporan lebih berwarna */
.admin-report-result {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.84) !important;
}

.admin-report-result::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.10);
}

.admin-report-result:nth-child(1) strong {
    color: #15803D !important;
}

.admin-report-result:nth-child(2) strong {
    color: #B91C1C !important;
}

.admin-report-result:nth-child(3) strong {
    color: #D97706 !important;
}

.admin-report-result:nth-child(4) strong {
    color: #2563EB !important;
}

/* Panel monitor lebih clean dan hidup */
.admin-monitor-panel {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,252,0.86)) !important;
    border: 1px solid rgba(212, 175, 55, 0.26) !important;
}

.admin-monitor-header h2::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #111827, var(--binaraya-gold));
    margin-right: 10px;
    vertical-align: -4px;
}

.admin-monitor-table th {
    background: rgba(212, 175, 55, 0.08);
    color: var(--binaraya-dark) !important;
}

.admin-monitor-table tr:hover td {
    background: rgba(212, 175, 55, 0.07) !important;
}

/* Tombol filter/export lebih premium */
.admin-report-filter button,
.admin-export-submit {
    box-shadow: 0 12px 20px rgba(212, 175, 55, 0.20);
}

.admin-export-submit {
    background: linear-gradient(135deg, #15803D, #22C55E) !important;
    color: #FFFFFF !important;
    border: none !important;
}

.admin-export-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

/* Shortcut data pekerja dibuat lebih seperti card menu */
.admin-control-shortcut-grid a {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,248,225,0.76)) !important;
    border: 1px solid rgba(212, 175, 55, 0.30) !important;
}

.admin-control-shortcut-grid a::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.13);
}

/* Modal detail dibuat lebih premium juga */
.admin-modal-header {
    background:
        linear-gradient(135deg, rgba(17,24,39,0.96), rgba(180,135,24,0.88));
    margin: -24px -24px 18px;
    padding: 22px 24px;
    border-radius: 24px 24px 0 0;
    border-bottom: none !important;
}

.admin-modal-header h3 {
    color: #FFFFFF !important;
}

.admin-modal-header p {
    color: rgba(255,255,255,0.74) !important;
}

.admin-modal-section {
    background: rgba(255, 255, 255, 0.86) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-control-top {
        padding: 20px !important;
        border-radius: 20px;
    }

    .admin-modal-header {
        margin: -18px -18px 18px;
        padding: 20px 18px;
        border-radius: 20px 20px 0 0;
    }
}

/* ==========================
   ADMIN PHOTO PREVIEW MODAL
========================== */

.admin-photo-preview-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 13px;
    border: none;
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    color: #111827 !important;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
}

.admin-photo-preview-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.admin-photo-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.admin-photo-preview-overlay.show {
    display: flex;
}

.admin-photo-preview-card {
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(212, 175, 55, 0.34);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
}

.admin-photo-preview-header {
    background:
        linear-gradient(
            135deg,
            #111111 0%,
            #1E1E1E 58%,
            rgba(180, 135, 24, 0.95) 100%
        );
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.admin-photo-preview-header h3 {
    margin: 0 0 5px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 800;
}

.admin-photo-preview-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.admin-photo-preview-header button {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(252, 165, 165, 0.35);
    background: rgba(220, 38, 38, 0.12);
    color: #FCA5A5 !important;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.admin-photo-preview-body {
    padding: 18px;
    background: #F9FAFB;
}

.admin-photo-preview-body img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: #FFFFFF;
}

@media (max-width: 768px) {
    .admin-photo-preview-card {
        border-radius: 20px;
    }

    .admin-photo-preview-header {
        padding: 18px;
    }

    .admin-photo-preview-body {
        padding: 14px;
    }
}

/* ==========================
   FIX FOTO POPUP DI ATAS DETAIL MODAL
========================== */

.admin-modal-overlay {
    z-index: 9999 !important;
}

.admin-modal-card {
    position: relative;
    z-index: 10000 !important;
}

.admin-photo-preview-overlay {
    z-index: 20000 !important;
}

.admin-photo-preview-card {
    position: relative;
    z-index: 20001 !important;
}

/* ==========================
   FIX DETAIL MODAL & FOTO MODAL STACKING
========================== */

.admin-modal-overlay {
    z-index: 9999 !important;
}

.admin-modal-card {
    position: relative;
    z-index: 10000 !important;
}

.admin-photo-preview-overlay {
    z-index: 20000 !important;
}

.admin-photo-preview-card {
    position: relative;
    z-index: 20001 !important;
}

/* ==========================
   ADMIN DASHBOARD MODAL & PHOTO PREVIEW
========================== */

body.modal-open {
    overflow: hidden;
}

.admin-modal-overlay {
    z-index: 10000 !important;
}

.admin-modal-card {
    position: relative;
    z-index: 10001 !important;
}

.admin-photo-preview-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 13px;
    border: none;
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    color: #111827 !important;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
}

.admin-photo-preview-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.admin-photo-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000 !important;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.admin-photo-preview-overlay.show {
    display: flex;
}

.admin-photo-preview-card {
    position: relative;
    z-index: 20001 !important;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(212, 175, 55, 0.34);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
}

.admin-photo-preview-header {
    background:
        linear-gradient(
            135deg,
            #111111 0%,
            #1E1E1E 58%,
            rgba(180, 135, 24, 0.95) 100%
        );
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.admin-photo-preview-header h3 {
    margin: 0 0 5px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 800;
}

.admin-photo-preview-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.admin-photo-preview-header button {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(252, 165, 165, 0.35);
    background: rgba(220, 38, 38, 0.12);
    color: #FCA5A5 !important;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.admin-photo-preview-body {
    padding: 18px;
    background: #F9FAFB;
}

.admin-photo-preview-body img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: #FFFFFF;
}

@media (max-width: 768px) {
    .admin-photo-preview-card {
        border-radius: 20px;
    }

    .admin-photo-preview-header {
        padding: 18px;
    }

    .admin-photo-preview-body {
        padding: 14px;
    }
}

/* ==========================
   KTP PREVIEW POPUP
========================== */

body.modal-open {
    overflow: hidden;
}

.ktp-preview-btn {
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    color: #111827;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.18);
}

.ktp-preview-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.ktp-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 30000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.ktp-preview-overlay.show {
    display: flex;
}

.ktp-preview-card {
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(212, 175, 55, 0.34);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
}

.ktp-preview-header {
    background:
        linear-gradient(
            135deg,
            #111111 0%,
            #1E1E1E 58%,
            rgba(180, 135, 24, 0.95) 100%
        );
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.ktp-preview-header h3 {
    margin: 0 0 5px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 800;
}

.ktp-preview-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.ktp-preview-header button {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(252, 165, 165, 0.35);
    background: rgba(220, 38, 38, 0.12);
    color: #FCA5A5;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.ktp-preview-body {
    padding: 18px;
    background: #F9FAFB;
}

.ktp-preview-body img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: #FFFFFF;
}

@media (max-width: 768px) {
    .ktp-preview-card {
        border-radius: 20px;
    }

    .ktp-preview-header {
        padding: 18px;
    }

    .ktp-preview-body {
        padding: 14px;
    }
}

/* ==========================
   ADMIN GPS PREVIEW POPUP
========================== */

.admin-gps-preview-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 13px;
    border: none;
    background: linear-gradient(135deg, var(--binaraya-gold), var(--binaraya-gold-soft));
    color: #111827 !important;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
}

.admin-gps-preview-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.admin-gps-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 21000 !important;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.admin-gps-preview-overlay.show {
    display: flex;
}

.admin-gps-preview-card {
    position: relative;
    z-index: 21001 !important;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(212, 175, 55, 0.34);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
}

.admin-gps-preview-header {
    background:
        linear-gradient(
            135deg,
            #111111 0%,
            #1E1E1E 58%,
            rgba(180, 135, 24, 0.95) 100%
        );
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.admin-gps-preview-header h3 {
    margin: 0 0 5px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 800;
}

.admin-gps-preview-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.admin-gps-preview-header button {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(252, 165, 165, 0.35);
    background: rgba(220, 38, 38, 0.12);
    color: #FCA5A5 !important;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.admin-gps-preview-body {
    padding: 18px;
    background: #F9FAFB;
}

.admin-gps-preview-body iframe {
    width: 100%;
    height: 480px;
    display: block;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 18px;
    background: #FFFFFF;
}

@media (max-width: 768px) {
    .admin-gps-preview-card {
        border-radius: 20px;
    }

    .admin-gps-preview-header {
        padding: 18px;
    }

    .admin-gps-preview-body {
        padding: 14px;
    }

    .admin-gps-preview-body iframe {
        height: 360px;
    }
}

/* ==========================
   LIVE CLOCK DASHBOARD PEKERJA
========================== */

.live-clock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* ==========================
   DASHBOARD PEKERJA HERO CLOCK FIX
========================== */

.dashboard-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            #111111 0%,
            #171717 48%,
            #3A3214 73%,
            #B69224 100%
        ) !important;
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

/* Hilangkan garis/efek hitam aneh di ujung hero */
.dashboard-hero::before,
.dashboard-hero::after {
    display: none !important;
    content: none !important;
}

.dashboard-date-card {
    min-width: 220px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    text-align: left !important;
}

.dashboard-date-card span {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 700;
    text-align: left !important;
}

.dashboard-date-card strong {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.live-clock {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);

    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Mobile biar tetap rapi */
@media (max-width: 768px) {
    .dashboard-date-card {
        width: 100%;
        min-width: 0;
    }

    .dashboard-date-card strong {
        font-size: 17px;
    }
}

.camera-box video {
    transform: scaleX(-1);
}

/* ==========================
   ATTENDANCE CAMERA ACTION BUTTONS
========================== */

.attendance-camera-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.attendance-secondary-btn {
    border: 1px solid rgba(180, 135, 24, 0.35);
    background: rgba(255, 248, 225, 0.86);
    color: #111827;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    min-height: 44px;
    box-shadow: 0 10px 20px rgba(180, 135, 24, 0.10);
}

.attendance-secondary-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.attendance-secondary-btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

@media (max-width: 768px) {
    .attendance-camera-actions {
        flex-direction: column;
    }

    .attendance-secondary-btn {
        width: 100%;
    }
}

/* =====================================================
   BINARAYA LOGO FINAL - PREMIUM GLOW
   Satu-satunya CSS final untuk logo sidebar dan login
===================================================== */

.logo-img {
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
}

/* ==========================
   SIDEBAR LOGO
========================== */

.sidebar-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    overflow: visible;
    flex-shrink: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.sidebar-logo .logo-img {
    width: 56px;
    height: 56px;
    padding: 0;
    margin: 0;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.42);
    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.08),
        0 0 16px rgba(212, 175, 55, 0.26),
        0 8px 20px rgba(0, 0, 0, 0.32);
}

.sidebar-logo::before,
.sidebar-logo::after {
    display: none;
    content: none;
}

/* ==========================
   LOGIN / REGISTER LOGO
========================== */

.auth-logo {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.auth-logo img {
    width: 104px;
    height: 104px;
    display: block;
    padding: 0;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.38);
    box-shadow:
        0 0 0 4px rgba(212, 175, 55, 0.08),
        0 0 22px rgba(212, 175, 55, 0.24),
        0 10px 24px rgba(0, 0, 0, 0.18);
}

.auth-logo::before,
.auth-logo::after {
    display: none;
    content: none;
}

/* ==========================
   MOBILE LOGO
========================== */

@media (max-width: 768px) {
    .sidebar-logo {
        display: none;
    }

    .auth-logo img {
        width: 92px;
        height: 92px;
    }
}

/* ==========================
   ADMIN DASHBOARD REVISION
========================== */

.admin-control-stat-grid {
    grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.status-working {
    display: inline-block;
    background-color: rgba(34, 197, 94, 0.14);
    color: #15803D;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
}

.status-absent {
    display: inline-block;
    background-color: rgba(220, 38, 38, 0.13);
    color: #b91c1c;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
}

.admin-detail-empty {
    color: #6B7280;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .admin-control-stat-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-control-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================
   ADMIN STAT CARD 5 KOLOM FIX
========================== */

.admin-control-shell {
    max-width: 1280px !important;
    width: 100% !important;
}

.admin-control-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    align-items: stretch !important;
}

.admin-control-stat {
    min-width: 0 !important;
    height: 108px !important;
    padding: 18px 14px !important;
}

.admin-control-stat span {
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.admin-control-stat strong {
    font-size: 28px !important;
    line-height: 1.1 !important;
}

.admin-control-stat small {
    font-size: 11px !important;
    line-height: 1.2 !important;
}

/* Tablet: baru turun kalau layar memang kecil */
@media (max-width: 1024px) {
    .admin-control-stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .admin-control-stat-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================
   ADMIN STAT FINAL COLOR FIX
   Taruh paling bawah style.css
========================== */

.admin-control-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    align-items: stretch !important;
}

.admin-control-stat {
    position: relative !important;
    overflow: hidden !important;
    min-width: 0 !important;
    height: 108px !important;
    padding: 18px 14px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    border: 1px solid rgba(212, 175, 55, 0.24) !important;
}

/* Garis kiri kartu */
.admin-control-stat::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 6px !important;
    border-radius: 20px 0 0 20px !important;
}

/* Lingkaran dekorasi kanan bawah */
.admin-control-stat::after {
    content: "" !important;
    position: absolute !important;
    right: -28px !important;
    bottom: -28px !important;
    width: 88px !important;
    height: 88px !important;
    border-radius: 50% !important;
    background: rgba(212, 175, 55, 0.12) !important;
}

.admin-control-stat span,
.admin-control-stat strong,
.admin-control-stat small {
    position: relative !important;
    z-index: 1 !important;
}

.admin-control-stat span {
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.admin-control-stat strong {
    font-size: 28px !important;
    line-height: 1.1 !important;
}

.admin-control-stat small {
    font-size: 11px !important;
    line-height: 1.2 !important;
}

/* 1. Total Pekerja - Abu */
.admin-control-stat-grid .admin-control-stat:nth-child(1)::before {
    background: linear-gradient(180deg, #6B7280, #9CA3AF) !important;
}

.admin-control-stat-grid .admin-control-stat:nth-child(1) strong {
    color: #4B5563 !important;
}

/* 2. Sedang Bekerja - Hijau */
.admin-control-stat-grid .admin-control-stat:nth-child(2)::before {
    background: linear-gradient(180deg, #15803D, #22C55E) !important;
}

.admin-control-stat-grid .admin-control-stat:nth-child(2) strong {
    color: #15803D !important;
}

/* 3. Selesai Presensi - Biru */
.admin-control-stat-grid .admin-control-stat:nth-child(3)::before {
    background: linear-gradient(180deg, #2563EB, #3B82F6) !important;
}

.admin-control-stat-grid .admin-control-stat:nth-child(3) strong {
    color: #2563EB !important;
}

/* 4. Tidak Bekerja - Merah */
.admin-control-stat-grid .admin-control-stat:nth-child(4)::before {
    background: linear-gradient(180deg, #DC2626, #F87171) !important;
}

.admin-control-stat-grid .admin-control-stat:nth-child(4) strong {
    color: #B91C1C !important;
}

/* 5. Terlambat - Gold */
.admin-control-stat-grid .admin-control-stat:nth-child(5)::before {
    background: linear-gradient(180deg, #B48718, #D4AF37) !important;
}

.admin-control-stat-grid .admin-control-stat:nth-child(5) strong {
    color: #111827 !important;
}

@media (max-width: 1024px) {
    .admin-control-stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .admin-control-stat-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================
   ADMIN ABSENT WORKER PANEL
========================== */

.admin-absent-panel {
    margin-top: 22px;
}

.admin-absent-panel .admin-monitor-table td {
    vertical-align: middle;
}

.admin-absent-panel .admin-monitor-table td:nth-child(4) {
    color: #6B7280;
    font-weight: 600;
}

/* ==========================
   ADMIN MONITOR FILTER + HISTORY MODAL
========================== */

.admin-monitor-header-with-filter {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 18px !important;
    align-items: end !important;
}

.admin-monitor-filter {
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 220px 170px 170px 130px 130px !important;
    gap: 10px !important;
    align-items: end !important;
    border: none !important;
}

.admin-monitor-filter label {
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.admin-monitor-filter select,
.admin-monitor-filter input,
.admin-monitor-filter button {
    height: 42px !important;
}

.admin-history-modal-card {
    width: min(1080px, 94vw) !important;
    max-height: 86vh !important;
    overflow-y: auto !important;
}

.admin-history-detail-list {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.admin-history-detail-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.20);
    border-radius: 18px;
    padding: 14px;
}

.admin-history-date-box {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.admin-history-date-box strong {
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.admin-history-date-box span {
    margin-top: 5px;
    color: #6B7280;
    font-size: 10px;
    font-weight: 900;
}

.admin-history-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
}

.admin-history-info-item,
.admin-history-note-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 11px 12px;
}

.admin-history-info-item span,
.admin-history-note-item span {
    display: block;
    color: #6B7280;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 5px;
}

.admin-history-info-item strong {
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.admin-history-note-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 10px;
}

.admin-history-note-item p {
    margin: 0;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.admin-history-badge-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 170px;
}

.admin-history-empty {
    background: #F9FAFB;
    border: 1px dashed #D1D5DB;
    color: #6B7280;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .admin-monitor-header-with-filter {
        grid-template-columns: 1fr !important;
    }

    .admin-monitor-filter {
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
    }

    .admin-history-detail-item {
        grid-template-columns: 1fr;
    }

    .admin-history-date-box {
        width: 100%;
        height: auto;
        min-height: 62px;
        flex-direction: row;
        gap: 8px;
    }

    .admin-history-info-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .admin-history-badge-group {
        justify-content: flex-start;
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .admin-monitor-filter,
    .admin-history-info-grid,
    .admin-history-note-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================
   ADMIN HISTORY PROOF FIX
========================== */

.admin-history-content {
    display: grid;
    gap: 10px;
}

.admin-history-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
}

.admin-history-proof-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 11px 12px;
}

.admin-history-proof-box span {
    display: block;
    color: #6B7280;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-history-proof-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 8px;
}

.admin-history-proof-actions button {
    width: 100%;
    min-height: 38px;
    padding: 9px 10px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.admin-proof-disabled {
    background: #F3F4F6 !important;
    color: #6B7280 !important;
    border: 1px dashed #D1D5DB !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.admin-proof-disabled:hover {
    transform: none !important;
    background: #F3F4F6 !important;
}

@media (max-width: 900px) {
    .admin-history-proof-grid,
    .admin-history-proof-actions {
        grid-template-columns: 1fr;
    }
}

/* ==========================
   ADMIN MONITOR FILTER + DETAIL MODAL FIX
   Taruh paling bawah style.css
========================== */

.admin-monitor-header-with-filter {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 18px !important;
    align-items: end !important;
}

.admin-monitor-filter {
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 220px 170px 170px 130px !important;
    gap: 10px !important;
    align-items: end !important;
    border: none !important;
}

.admin-monitor-filter label {
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.admin-monitor-filter select,
.admin-monitor-filter input,
.admin-monitor-filter button {
    height: 42px !important;
}

.admin-attendance-detail-card {
    width: min(980px, 94vw) !important;
}

.admin-modal-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.admin-modal-summary-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 11px 12px;
}

.admin-modal-summary-item span {
    display: block;
    color: #6B7280;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 5px;
}

.admin-modal-summary-item strong {
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.admin-modal-summary-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 1100px) {
    .admin-monitor-header-with-filter {
        grid-template-columns: 1fr !important;
    }

    .admin-monitor-filter {
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
    }

    .admin-modal-summary-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .admin-modal-summary-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .admin-monitor-filter,
    .admin-modal-summary-grid {
        grid-template-columns: 1fr !important;
    }
}

.admin-monitor-filter .admin-export-link {
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 16px !important;
    white-space: nowrap !important;
}

/* ==========================
   FIX EXPORT EXCEL SEJAJAR FILTER
========================== */

.admin-monitor-header-with-filter {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: start !important;
}

.admin-monitor-filter {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1.3fr 1fr 1fr 140px 140px !important;
    gap: 12px !important;
    align-items: end !important;
}

.admin-monitor-filter button,
.admin-monitor-filter .admin-export-link {
    height: 42px !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
}

.admin-monitor-filter .admin-export-link {
    padding: 0 16px !important;
    text-decoration: none !important;
}

/* ==========================
   ADMIN MONITORING MOBILE FIX
   Taruh paling bawah style.css
========================== */

@media (max-width: 768px) {

    .admin-control-main {
        padding: 18px 12px !important;
        overflow-x: hidden !important;
    }

    .admin-control-shell {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 14px !important;
        overflow: hidden !important;
    }

    .admin-monitor-panel {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 14px !important;
        overflow: hidden !important;
    }

    .admin-monitor-header-with-filter {
        display: block !important;
        width: 100% !important;
    }

    .admin-monitor-header h2 {
        font-size: 20px !important;
        line-height: 1.25 !important;
        word-break: normal !important;
    }

    .admin-monitor-header p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
    }

    .admin-monitor-filter {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
        margin-top: 16px !important;
    }

    .admin-monitor-filter div,
    .admin-monitor-filter select,
    .admin-monitor-filter input,
    .admin-monitor-filter button,
    .admin-monitor-filter .admin-export-link {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .admin-monitor-filter select,
    .admin-monitor-filter input {
        height: 44px !important;
        font-size: 14px !important;
    }

    .admin-monitor-filter button,
    .admin-monitor-filter .admin-export-link {
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 14px !important;
        border-radius: 12px !important;
        white-space: nowrap !important;
    }

    .admin-monitor-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        margin-top: 16px !important;
    }

    .admin-monitor-table {
        min-width: 820px !important;
        width: 820px !important;
    }

    .admin-monitor-table th,
    .admin-monitor-table td {
        white-space: nowrap !important;
        font-size: 13px !important;
    }

    .admin-monitor-table td strong {
        font-size: 13px !important;
    }

    .admin-monitor-table td span {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {

    .admin-monitor-panel {
        border-radius: 18px !important;
    }

    .admin-monitor-header h2 {
        font-size: 18px !important;
    }

    .admin-monitor-header p {
        font-size: 13px !important;
    }

    .admin-monitor-table {
        min-width: 760px !important;
        width: 760px !important;
    }
}

/* ==========================
   PROFILE LOCATION BOX
========================== */

.profile-location-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 10px;
}

.profile-location-box p {
    margin: 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.profile-location-box small {
    display: block;
    color: #6B7280;
    font-size: 12px;
    line-height: 1.5;
}

.profile-location-box .btn-link-gold {
    width: fit-content;
}

@media (max-width: 600px) {
    .profile-location-box .btn-link-gold {
        width: 100%;
        text-align: center;
    }
}

/* ==========================
   PROFILE LOCATION MAP MODAL
========================== */

.profile-map-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.58);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.profile-map-modal-overlay.show {
    display: flex;
}

.profile-map-modal-card {
    width: min(860px, 94vw);
    background: #F9FAFB;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.profile-map-modal-header {
    background: linear-gradient(135deg, #111827, #8A6A14);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.profile-map-modal-header h3 {
    margin: 0;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 900;
}

.profile-map-modal-header p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 600;
}

.profile-map-modal-header button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: rgba(180, 39, 39, 0.18);
    color: #DC2626;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
}

.profile-map-modal-body {
    padding: 18px;
}

.profile-map-modal-body iframe {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: 16px;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .profile-map-modal-overlay {
        padding: 14px;
    }

    .profile-map-modal-header {
        padding: 16px;
    }

    .profile-map-modal-header h3 {
        font-size: 18px;
    }

    .profile-map-modal-body {
        padding: 12px;
    }

    .profile-map-modal-body iframe {
        height: 360px;
    }
}

* ==========================
   PROFILE LOCATION MAP MODAL
   Taruh paling bawah style.css
========================== */

.profile-map-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.58);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.profile-map-modal-overlay.show {
    display: flex;
}

.profile-map-modal-card {
    width: min(860px, 94vw);
    background: #F9FAFB;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.profile-map-modal-header {
    background: linear-gradient(135deg, #111827, #8A6A14);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.profile-map-modal-header h3 {
    margin: 0;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 900;
}

.profile-map-modal-header p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 600;
}

.profile-map-modal-header button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: rgba(180, 39, 39, 0.18);
    color: #DC2626;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
}

.profile-map-modal-body {
    padding: 18px;
}

.profile-map-modal-body iframe {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: 16px;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .profile-map-modal-overlay {
        padding: 14px;
    }

    .profile-map-modal-header {
        padding: 16px;
    }

    .profile-map-modal-header h3 {
        font-size: 18px;
    }

    .profile-map-modal-body {
        padding: 12px;
    }

    .profile-map-modal-body iframe {
        height: 360px;
    }
}

/* ==========================
   ADMIN RESIDENCE VALIDATION
========================== */

.admin-residence-check-section .admin-modal-note p {
    display: grid;
    gap: 8px;
}

.admin-residence-check-section .admin-modal-note span {
    width: fit-content;
}

/* ==========================
   LOCATION CONFIRM MODAL
========================== */

.location-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.58);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.location-confirm-overlay.show {
    display: flex;
}

.location-confirm-card {
    width: min(420px, 94vw);
    background: #F9FAFB;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 24px;
    padding: 26px 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.location-confirm-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #B48718;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
}

.location-confirm-card h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.location-confirm-card p {
    margin: 0;
    color: #4B5563;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.location-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}

.location-confirm-actions button {
    height: 44px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.location-confirm-cancel {
    background: #E5E7EB;
    color: #374151;
}

.location-confirm-ok {
    background: linear-gradient(135deg, #B48718, #D4AF37);
    color: #111827;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .location-confirm-actions {
        grid-template-columns: 1fr;
    }
}

/* ==========================
   FIX BADGE VALIDASI RUMAH / MESS
========================== */

.admin-residence-check-section,
.admin-residence-check-section .admin-modal-section,
.admin-residence-check-section .admin-modal-note {
    min-width: 0 !important;
    overflow: hidden !important;
}

.admin-residence-check-section .admin-modal-note p {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    gap: 8px !important;
    overflow: hidden !important;
}

.admin-residence-check-section .admin-modal-note span,
.admin-residence-check-section .status-present,
.admin-residence-check-section .status-late,
.admin-residence-check-section .status-working,
.admin-residence-check-section .status-absent {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-align: center !important;
    justify-content: center !important;
    line-height: 1.35 !important;
    padding: 8px 10px !important;
}

/* ==========================
   REVIEW ADMIN BUTTON
========================== */

.admin-review-button {
    border: none;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.admin-review-button.review-btn-danger {
    background: #DC2626 !important;
    color: #FFFFFF !important;
}

.admin-review-button.review-btn-success {
    background: #16A34A !important;
    color: #FFFFFF !important;
}

.admin-review-button:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
}

.admin-review-hint {
    display: block;
    margin-top: 7px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 700;
}

<style>
/* ==========================
   FLOATING CHAT BINACARE
========================== */

.chat-widget {
    position: fixed;
    right: 32px;
    bottom: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
}

/* Bubble teks kecil */
.chat-help-text {
    background: #1E1E1E;
    color: #E6E6E6;
    border: 1px solid rgba(212, 175, 55, 0.5);
    padding: 13px 18px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font-size: 13px;
    line-height: 1.4;
}

.chat-help-text strong {
    display: block;
    color: #FFFFFF;
    font-size: 14px;
}

.chat-help-text span {
    color: #D4AF37;
}

/* Tombol bulat chat */
.chat-toggle-btn {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    color: #1E1E1E;
    font-size: 25px;
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45);
    transition: 0.25s ease;
}

.chat-toggle-btn:hover {
    transform: translateY(-3px) scale(1.03);
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: #d93025;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panel chat */
.chat-panel {
    position: absolute;
    right: 0;
    bottom: 82px;
    width: 360px;
    height: 520px;
    background: #E6E6E6;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    display: none;
    flex-direction: column;
}

/* Header chat */
.chat-header {
    height: 78px;
    background: linear-gradient(135deg, #1E1E1E, #6B5A1E);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-admin-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    color: #1E1E1E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.chat-header p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #E6E6E6;
}

.chat-close-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #E6E6E6;
    font-size: 20px;
    cursor: pointer;
}

/* Isi chat */
.chat-body {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    background: #F5F5F5;
}

.chat-date {
    text-align: center;
    font-size: 12px;
    color: #6B6B6B;
    margin-bottom: 16px;
}

.chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    color: #1E1E1E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-bubble {
    background: white;
    color: #1E1E1E;
    padding: 13px 15px;
    border-radius: 16px 16px 16px 4px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 250px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.chat-time {
    text-align: right;
    font-size: 11px;
    color: #6B6B6B;
    margin-top: 6px;
}

/* Input chat */
.chat-input-area {
    height: 72px;
    background: #E6E6E6;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.chat-input-area input {
    flex: 1;
    height: 44px;
    border-radius: 24px;
    border: 1px solid #CFCFCF;
    padding: 0 16px;
    outline: none;
    font-size: 13px;
    background: white;
}

.chat-input-area input:focus {
    border-color: #D4AF37;
}

.chat-attach-btn,
.chat-send-btn {
    border: none;
    cursor: pointer;
}

.chat-attach-btn {
    background: transparent;
    color: #6B6B6B;
    font-size: 19px;
}

.chat-send-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    color: #1E1E1E;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

/* ==========================
   FLOATING CHAT BINACARE
========================== */

.chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: end;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
}

/* Bubble bantuan kecil */
.chat-help-text {
    background: #1E1E1E;
    color: #E6E6E6;
    border: 1px solid rgba(212, 175, 55, 0.45);
    padding: 13px 16px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    max-width: 220px;
    font-size: 13px;
    line-height: 1.45;
}

.chat-help-text strong {
    display: block;
    color: #FFFFFF;
    font-size: 14px;
    margin-bottom: 2px;
}

.chat-help-text span {
    color: #D4AF37;
}

/* Tombol chat */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    color: #1E1E1E;
    font-size: 24px;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.chat-toggle-btn:hover {
    transform: translateY(-3px);
}

/* Panel chat */
.chat-panel {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: 360px;
    height: 520px;
    background: #F8F8F8;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
}

/* Header */
.chat-header {
    background: linear-gradient(135deg, #1E1E1E, #3b3214);
    color: #FFFFFF;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-admin-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    color: #1E1E1E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.chat-header-text {
    min-width: 0;
}

.chat-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.chat-header p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #E6E6E6;
}

.chat-close-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
}

/* Isi chat */
.chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #F5F5F5;
}

.chat-date {
    text-align: center;
    font-size: 12px;
    color: #6B6B6B;
    margin-bottom: 16px;
}

.chat-message {
    display: flex;
    margin-bottom: 14px;
    gap: 10px;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    color: #1E1E1E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-bubble {
    background: #FFFFFF;
    color: #1E1E1E;
    padding: 12px 14px;
    border-radius: 16px 16px 16px 5px;
    max-width: 78%;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    word-wrap: break-word;
}

.user-bubble {
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    color: #1E1E1E;
    border-radius: 16px 16px 5px 16px;
}

.chat-time {
    text-align: right;
    font-size: 11px;
    color: #6B6B6B;
    margin-top: 6px;
}

/* Input */
.chat-input-area {
    background: #E6E6E6;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.chat-input-area input {
    flex: 1;
    height: 44px;
    border-radius: 24px;
    border: 1px solid #D0D0D0;
    padding: 0 16px;
    outline: none;
    font-size: 13px;
    background: #FFFFFF;
    min-width: 0;
}

.chat-input-area input:focus {
    border-color: #D4AF37;
}

.chat-attach-btn,
.chat-send-btn {
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.chat-attach-btn {
    background: transparent;
    color: #6B6B6B;
    font-size: 18px;
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    color: #1E1E1E;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================
   TABLET
========================== */
@media (max-width: 991px) {
    .chat-panel {
        width: 340px;
        height: 500px;
    }

    .chat-help-text {
        max-width: 190px;
        font-size: 12px;
    }
}

/* ==========================
   MOBILE CHAT - AMAN DARI BOTTOM NAV
========================== */

@media (max-width: 768px) {
    .chat-widget {
        right: 18px;
        bottom: 92px;
        z-index: 9999;
    }

    .chat-help-text {
        display: none !important;
    }

    .chat-toggle-btn {
        width: 54px;
        height: 54px;
        font-size: 21px;
        box-shadow: 0 8px 22px rgba(212, 175, 55, 0.45);
    }

    .chat-panel {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 86px;
        width: auto;
        height: 68vh;
        max-height: 560px;
        border-radius: 18px;
        z-index: 10000;
    }

    .chat-header {
        padding: 12px 14px;
    }

    .chat-admin-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .chat-header h4 {
        font-size: 16px;
    }

    .chat-header p {
        font-size: 11px;
    }

    .chat-body {
        padding: 14px;
    }

    .chat-bubble {
        max-width: 86%;
        font-size: 12.5px;
    }

    .chat-input-area {
        padding: 10px;
        gap: 8px;
    }

    .chat-input-area input {
        height: 40px;
        font-size: 12.5px;
    }

    .chat-send-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .chat-widget {
        right: 18px;
        bottom: 92px;
    }

    .chat-toggle-btn {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .chat-panel {
        left: 10px;
        right: 10px;
        bottom: 84px;
        height: 70vh;
        border-radius: 16px;
    }
}

/* ==========================
   PUSAT BANTUAN BINACARE
========================== */

.helpdesk-section {
    margin-top: 22px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.section-header-row h2 {
    margin: 0;
    font-size: 20px;
    color: #1E1E1E;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header-row p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6B6B6B;
}

.gold-line {
    width: 6px;
    height: 24px;
    border-radius: 999px;
    background: #D4AF37;
    display: inline-block;
}

.helpdesk-badge {
    background: rgba(212, 175, 55, 0.18);
    color: #8a6b00;
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.helpdesk-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.helpdesk-mini-card {
    background: #F7F7F7;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 14px;
}

.helpdesk-mini-card span {
    display: block;
    font-size: 11px;
    color: #6B6B6B;
    font-weight: 700;
    text-transform: uppercase;
}

.helpdesk-mini-card strong {
    display: block;
    margin-top: 4px;
    font-size: 22px;
    color: #1E1E1E;
}

.helpdesk-mini-card.danger strong {
    color: #b42318;
}

.helpdesk-mini-card.warning strong {
    color: #a16207;
}

.helpdesk-mini-card.success strong {
    color: #0f7a3d;
}

.helpdesk-layout {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 16px;
}

.helpdesk-list,
.helpdesk-chat {
    background: #F7F7F7;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 18px;
    overflow: hidden;
}

.helpdesk-list {
    padding: 14px;
}

.helpdesk-search-row {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 10px;
    margin-bottom: 12px;
}

.helpdesk-search-row input,
.helpdesk-search-row select {
    height: 38px;
    border-radius: 12px;
    border: 1px solid #CFCFCF;
    padding: 0 12px;
    font-size: 12px;
    outline: none;
    background: #FFFFFF;
}

.helpdesk-search-row input:focus,
.helpdesk-search-row select:focus {
    border-color: #D4AF37;
}

.helpdesk-ticket {
    display: flex;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 15px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.helpdesk-ticket:hover,
.helpdesk-ticket.active {
    border-color: #D4AF37;
    box-shadow: 0 5px 14px rgba(0,0,0,0.08);
}

.ticket-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    color: #1E1E1E;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    font-weight: 900;
    flex-shrink: 0;
}

.ticket-content {
    flex: 1;
    min-width: 0;
}

.ticket-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.ticket-top strong {
    font-size: 13px;
    color: #1E1E1E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-top small {
    color: #6B6B6B;
    font-size: 11px;
}

.ticket-content p {
    margin: 5px 0 8px;
    color: #6B6B6B;
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
}

.status-new {
    background: rgba(180, 35, 24, 0.12);
    color: #b42318;
}

.status-process {
    background: rgba(212, 175, 55, 0.18);
    color: #8a6b00;
}

.status-done {
    background: rgba(15, 122, 61, 0.12);
    color: #0f7a3d;
}

.helpdesk-chat {
    display: flex;
    flex-direction: column;
}

.helpdesk-chat-header {
    background: linear-gradient(135deg, #1E1E1E, #6b5614);
    color: #FFFFFF;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.helpdesk-chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.helpdesk-chat-header p {
    margin: 3px 0 0;
    font-size: 11px;
    color: #E6E6E6;
}

.small-gold-btn {
    margin-left: auto;
    border: none;
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    color: #1E1E1E;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.helpdesk-chat-body {
    height: 310px;
    overflow-y: auto;
    padding: 16px;
    background: #F2F2F2;
}

.helpdesk-date {
    text-align: center;
    color: #6B6B6B;
    font-size: 11px;
    margin-bottom: 14px;
}

.helpdesk-message {
    display: flex;
    margin-bottom: 12px;
}

.helpdesk-message.worker {
    justify-content: flex-start;
}

.helpdesk-message.admin {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 72%;
    background: #FFFFFF;
    padding: 12px 14px;
    border-radius: 15px 15px 15px 4px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #1E1E1E;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.helpdesk-message.admin .message-bubble {
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    border-radius: 15px 15px 4px 15px;
}

.message-time {
    margin-top: 6px;
    text-align: right;
    font-size: 10.5px;
    color: #6B6B6B;
}

.helpdesk-reply-area {
    padding: 14px;
    background: #E6E6E6;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.reply-input-row {
    display: flex;
    gap: 10px;
}

.reply-input-row input {
    flex: 1;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #CFCFCF;
    padding: 0 14px;
    font-size: 12.5px;
    outline: none;
}

.reply-input-row input:focus {
    border-color: #D4AF37;
}

.helpdesk-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.helpdesk-action-row button {
    border: 1px solid rgba(212,175,55,0.35);
    background: #FFFFFF;
    color: #1E1E1E;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.helpdesk-action-row button.gold {
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .helpdesk-layout {
        grid-template-columns: 1fr;
    }

    .helpdesk-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .helpdesk-chat-body {
        height: 340px;
    }
}

@media (max-width: 600px) {
    .section-header-row {
        flex-direction: column;
    }

    .helpdesk-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .helpdesk-search-row {
        grid-template-columns: 1fr;
    }

    .helpdesk-chat-header {
        align-items: flex-start;
    }

/* ==========================
   DETAIL CHAT BINACARE ADMIN
========================== */

.helpdesk-chat {
    display: flex;
    flex-direction: column;
    background: #F7F7F7;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 18px;
    overflow: hidden;
}

.helpdesk-chat-header {
    background: linear-gradient(135deg, #1E1E1E, #6b5614);
    color: #FFFFFF;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.helpdesk-chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.helpdesk-chat-header p {
    margin: 3px 0 0;
    font-size: 11px;
    color: #E6E6E6;
}

.helpdesk-chat-body {
    height: 330px;
    overflow-y: auto;
    padding: 16px;
    background: #F2F2F2;
}

.helpdesk-date {
    text-align: center;
    color: #6B6B6B;
    font-size: 11px;
    margin-bottom: 14px;
}

.helpdesk-message {
    display: flex;
    margin-bottom: 12px;
}

.helpdesk-message.worker {
    justify-content: flex-start;
}

.helpdesk-message.admin {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 72%;
    background: #FFFFFF;
    padding: 12px 14px;
    border-radius: 15px 15px 15px 4px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #1E1E1E;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.helpdesk-message.admin .message-bubble {
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    border-radius: 15px 15px 4px 15px;
}

.message-time {
    margin-top: 6px;
    text-align: right;
    font-size: 10.5px;
    color: #6B6B6B;
}

.helpdesk-reply-area {
    padding: 14px;
    background: #E6E6E6;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.reply-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reply-input-row input {
    flex: 1;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #CFCFCF;
    padding: 0 14px;
    font-size: 12.5px;
    outline: none;
    background: #FFFFFF;
}

.reply-input-row input:focus {
    border-color: #D4AF37;
}

.helpdesk-send-btn {
    height: 42px;
    min-width: 82px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    color: #1E1E1E;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(212, 175, 55, 0.25);
}

.helpdesk-send-btn:hover {
    transform: translateY(-1px);
}

.helpdesk-action-row {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.helpdesk-action-row button {
    border: 1px solid rgba(212,175,55,0.35);
    background: #FFFFFF;
    color: #1E1E1E;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.helpdesk-action-row button.gold {
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
}

.helpdesk-empty {
    padding: 18px;
    text-align: center;
    color: #6B6B6B;
    font-size: 13px;
    background: #FFFFFF;
    border-radius: 14px;
    border: 1px dashed rgba(212, 175, 55, 0.4);
}

/* RESPONSIVE ADMIN CHAT */
@media (max-width: 600px) {
    .helpdesk-chat-header {
        padding: 14px;
    }

    .helpdesk-chat-body {
        height: 340px;
        padding: 14px;
    }

    .message-bubble {
        max-width: 86%;
        font-size: 12px;
    }

    .reply-input-row {
        gap: 8px;
    }

    .helpdesk-send-btn {
        min-width: 70px;
        font-size: 11px;
    }

    .helpdesk-action-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .helpdesk-action-row button {
        width: 100%;
    }
}

    .message-bubble {
        max-width: 86%;
        font-size: 12px;
    }

    .helpdesk-action-row {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.helpdesk-empty {
    padding: 18px;
    text-align: center;
    color: #6B6B6B;
    font-size: 13px;
    background: #FFFFFF;
    border-radius: 14px;
    border: 1px dashed rgba(212, 175, 55, 0.4);
}

.chat-image-preview {
    background: #E6E6E6;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 8px 14px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chat-image-preview span {
    font-size: 12px;
    color: #1E1E1E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-image-preview button {
    border: none;
    background: #1E1E1E;
    color: #F7C35E;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
}

.chat-image-link {
    display: block;
    margin-top: 8px;
}

.chat-image-attachment {
    width: 180px;
    max-width: 100%;
    border-radius: 12px;
    display: block;
    border: 1px solid rgba(0,0,0,0.08);
}

.helpdesk-image-link {
    display: block;
    margin-top: 8px;
}

.helpdesk-image-attachment {
    width: 220px;
    max-width: 100%;
    border-radius: 12px;
    display: block;
    border: 1px solid rgba(0,0,0,0.08);
}

.helpdesk-image-link {
    display: block;
    margin-top: 8px;
}

.helpdesk-image-attachment {
    width: 220px;
    max-width: 100%;
    border-radius: 12px;
    display: block;
    border: 1px solid rgba(0,0,0,0.08);
    background: #FFFFFF;
}

@media (max-width: 600px) {
    .helpdesk-image-attachment {
        width: 170px;
    }
}

.helpdesk-image-link {
    display: block;
    margin-top: 8px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.helpdesk-image-attachment {
    width: 220px;
    max-width: 100%;
    border-radius: 12px;
    display: block;
    border: 1px solid rgba(0,0,0,0.08);
    background: #FFFFFF;
    transition: 0.2s ease;
}

.helpdesk-image-attachment:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.chat-image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.chat-image-modal-content {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    background: #1E1E1E;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

.chat-image-modal-content img {
    max-width: 100%;
    max-height: 78vh;
    display: block;
    border-radius: 12px;
}

.chat-image-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    color: #1E1E1E;
    cursor: pointer;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

@media (max-width: 600px) {
    .chat-image-modal-close {
        top: -12px;
        right: -12px;
        width: 34px;
        height: 34px;
        font-size: 25px;
    }
}

.chat-image-modal-close:hover {
    transform: scale(1.06);
}


@media (max-width: 600px) {
    .helpdesk-image-attachment {
        width: 170px;
    }

    .chat-image-modal {
        padding: 14px;
    }

    .chat-image-modal-content {
        border-radius: 14px;
        padding: 10px;
    }

    .chat-image-modal-content img {
        max-height: 76vh;
    }
}

/* ==========================
   LIVE NOTIF BINACARE ADMIN
========================== */

.binacare-notification-slot {
    position: fixed;
    top: 86px;
    right: 28px;
    width: 310px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.binacare-live-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #1E1E1E, #6b5614);
    border: 1px solid rgba(212, 175, 55, 0.55);
    color: #FFFFFF;
    border-radius: 18px;
    padding: 14px;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.24);
    animation: binacareNotifPop 0.25s ease;
    pointer-events: auto;
}

.binacare-live-alert:hover {
    transform: translateY(-2px);
}

.binacare-live-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #F7C35E);
    color: #1E1E1E;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.binacare-live-content {
    flex: 1;
    min-width: 0;
}

.binacare-live-content strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.binacare-live-content p {
    margin: 0;
    color: #E6E6E6;
    font-size: 11.5px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.binacare-live-time {
    display: inline-block;
    margin-top: 7px;
    color: #F7C35E;
    font-size: 10.5px;
    font-weight: 800;
}

@keyframes binacareNotifPop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Kalau layar kecil, notif pindah ke bawah */
@media (max-width: 1200px) {
    .binacare-notification-slot {
        top: auto;
        right: 16px;
        bottom: 18px;
        width: min(320px, calc(100vw - 32px));
    }
}

@media (max-width: 600px) {
    .binacare-notification-slot {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    .binacare-live-alert {
        border-radius: 14px;
        padding: 12px;
    }

    .binacare-live-icon {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.menu-card {
    min-height: 135px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(185, 144, 47, 0.35);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #0f172a;
    position: relative;
    overflow: hidden;
    transition: 0.2s ease;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.menu-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(185, 144, 47, 0.16);
    color: #b9902f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 18px;
}

.menu-card h3 {
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 800;
}

.menu-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

/* Ini yang bikin Monitoring Pekerjaan turun tepat di bawah Presensi Masuk */
.monitoring-card {
    grid-column: 1;
}

@media (max-width: 900px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .monitoring-card {
        grid-column: auto;
    }
}

/* ==========================
   MONITORING PEKERJAAN HARIAN ADMIN
========================== */

.admin-daily-work-panel {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(185, 144, 47, 0.35);
    border-radius: 22px;
    padding: 26px;
    margin-top: 28px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.admin-daily-work-panel::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 24px;
    width: 7px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(180deg, #111827, #d4af37);
}

.admin-daily-work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    padding-left: 18px;
}

.admin-daily-work-header h2 {
    margin: 0;
    color: #06162f;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.admin-daily-work-header p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.admin-daily-work-filter {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    background: rgba(248, 250, 252, 0.75);
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 18px;
    margin-bottom: 18px;
}

.admin-daily-work-filter-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-daily-work-filter-group label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: #06162f;
    letter-spacing: 0.35px;
}

.admin-daily-work-filter-group select,
.admin-daily-work-filter-group input {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 13px;
    border-radius: 13px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    font-size: 14px;
}

.admin-daily-work-filter-group select:focus,
.admin-daily-work-filter-group input:focus {
    border-color: #b9902f;
    box-shadow: 0 0 0 4px rgba(185, 144, 47, 0.13);
}

.admin-daily-work-btn {
    height: 44px;
    border-radius: 13px;
    padding: 0 18px;
    border: none;
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

.admin-daily-work-btn.gold {
    background: linear-gradient(135deg, #b9902f, #d4af37);
    color: #111827;
    box-shadow: 0 8px 18px rgba(185, 144, 47, 0.22);
}

.admin-daily-work-btn.red {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

.admin-daily-work-table-wrapper {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    background: #ffffff;
}

.admin-daily-work-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-daily-work-table th {
    background: linear-gradient(135deg, #e9dfc7, #d9caa5);
    color: #06162f;
    text-align: left;
    padding: 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-daily-work-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
    vertical-align: top;
}

.admin-daily-work-table tr:last-child td {
    border-bottom: none;
}

.admin-daily-work-table tbody tr:hover {
    background: #faf7ef;
}

.admin-daily-work-desc {
    max-width: 340px;
    white-space: normal;
}

.admin-work-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-work-photo-btn {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-work-photo-btn.preview {
    background: linear-gradient(135deg, #b9902f, #d4af37);
    color: #111827;
}

.admin-work-photo-btn.download {
    background: linear-gradient(135deg, #047857, #059669);
    color: #ffffff;
}

.admin-work-photo-count {
    border-radius: 999px;
    padding: 8px 11px;
    background: rgba(185, 144, 47, 0.16);
    color: #7a5706;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-work-pdf-btn {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-work-pagination {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-work-pagination-info {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.admin-work-pagination-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-work-page-btn,
.admin-work-page-current {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.admin-work-page-btn {
    background: #e8e0cf;
    color: #111827;
}

.admin-work-page-btn.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.admin-work-page-current {
    background: #f8fafc;
    color: #06162f;
    border: 1px solid #dbe2ea;
}

.admin-work-photo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.76);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-work-photo-modal.show {
    display: flex;
}

.admin-work-photo-modal-card {
    width: min(900px, 92vw);
    max-height: 90vh;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.admin-work-photo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #111827;
    color: #f7c35e;
}

.admin-work-photo-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
}

.admin-work-photo-close {
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
}

.admin-work-photo-preview {
    background: #0b0f19;
    height: min(540px, 58vh);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.admin-work-photo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    background: #ffffff;
}

.admin-work-photo-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    background: #f8fafc;
}

.admin-work-photo-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-work-photo-nav,
.admin-work-photo-download-current {
    border: none;
    cursor: pointer;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 900;
    font-size: 13px;
    white-space: nowrap;
}

.admin-work-photo-nav {
    background: #e8e0cf;
    color: #111827;
}

.admin-work-photo-download-current {
    background: linear-gradient(135deg, #047857, #059669);
    color: #ffffff;
}

.admin-work-photo-indicator {
    min-width: 100px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    color: #334155;
}

@media (max-width: 1000px) {
    .admin-daily-work-filter {
        grid-template-columns: 1fr 1fr;
    }

    .admin-daily-work-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .admin-daily-work-panel {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .admin-daily-work-header {
        padding-left: 14px;
    }

    .admin-daily-work-header h2 {
        font-size: 19px;
    }

    .admin-daily-work-filter {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .admin-work-photo-actions {
        align-items: stretch;
    }

    .admin-work-photo-btn,
    .admin-work-photo-count,
    .admin-work-pdf-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .admin-work-pagination {
        align-items: stretch;
    }

    .admin-work-pagination-actions,
    .admin-work-page-btn,
    .admin-work-page-current {
        width: 100%;
    }

    .admin-work-photo-modal {
        padding: 12px;
    }

    .admin-work-photo-modal-card {
        width: 100%;
        border-radius: 18px;
    }

    .admin-work-photo-preview {
        height: 48vh;
        padding: 12px;
    }

    .admin-work-photo-footer {
        grid-template-columns: 1fr;
    }

    .admin-work-photo-pagination {
        width: 100%;
        justify-content: space-between;
    }

    .admin-work-photo-download-current {
        width: 100%;
    }
}

/* ==========================
   FIX KHUSUS PRESENSI MASUK
   Supaya layout tidak ketarik CSS global
========================== */

body.presensi-masuk-page .page-hero,
body.presensi-masuk-page .profile-card.attendance-shell {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.presensi-masuk-page .profile-card.attendance-shell {
    padding: 28px !important;
}

body.presensi-masuk-page .attendance-form {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
}

body.presensi-masuk-page .attendance-form > .attendance-mode-badge {
    grid-column: 1 / -1 !important;
}

body.presensi-masuk-page .attendance-form > .attendance-selfie-section {
    grid-column: 1 !important;
    grid-row: 2 / span 2 !important;
}

body.presensi-masuk-page .attendance-form > #project_description_section {
    grid-column: 2 !important;
    grid-row: 2 !important;
}

body.presensi-masuk-page .attendance-form > .attendance-gps-section {
    grid-column: 2 !important;
    grid-row: 3 !important;
    margin-top: -2px !important;
}

body.presensi-masuk-page .attendance-form > #field_report_section {
    grid-column: 1 / -1 !important;
}

body.presensi-masuk-page .attendance-form > .attendance-submit,
body.presensi-masuk-page .attendance-form > button[type="submit"] {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

body.presensi-masuk-page .profile-card textarea,
body.presensi-masuk-page .profile-card input,
body.presensi-masuk-page .profile-card select {
    max-width: 100% !important;
}

body.presensi-masuk-page .attendance-selfie-section .camera-box {
    min-height: 290px !important;
    height: auto !important;
}

@media (max-width: 980px) {
    body.presensi-masuk-page .attendance-form {
        grid-template-columns: 1fr !important;
    }

    body.presensi-masuk-page .attendance-form > .attendance-mode-badge,
    body.presensi-masuk-page .attendance-form > .attendance-selfie-section,
    body.presensi-masuk-page .attendance-form > #project_description_section,
    body.presensi-masuk-page .attendance-form > .attendance-gps-section,
    body.presensi-masuk-page .attendance-form > #field_report_section,
    body.presensi-masuk-page .attendance-form > .attendance-submit,
    body.presensi-masuk-page .attendance-form > button[type="submit"] {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
}


/* ==========================
   FIX FINAL POPUP PDF MONITORING PEKERJAAN ADMIN
   Support desktop & mobile
========================== */

html.modal-open,
body.modal-open {
    overflow: hidden !important;
}

.admin-daily-work-btn.red {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22) !important;
}

.admin-work-pdf-btn {
    border: none !important;
    cursor: pointer !important;
    border-radius: 999px !important;
    padding: 9px 14px !important;
    background: linear-gradient(135deg, #b9902f, #d4af37) !important;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    min-width: 92px !important;
    min-height: 36px !important;
    box-shadow: 0 8px 18px rgba(185, 144, 47, 0.20) !important;
}

.admin-work-pdf-btn:hover {
    filter: brightness(0.98) !important;
    transform: translateY(-1px) !important;
}

.admin-work-pdf-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.78) !important;
    z-index: 99999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    box-sizing: border-box !important;
}

.admin-work-pdf-modal.show {
    display: flex !important;
}

.admin-work-pdf-modal-card {
    width: min(1040px, 94vw) !important;
    height: min(760px, 90vh) !important;
    max-width: 1040px !important;
    max-height: 90vh !important;
    background: #ffffff !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    border: 1px solid rgba(212, 175, 55, 0.60) !important;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48) !important;
    display: flex !important;
    flex-direction: column !important;
}

.admin-work-pdf-modal-header {
    min-height: 64px !important;
    flex-shrink: 0 !important;
    background: #111827 !important;
    color: #f7c35e !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 12px 18px !important;
    box-sizing: border-box !important;
}

.admin-work-pdf-modal-header h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #f7c35e !important;
}

.admin-work-pdf-modal-header p {
    margin: 4px 0 0 !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.74) !important;
    line-height: 1.35 !important;
}

.admin-work-pdf-close {
    border: none !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.admin-work-pdf-close:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    transform: none !important;
}

.admin-work-pdf-preview {
    flex: 1 !important;
    min-height: 0 !important;
    background: #f8fafc !important;
    overflow: hidden !important;
}

.admin-work-pdf-frame {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: none !important;
    display: block !important;
    background: #ffffff !important;
}

@media (max-width: 768px) {
    .admin-work-pdf-modal {
        padding: 10px !important;
        align-items: center !important;
    }

    .admin-work-pdf-modal-card {
        width: 100% !important;
        height: 88vh !important;
        max-height: 88vh !important;
        border-radius: 18px !important;
    }

    .admin-work-pdf-modal-header {
        min-height: 58px !important;
        padding: 10px 13px !important;
    }

    .admin-work-pdf-modal-header h3 {
        font-size: 14px !important;
    }

    .admin-work-pdf-modal-header p {
        display: none !important;
    }

    .admin-work-pdf-close {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    .admin-work-pdf-btn {
        width: 100% !important;
        min-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .admin-work-pdf-modal {
        padding: 8px !important;
    }

    .admin-work-pdf-modal-card {
        height: 90vh !important;
        max-height: 90vh !important;
        border-radius: 16px !important;
    }
}

/* ==========================
   MONITORING PEKERJAAN HARIAN ADMIN
========================== */

.admin-daily-work-panel {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(185, 144, 47, 0.35);
    border-radius: 22px;
    padding: 26px;
    margin-top: 28px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.admin-daily-work-panel::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 24px;
    width: 7px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(180deg, #111827, #d4af37);
}

.admin-daily-work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    padding-left: 18px;
}

.admin-daily-work-header h2 {
    margin: 0;
    color: #06162f;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.admin-daily-work-header p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.admin-daily-work-filter {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    background: rgba(248, 250, 252, 0.75);
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 18px;
    margin-bottom: 18px;
}

.admin-daily-work-filter-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-daily-work-filter-group label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: #06162f;
    letter-spacing: 0.35px;
}

.admin-daily-work-filter-group select,
.admin-daily-work-filter-group input {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 13px;
    border-radius: 13px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    font-size: 14px;
}

.admin-daily-work-filter-group select:focus,
.admin-daily-work-filter-group input:focus {
    border-color: #b9902f;
    box-shadow: 0 0 0 4px rgba(185, 144, 47, 0.13);
}

.admin-daily-work-btn {
    height: 44px;
    border-radius: 13px;
    padding: 0 18px;
    border: none;
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

.admin-daily-work-btn.gold {
    background: linear-gradient(135deg, #b9902f, #d4af37);
    color: #111827;
    box-shadow: 0 8px 18px rgba(185, 144, 47, 0.22);
}

.admin-daily-work-btn.red {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

.admin-daily-work-table-wrapper {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    background: #ffffff;
}

.admin-daily-work-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-daily-work-table th {
    background: linear-gradient(135deg, #e9dfc7, #d9caa5);
    color: #06162f;
    text-align: left;
    padding: 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-daily-work-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
    vertical-align: top;
}

.admin-daily-work-table tr:last-child td {
    border-bottom: none;
}

.admin-daily-work-table tbody tr:hover {
    background: #faf7ef;
}

.admin-daily-work-desc {
    max-width: 340px;
    white-space: normal;
}

.admin-work-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-work-photo-btn {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-work-photo-btn.preview {
    background: linear-gradient(135deg, #b9902f, #d4af37);
    color: #111827;
}

.admin-work-photo-btn.download {
    background: linear-gradient(135deg, #047857, #059669);
    color: #ffffff;
}

.admin-work-photo-count {
    border-radius: 999px;
    padding: 8px 11px;
    background: rgba(185, 144, 47, 0.16);
    color: #7a5706;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-work-pdf-btn {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-work-pagination {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-work-pagination-info {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.admin-work-pagination-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-work-page-btn,
.admin-work-page-current {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.admin-work-page-btn {
    background: #e8e0cf;
    color: #111827;
}

.admin-work-page-btn.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.admin-work-page-current {
    background: #f8fafc;
    color: #06162f;
    border: 1px solid #dbe2ea;
}

.admin-work-photo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.76);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-work-photo-modal.show {
    display: flex;
}

.admin-work-photo-modal-card {
    width: min(900px, 92vw);
    max-height: 90vh;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.admin-work-photo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #111827;
    color: #f7c35e;
}

.admin-work-photo-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
}

.admin-work-photo-close {
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
}

.admin-work-photo-preview {
    background: #0b0f19;
    height: min(540px, 58vh);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.admin-work-photo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    background: #ffffff;
}

.admin-work-photo-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    background: #f8fafc;
}

.admin-work-photo-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-work-photo-nav,
.admin-work-photo-download-current {
    border: none;
    cursor: pointer;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 900;
    font-size: 13px;
    white-space: nowrap;
}

.admin-work-photo-nav {
    background: #e8e0cf;
    color: #111827;
}

.admin-work-photo-download-current {
    background: linear-gradient(135deg, #047857, #059669);
    color: #ffffff;
}

.admin-work-photo-indicator {
    min-width: 100px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    color: #334155;
}

@media (max-width: 1000px) {
    .admin-daily-work-filter {
        grid-template-columns: 1fr 1fr;
    }

    .admin-daily-work-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .admin-daily-work-panel {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .admin-daily-work-header {
        padding-left: 14px;
    }

    .admin-daily-work-header h2 {
        font-size: 19px;
    }

    .admin-daily-work-filter {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .admin-work-photo-actions {
        align-items: stretch;
    }

    .admin-work-photo-btn,
    .admin-work-photo-count,
    .admin-work-pdf-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .admin-work-pagination {
        align-items: stretch;
    }

    .admin-work-pagination-actions,
    .admin-work-page-btn,
    .admin-work-page-current {
        width: 100%;
    }

    .admin-work-photo-modal {
        padding: 12px;
    }

    .admin-work-photo-modal-card {
        width: 100%;
        border-radius: 18px;
    }

    .admin-work-photo-preview {
        height: 48vh;
        padding: 12px;
    }

    .admin-work-photo-footer {
        grid-template-columns: 1fr;
    }

    .admin-work-photo-pagination {
        width: 100%;
        justify-content: space-between;
    }

    .admin-work-photo-download-current {
        width: 100%;
    }
}


/* ==========================
   FIX FINAL POPUP PDF MONITORING PEKERJAAN ADMIN
   Support desktop & mobile
========================== */

html.modal-open,
body.modal-open {
    overflow: hidden !important;
}

.admin-daily-work-btn.red {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22) !important;
}

.admin-daily-work-btn.red:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    color: #ffffff !important;
}

.admin-work-pdf-btn {
    border: none !important;
    cursor: pointer !important;
    border-radius: 999px !important;
    padding: 9px 14px !important;
    background: linear-gradient(135deg, #b9902f, #d4af37) !important;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    min-width: 92px !important;
    min-height: 36px !important;
    box-shadow: 0 8px 18px rgba(185, 144, 47, 0.20) !important;
}

.admin-work-pdf-btn:hover {
    filter: brightness(0.98) !important;
    transform: translateY(-1px) !important;
}

.admin-work-pdf-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.78) !important;
    z-index: 99999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    box-sizing: border-box !important;
}

.admin-work-pdf-modal.show {
    display: flex !important;
}

.admin-work-pdf-modal-card {
    width: min(1040px, 94vw) !important;
    height: min(760px, 90vh) !important;
    max-width: 1040px !important;
    max-height: 90vh !important;
    background: #ffffff !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    border: 1px solid rgba(212, 175, 55, 0.60) !important;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48) !important;
    display: flex !important;
    flex-direction: column !important;
}

.admin-work-pdf-modal-header {
    min-height: 64px !important;
    flex-shrink: 0 !important;
    background: #111827 !important;
    color: #f7c35e !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 12px 18px !important;
    box-sizing: border-box !important;
}

.admin-work-pdf-modal-header h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #f7c35e !important;
}

.admin-work-pdf-modal-header p {
    margin: 4px 0 0 !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.74) !important;
    line-height: 1.35 !important;
}

.admin-work-pdf-close {
    border: none !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.admin-work-pdf-close:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    transform: none !important;
}

.admin-work-pdf-preview {
    flex: 1 !important;
    min-height: 0 !important;
    background: #f8fafc !important;
    overflow: hidden !important;
}

.admin-work-pdf-frame {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: none !important;
    display: block !important;
    background: #ffffff !important;
}

@media (max-width: 768px) {
    .admin-work-pdf-modal {
        padding: 10px !important;
        align-items: center !important;
    }

    .admin-work-pdf-modal-card {
        width: 100% !important;
        height: 88vh !important;
        max-height: 88vh !important;
        border-radius: 18px !important;
    }

    .admin-work-pdf-modal-header {
        min-height: 58px !important;
        padding: 10px 13px !important;
    }

    .admin-work-pdf-modal-header h3 {
        font-size: 14px !important;
    }

    .admin-work-pdf-modal-header p {
        display: none !important;
    }

    .admin-work-pdf-close {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    .admin-work-pdf-btn {
        width: 100% !important;
        min-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .admin-work-pdf-modal {
        padding: 8px !important;
    }

    .admin-work-pdf-modal-card {
        height: 90vh !important;
        max-height: 90vh !important;
        border-radius: 16px !important;
    }
}


/* ==========================================================
   BINARAYA FINAL FIX - ADMIN MONITORING PEKERJAAN HARIAN MOBILE
   Tujuan:
   - Menimpa CSS lama yang memaksa table min-width/scroll.
   - Di mobile, Monitoring Pekerjaan Harian admin berubah jadi card.
   - Tidak ada teks turun per huruf.
   - Tidak perlu geser kanan-kiri.
========================================================== */

#monitoring-pekerjaan-harian,
#monitoring-pekerjaan-harian * {
    box-sizing: border-box !important;
}

#monitoring-pekerjaan-harian .admin-daily-work-table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

#monitoring-pekerjaan-harian .admin-daily-work-table,
#monitoring-pekerjaan-harian .admin-daily-work-table-revisi {
    width: 100% !important;
}

#monitoring-pekerjaan-harian .admin-daily-work-desc,
#monitoring-pekerjaan-harian .admin-daily-work-desc * {
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

#monitoring-pekerjaan-harian .admin-work-supervisor-label {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

@media (max-width: 900px) {
    .admin-control-main {
        overflow-x: hidden !important;
    }

    #monitoring-pekerjaan-harian.admin-daily-work-panel,
    #monitoring-pekerjaan-harian {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 14px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 22px !important;
        overflow: visible !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-header {
        display: block !important;
        padding-left: 14px !important;
        margin-bottom: 14px !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-header h2 {
        font-size: 20px !important;
        line-height: 1.25 !important;
        margin: 0 0 7px !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-header p {
        font-size: 13px !important;
        line-height: 1.55 !important;
        margin: 0 !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-filter {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
        padding: 14px !important;
        margin-bottom: 16px !important;
        border-radius: 18px !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-filter-group,
    #monitoring-pekerjaan-harian .admin-daily-work-filter-group select,
    #monitoring-pekerjaan-harian .admin-daily-work-filter-group input,
    #monitoring-pekerjaan-harian .admin-daily-work-btn {
        width: 100% !important;
        max-width: 100% !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-btn {
        min-height: 44px !important;
        justify-content: center !important;
        border-radius: 14px !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-table-wrapper,
    #monitoring-pekerjaan-harian .admin-monitor-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-table,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi,
    #monitoring-pekerjaan-harian .admin-daily-work-table thead,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi thead,
    #monitoring-pekerjaan-harian .admin-daily-work-table tbody,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi tbody,
    #monitoring-pekerjaan-harian .admin-daily-work-table tr,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi tr,
    #monitoring-pekerjaan-harian .admin-daily-work-table th,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi th,
    #monitoring-pekerjaan-harian .admin-daily-work-table td,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-table,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi {
        table-layout: auto !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        background: transparent !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-table thead,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi thead {
        display: none !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-table tbody,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi tbody {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 13px !important;
        background: transparent !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-table tbody tr,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi tbody tr {
        display: block !important;
        width: 100% !important;
        border: 1px solid rgba(184, 137, 23, 0.28) !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, 0.66) !important;
        overflow: hidden !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07) !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-table tbody tr td,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi tbody tr td,
    #monitoring-pekerjaan-harian .admin-daily-work-table tbody tr td.admin-daily-work-desc,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi tbody tr td.admin-daily-work-desc {
        display: grid !important;
        grid-template-columns: 118px minmax(0, 1fr) !important;
        gap: 12px !important;
        align-items: start !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 12px 14px !important;
        border: none !important;
        border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
        background: transparent !important;
        color: #111827 !important;
        text-align: left !important;
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        overflow: visible !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-table tbody tr td:last-child,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi tbody tr td:last-child {
        border-bottom: none !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-table td::before,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi td::before {
        display: block !important;
        color: #4B5563 !important;
        font-size: 10.5px !important;
        font-weight: 950 !important;
        line-height: 1.25 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.035em !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-table td:nth-child(1)::before,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi td:nth-child(1)::before { content: "Tanggal / Jam" !important; }

    #monitoring-pekerjaan-harian .admin-daily-work-table td:nth-child(2)::before,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi td:nth-child(2)::before { content: "Nama Pekerja" !important; }

    #monitoring-pekerjaan-harian .admin-daily-work-table td:nth-child(3)::before,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi td:nth-child(3)::before { content: "Lokasi" !important; }

    #monitoring-pekerjaan-harian .admin-daily-work-table td:nth-child(4)::before,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi td:nth-child(4)::before { content: "Keterangan" !important; }

    #monitoring-pekerjaan-harian .admin-daily-work-table td:nth-child(5)::before,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi td:nth-child(5)::before { content: "Lampiran" !important; }

    #monitoring-pekerjaan-harian .admin-daily-work-table td:nth-child(6)::before,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi td:nth-child(6)::before { content: "Status" !important; }

    #monitoring-pekerjaan-harian .admin-daily-work-table td:nth-child(7)::before,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi td:nth-child(7)::before { content: "Detail" !important; }

    #monitoring-pekerjaan-harian .admin-work-attachment-actions {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-width: 0 !important;
    }

    #monitoring-pekerjaan-harian .admin-work-mini-btn,
    #monitoring-pekerjaan-harian .admin-work-pdf-btn,
    #monitoring-pekerjaan-harian .admin-daily-work-table td:nth-child(7) .admin-work-mini-btn,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi td:nth-child(7) .admin-work-mini-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: fit-content !important;
        min-width: 72px !important;
        max-width: 100% !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 9px 14px !important;
        border-radius: 999px !important;
        font-size: 11.5px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        word-break: normal !important;
    }

    #monitoring-pekerjaan-harian .admin-work-status-pill {
        display: inline-flex !important;
        width: fit-content !important;
        max-width: 100% !important;
        min-height: 34px !important;
        padding: 8px 13px !important;
        border-radius: 999px !important;
        font-size: 11.5px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        text-align: center !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    #monitoring-pekerjaan-harian .admin-work-supervisor-label {
        display: inline-flex !important;
        width: fit-content !important;
        max-width: 100% !important;
        min-height: 32px !important;
        padding: 7px 12px !important;
        border-radius: 999px !important;
        font-size: 11.5px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
    }

    #monitoring-pekerjaan-harian .admin-work-empty-text {
        display: inline-block !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        word-break: normal !important;
    }

    #monitoring-pekerjaan-harian .admin-work-pagination {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: 16px !important;
    }

    #monitoring-pekerjaan-harian .admin-work-pagination-info {
        text-align: center !important;
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    #monitoring-pekerjaan-harian .admin-work-pagination-actions {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    #monitoring-pekerjaan-harian .admin-work-page-btn,
    #monitoring-pekerjaan-harian .admin-work-page-current {
        min-height: 36px !important;
        padding: 9px 13px !important;
        font-size: 11.5px !important;
        border-radius: 999px !important;
        text-align: center !important;
    }
}

@media (max-width: 420px) {
    #monitoring-pekerjaan-harian.admin-daily-work-panel,
    #monitoring-pekerjaan-harian {
        padding: 15px 12px !important;
        border-radius: 18px !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-filter {
        padding: 12px !important;
    }

    #monitoring-pekerjaan-harian .admin-daily-work-table tbody tr td,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi tbody tr td,
    #monitoring-pekerjaan-harian .admin-daily-work-table tbody tr td.admin-daily-work-desc,
    #monitoring-pekerjaan-harian .admin-daily-work-table-revisi tbody tr td.admin-daily-work-desc {
        grid-template-columns: 1fr !important;
        gap: 7px !important;
        padding: 12px !important;
    }

    #monitoring-pekerjaan-harian .admin-work-mini-btn,
    #monitoring-pekerjaan-harian .admin-work-pdf-btn {
        width: fit-content !important;
        min-width: 68px !important;
        max-width: 100% !important;
    }
}

