/* bgroup theme extra styles */

:root {
    --bgroup-accent: #0d6efd;
}


/* Add Report Page Styles */

.add-report-container {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    position: relative;
    padding-bottom: 0 !important;
    border-radius: 20px 20px 0 0;
}

.app-header {
    background: #e3f2fd;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    color: #1565c0;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.page-title {
    color: #1565c0;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.main-content {
    background: white;
    padding: 20px 10px;
    min-height: 100vh;
    border-radius: 20px 20px 0 0;
}

.gift-summary-card {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gift-summary-table {
    width: 100%;
    border-collapse: collapse;
    background: #e3f2fd;
    border-radius: 0;
    overflow: hidden;
}

.table-header {
    background: #e3f2fd;
    display: flex;
    font-weight: bold;
    color: #1565c0;
    font-size: 12px;
}

.header-cell {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #bbdefb;
    border-bottom: 1px solid #bbdefb;
    background: #e3f2fd;
}

.header-cell:last-child {
    border-right: none;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #bbdefb;
    background: white;
}

.table-row:last-child {
    border-bottom: none;
}

.gift-summary-table .data-cell,
.data-cell {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    border-right: 1px solid #bbdefb;
    background: white;
}

.data-cell:last-child {
    border-right: none;
}

.gift-input {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 12px;
    padding: 4px;
    outline: none;
}


/* .gift-input:focus {
    background: #f0f8ff;
    border-radius: 4px;
} */

.gift-input[readonly] {
    /* background: #f5f5f5; */
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.upload-section-group {
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #bbdefb;
}

.form-label {
    display: block;
    color: #1565c0;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 16px 12px;
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background: white;
    border-bottom: 2px solid #e3f2fd;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #1565c0;
    border-bottom-color: #1565c0;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231565c0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
}

select.form-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231565c0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.upload-single {
    margin-top: 8px;
}

.upload-single .upload-item {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.image-preview-container {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.upload-item {
    aspect-ratio: 1;
    border: 2px dashed #1565c0;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    position: relative;
    overflow: hidden;
}

.upload-item:hover {
    background: #f0f8ff;
}

.upload-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.upload-placeholder svg {
    width: 20px;
    height: 20px;
}

.submit-btn {
    width: 100%;
    background: #1565c0;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #0d47a1;
}

.submit-btn:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.submit-btn:disabled:hover {
    background: #6c757d !important;
}


/* Button states for image validation */

.submit-btn.warning {
    background: #ff9800 !important;
    color: white;
}

.submit-btn.warning:hover {
    background: #f57c00 !important;
}

.submit-btn.success {
    background: #4CAF50 !important;
    color: white;
}

.submit-btn.success:hover {
    background: #45a049 !important;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    background: #e3f2fd;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
}

.nav-item {
    color: #1565c0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-item.active {
    background: #1565c0;
    color: white;
}

@media (max-width: 480px) {
    .add-report-container {
        max-width: 100%;
    }
}


/* No Selection and Login Required Cards */

.no-selection-card,
.login-required-card {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    border: 1px solid #bbdefb;
}

.no-selection-content,
.login-required-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-selection-content h3,
.login-required-content h3 {
    color: #1565c0;
    margin-bottom: 12px;
    font-size: 18px;
}

.no-selection-content p,
.login-required-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.selection-btn,
.login-btn {
    display: inline-block;
    background: #1565c0;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.selection-btn:hover,
.login-btn:hover {
    background: #0d47a1;
    color: white;
    text-decoration: none;
}

a {
    color: var(--bgroup-accent);
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--bgroup-accent);
    color: var(--bgroup-accent);
    text-decoration: none;
}

.btn.primary {
    background: var(--bgroup-accent);
    color: #fff;
    border-color: var(--bgroup-accent);
}

.hero {
    padding: 48px 16px;
    background: #f7f9fc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
}

.hero h1 {
    margin-top: 0;
}


/* Login page styles */


/* Reusable container: 400px max width, centered */

.u-container-400 {
    width: 400px !important;
    max-width: 400px !important;
    margin: 0 auto;
}


/* Login page template styles */

.login-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    /* background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 50%, #E0F6FF 100%); */
    position: relative;
}


/* 
.login-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.8) 0%, rgba(176, 224, 230, 0.6) 50%, rgba(224, 246, 255, 0.4) 100%);
    z-index: 1;
} */

.login-hero>* {
    position: relative;
    z-index: 2;
}

.login-brand .brand-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #2b4c77;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.brand-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 8px;
    display: block;
    margin-top: 70px;
    margin-bottom: 40px;
}

.login-brand .brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Circle logo variant */

.login-brand .brand-logo.circle {
    width: 60px;
    height: 60px;
}

.login-brand .brand-sub {
    font-size: 12px;
    color: #5a7a9a;
    margin-top: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.login-form {
    background-color: rgb(0 90 145 / 24%);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e9ecef;
    margin-top: 20px;
}

.login-form .field {
    display: block;
    margin: 12px 0;
}

.login-form .label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2b4c77;
    margin-bottom: 8px;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form select {
    width: 100%;
    border: none;
    border-bottom: 2px solid #fff;
    padding: 12px 4px;
    outline: none;
    background: transparent;
    font-size: 16px;
    transition: border-bottom-color 0.3s ease;
    color: #0f256f;
    background-color: transparent;
    appearance: none;
    /* background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f256f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e"); */
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 16px;
    padding-right: 30px;
}

.login-form input::placeholder {
    color: #0f256f;
}

.login-form input:focus,
.login-form select:focus {
    border-bottom-color: #2b4c77;
    background-color: transparent;
}

.login-form input:-internal-autofill-selected {
    /* border-bottom-color: #2b4c77; */
    background-color: transparent !important;
    color: #0f256f;
}

.login-btn {
    width: 100%;
    margin-top: 24px;
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    background: #2b4c77;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background: #1e3a5f;
}

.login-help {
    text-align: center;
    margin-top: 10px;
    a {
        color: #0f256f !important;
    }
}


/* Selection page styles */


/* 
.selection-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 50%, #E0F6FF 100%);
    position: relative;
}

.selection-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.8) 0%, rgba(176, 224, 230, 0.6) 50%, rgba(224, 246, 255, 0.4) 100%);
    z-index: 1;
} */

.selection-hero>* {
    position: relative;
    z-index: 2;
}

.selection-card {
    width: 100%;
    /* background: rgba(255, 255, 255, 0.95); */
    /* border-radius: 20px; */
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); */
    padding: 40px 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    margin: 0 auto;
}

.selection-brand {
    text-align: center;
    margin-bottom: 40px;
}

.selection-brand .brand-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #2b4c77;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Circle logo variant for selection */

.brand-logo.circle {
    width: 60px;
    height: 60px;
}

.selection-brand .brand-sub {
    font-size: 11px;
    color: #2b4c77;
    margin-top: 0;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.selection-form {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}

.selection-form .field {
    display: block;
    margin: 24px 0;
}

.selection-form .label {
    display: none;
}

.selection-form select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    color: #2b4c77;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b4c77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.selection-form select:focus {
    border-color: #2b4c77;
    box-shadow: 0 0 0 3px rgba(43, 76, 119, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.selection-form select option {
    padding: 12px;
    font-size: 16px;
    color: #2b4c77;
}

.selection-btn {
    width: 100%;
    margin-top: 40px;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    background: #2b4c77;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(43, 76, 119, 0.3);
}

.selection-btn:hover {
    background: #1e3a5f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 76, 119, 0.4);
}

.selection-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(43, 76, 119, 0.3);
}


/* Mobile responsive styles */

@media (max-width: 768px) {
    .selection-card {
        padding: 32px 20px;
        border-radius: 16px;
        margin: 0;
    }
    .selection-brand .brand-title {
        font-size: 32px;
    }
    .selection-brand .brand-sub {
        font-size: 10px;
        letter-spacing: 0.6px;
    }
    .selection-form select {
        padding: 14px 18px;
        font-size: 15px;
    }
    .selection-btn {
        padding: 14px 18px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .selection-card {
        padding: 28px 16px;
    }
    .selection-brand .brand-title {
        font-size: 28px;
    }
    .selection-form .field {
        margin: 20px 0;
    }
}


/* App mobile header */

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: all 0.3s ease;
}

.app-header.scrolled {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-template-page-selection .app-header,
.page-template-page-login .app-header {
    display: none;
}

body.page-template-page-login {
    padding-bottom: 0px !important;
}

.app-back {
    background: transparent;
    border: 0;
    font-size: 20px;
    line-height: 1;
    padding: 6px;
}

.app-title {
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.app-menu-toggle {
    background: transparent;
    border: 0;
    font-size: 27px;
    padding: 6px;
    color: #0f256f;
}

.app-menu {
    display: none;
}

.app-menu.open {
    display: block;
}

.app-menu-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.app-menu-list li {
    border-top: 1px solid #f0f2f6;
}

.app-menu-list a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #111;
}


/* Slide-in drawer */

.app-drawer {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

.app-drawer.open {
    display: block;
}

.app-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.app-drawer__panel {
    position: absolute;
    top: 0;
    right: -360px;
    width: 80%;
    max-width: 360px;
    height: 100%;
    background: linear-gradient(135deg, rgba(135, 206, 235, 1) 0%, rgba(176, 224, 230, 1) 50%, rgba(224, 246, 255, 1) 100%);
    box-shadow: -8px 0 16px rgba(0, 0, 0, 0.15);
    /* transform: translateX(100%); */
    transition: all .5s;
    display: flex;
    flex-direction: column;
}

.app-drawer.open .app-drawer__panel {
    /* transform: translateX(0); */
    right: 0;
    transition: all .5s;
}

.app-drawer__close {
    align-self: flex-end;
    background: transparent;
    border: 0;
    font-size: 28px;
    padding: 10px;
}

.app-drawer__list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.app-drawer__list li {
    border-top: 1px solid #f0f2f6;
}

.app-drawer__list a {
    display: block;
    padding: 14px 16px;
    color: #fff;
    text-decoration: none;
}

.app-drawer__list li {
    border-top: 1px solid #f0f2f6;
}

.app-drawer__list a {
    display: block;
    padding: 14px 16px;
    color: #111;
    text-decoration: none;
}


/* ==========================================================================
   Dashboard Styles
   ========================================================================== */

.dashboard-container {
    max-width: 500px;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: 100vh;
    position: relative;
    /* padding-bottom: 80px; */
    border-radius: 20px 20px 0 0;
}


/* Header */

.dashboard-header {
    background: #e3f2fd;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-title {
    font-size: 18px;
    font-weight: 600;
    color: #1565c0;
    margin: 0;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger-menu span {
    width: 20px;
    height: 2px;
    background: #1565c0;
    border-radius: 1px;
}


/* Main Content */

.dashboard-content {
    padding: 10px;
    padding-top: 20px;
}


/* Gift Summary Card */

.gift-summary-table {
    background: #9ec8e9;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    border: 1px solid #0f256f;
    /* border-radius: 12px; */
    border-radius: 12px;
    overflow: hidden;
}

.gift-summary-table input[type="number"] {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 12px;
    padding: 4px;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.gift-summary-table input[type="number"]::-webkit-outer-spin-button,
.gift-summary-table input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.table-header {
    display: contents;
}


/* .header-cell {
    font-size: 12px;
    font-weight: 600;
    color: #1565c0;
    text-align: center;
    padding: 12px 8px;
    background: #9ec8e9;
    border-right: 1px solid #0f256f;
    border-bottom: 1px solid #0f256f;
} */

.header-cell:last-child {
    border-right: none;
}

.table-row {
    display: contents;
}

.data-cell {
    font-size: 14px;
    color: #0f256f;
    text-align: center;
    padding: 12px 8px;
    background: #e3f2fd;
    border-right: 1px solid #0f256f;
    border-bottom: 1px solid #0f256f;
}

.data-cell:last-child {
    border-right: none;
}

.table-row:last-child .data-cell {
    border-bottom: none;
}


/* Report History */

.report-history-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1565c0;
    margin: 0 0 16px 0;
}

.report-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-item {
    background: white;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.report-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.home .report-thumbnail {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.report-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-content {
    flex: 1;
}

.report-date {
    font-size: 12px;
    color: #1565c0;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-title {
    font-size: 14px;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 4px;
}

.report-status {
    font-size: 12px;
    font-weight: 400;
    padding: 0px 6px;
    border-radius: 12px;
    display: inline-block;
    color: white;
}

.report-status.pending {
    background: #ff9800;
}

.report-status.approved {
    background: #4caf50;
}

.report-status.rejected {
    background: #f44336;
}


/* Hotline Section */

.hotline-section {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 360px;
    z-index: 10;
}


/* Hotline Toggle Button */

.hotline-toggle {
    position: fixed;
    bottom: 20px;
    right: 0px;
    width: 60px;
    height: 60px;
    background: #1565c0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
    transition: all 0.3s ease;
    z-index: 1001;
}

.hotline-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(21, 101, 192, 0.4);
}

.hotline-toggle .phone-icon {
    font-size: 24px;
    color: white;
}

.hotline-card {
    background: #1565c0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hotline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.phone-icon {
    font-size: 20px;
    color: white;
}

.hotline-card .phone-icon {
    color: white;
}

.phone-icon svg {
    width: 100%;
    height: 100%;
}

.hotline-label {
    font-size: 16px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    * {
        color: white !important;
    }
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    background: #1565c0;
    border: 1px solid white;
    border-radius: 8px;
    padding: 6px;
}

.contact-field {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-field .field-label {
    font-size: 12px;
    color: white;
    font-weight: 500;
    text-align: center;
    min-width: fit-content !important;
}


/* Bottom Navigation */

.bottom-navigation {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #c6e8ee !important;
    border-radius: 0;
    display: flex !important;
    justify-content: space-around;
    align-items: flex-end;
    z-index: 9999 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}


/* Footer styling */

#footer {
    position: relative;
    z-index: 1;
    /* margin-bottom: 80px; */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 50px;
    position: relative;
}

.nav-item.active {
    background: #c6e8ee;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
    transform: translateY(-8px);
    border-radius: 9999px;
    padding: 7px 5px;
    scale: 1.15;
}

.nav-item.active>a>div {
    border-radius: 999px;
    padding: 4px;
    background: #fff;
}

.nav-icon {
    font-size: 20px;
    color: #1565c0;
}

.nav-item.active .nav-icon {
    font-size: 24px;
    color: #1565c0;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
}

.nav-item.active .nav-icon svg {
    fill: white;
}

.nav-item:not(.active) .nav-icon svg {
    fill: white;
}

.app-back svg {
    width: 30px;
    height: 30px;
    display: block;
}


/* Footer Navigation Icons */

.bottom-navigation .nav-item img.nav-icon {
    width: 30px;
    height: 30px;
    display: block;
    transition: opacity 0.3s ease;
    margin: 5px;
}

.bottom-navigation .nav-item.active img.nav-icon {
    opacity: 1;
}

.bottom-navigation .nav-item:not(.active) img.nav-icon {
    opacity: 0.6;
}

.bottom-navigation .nav-item:not(.active) img.nav-icon:hover {
    opacity: 0.8;
}


/* Ensure footer is always visible */

body {
    padding-bottom: 80px !important;
}


/* Force footer display on all pages */

#footer {
    display: block !important;
}

#footer .bottom-navigation {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.notifications-container {
    /* padding: 16px; */
    max-width: 600px;
    margin: 0 auto;
}

.notification-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notification-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.notification-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    background: red;
    color: #fff;
}

.icon-circle.warning {
    background: #FFD700;
    color: #000;
}

.icon-circle.success {
    background: #2E7D32;
    color: white;
}

.icon-triangle {
    width: 0;
    height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-triangle.danger {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid #D32F2F;
    width: 40px;
    height: 35px;
}

.icon-triangle.danger .exclamation {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content a {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}

.notification-title {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-message {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 8px;
}

.notification-time {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}


/* Card Background Colors */

.warning-reminder {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF3C4 100%);
    border-left: 4px solid #FFD700;
}

.late-warning {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border-left: 4px solid #D32F2F;
}

.report-approved {
    background: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 100%);
    border-left: 4px solid #4CAF50;
}

.report-rejected {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border-left: 4px solid #D32F2F;
}


/* Responsive */

@media (max-width: 480px) {
    .notifications-container {
        /* padding: 12px; */
    }
    .notification-card {
        padding: 12px;
        margin-bottom: 10px;
    }
    .icon-circle {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .icon-triangle.danger {
        border-left: 18px solid transparent;
        border-right: 18px solid transparent;
        border-bottom: 32px solid #D32F2F;
        width: 36px;
        height: 32px;
    }
    .icon-triangle.danger .exclamation {
        font-size: 16px;
        top: 6px;
    }
    .notification-title {
        font-size: 15px;
    }
    .notification-message {
        font-size: 13px;
    }
}


/* Report Page Styles */

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #e9ecef;
    color: #333;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.header-spacer {
    width: 40px;
}

.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.reports-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    width: 100%;
}

.reports-table {
    display: grid;
    grid-template-columns: 100px 150px 120px 60px 60px 60px 60px 70px 160px;
    background: #add8e6;
    border: 1px solid #add8e6;
    border-radius: 12px;
    overflow: hidden;
    min-width: 840px;
}

button#exportExcelBtn {
    color: #fff;
    background: #0f256f;
}

.table-header {
    display: contents;
}

.header-cell {
    background: #add8e6;
    color: #191970;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    padding: 10px 6px;
    border-right: 1px solid #add8e6;
    border-bottom: 1px solid #add8e6;
    white-space: nowrap;
    overflow: visible;
}

.header-cell:last-child {
    border-right: none;
}

.data-cell {
    background: white;
    color: #333;
    font-size: 13px;
    padding: 8px 4px;
    border-right: 1px solid #add8e6;
    border-bottom: 1px solid #add8e6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.data-cell:last-child {
    border-right: none;
}

.table-row:last-child .data-cell {
    border-bottom: none;
}


/* Special styling for report name column */

.page-template-page-report .table-row .data-cell:nth-child(2) {
    justify-content: flex-start;
    text-align: left;
}

.page-template-page-report .table-row .data-cell:nth-child(2) a {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}

.page-template-page-report .table-row .data-cell:nth-child(2) a:hover {
    text-decoration: underline;
}


/* Report Page Responsive */


/* Image Preview Styles */

.image-preview {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.image-preview:hover {
    transform: scale(1.05);
}

.preview-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.image-count {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 0 0 0 4px;
    font-weight: bold;
}


/* Image Slider Modal Styles */

.image-slider-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.close-slider {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.close-slider:hover {
    color: #ff6b6b;
}

.slider-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-images {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 80vh;
    overflow: hidden;
}

.slider-images img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.prev-btn,
.next-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    pointer-events: auto;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    margin-left: 20px;
}

.next-btn {
    margin-right: 20px;
}

.slider-counter {
    color: white;
    font-size: 16px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}


/* ==========================================================================
   Personnel List Page Styles
   ========================================================================== */

.personnel-header {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    padding: 20px 16px;
    margin-bottom: 0;
    border-radius: 0;
}

.personnel-title {
    font-size: 18px;
    font-weight: 600;
    color: #1565c0;
    margin: 0;
    text-align: center;
}

.personnel-list-container {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px 10px;
    margin-top: -20px;
    position: relative;
    min-height: calc(100vh - 100px);
    margin-top: 0;
}

.personnel-add-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: #1565c0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.personnel-add-btn:hover {
    background: #0d47a1;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.4);
    color: white;
    text-decoration: none;
}

.personnel-add-btn .add-icon {
    display: block;
    line-height: 1;
}

.personnel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 0;
    /* margin-top: 30px; */
}

.personnel-item {
    background: #E3F2FD;
    border: 1px solid #BBDEFB;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.personnel-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.personnel-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.personnel-item-link:hover {
    opacity: 0.8;
    text-decoration: none;
    color: inherit;
}

.personnel-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.personnel-view-btn,
.personnel-edit-btn,
.personnel-delete-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.personnel-edit-btn svg,
.personnel-delete-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.personnel-view-btn {
    background: #4caf50;
    color: white;
}

.personnel-view-btn:hover {
    background: #388e3c;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
    color: white;
    text-decoration: none;
}

.personnel-edit-btn {
    background: #1565c0;
    color: white;
}

.personnel-edit-btn:hover {
    background: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(21, 101, 192, 0.3);
    color: white;
    text-decoration: none;
}

.personnel-delete-btn {
    background: #d32f2f;
    color: white;
}

.personnel-delete-btn:hover {
    background: #b71c1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.3);
    color: white;
    text-decoration: none;
}

.personnel-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.personnel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.personnel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.personnel-field {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.personnel-field .field-label {
    max-width: 100px;
    font-size: 14px;
    font-weight: 600;
    color: #1565c0;
    min-width: 35px;
}

.field-value {
    font-size: 14px;
    color: #1565c0;
    font-weight: 500;
}


/* Personnel Page Responsive */


/* ==========================================================================
   Add Personnel Form Styles
   ========================================================================== */

.add-personnel-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px 10px;
}

.personnel-form-wrapper {
    padding: 0;
}

.personnel-form-card {
    border: 1px solid #0d47a1;
    border-radius: 20px;
    padding: 10px;
}

.form-top-section {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 2px solid #BBDEFB;
}

.role-group {
    flex: 1;
    margin-bottom: 0;
}

.role-select-row {
    align-items: center;
}

.role-select-container {
    flex: 1;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #BBDEFB;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #0d47a1;
    font-weight: 500;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d47a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.form-select option {
    padding: 8px;
}

.image-upload-group {
    margin-bottom: 0;
    flex-shrink: 0;
}


/* Avatar Upload Styles */

.avatar-upload-row {
    align-items: center;
    padding: 12px 0;
}

.avatar-upload-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.avatar-upload-label {
    display: block;
    cursor: pointer;
    width: 100%;
}

.upload-image-label {
    display: block;
    cursor: pointer;
}

.upload-image-box {
    width: 200px;
    min-height: 110px;
    height: auto;
    border: 1px solid #1565c0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E3F2FD;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.upload-image-box:hover {
    border-color: #0d47a1;
    background: #BBDEFB;
}

.upload-image-box img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    background: rgba(211, 47, 47, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    padding: 0;
}

.remove-image-btn:hover {
    background: #d32f2f;
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.remove-image-btn svg {
    width: 14px;
    height: 14px;
    stroke: white;
}

.upload-image-text {
    font-size: 14px;
    color: #1565c0;
    font-weight: 600;
    text-align: center;
    z-index: 1;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

.form-field-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    margin-bottom: 0;
    flex-wrap: nowrap;
}


/* .form-field-row:not(:last-of-type) {
    border-bottom: 1px dashed #90CAF9;
    margin-bottom: 8px;
} */

.field-label {
    font-size: 14px;
    font-weight: 600;
    color: #1565c0;
    min-width: 120px;
    max-width: 120px;
    flex-shrink: 0;
    text-align: left;
    white-space: nowrap;
}

.form-field-input {
    flex: 1;
    border: none;
    border-bottom: 2px dotted #90CAF9;
    outline: none;
    font-size: 14px;
    color: #0d47a1;
    padding: 6px 0;
    background: transparent;
    font-weight: 500;
    min-width: 150px;
    width: auto;
}

.form-field-input::placeholder {
    color: #90CAF9;
    font-weight: 400;
}

.form-field-input:not(:focus) {
    border-bottom: 2px dotted #90CAF9;
}


/* CCCD Upload Styles */

.cccd-upload-row {
    align-items: center;
    padding: 12px 0;
}


/* .cccd-upload-row:not(:last-of-type) {
    border-bottom: 1px dashed #90CAF9;
    margin-bottom: 8px;
} */

.cccd-upload-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.cccd-upload-label {
    display: block;
    cursor: pointer;
    width: 100%;
}

.cccd-upload-box {
    width: 200px;
    height: 110px;
    border: 1px solid #1565c0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E3F2FD;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cccd-upload-box:hover {
    border-color: #0d47a1;
    background: #BBDEFB;
}

.cccd-upload-text {
    font-size: 14px;
    color: #1565c0;
    font-weight: 600;
    text-align: center;
    z-index: 1;
}

.personnel-submit-btn {
    width: 100%;
    background: #1565c0;
    color: white;
    border: 2px solid #0d47a1;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
}

.personnel-submit-btn:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.personnel-submit-btn:active {
    transform: translateY(0);
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}