:root {
    --primary: #1b83de;
    --primary-dark: #1267b1;

    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;

    --bg: #f5f6f8;
    --surface: #ffffff;

    --text: #212529;
    --muted: #6c757d;

    --border: #dee2e6;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--bg);
}

body {
    min-height: 100vh;
}

/* =========================
   LOGIN
========================= */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
    background: #0d2f4f url('../images/login_bg.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

.login-page-super {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
    background: #0d2f4f url('../images/login_bg2.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 44px 34px 36px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 2;
    animation: fadeIn 0.2s ease-in;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    75% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.login-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.login-logo-img {
    height: 52px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
}

.login-title {
    margin: 0 0 26px;
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.2px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-field-group {
    margin-bottom: 15px;
}

.login-input {
    width: 100%;
    padding: 13px 16px;
    background: #d8dcde;
    border: 1px solid #717d8a;
    border-radius: 4px;
    font-size: 14.5px;
    font-weight: 500;
    color: #1f2937;
    outline: none;
    font-family: inherit;
    transition: all 0.15s ease;
}

.login-input::placeholder {
    color: #4b5563;
    opacity: 1;
    font-weight: 500;
}

.login-input:focus {
    background: #e2e8f0;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(27, 131, 222, 0.25);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper .login-input,
.password-wrapper input {
    padding-right: 46px;
}

.btn-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
    z-index: 2;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-toggle-password:hover {
    color: #111827;
    background-color: rgba(0, 0, 0, 0.06);
}

.btn-toggle-password:focus-visible {
    color: #1b83de;
    box-shadow: 0 0 0 2px rgba(27, 131, 222, 0.4);
}

.btn-toggle-password svg {
    display: block;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* Sembunyikan ikon reveal bawaan browser (Edge/IE) agar tidak ganda */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.login-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2.5' 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 14px center;
    background-size: 16px 16px;
    padding-right: 38px;
    cursor: pointer;
}

.login-select:invalid,
.login-select option[value=""][disabled] {
    color: #4b5563;
}

.login-select option {
    background: #ffffff;
    color: #1f2937;
    padding: 8px 12px;
}

.login-remember-row {
    margin-top: 6px;
    margin-bottom: 4px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13.5px;
    color: #4b5563;
    font-weight: 500;
    user-select: none;
}

.remember-label span {
    line-height: 1;
}

.remember-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #1b83de;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.login-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 26px;
    margin-bottom: 38px;
}

.btn-login-submit {
    background: #1b83de;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 38px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(27, 131, 222, 0.35);
    transition: all 0.2s ease;
    min-width: 130px;
}

.btn-login-submit:hover {
    background: #1267b1;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(27, 131, 222, 0.45);
}

.btn-login-submit:active {
    transform: translateY(0);
}

.login-footer-info {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    line-height: 1.5;
    text-align: left;
}

/* =========================
   FORM
========================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    padding: 11px 13px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: #fff;

    font-family: inherit;
    font-size: 15px;

    outline: none;
}

.form-group textarea {
    min-height: 100px;

    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(27, 131, 222, 0.12);
}

/* =========================
   BUTTON
========================= */

.btn {
    border: 0;
    border-radius: 7px;

    padding: 11px 16px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-block {
    width: 100%;
}

/* =========================
   ALERT
========================= */

.alert {
    padding: 11px 13px;

    margin-bottom: 18px;

    border-radius: 7px;

    font-size: 14px;
}

.alert-danger {
    color: #842029;

    background: #f8d7da;

    border: 1px solid #f5c2c7;
}

.alert-success {
    color: #0f5132;

    background: #d1e7dd;

    border: 1px solid #badbcc;
}

/* =========================
   DASHBOARD
========================= */

.container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 25px 20px;
}

.card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 20px;
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.stat-card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 20px;
}

.stat-title {
    color: var(--muted);

    font-size: 14px;
}

.stat-value {
    margin-top: 8px;

    font-size: 28px;
    font-weight: 700;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 700px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 25px 20px;
    }

}

/* =========================================================
   CUSTOMER WINDOWED DASHBOARD & REDESIGN
   ========================================================= */

.customer-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ffffff;
    overflow-x: hidden;
}

/* User Header (Top Right) */
.customer-top-bar {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    padding: 18px 24px;
    width: 100%;
}

.user-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s ease;
    text-align: left;
    user-select: none;
}

.user-profile-btn:hover,
.user-profile-btn.active {
    background: rgba(0, 0, 0, 0.05);
}

.user-avatar-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1e293b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.user-profile-text {
    display: flex;
    flex-direction: column;
}

.user-profile-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.user-profile-username {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.2;
    margin-top: 2px;
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 24px;
    width: 210px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    padding: 6px;
    z-index: 100;
    display: none;
    animation: dropdownFadeIn 0.15s ease-out;
}

.user-dropdown-menu.show {
    display: block;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}

.user-dropdown-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.user-dropdown-item.logout {
    color: #dc2626;
}

.user-dropdown-item.logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.user-dropdown-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 4px 0;
}

/* Main Dashboard Body Content */
.customer-main-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 130px;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.customer-toast {
    width: 100%;
    margin-bottom: 20px;
}

/* Brand Section */
.customer-brand-section {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.customer-brand-logo {
    max-width: 220px;
    height: auto;
    max-height: 110px;
    object-fit: contain;
}

.customer-brand-slogan {
    margin: 12px 0 0;
    color: #258cf0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Action Buttons */
.customer-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    margin: 15px 0 35px;
}

.btn-input-meter {
    background: #1b83de;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border-radius: 8px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(27, 131, 222, 0.3);
}

.btn-input-meter:hover {
    background: #1267b1;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(27, 131, 222, 0.4);
}

.btn-input-meter:active {
    transform: translateY(0);
}

.btn-cek-tarif {
    background: #1b83de;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 10px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cek-tarif:hover {
    background: #1267b1;
    transform: translateY(-1px);
}

/* Bottom Meter Summary Card */
.meter-last-card {
    width: 100%;
    max-width: 360px;
    border-radius: 14px;
    padding: 16px 22px;
    position: relative;
    z-index: 15;
    text-align: left;
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Lunas / Default: Green Gradient */
.meter-last-card,
.meter-last-card.status-lunas {
    background: #28a745;
    background: linear-gradient(135deg, #2ecc71 0%, #28a745 100%);
    color: #0d2813;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.28);
}

.meter-last-card.status-lunas .meter-last-label {
    color: #0d2813;
}

.meter-last-card.status-lunas .meter-last-val {
    color: #071a0c;
}

.meter-last-card.status-lunas .meter-last-footer {
    color: #071a0c;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Pending: Warm Orange Gradient */
.meter-last-card.status-pending {
    background: #f97316;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    color: #381304;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.35);
}

.meter-last-card.status-pending .meter-last-label {
    color: #381304;
}

.meter-last-card.status-pending .meter-last-val {
    color: #270c02;
}

.meter-last-card.status-pending .meter-last-footer {
    color: #270c02;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.meter-last-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.meter-last-label {
    font-size: 14px;
    font-weight: 700;
}

.meter-last-val {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.meter-last-val span {
    font-size: 24px;
}

.meter-last-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    padding-top: 10px;
}

.meter-badge-status {
    text-transform: uppercase;
    font-weight: 800;
}

.meter-badge-status.lunas {
    color: inherit;
}

.meter-badge-status.pending {
    color: inherit;
}

/* Wave Background */
.customer-wave-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.customer-wave-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

/* =========================================================
   MODAL DIALOG / POPUP WINDOWS
   ========================================================= */

.app-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.app-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.app-modal-window {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 32px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-modal-backdrop.active .app-modal-window {
    transform: scale(1);
}

.app-modal-title {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    color: #111827;
    letter-spacing: 0.5px;
    margin: 0 0 24px;
}

/* Gray Box for Big Number Input (Mockup 2) */
.meter-input-gray-box {
    background: #cbd5e1;
    border-radius: 14px;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: background 0.15s ease;
}

.meter-input-gray-box:focus-within {
    background: #bfdbfe;
}

.meter-big-number-input {
    border: none;
    background: transparent;
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    text-align: right;
    width: 150px;
    outline: none;
    font-family: inherit;
    padding: 0;
    margin: 0;
}

.meter-big-number-input::-webkit-outer-spin-button,
.meter-big-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.meter-big-number-input[type=number] {
    -moz-appearance: textfield;
}

.meter-unit-text {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    user-select: none;
}

.meter-info-highlight {
    color: #1b83de;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 6px;
}

.meter-customer-name {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 28px;
}

/* Modal Bottom Navigation Buttons */
.modal-nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 12px;

}

.btn-modal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.btn-modal-back:hover {
    background: #f1f5f9;
}

.btn-modal-back svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

.btn-modal-action {
    background: #1b83de;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 26px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-modal-action:hover {
    background: #1267b1;
}

.btn-modal-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Cek Tarif Stack (Mockup 3) */
.tarif-display-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 20px 0 28px;
}

.tarif-display-item {
    text-align: center;
}

.tarif-display-amount {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.tarif-display-tier {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-top: 4px;
}

.tarif-admin-note {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px dashed #e5e7eb;
    width: 100%;
}

/* Photo capture step styling */
.photo-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.photo-choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    border-radius: 12px;
    cursor: pointer;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    box-sizing: border-box;
    width: 100%;
}

.photo-choice-btn:hover,
.photo-choice-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.photo-choice-btn.camera-choice {
    border-color: #7dd3fc;
    background: #f0f9ff;
    color: #0369a1;
}

.photo-choice-btn.camera-choice .photo-choice-icon-wrap {
    background: #e0f2fe;
    color: #0284c7;
}

.photo-choice-btn.camera-choice:hover,
.photo-choice-btn.camera-choice:active {
    border-color: #0284c7;
    background: #e0f2fe;
}

.photo-choice-btn.gallery-choice {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.photo-choice-btn.gallery-choice .photo-choice-icon-wrap {
    background: #f1f5f9;
    color: #64748b;
}

.photo-choice-btn.gallery-choice:hover,
.photo-choice-btn.gallery-choice:active {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.photo-choice-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.photo-choice-btn:hover .photo-choice-icon-wrap {
    transform: scale(1.08);
}

.photo-choice-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.photo-choice-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
}

.photo-upload-container {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    margin-bottom: 16px;
}

.photo-upload-container:hover {
    border-color: #1b83de;
    background: #f0f7ff;
}

.photo-preview-box {
    margin-bottom: 16px;
    text-align: center;
}

.photo-preview-box img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 10px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-photo-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #bae6fd;
    background: #e0f2fe;
    color: #0369a1;
    transition: all 0.15s ease;
}

.btn-photo-action:hover,
.btn-photo-action:active {
    background: #bae6fd;
    color: #0284c7;
}

.btn-photo-action.btn-photo-gallery {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #475569;
}

.btn-photo-action.btn-photo-gallery:hover,
.btn-photo-action.btn-photo-gallery:active {
    background: #e2e8f0;
    color: #1e293b;
}

/* Calculation summary card inside modal */
.calc-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    text-align: left;
    font-size: 14px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    color: #4b5563;
}

.calc-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1.5px solid #cbd5e1;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

/* =========================================================
   SUCCESS MODAL (MODEL 2)
   ========================================================= */

.success-icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #00c853;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 25px;
    box-shadow: 0 10px 25px rgba(0, 200, 83, 0.28);
}

.success-icon-circle svg {
    width: 50px;
    height: 50px;
    stroke: #ffffff;
}

.success-title-main {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px;
    line-height: 1.3;
}

.success-subtitle-sub {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 10px;
    line-height: 1.5;
}

/* =========================================================
   FAILED / ERROR MODAL
   ========================================================= */

.failed-icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #dc2626;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 25px;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.28);
}

.failed-icon-circle svg {
    width: 48px;
    height: 48px;
    stroke: #ffffff;
}

.failed-title-main {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px;
    line-height: 1.3;
}

.failed-subtitle-sub {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    margin: 0 0 10px;
    line-height: 1.5;
}

/* =========================================================
   ADMIN DASHBOARD STYLING (MOCKUP 1 & 2)
   ========================================================= */

.admin-summary-card {
    width: 100%;
    max-width: 580px;
    border-radius: 16px;
    padding: 8px 10px;
    position: relative;
    z-index: 15;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    gap: 4px;
}

/* Green Gradient / State when Pending & Unreported are 0 */
.admin-summary-card.status-lunas,
.admin-summary-card.all-clear {
    background: #28a745;
    background: linear-gradient(135deg, #2ecc71 0%, #28a745 100%);
    color: #0d2813;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.28);
}

/* Orange Gradient / State when Pending > 0 OR Unreported > 0 */
.admin-summary-card.status-pending,
.admin-summary-card.has-pending {
    background: #f97316;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    color: #381304;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.35);
}

.admin-summary-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    user-select: none;
}

.admin-summary-item:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.admin-summary-item:active {
    transform: translateY(0);
}

.admin-summary-num {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    pointer-events: none;
}

.admin-summary-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    max-width: 125px;
    text-align: center;
    pointer-events: none;
}

.admin-summary-card.status-lunas .admin-summary-num,
.admin-summary-card.status-lunas .admin-summary-label {
    color: #071a0c;
}

.admin-summary-card.status-pending .admin-summary-num,
.admin-summary-card.status-pending .admin-summary-label {
    color: #270c02;
}

@media (max-width: 440px) {
    .admin-summary-card {
        padding: 6px 6px;
        gap: 2px;
    }

    .admin-summary-item {
        padding: 10px 4px;
    }

    .admin-summary-num {
        font-size: 28px;
    }

    .admin-summary-label {
        font-size: 11.5px;
    }
}

/* Modal Wide for Billing Management & Customers (Mockup 1 & 2) */
.app-modal-window.modal-wide {
    max-width: 680px;
    min-height: 520px;
    padding: 28px 24px 22px;
    display: flex;
    flex-direction: column;
}

/* Filter Bar in Kelola Tagihan */
.admin-filter-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.admin-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.admin-filter-field label {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.admin-filter-field select,
.admin-filter-field input[type="date"],
.admin-filter-field input[type="text"] {
    background: #cbd5e1;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.admin-filter-field select:focus,
.admin-filter-field input[type="date"]:focus,
.admin-filter-field input[type="text"]:focus {
    border-color: #1b83de;
    background: #ffffff;
}

/* Custom Mini Datepicker */
.custom-datepicker-container {
    position: relative;
}

.custom-date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.custom-date-input-wrapper input {
    padding-right: 48px !important;
    cursor: pointer;
}

.btn-calendar-trigger {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #475569;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.btn-calendar-trigger:hover {
    color: #1b83de;
}

.btn-date-clear {
    position: absolute;
    right: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 50%;
    transition: color 0.15s ease;
}

.btn-date-clear:hover {
    color: #ef4444;
}

/* Mini Datepicker Popup Window (Compact Layout) */
.mini-datepicker-popup {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 245px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    padding: 10px;
    z-index: 1050;
    display: none;
    box-sizing: border-box;
    font-family: inherit;
    animation: mdpFadeIn 0.18s ease-out;
}

.mini-datepicker-popup.show {
    display: block;
}

@keyframes mdpFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mdp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
    gap: 4px;
}

.mdp-selectors {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mdp-select {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 3px 5px;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.mdp-select:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

.mdp-select:focus {
    border-color: #1b83de;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(27, 131, 222, 0.15);
}

.mdp-nav-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #475569;
    transition: all 0.15s ease;
}

.mdp-nav-btn:hover {
    background: #1b83de;
    color: #ffffff;
}

.mdp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
    user-select: none;
}

.mdp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.mdp-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
}

.mdp-day-cell:hover:not(.empty) {
    background: #e0f2fe;
    color: #0284c7;
}

.mdp-day-cell.selected {
    background: #1b83de !important;
    color: #ffffff !important;
    font-weight: 700;
}

.mdp-day-cell.today {
    border: 1px solid #1b83de;
    color: #1b83de;
}

.mdp-day-cell.other-month {
    color: #cbd5e1;
    cursor: default;
}

.mdp-day-cell.empty {
    cursor: default;
}

.mdp-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
}

.mdp-quick-btn {
    background: transparent;
    border: none;
    font-size: 11.5px;
    font-weight: 700;
    color: #1b83de;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.mdp-quick-btn:hover {
    background: #f0fdf4;
}

.mdp-quick-btn.clear {
    color: #ef4444;
}

.mdp-quick-btn.clear:hover {
    background: #fef2f2;
}

.btn-filter-search {
    background: #1b83de;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-filter-search:hover {
    background: #1267b1;
}

.admin-modal-divider {
    border: 0;
    border-top: 2px solid #334155;
    margin: 14px 0 16px;
}

/* Billing Table */
.admin-table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.app-modal-window.modal-wide .modal-nav-footer {
    margin-top: auto;
    padding-top: 10px;
}

.admin-billing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.admin-billing-table th {
    padding: 10px 8px;
    font-weight: 800;
    color: #0f172a;
    font-size: 13.5px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.admin-billing-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.admin-billing-table tr:last-child td {
    border-bottom: none;
}

.admin-col-customer-name {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.admin-col-customer-name.unreported {
    color: #ea580c;
}

.admin-col-customer-user {
    font-size: 11.5px;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

.admin-status-text {
    font-weight: 700;
    font-size: 13px;
}

.admin-status-text.pending {
    color: #f97316;
}

.admin-status-text.lunas {
    color: #16a34a;
}

.btn-table-detail {
    background: #1b83de;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s ease;
}

.btn-table-detail:hover {
    background: #1267b1;
}

/* Detail Modal Window Styling */
.detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
    box-sizing: border-box;
}

.detail-modal-overlay.active {
    display: flex;
}

.detail-modal-window {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalFadeIn 0.25s ease-out;
}

.detail-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.detail-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
}

.detail-modal-close {
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.detail-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.detail-modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.detail-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.detail-badge.lunas {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.detail-badge.pending {
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
}

.detail-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    font-size: 14px;
}

.detail-meter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.detail-meter-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px;
}

.detail-meter-box .label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.detail-meter-box .value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.detail-calc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.detail-calc-table td {
    padding: 7px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.detail-calc-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.detail-calc-total td {
    border-top: 2px solid #0f172a;
    border-bottom: none;
    padding-top: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.detail-photo-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    text-align: center;
}

.detail-photo-container img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    display: block;
    background: #000000;
}

/* =========================================================
   DAFTAR PELANGGAN & TAMBAH PELANGGAN (MOCKUP 1 & 2)
   ========================================================= */

/* Search bar in Daftar Pelanggan */
.admin-search-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    width: 100%;
}

.admin-search-input {
    flex: 1;
    background: #cbd5e1;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    font-family: inherit;
    height: 40px;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-search-input:focus {
    background: #ffffff;
    border-color: #0095e8;
}

.btn-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #0095e8;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 149, 232, 0.35);
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}

.btn-search-icon:hover {
    background: #0084cf;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0, 149, 232, 0.45);
}

.btn-search-icon:active {
    transform: scale(0.96);
}

.btn-search-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* Footer Action Buttons in Daftar Pelanggan (PDF & +) */
.admin-users-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #0095e8;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 149, 232, 0.3);
    transition: all 0.15s ease;
    padding: 0;
}

.btn-icon-square:hover {
    background: #0084cf;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 149, 232, 0.4);
}

.btn-icon-square:active {
    transform: scale(0.95);
}

.btn-icon-square svg {
    color: #ffffff;
}

/* Filter bar in Daftar Pelanggan */
.admin-users-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -6px;
    margin-bottom: 14px;
}

.btn-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.btn-filter-pill:hover {
    background: #e2e8f0;
    border-color: #0095e8;
    color: #0095e8;
}

.btn-filter-pill.active {
    background: #0095e8;
    color: #ffffff;
    border-color: #0095e8;
    box-shadow: 0 2px 6px rgba(0, 149, 232, 0.35);
}

.btn-filter-pill.active:hover {
    background: #0084cf;
    border-color: #0084cf;
}

.btn-filter-pill .pill-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    margin-left: 2px;
}

/* User Action Buttons (Edit & Status Toggle) */
.user-actions-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-user-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
    padding: 0;
    color: #ffffff;
}

.btn-user-action:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.btn-user-action:active {
    transform: scale(0.96);
}

.btn-user-action.edit {
    background: #1b83de;
}

.btn-user-action.danger {
    background: #e53935;
}

.btn-user-action.success {
    background: #2e7d32;
}

.btn-user-action svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

/* Form Row Layout for Tambah / Edit Pelanggan */
.admin-form-group-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.admin-form-group-row label {
    width: 150px;
    min-width: 150px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-align: left;
}

.admin-form-group-row .admin-input-wrapper {
    flex: 1;
}

.admin-form-group-row input,
.admin-form-group-row textarea {
    width: 100%;
    background: #cbd5e1;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-form-group-row input:focus,
.admin-form-group-row textarea:focus {
    background: #ffffff;
    border-color: #1b83de;
}

.admin-input-readonly {
    background: #52525b !important;
    color: #f4f4f5 !important;
    border: 1px solid #3f3f46 !important;
    cursor: default;
    user-select: all;
    font-family: monospace, inherit;
    font-size: 13.5px !important;
}

.admin-input-readonly:focus {
    background: #52525b !important;
    color: #f4f4f5 !important;
    border-color: #3f3f46 !important;
    outline: none !important;
    box-shadow: none !important;
}

input[type="number"].admin-input-readonly::-webkit-inner-spin-button,
input[type="number"].admin-input-readonly::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"].admin-input-readonly {
    -moz-appearance: textfield;
}

.admin-form-security-note {
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    line-height: 1.45;
    margin: 20px 0 24px;
    text-align: left;
}

@media (max-width: 540px) {
    .admin-form-group-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .admin-form-group-row label {
        width: 100%;
        min-width: unset;
    }
}

/* =========================================================
   DASHBOARD SUBGRID ACTION BUTTONS (MOCKUP 1)
   ========================================================= */
.customer-actions-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.btn-sub-action {
    background: #1b83de;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
    padding: 11px 12px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 162, 232, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sub-action:hover {
    background: #1267b1;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 162, 232, 0.4);
}

.btn-sub-action:active {
    transform: translateY(0);
}

/* =========================================================
   MODAL: KELOLA TARIF (MOCKUP 2)
   ========================================================= */
.modal-tarif-window {
    max-width: 480px;
    width: 100%;
    border-radius: 16px;
    padding: 26px 26px 22px;
    box-sizing: border-box;
}

.tarif-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    margin-bottom: 16px;
}

.tarif-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    text-align: left;
}

.tarif-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tarif-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
}

.btn-remove-tier {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-remove-tier:hover {
    background: #fee2e2;
    color: #dc2626;
}

.tarif-input-box-rp {
    display: flex;
    align-items: center;
    background: #cbd5e1;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 4px 10px;
    height: 38px;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tarif-input-box-rp:focus-within {
    background: #ffffff;
    border-color: #1b83de;
}

.tarif-input-prefix {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-right: 6px;
    user-select: none;
    flex-shrink: 0;
}

.tarif-input-field {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    text-align: right;
    width: 100%;
    font-family: inherit;
}

.tarif-range-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tarif-range-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tarif-range-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    text-align: left;
}

.tarif-range-box {
    display: flex;
    align-items: center;
    background: #cbd5e1;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 3px 6px;
    height: 34px;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tarif-range-box:focus-within {
    background: #ffffff;
    border-color: #1b83de;
}

.tarif-range-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    text-align: center;
    width: 100%;
    font-family: inherit;
    min-width: 0;
}

.tarif-range-unit {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-left: 2px;
    user-select: none;
    flex-shrink: 0;
}

.tarif-add-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    min-height: 100px;
}

.btn-add-tarif-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #009fe3;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
}

.btn-add-tarif-icon:hover {
    transform: scale(1.08);
    background: #008bcc;
}

.btn-add-tarif-icon:active {
    transform: scale(0.96);
}

.btn-add-tarif-icon svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
    stroke-width: 3.5;
}

.tarif-add-text {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-top: 8px;
    text-align: center;
}

.tarif-note-text {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    margin: 10px 0 16px;
    text-align: left;
}

.tarif-admin-fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.tarif-admin-fee-label {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    min-width: 100px;
    text-align: left;
}

.tarif-admin-fee-row .tarif-input-box-rp {
    flex: 1;
    max-width: 220px;
}

/* =========================================================
   MODAL: ERROR KELOLA TARIF (MOCKUP 3)
   ========================================================= */
.modal-tarif-error-window {
    max-width: 440px;
    width: 100%;
    text-align: center;
    border-radius: 16px;
    padding: 32px 28px 24px;
    box-sizing: border-box;
}

.tarif-error-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #e53935;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 26px;
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.35);
}

.tarif-error-circle svg {
    width: 48px;
    height: 48px;
    stroke: #ffffff;
    stroke-width: 4;
}

.tarif-error-heading {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    text-align: center;
}

.tarif-error-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin: 0 0 20px;
    text-align: center;
}

@media (max-width: 480px) {
    .tarif-grid-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ADMIN 4-GRID MENU BUTTONS (TAGIHAN, PELANGGAN, TARIF, LAPORAN)
   ========================================================= */
.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 580px;
    margin: 18px 0 28px;
}

.admin-menu-card {
    background: #009fe3;
    background: linear-gradient(180deg, #00a2e8 0%, #008ece 100%);
    border: none;
    border-radius: 18px;
    padding: 16px 8px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 159, 227, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    aspect-ratio: 1 / 1;
    min-width: 0;
}

.admin-menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 159, 227, 0.45);
    background: linear-gradient(180deg, #0095d9 0%, #0080bc 100%);
}

.admin-menu-card:active {
    transform: translateY(0);
}

.admin-menu-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.admin-menu-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-menu-label {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 560px) {
    .customer-main-content {
        padding: 5px 16px 85px;
    }

    .customer-brand-section {
        margin-bottom: 14px;
    }

    .customer-brand-logo {
        max-width: 170px;
        max-height: 80px;
    }

    .customer-brand-slogan {
        font-size: 13.5px;
        margin: 8px 0 0;
    }

    .admin-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 245px;
        margin: 10px auto 18px;
    }
    
    .admin-menu-card {
        border-radius: 14px;
        padding: 10px 4px 8px;
    }

    .admin-menu-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 5px;
    }

    .admin-menu-label {
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .admin-summary-card {
        max-width: 330px;
        padding: 6px 4px;
        gap: 2px;
    }

    .admin-summary-num {
        font-size: 24px;
    }

    .admin-summary-label {
        font-size: 10.5px;
    }
}

/* =========================================================
   MODAL: BUAT LAPORAN (WINDOW LAPORAN)
   ========================================================= */
.modal-laporan-window {
    max-width: 680px;
    width: 100%;
    border-radius: 18px;
    padding: 28px 28px 22px;
    box-sizing: border-box;
}

.laporan-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.laporan-periode-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.laporan-periode-label {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
}

.laporan-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23009fe3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
    border: 2px solid #009fe3;
    border-radius: 6px;
    padding: 6px 30px 6px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.laporan-select:focus {
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.25);
}

.laporan-input-tahun {
    background: #ffffff;
    border: 2px solid #009fe3;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    font-family: inherit;
    width: 86px;
    text-align: center;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.laporan-input-tahun::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.laporan-input-tahun:focus {
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.25);
    border-color: #009fe3;
}

.laporan-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: #0f172a;
    user-select: none;
}

.laporan-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #009fe3;
}

.laporan-divider {
    border: none;
    border-top: 2px solid #94a3b8;
    margin: 4px 0 20px;
}

.laporan-cards-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.laporan-action-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #e6f6ff;
    border: 2px solid #a6e1fa;
    border-radius: 14px;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.laporan-action-card:hover {
    background: #d8f1fe;
    border-color: #009fe3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 159, 227, 0.18);
}

.laporan-action-card:active {
    transform: translateY(0);
}

.laporan-card-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.laporan-card-icon svg {
    width: 100%;
    height: 100%;
}

.laporan-card-icon.icon-red {
    color: #881337;
}

.laporan-card-icon.icon-orange {
    color: #ea580c;
}

.laporan-card-icon.icon-green {
    color: #15803d;
}

.laporan-card-body {
    flex: 1;
}

.laporan-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #008acc;
    margin: 0 0 5px;
    line-height: 1.25;
}

.laporan-card-desc {
    font-size: 12.5px;
    font-weight: 600;
    color: #0284c7;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 580px) {
    .modal-laporan-window {
        padding: 20px 16px 18px;
    }
    .laporan-filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .laporan-action-card {
        padding: 12px 14px;
        gap: 14px;
    }
    .laporan-card-icon {
        width: 46px;
        height: 46px;
    }
    .laporan-card-title {
        font-size: 15px;
    }
    .laporan-card-desc {
        font-size: 11.5px;
    }
}