/* ============================================
   APOLLO CORE — Design System
   Colors: Orange #eb770c, Black #000, White #fff
   Font: Inter (Google Fonts)
   ============================================ */



/* === CSS Variables === */
:root {
    --apollo-primary: #eb770c;
    --apollo-primary-hover: #d46a0a;
    --apollo-primary-light: #fef3e6;
    --apollo-dark: #000000;
    --apollo-white: #ffffff;
    --apollo-bg: #f9fafb;
    --apollo-success: #22c55e;
    --apollo-success-light: #dcfce7;
    --apollo-warning: #eab308;
    --apollo-warning-light: #fef9c3;
    --apollo-danger: #ef4444;
    --apollo-danger-light: #fee2e2;
    --apollo-neutral: #9ca3af;
    --apollo-neutral-light: #f3f4f6;
    --apollo-text: #111827;
    --apollo-text-secondary: #6b7280;
    --apollo-border: #e5e7eb;
    --apollo-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --apollo-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --apollo-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --apollo-radius: 12px;
    --apollo-radius-sm: 8px;
    --apollo-radius-xs: 6px;
    --apollo-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --apollo-nav-height: 60px;
    --apollo-header-height: 56px;
    --apollo-transition: 0.2s ease;
}

/* === Base Reset === */
.apollo-page, .apollo-page *:not(.dashicons), .apollo-top-header, .apollo-top-header *:not(.dashicons), .apollo-bottom-nav, .apollo-bottom-nav *:not(.dashicons), .apollo-search-bar, .apollo-search-bar *:not(.dashicons), .apollo-modal-overlay, .apollo-modal-overlay *:not(.dashicons), .apollo-notif-panel, .apollo-notif-panel *:not(.dashicons), .apollo-login-page, .apollo-login-page *:not(.dashicons) {
    box-sizing: border-box;
    font-family: var(--apollo-font);
}
.apollo-page .dashicons, .apollo-top-header .dashicons, .apollo-bottom-nav .dashicons, .apollo-search-bar .dashicons, .apollo-modal-overlay .dashicons, .apollo-notif-panel .dashicons, .apollo-login-page .dashicons {
    box-sizing: border-box;
    font-family: dashicons !important;
    font-size: 25px !important;
    width: 25px !important;
    height: 25px !important;
    line-height: 25px !important;
}

.apollo-number-positive {
    color: var(--apollo-success) !important;
}

.apollo-number-negative {
    color: var(--apollo-danger) !important;
}

.apollo-number-neutral {
    color: #111827;
}

/* === Top Header === */
.apollo-top-header {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
    padding: 0px 24px 10px 0px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.admin-bar .apollo-top-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .apollo-top-header {
        top: 46px;
    }
}

.apollo-header-left { display: flex; align-items: center; }
.apollo-logo { height: 32px; width: auto; }
.apollo-page-title {
    font-size: 16px; font-weight: 600;
    color: var(--apollo-text);
}
.apollo-header-right { display: flex; align-items: center; gap: 8px; }
.apollo-header-btn {
    width: 36px; height: 36px; border: none; background: transparent;
    border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center; color: var(--apollo-text);
    transition: background var(--apollo-transition);
    position: relative; padding: 0;
}
.apollo-header-btn:hover { background: var(--apollo-neutral-light); }
.apollo-header-btn .dashicons { font-size: 20px; width: 20px; height: 20px; }
.apollo-notif-badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--apollo-danger); color: white;
    font-size: 10px; min-width: 16px; height: 16px;
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; padding: 0 4px;
}
.apollo-notif-panel {
    display: none;
    position: absolute;
    top: 52px;
    right: 62px;
    width: min(360px, calc(100vw - 24px));
    max-height: min(520px, calc(100vh - 96px));
    overflow: hidden;
    z-index: 1200;
    background: var(--apollo-white);
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius);
    box-shadow: var(--apollo-shadow-lg);
}
.apollo-notif-panel.show {
    display: block;
}
.apollo-notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--apollo-border);
}
.apollo-notif-panel-header strong {
    color: var(--apollo-text);
    font-size: 15px;
    font-weight: 800;
}
.apollo-notif-panel-header span {
    color: var(--apollo-text-secondary);
    font-size: 15px;
    font-weight: 700;
}
.apollo-notif-list {
    max-height: 440px;
    overflow-y: auto;
    padding: 8px;
}
.apollo-notif-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px;
    border-radius: var(--apollo-radius-sm);
    text-decoration: none;
    color: var(--apollo-text);
    transition: background var(--apollo-transition);
}
.apollo-notif-item:hover {
    background: var(--apollo-bg);
    text-decoration: none;
}
.apollo-notif-item .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: var(--apollo-primary);
}
.apollo-notif-danger .dashicons {
    color: var(--apollo-danger);
}
.apollo-notif-warning .dashicons {
    color: var(--apollo-warning);
}
.apollo-notif-success .dashicons {
    color: var(--apollo-success);
}
.apollo-notif-content strong,
.apollo-notif-content small {
    display: block;
}
.apollo-notif-content strong {
    color: var(--apollo-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}
.apollo-notif-content small {
    color: var(--apollo-text-secondary);
    font-size: 15px;
    line-height: 1.4;
    margin-top: 3px;
}
.apollo-notif-empty {
    color: var(--apollo-text-secondary);
    font-size: 13px;
    line-height: 1.45;
    padding: 18px 14px;
    text-align: center;
}
@media (max-width: 520px) {
    .apollo-notif-panel {
        right: 12px;
        top: 58px;
        width: calc(100vw - 24px);
    }
}
.apollo-user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--apollo-primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; cursor: pointer;
    overflow: hidden;
    flex: 0 0 36px;
}
.apollo-user-avatar img,
.apollo-user-dropdown-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* === Search Bar === */
.apollo-search-bar {
    position: sticky; top: var(--apollo-header-height); z-index: 999;
    background: var(--apollo-white);
    border-bottom: 1px solid var(--apollo-border);
    padding: 8px 16px 12px;
    animation: apolloSlideDown 0.2s ease;
}

.admin-bar .apollo-search-bar {
    top: calc(var(--apollo-header-height) + 32px);
}

@media (max-width: 782px) {
    .admin-bar .apollo-search-bar {
        top: calc(var(--apollo-header-height) + 46px);
    }
}

@keyframes apolloSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.apollo-search-mode { display: flex; gap: 8px; margin-bottom: 8px; }
.apollo-search-mode-btn {
    flex: 1; padding: 6px 12px; border: 1px solid var(--apollo-border);
    background: var(--apollo-white); border-radius: var(--apollo-radius-xs);
    cursor: pointer; font-size: 15px; font-weight: 500;
    color: var(--apollo-text-secondary); display: flex;
    align-items: center; justify-content: center; gap: 4px;
    transition: all var(--apollo-transition);
}
.apollo-search-mode-btn .dashicons { font-size: 14px; width: 14px; height: 14px; }
.apollo-search-mode-btn.active {
    background: var(--apollo-primary); color: white;
    border-color: var(--apollo-primary);
}
.apollo-search-input-wrap {
    position: relative; display: flex; align-items: center;
}
.apollo-search-icon {
    position: absolute; left: 12px;
    color: var(--apollo-neutral); font-size: 18px; width: 18px; height: 18px;
}
.apollo-search-input {
    width: 100%; padding: 10px 40px 10px 40px;
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius-sm);
    font-size: 14px; background: var(--apollo-bg);
    transition: border-color var(--apollo-transition);
}
.apollo-search-input:focus {
    outline: none; border-color: var(--apollo-primary);
    box-shadow: 0 0 0 3px var(--apollo-primary-light);
}
.apollo-search-close {
    position: absolute; right: 8px; background: none;
    border: none; cursor: pointer; color: var(--apollo-neutral); padding: 4px;
}
.apollo-search-results {
    margin-top: 8px; background: var(--apollo-white);
    border: 1px solid var(--apollo-border); border-radius: var(--apollo-radius-sm);
    max-height: 300px; overflow-y: auto;
}
.apollo-search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; cursor: pointer;
    border-bottom: 1px solid var(--apollo-border);
    transition: background var(--apollo-transition);
}
.apollo-search-result-item:last-child { border-bottom: none; }
.apollo-search-result-item:hover { background: var(--apollo-primary-light); }
.apollo-search-result-item .dashicons {
    font-size: 20px; width: 20px; height: 20px; color: var(--apollo-primary);
}
.apollo-search-result-title { font-size: 14px; font-weight: 500; color: var(--apollo-text); }
.apollo-search-result-subtitle { font-size: 15px; color: var(--apollo-text-secondary); }
.apollo-search-empty { padding: 20px; text-align: center; color: var(--apollo-text-secondary); font-size: 14px; }

/* === Bottom Navigation === */
.apollo-bottom-nav {
    position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 24px); max-width: 1168px;
    z-index: 1000; height: 68px;
    background: var(--apollo-white);
    display: flex; align-items: center; justify-content: space-around;
    padding: 0 12px; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-sizing: border-box;
}
.apollo-nav-item {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; flex: 1;
    text-decoration: none; color: var(--apollo-text-secondary); 
    height: 52px; max-width: 90px; min-width: 0;
    border-radius: 16px;
    transition: all 0.3s ease;
    gap: 4px; position: relative;
}
.apollo-nav-item .dashicons { font-size: 22px; width: 22px; height: 22px; transition: transform 0.3s ease; }
.apollo-nav-label { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apollo-nav-item.active { 
    color: var(--apollo-primary); 
    background: var(--apollo-primary-light);
}
.apollo-nav-item.active .dashicons {
    transform: translateY(-2px);
}
.apollo-nav-item:hover:not(.active) { 
    color: var(--apollo-primary); 
    background: rgba(235, 119, 12, 0.05); 
    text-decoration: none; 
}

/* === Page Container === */
.apollo-page {
    box-sizing: border-box;
    width: 100%;
    padding: 16px; padding-bottom: 100px; /* Extra space for floating bottom nav */
    max-width: 1200px; margin: 0 auto;
    background: var(--apollo-white); min-height: 60vh;
}
.apollo-page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.apollo-page-title-main {
    font-size: 20px; font-weight: 700; color: var(--apollo-text);
    display: flex; align-items: center; gap: 8px; margin: 0;
}
.apollo-page-title-main .dashicons { color: var(--apollo-primary); }
.apollo-counter {
    font-size: 13px; color: var(--apollo-text-secondary);
    margin-bottom: 12px; display: flex; align-items: center; gap: 4px;
}
.apollo-counter strong { color: var(--apollo-text); }

/* === Buttons === */
.apollo-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: var(--apollo-radius-xs);
    font-size: 14px; font-weight: 600; border: none;
    cursor: pointer; transition: all var(--apollo-transition);
    text-decoration: none; white-space: nowrap; font-family: var(--apollo-font);
}
.apollo-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }
.apollo-btn-primary {
    background: var(--apollo-primary); color: white;
}
.apollo-btn-primary:hover {
    background: var(--apollo-primary-hover);
    box-shadow: 0 2px 8px rgba(235,119,12,0.3);
    transform: translateY(-1px);
}
.apollo-btn-secondary {
    background: transparent; color: var(--apollo-text);
    border: 1px solid var(--apollo-border);
}
.apollo-btn-secondary:hover { background: var(--apollo-neutral-light); }
.apollo-btn-danger { background: var(--apollo-danger); color: white; }
.apollo-btn-danger:hover { background: #dc2626; }
.apollo-btn-sm { padding: 6px 14px; font-size: 13px; }
.apollo-btn-block { width: 100%; justify-content: center; }

/* === Cards === */
.apollo-card {
    background: var(--apollo-white);
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius);
    box-shadow: var(--apollo-shadow);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow var(--apollo-transition);
}
.apollo-card:hover { box-shadow: var(--apollo-shadow-md); }
.apollo-card-header {
    padding: 14px 16px; border-bottom: 1px solid var(--apollo-border);
    display: flex; align-items: center; justify-content: space-between;
}
.apollo-card-header h3 {
    font-size: 15px; font-weight: 600; margin: 0;
    display: flex; align-items: center; gap: 8px;
    color: var(--apollo-text);
}
.apollo-card-header h3 .dashicons { color: var(--apollo-primary); font-size: 18px; width: 18px; height: 18px; }
.apollo-card-body { padding: 14px 16px; }
.apollo-card-footer {
    padding: 12px 16px; border-top: 1px solid var(--apollo-border);
    background: var(--apollo-bg); display: flex; justify-content: flex-end; gap: 8px;
}

/* === Item Card (List format) === */
.apollo-item-card {
    background: var(--apollo-white);
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius);
    padding: 14px 16px; margin-bottom: 10px;
    box-shadow: var(--apollo-shadow);
    transition: all var(--apollo-transition);
    position: relative;
}
.apollo-item-card:hover { box-shadow: var(--apollo-shadow-md); border-color: var(--apollo-primary); }
.apollo-item-card:active { transform: scale(0.99); }
.apollo-item-card-highlight {
    border-color: var(--apollo-primary);
    box-shadow: 0 0 0 3px var(--apollo-primary-light), var(--apollo-shadow-md);
}
.apollo-item-card-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 8px;
}
.apollo-item-card-title {
    font-size: 15px; font-weight: 600; color: var(--apollo-text);
    cursor: pointer; margin: 0;
}
.apollo-item-card-title:hover { color: var(--apollo-primary); }
.apollo-item-card-code {
    font-size: 11px; font-weight: 600; color: var(--apollo-primary);
    background: var(--apollo-primary-light); padding: 2px 8px;
    border-radius: 4px; white-space: nowrap;
}
.apollo-item-card-meta {
    display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px;
    font-weight: 700;
    color: var(--apollo-text-secondary);
}
.apollo-item-card-meta-item {
    display: flex; align-items: center; gap: 4px;
}
.apollo-item-card-meta-item .dashicons {
    font-size: 14px; width: 14px; height: 14px; color: var(--apollo-neutral);
}
.apollo-item-card-actions {
    display: flex; gap: 4px; margin-top: 10px;
    padding-top: 10px; border-top: 1px solid var(--apollo-border);
}
.apollo-action-btn {
    width: 32px; height: 32px; border: 1px solid var(--apollo-border);
    background: var(--apollo-white); border-radius: var(--apollo-radius-xs);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--apollo-text-secondary);
    transition: all var(--apollo-transition); padding: 0;
}
.apollo-action-btn:hover { background: var(--apollo-primary-light); color: var(--apollo-primary); border-color: var(--apollo-primary); }
.apollo-action-btn.danger:hover { background: var(--apollo-danger-light); color: var(--apollo-danger); border-color: var(--apollo-danger); }
.apollo-action-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* === Badges === */
.apollo-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px; font-size: 11px;
    font-weight: 600; white-space: nowrap;
}
.apollo-badge-success { background: var(--apollo-success-light); color: #15803d; }
.apollo-badge-warning { background: var(--apollo-warning-light); color: #a16207; }
.apollo-badge-danger { background: var(--apollo-danger-light); color: #dc2626; }
.apollo-badge-neutral { background: var(--apollo-neutral-light); color: #4b5563; }
.apollo-badge-paid { background: var(--apollo-success); color: white; }
.apollo-badge-unpaid { background: var(--apollo-danger); color: white; }
.apollo-badge .dashicons { font-size: 15px; width: 12px; height: 12px; }

/* === Forms === */
.apollo-form-group { margin-bottom: 14px; }
.apollo-form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--apollo-text); margin-bottom: 6px;
}
.apollo-input {
    width: 100%; padding: 10px 14px; border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius-xs); font-size: 14px;
    font-family: var(--apollo-font); color: var(--apollo-text);
    background: var(--apollo-white);
    transition: border-color var(--apollo-transition), box-shadow var(--apollo-transition);
}
.apollo-input:focus {
    outline: none; border-color: var(--apollo-primary);
    box-shadow: 0 0 0 3px var(--apollo-primary-light);
}
.apollo-input::placeholder { color: var(--apollo-neutral); }
.apollo-textarea { min-height: 80px; resize: vertical; }
.apollo-select {
    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='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 36px;
}
.apollo-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apollo-input-group {
    display: flex; gap: 0;
}
.apollo-input-group .apollo-input {
    border-radius: var(--apollo-radius-xs) 0 0 var(--apollo-radius-xs);
}
.apollo-input-group .apollo-select, .apollo-input-group select {
    border-radius: 0 var(--apollo-radius-xs) var(--apollo-radius-xs) 0;
    border-left: none; min-width: 70px; padding: 10px 8px;
    font-size: 13px; border: 1px solid var(--apollo-border);
    background: var(--apollo-bg); font-family: var(--apollo-font);
}
.apollo-hint { font-size: 15px; color: var(--apollo-text-secondary); margin-top: 4px; }
.apollo-profile-picture-field {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.apollo-profile-picture-preview {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--apollo-primary-light);
    color: var(--apollo-primary);
    border: 1px solid var(--apollo-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}
.apollo-profile-picture-preview .dashicons {
    width: 34px;
    height: 34px;
    font-size: 34px;
}
.apollo-profile-picture-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.apollo-profile-picture-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.apollo-profile-picture-actions .apollo-hint {
    flex-basis: 100%;
}
.apollo-form-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 16px; }

/* === Modal === */
.apollo-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
    display: flex; align-items: flex-end; justify-content: center;
    animation: apolloFadeIn 0.2s ease;
}
@keyframes apolloFadeIn { from { opacity: 0; } to { opacity: 1; } }
.apollo-modal {
    background: var(--apollo-white); width: 100%;
    max-width: 560px; max-height: 90vh;
    border-radius: var(--apollo-radius) var(--apollo-radius) 0 0;
    overflow-y: auto; animation: apolloSlideUp 0.3s ease;
}
@keyframes apolloSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.apollo-modal-header {
    position: sticky; top: 0; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: var(--apollo-white);
    border-bottom: 1px solid var(--apollo-border);
}
.apollo-modal-header h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--apollo-text); }
.apollo-modal-close {
    width: 32px; height: 32px; border: none; background: var(--apollo-neutral-light);
    border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: background var(--apollo-transition); padding: 0;
}
.apollo-modal-close:hover { background: var(--apollo-danger-light); color: var(--apollo-danger); }
.apollo-modal-body { padding: 20px; }
.apollo-modal-footer {
    position: sticky; bottom: 0;
    padding: 16px 20px; background: var(--apollo-white);
    border-top: 1px solid var(--apollo-border);
    display: flex; gap: 8px; justify-content: flex-end;
}

/* === Expandable Card (Supplier Detail) === */
.apollo-expand-card {
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius);
    margin-bottom: 10px; overflow: hidden;
    box-shadow: var(--apollo-shadow);
}
.apollo-expand-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; cursor: pointer;
    transition: background var(--apollo-transition);
}
.apollo-expand-header:hover { background: var(--apollo-bg); }
.apollo-expand-arrow {
    transition: transform 0.3s ease; color: var(--apollo-neutral);
}
.apollo-expand-card.open .apollo-expand-arrow { transform: rotate(180deg); }
.apollo-expand-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
}
.apollo-expand-card.open .apollo-expand-body { max-height: 1000px; }
.apollo-expand-content {
    padding: 0 16px 16px;
    border-top: 1px solid var(--apollo-border);
}
.apollo-expand-detail {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    font-size: 13px; margin-top: 12px;
}
.apollo-expand-detail dt { color: var(--apollo-text-secondary); font-weight: 500; }
.apollo-expand-detail dd { color: var(--apollo-text); font-weight: 600; margin: 0; text-align: right; }

/* === Toast Notification === */
.apollo-toast {
    position: fixed; top: 20px; right: 20px; z-index: 99999;
    padding: 12px 20px; border-radius: var(--apollo-radius-sm);
    color: white; font-size: 14px; font-weight: 500;
    box-shadow: var(--apollo-shadow-lg);
    animation: apolloToastIn 0.3s ease, apolloToastOut 0.3s ease 2.7s forwards;
    display: flex; align-items: center; gap: 8px;
    font-family: var(--apollo-font);
}
.apollo-toast-success { background: var(--apollo-success); }
.apollo-toast-error { background: var(--apollo-danger); }
.apollo-toast-warning { background: var(--apollo-warning); color: var(--apollo-text); }
@keyframes apolloToastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes apolloToastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }

/* === No Access === */
.apollo-no-access {
    text-align: center; padding: 60px 20px;
    color: var(--apollo-text-secondary); font-size: 16px;
}

/* === Shared Masked 404 Page === */
.apollo-not-found-body {
    margin: 0;
    min-width: 320px;
    background: #ffffff;
}

.apollo-not-found-page,
.apollo-not-found-page * {
    box-sizing: border-box;
    font-family: var(--apollo-font);
}

.apollo-not-found-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 32px 20px;
    color: var(--apollo-text);
    background:
        linear-gradient(rgba(235, 119, 12, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(235, 119, 12, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 12% 12%, rgba(235, 119, 12, 0.13), transparent 28%),
        radial-gradient(circle at 88% 88%, rgba(235, 119, 12, 0.08), transparent 30%),
        #ffffff;
    background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

.apollo-not-found-page::before,
.apollo-not-found-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 280px;
    height: 280px;
    border: 1px dashed rgba(235, 119, 12, 0.2);
    border-radius: 50%;
}

.apollo-not-found-page::before {
    top: -150px;
    right: -90px;
}

.apollo-not-found-page::after {
    bottom: -170px;
    left: -100px;
}

.apollo-not-found-card {
    width: min(1080px, 100%);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
}

.apollo-not-found-brand {
    display: flex;
    align-items: center;
    min-height: 80px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--apollo-border);
}

.apollo-not-found-logo {
    display: block;
    width: auto;
    height: 42px;
    max-width: 220px;
    object-fit: contain;
}

.apollo-not-found-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    align-items: center;
    gap: 48px;
    padding: 48px;
}

.apollo-not-found-illustration {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(235, 119, 12, 0.18);
    border-radius: 20px;
    background: linear-gradient(145deg, #fffaf5 0%, #ffffff 70%);
}

.apollo-not-found-illustration svg {
    display: block;
    width: 100%;
    height: auto;
}

.apollo-blueprint-line,
.apollo-measure-line,
.apollo-building-line,
.apollo-crane-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.apollo-blueprint-line {
    stroke: #fed7aa;
    stroke-width: 1.5;
}

.apollo-blueprint-dash {
    stroke-dasharray: 5 8;
}

.apollo-measure-line {
    stroke: #fb923c;
    stroke-width: 2;
}

.apollo-building-line,
.apollo-crane-line {
    stroke: #eb770c;
    stroke-width: 3;
}

.apollo-404-number {
    fill: url("#apollo-404-fill");
    stroke: #eb770c;
    stroke-width: 2;
    paint-order: stroke fill;
    font-size: 112px;
    font-weight: 800;
    letter-spacing: -9px;
}

.apollo-blueprint-dot {
    fill: #eb770c;
}

.apollo-not-found-content {
    min-width: 0;
}

.apollo-not-found-label {
    margin: 0 0 12px;
    color: var(--apollo-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.apollo-not-found-content h1 {
    margin: 0;
    color: var(--apollo-text);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.apollo-not-found-description {
    max-width: 520px;
    margin: 20px 0 0;
    color: var(--apollo-text-secondary);
    font-size: 16px;
    line-height: 1.75;
}

.apollo-not-found-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 30px;
}

.apollo-not-found-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: transform var(--apollo-transition), box-shadow var(--apollo-transition), background var(--apollo-transition), border-color var(--apollo-transition), color var(--apollo-transition);
}

.apollo-not-found-button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.apollo-not-found-button:focus-visible {
    outline: 3px solid rgba(235, 119, 12, 0.3);
    outline-offset: 3px;
}

.apollo-not-found-button-primary {
    grid-column: 1 / -1;
    color: #ffffff;
    background: var(--apollo-primary);
    border-color: var(--apollo-primary);
    box-shadow: 0 8px 20px rgba(235, 119, 12, 0.24);
}

.apollo-not-found-button-primary:hover {
    color: #ffffff;
    background: var(--apollo-primary-hover);
    border-color: var(--apollo-primary-hover);
    box-shadow: 0 10px 24px rgba(235, 119, 12, 0.3);
}

.apollo-not-found-button-secondary {
    color: var(--apollo-text);
    background: #ffffff;
    border-color: var(--apollo-border);
}

.apollo-not-found-button-secondary:hover {
    color: var(--apollo-primary);
    background: var(--apollo-primary-light);
    border-color: rgba(235, 119, 12, 0.38);
}

@media (max-width: 860px) {
    .apollo-not-found-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 36px;
    }

    .apollo-not-found-illustration {
        max-width: 560px;
        margin: 0 auto;
    }

    .apollo-not-found-content {
        text-align: center;
    }

    .apollo-not-found-description {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 560px) {
    .apollo-not-found-page {
        align-items: start;
        padding: 16px 12px;
    }

    .apollo-not-found-card {
        border-radius: 18px;
    }

    .apollo-not-found-brand {
        justify-content: center;
        min-height: 70px;
        padding: 16px 20px;
    }

    .apollo-not-found-logo {
        height: 36px;
        max-width: 190px;
    }

    .apollo-not-found-layout {
        gap: 24px;
        padding: 24px 18px 28px;
    }

    .apollo-not-found-illustration {
        padding: 8px;
        border-radius: 14px;
    }

    .apollo-not-found-content h1 {
        font-size: 30px;
    }

    .apollo-not-found-description {
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.65;
    }

    .apollo-not-found-actions {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .apollo-not-found-button-primary {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .apollo-not-found-button {
        transition: none;
    }
}

/* === Fast Search Dropdown === */
.apollo-fast-search-wrap { position: relative; }
.apollo-fast-search-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    z-index: 100; background: var(--apollo-white);
    border: 1px solid var(--apollo-border);
    border-radius: 0 0 var(--apollo-radius-xs) var(--apollo-radius-xs);
    max-height: 200px; overflow-y: auto;
    box-shadow: var(--apollo-shadow-md); display: none;
}
.apollo-fast-search-dropdown.show { display: block; }
.apollo-fast-search-option {
    padding: 10px 14px; cursor: pointer; font-size: 14px;
    border-bottom: 1px solid var(--apollo-border);
    transition: background var(--apollo-transition);
}
.apollo-fast-search-option:hover { background: var(--apollo-primary-light); }
.apollo-fast-search-option:last-child { border-bottom: none; }

/* === Loading Spinner === */
.apollo-loading {
    display: flex; align-items: center; justify-content: center;
    padding: 40px; color: var(--apollo-primary);
}
.apollo-spinner {
    width: 32px; height: 32px; border: 3px solid var(--apollo-border);
    border-top-color: var(--apollo-primary);
    border-radius: 50%; animation: apolloSpin 0.6s linear infinite;
}
@keyframes apolloSpin { to { transform: rotate(360deg); } }

/* === Empty State === */
.apollo-empty {
    text-align: center; padding: 48px 20px; color: var(--apollo-text-secondary);
}
.apollo-empty .dashicons { font-size: 48px; width: 48px; height: 48px; color: var(--apollo-neutral); margin-bottom: 12px; }
.apollo-empty p { font-size: 14px; margin: 4px 0; }

/* === Progress Bar (Proyek Dana vs Nilai) === */
.apollo-progress-wrap {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--apollo-border);
}
.apollo-progress-label {
    display: flex; justify-content: space-between;
    font-size: 15px; color: var(--apollo-text-secondary);
    margin-bottom: 6px;
}
.apollo-progress-bar {
    height: 6px; background: var(--apollo-neutral-light);
    border-radius: 3px; overflow: hidden;
}
.apollo-progress-fill {
    height: 100%; border-radius: 3px;
    transition: width 0.5s ease;
}

/* === Stat Card (Proyek Detail) === */
.apollo-stat-card {
    background: var(--apollo-bg);
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius-sm);
    padding: 12px; text-align: center;
}
.apollo-stat-label {
    font-size: 11px; font-weight: 600;
    color: var(--apollo-text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.apollo-stat-value {
    font-size: 16px; font-weight: 700;
    color: var(--apollo-text);
}

.apollo-proyek-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 18px;
    min-width: 0;
    margin: 4px 0 12px;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--apollo-text-secondary) !important;
}

.apollo-proyek-detail-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

.apollo-proyek-detail-meta > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
}

.apollo-proyek-detail-meta .dashicons {
    flex: 0 0 auto;
}

.apollo-proyek-detail-page #apollo-proyek-info .apollo-card-body > p {
    display: none !important;
}

/* === Total Bar (Section Footer) === */
.apollo-total-bar {
    display: flex; justify-content: space-between;
    align-items: center; padding: 12px 16px;
    background: var(--apollo-primary-light);
    border: 1px solid var(--apollo-primary);
    border-radius: var(--apollo-radius-sm);
    font-size: 14px; color: var(--apollo-text);
    margin-top: 12px;
}
.apollo-total-bar strong {
    font-size: 16px; color: var(--apollo-primary);
}

/* === Section Divider === */
.apollo-section {
    margin-bottom: 24px;
}

/* === Invoice Info Grid === */
.apollo-invoice-info-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-top: 8px;
}
.apollo-info-label {
    display: block; font-size: 11px; font-weight: 600;
    color: var(--apollo-text-secondary);
    text-transform: uppercase; letter-spacing: 0.3px;
}
.apollo-info-value {
    font-size: 14px; font-weight: 600; color: var(--apollo-text);
}
.apollo-termin-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--apollo-primary); color: white;
    font-size: 13px; font-weight: 700; padding: 2px 10px;
    border-radius: 4px; min-width: 44px;
}
.apollo-invoice-summary { margin-top: 16px; }

/* === Logo Link === */
.apollo-logo-link {
    display: flex; align-items: center;
    text-decoration: none;
}

/* === User Avatar Dropdown === */
.apollo-user-menu-wrap { position: relative; }
.apollo-user-dropdown {
    display: none; position: absolute;
    top: calc(100% + 8px); right: 0;
    min-width: 220px; background: var(--apollo-white);
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius);
    box-shadow: var(--apollo-shadow-lg);
    z-index: 2000; overflow: hidden;
    animation: apolloDropdownIn 0.2s ease;
}
.apollo-user-dropdown.show { display: block; }
@keyframes apolloDropdownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.apollo-user-dropdown-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px; background: var(--apollo-bg);
}
.apollo-user-dropdown-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--apollo-primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.apollo-user-dropdown-name {
    font-size: 14px; font-weight: 600; color: var(--apollo-text);
}
.apollo-user-dropdown-role {
    font-size: 15px; color: var(--apollo-text-secondary); margin-top: 2px;
}
.apollo-user-dropdown-divider {
    height: 1px; background: var(--apollo-border);
}
.apollo-user-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; font-size: 14px; font-weight: 500;
    color: var(--apollo-text); text-decoration: none;
    transition: background var(--apollo-transition);
}
.apollo-user-dropdown-item:hover {
    background: var(--apollo-primary-light); color: var(--apollo-primary);
    text-decoration: none;
}
.apollo-user-dropdown-item .dashicons {
    font-size: 18px; width: 18px; height: 18px; color: var(--apollo-neutral);
}
.apollo-user-dropdown-item:hover .dashicons { color: var(--apollo-primary); }
.apollo-user-dropdown-logout:hover {
    background: var(--apollo-danger-light); color: var(--apollo-danger);
}
.apollo-user-dropdown-logout:hover .dashicons { color: var(--apollo-danger); }

/* === Custom Login Page === */
.apollo-login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #fef3e6 0%, #ffffff 50%, #f9fafb 100%);
    padding: 20px; font-family: var(--apollo-font);
}
.apollo-login-card {
    width: 100%; max-width: 400px;
    background: var(--apollo-white);
    border-radius: var(--apollo-radius);
    box-shadow: var(--apollo-shadow-lg);
    overflow: hidden;
}
.apollo-login-header {
    text-align: center; padding: 32px 24px 20px;
    background: var(--apollo-dark);
}
.apollo-login-logo { height: 40px; width: auto; margin-bottom: 8px; }
.apollo-login-subtitle {
    font-size: 13px; color: #888; margin-top: 4px;
}
.apollo-login-body { padding: 28px 24px; }
.apollo-login-body .apollo-form-group { margin-bottom: 18px; }
.apollo-login-body .apollo-input {
    padding: 12px 14px; font-size: 15px;
}
.apollo-login-remember {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--apollo-text-secondary);
    margin-bottom: 20px;
}
.apollo-login-remember input[type="checkbox"] {
    accent-color: var(--apollo-primary);
    width: 16px; height: 16px;
}
.apollo-login-submit {
    width: 100%; padding: 14px; border: none;
    background: var(--apollo-primary); color: white;
    font-size: 16px; font-weight: 600;
    border-radius: var(--apollo-radius-xs);
    cursor: pointer; font-family: var(--apollo-font);
    transition: all var(--apollo-transition);
}
.apollo-login-submit:hover {
    background: var(--apollo-primary-hover);
    box-shadow: 0 4px 12px rgba(235,119,12,0.3);
    transform: translateY(-1px);
}
.apollo-login-error {
    background: var(--apollo-danger-light);
    color: var(--apollo-danger);
    padding: 10px 14px; border-radius: var(--apollo-radius-xs);
    font-size: 13px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.apollo-login-footer {
    text-align: center; padding: 16px 24px;
    border-top: 1px solid var(--apollo-border);
    font-size: 15px; color: var(--apollo-text-secondary);
}

/* === Responsive: Tablet === */
@media (min-width: 768px) {
    .apollo-modal {
        border-radius: var(--apollo-radius);
        max-height: 85vh; margin: auto;
    }
    .apollo-modal-overlay { align-items: center; }
    @keyframes apolloSlideUp {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }
    .apollo-page { padding: 24px; }
    .apollo-item-card { padding: 16px 20px; }
}

/* === Responsive: Desktop === */
@media (min-width: 1024px) {
    .apollo-bottom-nav {
        position: relative;
        top: 10px;
        bottom: auto; border-radius: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .apollo-page { padding-bottom: 40px; }
    .apollo-form-row { grid-template-columns: 1fr 1fr 1fr; }
}

/* === Responsive: Smartphone === */
@media (max-width: 480px) {
    .apollo-bottom-nav {
        bottom: 12px;
        height: 60px;
        width: calc(100% - 16px);
        padding: 0 4px;
        border-radius: 20px;
    }
    .apollo-nav-item {
        height: 46px;
        border-radius: 12px;
        gap: 2px;
    }
    .apollo-nav-item .dashicons {
        font-size: 19px !important;
        width: 19px !important;
        height: 19px !important;
        line-height: 19px !important;
    }
    .apollo-nav-label {
        font-size: 10px;
    }
}

.apollo-page .apollo-item-card-meta {
    font-size: 15px !important;
    font-weight: 700 !important;
}
