* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #F4F7FB;
    color: #111827;
    font-size: 14px;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 390px;
    background: #fff;
    border-radius: 24px;
    padding: 28px 22px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.logo {
    width: 82px;
    display: block;
    margin: 0 auto 18px;
}

.auth-card h2 {
    text-align: center;
    margin: 0;
}

.auth-card p {
    text-align: center;
    color: #6B7280;
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: bold;
}

input {
    width: 100%;
    height: 50px;
    border: 1px solid #D1D5DB;
    border-radius: 14px;
    padding: 0 14px;
    margin-bottom: 16px;
    font-size: 15px;
}

button {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: #2563EB;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.link {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #2563EB;
    text-decoration: none;
}

.alert {
    background: #EFF6FF;
    color: #1D4ED8;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert.error {
    background: #FEE2E2;
    color: #B91C1C;
}

.app {
    padding: 16px;
    padding-bottom: 80px;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.top-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}

.topbar small {
    color: #6B7280;
    font-size: 12px;
}

.topbar h3 {
    margin: 2px 0 0;
    font-size: 18px;
}

.section-title {
    font-weight: bold;
    margin: 22px 0 12px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stat-card,
.summary-card {
    background: white;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.stat-card small,
.summary-card small {
    color: #6B7280;
}

.stat-card h2,
.summary-card h2 {
    margin: 8px 0 0;
}

.warning h2 {
    color: #F59E0B;
}

.blue h2 {
    color: #2563EB;
}

.green h2 {
    color: #16A34A;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-actions button {
    text-align: left;
    padding-left: 18px;
}

.empty-state {
    background: white;
    color: #6B7280;
    text-align: center;
    padding: 28px;
    border-radius: 20px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    background: white;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    height: 62px;

    border-top: 1px solid #E5E7EB;

    z-index: 999;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 2px;

    text-decoration: none;

    color: #6B7280;

    font-size: 10px;
    font-weight: 600;
}

.bottom-nav a i {
    font-size: 18px;
}

.bottom-nav a.active {
    color: #2563EB;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.page-header h2 {
    margin: 0;
}

.small-btn {
    background: #2563EB;
    color: white;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: bold;
}

.list-card,
.form-card {
    background: white;
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.list-card h3 {
    margin: 0 0 6px;
}

.list-card p {
    margin: 4px 0;
    color: #6B7280;
    font-size: 14px;
}

.row-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.row-actions a {
    color: #2563EB;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.row-actions .danger-link {
    color: #DC2626;
}

textarea {
    width: 100%;
    min-height: 90px;
    border: 1px solid #D1D5DB;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 15px;
    font-family: Arial, sans-serif;
}

.badge {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.badge.paid {
    background: #DCFCE7;
    color: #166534;
}

.badge.partial {
    background: #DBEAFE;
    color: #1D4ED8;
}

.badge.unpaid {
    background: #FEE2E2;
    color: #991B1B;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.checkbox-row input {
    width: auto;
    height: auto;
    margin: 0;
}

select {
    width: 100%;
    height: 50px;
    border: 1px solid #D1D5DB;
    border-radius: 14px;
    padding: 0 14px;
    margin-bottom: 16px;
    font-size: 15px;
    background: white;
}

.item-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 14px;
}

.secondary-btn {
    background: #E5E7EB;
    color: #111827;
    margin-bottom: 16px;
}

.total-box {
    background: #EFF6FF;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
}

.total-box small {
    color: #1D4ED8;
}

.total-box h2 {
    margin: 6px 0 0;
    color: #1D4ED8;
}

.card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.summary-row.total {
    border-top: 1px solid #E5E7EB;
    padding-top: 12px;
    font-size: 18px;
}

.summary-row.balance strong {
    color: #DC2626;
}

.profile-card {
    background: white;
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.profile-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    margin-bottom: 14px;
}

.profile-card h2 {
    margin: 0;
}

.profile-card p {
    margin: 6px 0 0;
    color: #6B7280;
}

.danger-btn {
    background: #DC2626;
    margin-top: 12px;
}

.menu-grid {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.menu-grid a {
    background: white;
    color: #111827;
    text-decoration: none;
    padding: 18px;
    border-radius: 18px;
    font-weight: bold;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.search-box {
    display: grid;
    grid-template-columns: 1fr 82px;
    gap: 10px;
    margin-bottom: 16px;
}

.search-box input {
    margin-bottom: 0;
}

.search-box button {
    height: 50px;
    border-radius: 14px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    padding-bottom: 4px;
}

.filter-tabs a {
    flex: 0 0 auto;
    text-decoration: none;
    color: #6B7280;
    background: white;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.filter-tabs a.active {
    background: #2563EB;
    color: white;
}

.badge.overdue {
    background: #7F1D1D;
    color: white;
}

.filter-tabs a.danger-tab,
.filter-tabs a.active.danger-tab {
    background: #DC2626;
    color: white;
}

.danger h2 {
    color: #DC2626;
}

.helper-text {
    display: block;
    margin-top: -10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6B7280;
}

table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.card-row {
    flex-wrap: wrap;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.card-row {
    flex-wrap: wrap;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 18px;
    }

    .summary {
        width: 100%;
    }
}

.logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
    margin: 0 auto 18px;
}

.profile-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    display: block;
    margin: 0 auto 14px;
}

.page-subtitle {
    margin: 4px 0 0;
    color: #6B7280;
    font-size: 13px;
}

.search-result-info {
    background: #EFF6FF;
    color: #1D4ED8;
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-size: 13px;
}

.search-result-info a {
    float: right;
    color: #1D4ED8;
    font-weight: bold;
    text-decoration: none;
}

.customer-card p i {
    width: 18px;
    color: #6B7280;
}

.badge-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.invoice-money-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    background: #F9FAFB;
    border-radius: 14px;
    padding: 12px;
    margin-top: 12px;
}

.invoice-money-row small {
    display: block;
    color: #6B7280;
    font-size: 11px;
    margin-bottom: 4px;
}

.invoice-money-row strong {
    font-size: 13px;
}

.text-danger {
    color: #DC2626;
}

.text-success {
    color: #16A34A;
}

.due-text {
    margin-top: 10px !important;
    font-size: 13px;
}

.due-text i,
.invoice-card p i {
    width: 18px;
    color: #6B7280;
}

@media (max-width: 360px) {
    .invoice-money-row {
        grid-template-columns: 1fr;
    }

    .badge-stack {
        align-items: flex-start;
        margin-top: 8px;
    }
}

.two-cols {
    display: grid;
    grid-template-columns: 0.7fr 0.3fr;
    gap: 10px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.remove-item-btn {
    background: #FEE2E2;
    color: #991B1B;
    height: 42px;
    font-size: 13px;
    margin-top: 4px;
}

@media (max-width: 360px) {
    .two-cols {
        grid-template-columns: 1fr;
    }
}

.detail-status-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.item-detail-card h3,
.payment-card h3 {
    margin-bottom: 12px;
}

.summary-card p i,
.payment-card p i {
    width: 18px;
    color: #6B7280;
}

.quick-actions button i {
    margin-right: 6px;
}
.service-card p i {
    width: 18px;
    color: #6B7280;
}

.list-card {
    background: white;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.summary-card {
    background: white;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.dashboard-hero {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    border-radius: 24px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-hero .top-logo {
    width: 44px;
    height: 44px;
    background: white;
    padding: 6px;
    border-radius: 14px;
    object-fit: contain;
}

.dashboard-hero small {
    opacity: 0.85;
    font-size: 12px;
}

.dashboard-hero h3 {
    margin: 2px 0;
    font-size: 19px;
}

.dashboard-hero p {
    margin: 0;
    font-size: 12px;
    opacity: 0.85;
}

.hero-profile {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.18);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.outstanding-card {
    background: #111827;
    color: white;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.outstanding-card small {
    color: #D1D5DB;
}

.outstanding-card h2 {
    margin: 6px 0 0;
    font-size: 24px;
}

.outstanding-card i {
    font-size: 34px;
    opacity: 0.35;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 12px;
}

.section-title-row h3 {
    margin: 0;
    font-size: 17px;
}

.section-title-row a {
    font-size: 13px;
    color: #2563EB;
    font-weight: bold;
    text-decoration: none;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card-new {
    background: white;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.stat-card-new small {
    color: #6B7280;
    font-size: 12px;
}

.stat-card-new h2 {
    margin: 6px 0 0;
    font-size: 24px;
}

.stat-icon,
.quick-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.icon-blue {
    background: #2563EB;
    color: white;
}

.icon-orange {
    background: #F97316;
    color: white;
}

.icon-green {
    background: #10B981;
    color: white;
}

.icon-purple {
    background: #8B5CF6;
    color: white;
}

.icon-red {
    background: #EF4444;
    color: white;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-action-card {
    background: white;
    border-radius: 20px;
    padding: 14px 10px;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    min-height: 120px;
}

.quick-action-card strong {
    display: block;
    font-size: 14px;
}

.quick-action-card span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #6B7280;
}

.recent-card {
    background: white;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.recent-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.recent-top h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.recent-top p {
    margin: 0;
    color: #6B7280;
    font-size: 13px;
}

.recent-money {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #F9FAFB;
    border-radius: 14px;
    padding: 12px;
    margin-top: 12px;
}

.recent-money small {
    display: block;
    font-size: 11px;
    color: #6B7280;
    margin-bottom: 4px;
}

.recent-money strong {
    font-size: 13px;
}

@media (max-width: 360px) {
    .quick-action-grid {
        grid-template-columns: 1fr;
    }
}

.module-hero {
    border-radius: 24px;
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.service-hero {
    background: linear-gradient(135deg, #7C3AED, #4F46E5);
}

.module-hero small {
    opacity: 0.85;
    font-size: 12px;
}

.module-hero h2 {
    margin: 4px 0;
    font-size: 24px;
}

.module-hero p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.module-hero-icon {
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,0.18);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.mini-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.mini-stat-card {
    background: white;
    border-radius: 18px;
    padding: 14px 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.mini-stat-card.full-width {
    grid-column: 1 / -1;
}

.mini-stat-card small {
    display: block;
    color: #6B7280;
    font-size: 11px;
    margin-top: 8px;
}

.mini-stat-card h3 {
    margin: 4px 0 0;
    font-size: 22px;
}

.mini-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mini-icon i {
    font-size: 18px;
    font-weight: 900;
}

.service-modern-card {
    background: white;
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.service-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.service-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #EDE9FE;
    color: #7C3AED;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-main {
    flex: 1;
    min-width: 0;
}

.service-main h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.service-main p {
    margin: 0;
    color: #111827;
    font-weight: bold;
}

.service-desc {
    background: #F9FAFB;
    border-radius: 14px;
    padding: 11px;
    margin-top: 12px;
    display: flex;
    gap: 8px;
    color: #6B7280;
    font-size: 13px;
}

.service-desc i {
    margin-top: 2px;
}

.service-actions {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
}

.service-actions a {
    color: #2563EB;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.service-actions .danger-link {
    color: #DC2626;
}

@media (max-width: 360px) {
    .mini-stat-grid {
        grid-template-columns: 1fr;
    }

    .service-top {
        flex-wrap: wrap;
    }
}

.full-width {
    grid-column: span 2;
}

.invoice-hero {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.invoice-modern-card {
    background: white;
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.invoice-modern-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.invoice-modern-left {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.invoice-modern-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #DBEAFE;
    color: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.invoice-modern-main {
    min-width: 0;
}

.invoice-modern-main h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.invoice-modern-main p {
    margin: 0;
    color: #374151;
    font-size: 13px;
}

.invoice-modern-main small {
    display: block;
    margin-top: 4px;
    color: #6B7280;
    font-size: 12px;
}

.invoice-money-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #F9FAFB;
    border-radius: 14px;
    padding: 12px;
    margin-top: 14px;
}

.invoice-money-modern small {
    display: block;
    color: #6B7280;
    font-size: 11px;
    margin-bottom: 4px;
}

.invoice-money-modern strong {
    font-size: 13px;
}

.invoice-due-modern {
    margin-top: 12px;
    font-size: 13px;
    color: #DC2626;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

@media (max-width: 360px) {
    .invoice-modern-top {
        flex-direction: column;
    }

    .invoice-money-modern {
        grid-template-columns: 1fr;
    }

    .badge-stack {
        align-items: flex-start;
    }
}

.customer-hero {
    background: linear-gradient(135deg, #16A34A, #15803D);
}

.customer-modern-card {
    background: white;
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.customer-modern-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.customer-modern-left {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.customer-modern-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #DCFCE7;
    color: #16A34A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.customer-modern-main {
    min-width: 0;
}

.customer-modern-main h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.customer-modern-main p {
    margin: 0;
    color: #374151;
    font-size: 13px;
}

.muted-text {
    color: #9CA3AF !important;
}

.customer-info-box {
    background: #F9FAFB;
    border-radius: 14px;
    padding: 12px;
    margin-top: 14px;
}

.customer-info-row {
    display: flex;
    gap: 8px;
    color: #6B7280;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.customer-info-row:last-child {
    margin-bottom: 0;
}

.customer-info-row i {
    width: 18px;
    margin-top: 2px;
    color: #6B7280;
    flex-shrink: 0;
}

.customer-actions {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
}

.customer-actions a {
    color: #2563EB;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.customer-actions .danger-link {
    color: #DC2626;
}

.payment-instruction {
    margin-top: 14px;
}

.payment-instruction p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #374151;
}

.bank-box {
    border: 1px solid #E5E7EB;
    border-left: 4px solid #2563EB;
    background: #F9FAFB;
    border-radius: 14px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.6;
}

.bank-box strong {
    font-size: 14px;
    color: #111827;
}

.bottom-nav-fab {
    grid-template-columns: 1fr 1fr 72px 1fr 1fr;
}

.fab-button {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;
    background: #2563EB;
    color: white;
    font-size: 22px;
    margin: -24px auto 0;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.action-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 998;
    display: none;
}

.action-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 16px 20px 28px;
    z-index: 999;
    transition: 0.25s ease;
}

.action-sheet.active {
    bottom: 0;
}

.action-overlay.active {
    display: block;
}

.sheet-handle {
    width: 42px;
    height: 5px;
    background: #D1D5DB;
    border-radius: 999px;
    margin: 0 auto 14px;
}

.action-sheet h3 {
    margin: 0 0 14px;
}

.action-sheet a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    text-decoration: none;
    color: #111827;
    font-weight: bold;
    border-bottom: 1px solid #F3F4F6;
}

.action-sheet a i {
    width: 34px;
    height: 34px;
    background: #EFF6FF;
    color: #2563EB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-hero {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    border-radius: 24px;
    padding: 20px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px rgba(37,99,235,0.22);
}

.detail-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.detail-hero h2 {
    margin: 6px 0;
    font-size: 24px;
}

.detail-hero p {
    margin: 0;
    opacity: 0.9;
    font-size: 13px;
}

.detail-total {
    margin-top: 18px;
    background: rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 14px;
}

.detail-total small {
    opacity: 0.8;
}

.detail-total h1 {
    margin: 4px 0 0;
    font-size: 30px;
}

.modern-soft-card {
    background: white;
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.modern-soft-card p {
    margin: 0 0 10px;
}

.item-modern-card {
    background: white;
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.item-modern-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-timeline {
    position: relative;
    padding-left: 22px;
}

.payment-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E5E7EB;
}

.payment-timeline-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.payment-timeline-card::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #16A34A;
    border: 3px solid white;
}

.purchase-hero {
    background: linear-gradient(135deg, #F97316, #EA580C);
}

.purchase-modern-card {
    background: white;
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.purchase-modern-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.purchase-modern-left {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.purchase-modern-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #FFEDD5;
    color: #EA580C;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.purchase-modern-main {
    min-width: 0;
}

.purchase-modern-main h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.purchase-modern-main p {
    margin: 0;
    color: #374151;
    font-size: 13px;
}

.purchase-modern-main small {
    display: block;
    margin-top: 4px;
    color: #6B7280;
    font-size: 12px;
}

.purchase-money-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #F9FAFB;
    border-radius: 14px;
    padding: 12px;
    margin-top: 14px;
}

.purchase-money-box small {
    display: block;
    color: #6B7280;
    font-size: 11px;
    margin-bottom: 4px;
}

.purchase-money-box strong {
    font-size: 13px;
}


.profit-hero {
    background: linear-gradient(135deg, #059669, #047857);
}

.filter-form {
    background: white;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.profit-summary-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.profit-card {
    border-radius: 22px;
    padding: 18px;
    color: white;
    position: relative;
    overflow: hidden;
}

.profit-card small {
    opacity: 0.9;
}

.profit-card h2 {
    margin: 8px 0 0;
    font-size: 24px;
}

.profit-card i {
    position: absolute;
    right: 18px;
    bottom: 18px;
    font-size: 34px;
    opacity: 0.2;
}

.sales-card {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.paid-card {
    background: linear-gradient(135deg, #16A34A, #15803D);
}

.cost-card {
    background: linear-gradient(135deg, #EA580C, #C2410C);
}

.profit-positive {
    background: linear-gradient(135deg, #059669, #047857);
}

.profit-negative {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
}

.finance-list-card {
    background: white;
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.finance-list-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.finance-list-top h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.finance-list-top p {
    margin: 0;
    color: #6B7280;
    font-size: 13px;
}

.renewal-hero {
    background: linear-gradient(135deg, #0891B2, #0E7490);
}

.renewal-modern-card {
    background: white;
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.renewal-modern-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.renewal-modern-left {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.renewal-modern-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #CFFAFE;
    color: #0891B2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.renewal-modern-main h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.renewal-modern-main p {
    margin: 0;
    color: #374151;
    font-size: 13px;
}

.renewal-modern-main small {
    display: block;
    margin-top: 4px;
    color: #6B7280;
    font-size: 12px;
}

.renewal-info-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    background: #F9FAFB;
    border-radius: 14px;
    padding: 12px;
    margin-top: 14px;
}

.renewal-info-box small {
    display: block;
    color: #6B7280;
    font-size: 11px;
    margin-bottom: 4px;
}

.renewal-info-box strong {
    font-size: 13px;
}

.renewal-provider {
    margin-top: 12px;
    font-size: 13px;
    color: #6B7280;
    display: flex;
    gap: 6px;
}

.warning-renewal-card {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-left: 4px solid #F59E0B;
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 12px;
}

.warning-renewal-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.warning-renewal-top h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.warning-renewal-top p {
    margin: 0;
    color: #92400E;
    font-size: 13px;
}

.warning-renewal-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: #92400E;
}

.warning-renewal-footer a {
    color: #D97706;
    font-weight: bold;
    text-decoration: none;
}


.profit-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.profit-mini-card {
    background: white;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.profit-mini-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.profit-mini-card small {
    color: #6B7280;
    font-size: 12px;
}

.profit-mini-card h3 {
    margin: 6px 0;
    font-size: 20px;
}

.profit-mini-card p {
    margin: 0;
    color: #6B7280;
    font-size: 12px;
    line-height: 1.5;
}

.quick-action-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:14px;
}

.quick-action-card{
    display:flex;
    align-items:center;
    gap:14px;

    width:100%;
    text-decoration:none;

    padding:16px;
    border-radius:14px;
    background:#fff;
    border:1px solid #eee;

    color:#222;
}

.quick-action-card:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 14px rgba(0,0,0,.08);
}

.quick-icon{
    width:52px;
    height:52px;
    border-radius:14px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:20px;
    color:#fff;

    flex-shrink:0;
}

.quick-content{
    display:flex;
    flex-direction:column;
}

.quick-content strong{
    font-size:15px;
    line-height:1.2;
}

.quick-content span{
    font-size:12px;
    color:#777;
    margin-top:4px;
}


.quick-icon{
    width:52px;
    height:52px;
    border-radius:14px;

    display:flex;
    align-items:center;
    justify-content:center;

    flex-shrink:0;
}

.quick-icon i{
    font-size:22px;
    color:#fff !important;
    line-height:1;
}

/* warna */
.icon-blue{
    background:#3b82f6;
}

.icon-green{
    background:#10b981;
}

.icon-purple{
    background:#8b5cf6;
}

.icon-orange{
    background:#f97316;
}

.stat-icon,
.profit-mini-icon{
    width:52px;
    height:52px;
    border-radius:14px;

    display:flex;
    align-items:center;
    justify-content:center;

    position:relative;
    overflow:hidden;

    flex-shrink:0;
}

/* ICON */
.stat-icon i,
.profit-mini-icon i{
    font-size:22px !important;
    color:#fff !important;

    position:relative;
    z-index:2;

    line-height:1;
}

/* WARNA */
.icon-blue{
    background:#3b82f6 !important;
}

.icon-green{
    background:#10b981 !important;
}

.icon-orange{
    background:#f97316 !important;
}

.icon-purple{
    background:#8b5cf6 !important;
}

.icon-red{
    background:#ef4444 !important;
}

.stat-icon *,
.profit-mini-icon *{
    color:#fff !important;
}


.proof-preview-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 16px;
}

.proof-preview-img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 14px;
    background: white;
    margin-top: 8px;
}

.proof-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2563EB;
    font-weight: bold;
    text-decoration: none;
    margin-top: 8px;
}

.chart-card {
    background: white;
    border-radius: 22px;
    padding: 16px;
    height: 320px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.donut-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 22px;
}

.donut-card canvas {
    max-width: 240px;
    max-height: 240px;
}

.chart-summary {
    width: 100%;
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.chart-summary div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.revenue-dot {
    background: #2563EB;
}

.cost-dot {
    background: #F97316;
}

.profit-dot {
    background: #10B981;
}

.donut-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 22px;
    min-height: 340px;
}

.donut-card canvas {
    width: 240px !important;
    height: 240px !important;
}

.chart-summary {
    width: 100%;
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.chart-summary div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.revenue-dot {
    background: #2563EB;
}

.cost-dot {
    background: #F97316;
}

.profit-dot {
    background: #10B981;
}

.empty-chart-text {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: #6B7280;
}

.inline-link {
    color: #2563EB;
    text-decoration: none;
    font-weight: 700;
}

.clickable-card {
    cursor: pointer;
    transition: 0.2s;
}

.clickable-card:active {
    transform: scale(0.98);
    opacity: 0.85;
}

.sheet-top {
    position: relative;
    margin-bottom: 12px;
}

.sheet-close-btn {
    position: absolute;
    right: 0;
    top: -4px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sheet-close-btn:active {
    transform: scale(0.95);
}