/* =========================================================
   ACCOUNTS WEBSITE - MASTER CSS
   Responsive Master Stylesheet
   ========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;

    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #0891b2;

    --white: #ffffff;
    --black: #000000;

    --text: #1e293b;
    --text-light: #64748b;

    --bg: #f1f5f9;
    --card: #ffffff;
    --border: #e2e8f0;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 25px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 15px 40px rgba(15, 23, 42, 0.15);

    --transition: 0.25s ease;

    --container: 1400px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--bg);
    color: var(--text);

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   GENERAL
   ========================================================= */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

p {
    margin-bottom: 10px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary);
    line-height: 1.3;
    margin-bottom: 10px;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: 100%;
    max-width: var(--container);
    margin: auto;
    padding: 0 20px;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-subtitle {
    color: var(--text-light);
    font-size: 14px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border: 0;
    border-radius: var(--radius-sm);

    padding: 10px 18px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);

    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #15803d;
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #b91c1c;
    color: var(--white);
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-info {
    background: var(--info);
    color: var(--white);
}

.btn-secondary {
    background: #64748b;
    color: var(--white);
}

.btn-light {
    background: #f8fafc;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}


/* Button Sizes */

.btn-sm {
    padding: 7px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 13px 24px;
    font-size: 16px;
}


/* =========================================================
   FORMS
   ========================================================= */

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;

    color: var(--secondary);
}

.form-control,
.form-select,
textarea {
    width: 100%;

    padding: 11px 13px;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    background: var(--white);
    color: var(--text);

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition: var(--transition);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control::placeholder {
    color: #94a3b8;
}


/* =========================================================
   TABLES
   ========================================================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;

    background: var(--white);

    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.table th {
    background: var(--secondary);
    color: var(--white);

    padding: 13px 15px;

    font-size: 13px;
    font-weight: 600;

    text-align: left;

    white-space: nowrap;
}

.table td {
    padding: 12px 15px;

    border-bottom: 1px solid var(--border);

    font-size: 14px;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: #f8fafc;
}

.table tbody tr:last-child td {
    border-bottom: none;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
    display: inline-block;

    padding: 4px 9px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 700;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #cffafe;
    color: #155e75;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    padding: 12px 15px;
    border-radius: var(--radius-sm);

    margin-bottom: 18px;

    font-size: 14px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-info {
    background: #cffafe;
    color: #155e75;
}


/* =========================================================
   LINKS
   ========================================================= */

.link {
    color: var(--primary);
    font-weight: 600;
}

.link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #f8fafc 50%,
            #e0f2fe 100%
        );
}

.login-card {
    width: 100%;
    max-width: 430px;

    background: var(--white);

    padding: 35px;

    border-radius: 20px;

    box-shadow: var(--shadow-lg);
}

.login-logo {
    width: 70px;
    height: 70px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: var(--primary);
    color: var(--white);

    font-size: 28px;
    font-weight: 800;
}

.login-title {
    text-align: center;

    font-size: 25px;
    font-weight: 800;

    margin-bottom: 5px;
}

.login-subtitle {
    text-align: center;

    color: var(--text-light);

    font-size: 14px;

    margin-bottom: 28px;
}

.login-btn {
    width: 100%;
    margin-top: 5px;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-header {
    background: var(--white);

    border-bottom: 1px solid var(--border);

    padding: 15px 0;

    box-shadow: var(--shadow-sm);
}

.dashboard-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary);
}

.brand span {
    color: var(--primary);
}

.dashboard-main {
    padding: 30px 0;
}


/* =========================================================
   GRID
   ========================================================= */

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}


/* =========================================================
   STAT CARDS
   ========================================================= */

.stat-card {
    background: var(--white);

    border-radius: var(--radius-lg);

    padding: 22px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-label {
    color: var(--text-light);
    font-size: 13px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-top: 5px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
    display: flex;
    align-items: center;
    gap: 8px;

    flex-wrap: wrap;
}

.nav a {
    padding: 8px 12px;

    border-radius: var(--radius-sm);

    color: var(--text);

    font-size: 14px;
    font-weight: 600;
}

.nav a:hover,
.nav a.active {
    background: #eff6ff;
    color: var(--primary);
}


/* =========================================================
   UTILITY CLASSES
   ========================================================= */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-light);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-primary {
    color: var(--primary);
}

.fw-bold {
    font-weight: 700;
}

.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }

.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 15px;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .container {
        padding-left: 30px;
        padding-right: 30px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    body {
        font-size: 14px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card {
        padding: 18px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .dashboard-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nav a {
        width: 100%;
    }

    .login-card {
        padding: 25px 20px;
    }

    .login-title {
        font-size: 22px;
    }

    .stat-value {
        font-size: 24px;
    }

    .btn {
        min-height: 42px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .login-page {
        padding: 12px;
    }

    .login-card {
        padding: 22px 16px;
        border-radius: 15px;
    }

    .login-logo {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .login-title {
        font-size: 20px;
    }

    .dashboard-main {
        padding: 20px 0;
    }

    .btn {
        width: 100%;
    }

}
/* =========================================================
   DASHBOARD LAYOUT
   ========================================================= */

.dashboard-layout {
    min-height: 100vh;
    display: flex;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    width: 250px;
    min-height: 100vh;

    background: #0f172a;
    color: #ffffff;

    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    z-index: 1000;

    overflow-y: auto;
}

.sidebar-brand {
    height: 72px;

    display: flex;
    align-items: center;

    padding: 0 22px;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #2563eb;
    color: #ffffff;

    border-radius: 10px;

    font-size: 20px;
    font-weight: 800;

    margin-right: 10px;
}

.sidebar-brand-name {
    font-size: 18px;
    font-weight: 800;
}

.sidebar-brand-name span {
    color: #60a5fa;
}


/* Sidebar Menu */

.sidebar-menu {
    padding: 20px 12px;
}

.sidebar-section-title {
    padding: 8px 12px;

    color: #64748b;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px 13px;

    margin-bottom: 4px;

    border-radius: 8px;

    color: #cbd5e1;

    font-size: 14px;
    font-weight: 600;

    transition: 0.2s ease;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.07);
    color: #ffffff;
}

.sidebar-menu a.active {
    background: #2563eb;
    color: #ffffff;

    box-shadow:
        0 5px 15px rgba(37,99,235,0.25);
}

.menu-icon {
    width: 22px;

    text-align: center;

    font-size: 16px;
}


/* =========================================================
   MAIN AREA
   ========================================================= */

.dashboard-content {
    width: calc(100% - 250px);

    margin-left: 250px;

    min-height: 100vh;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    height: 72px;

    background: #ffffff;

    border-bottom: 1px solid #e2e8f0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    position: sticky;
    top: 0;

    z-index: 900;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;

    border: 0;

    background: #f1f5f9;

    width: 40px;
    height: 40px;

    border-radius: 8px;

    font-size: 20px;

    cursor: pointer;
}

.page-heading {
    font-size: 21px;
    font-weight: 750;

    margin: 0;
}

.page-heading-subtitle {
    font-size: 12px;
    color: #64748b;
}


/* =========================================================
   USER AREA
   ========================================================= */

.topbar-user {
    display: flex;
    align-items: center;

    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dbeafe;
    color: #1d4ed8;

    font-weight: 800;
}

.user-info {
    line-height: 1.25;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
}

.user-role {
    font-size: 11px;
    color: #64748b;
}


/* =========================================================
   DASHBOARD BODY
   ========================================================= */

.dashboard-body {
    padding: 28px;
}


/* =========================================================
   WELCOME BOX
   ========================================================= */

.welcome-box {
    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #2563eb,
            #0284c7
        );

    color: #ffffff;

    border-radius: 16px;

    padding: 25px 28px;

    margin-bottom: 25px;

    box-shadow:
        0 10px 25px rgba(37,99,235,0.18);
}

.welcome-box h2 {
    color: #ffffff;

    font-size: 22px;

    margin-bottom: 5px;
}

.welcome-box p {
    color: rgba(255,255,255,0.82);

    margin: 0;
}


/* =========================================================
   DASHBOARD STAT CARDS
   ========================================================= */

.dashboard-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 25px;
}

.dashboard-stat {
    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    padding: 20px;

    box-shadow:
        0 3px 10px rgba(15,23,42,0.05);

    transition: 0.25s ease;
}

.dashboard-stat:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(15,23,42,0.10);
}

.stat-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;
}

.stat-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 20px;
}

.stat-icon.income {
    background: #dcfce7;
    color: #15803d;
}

.stat-icon.expense {
    background: #fee2e2;
    color: #dc2626;
}

.stat-icon.receivable {
    background: #dbeafe;
    color: #2563eb;
}

.stat-icon.payable {
    background: #fef3c7;
    color: #d97706;
}

.stat-label {
    color: #64748b;

    font-size: 13px;
}

.stat-amount {
    font-size: 24px;

    font-weight: 800;

    color: #0f172a;
}

.stat-description {
    color: #94a3b8;

    font-size: 11px;

    margin-top: 3px;
}


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.dashboard-two-column {
    display: grid;

    grid-template-columns:
        1.5fr 1fr;

    gap: 20px;
}


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.quick-actions {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}

.quick-action {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    color: #334155;

    background: #ffffff;

    transition: 0.2s ease;
}

.quick-action:hover {
    border-color: #93c5fd;

    background: #eff6ff;

    color: #1d4ed8;
}

.quick-action-icon {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #eff6ff;

    color: #2563eb;
}

.quick-action-title {
    font-size: 13px;
    font-weight: 700;
}

.quick-action-subtitle {
    font-size: 11px;
    color: #94a3b8;
}


/* =========================================================
   RECENT TRANSACTIONS
   ========================================================= */

.transaction-type {
    width: 34px;
    height: 34px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-weight: 700;
}

.transaction-income {
    background: #dcfce7;
    color: #15803d;
}

.transaction-expense {
    background: #fee2e2;
    color: #dc2626;
}


/* =========================================================
   MOBILE OVERLAY
   ========================================================= */

.sidebar-overlay {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(15,23,42,0.45);

    z-index: 999;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .dashboard-stat-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .dashboard-two-column {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .sidebar {
        transform: translateX(-100%);

        transition: transform 0.25s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.open {
        display: block;
    }

    .dashboard-content {
        width: 100%;
        margin-left: 0;
    }

    .topbar {
        padding: 0 15px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .user-info {
        display: none;
    }

    .dashboard-body {
        padding: 18px 15px;
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .welcome-box {
        padding: 20px;

        border-radius: 13px;
    }

    .welcome-box h2 {
        font-size: 19px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .page-heading {
        font-size: 18px;
    }

    .topbar {
        height: 64px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

    .stat-amount {
        font-size: 22px;
    }

}

/* =========================================================
   CUSTOMER MASTER
   ========================================================= */

.customer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.customer-search {
    display: flex;
    gap: 8px;
    max-width: 500px;
    width: 100%;
}

.customer-search .form-control {
    flex: 1;
}

.customer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    border: 1px solid var(--border);

    background: #ffffff;

    color: var(--text);

    font-size: 14px;

    transition: var(--transition);
}

.action-btn:hover {
    background: #eff6ff;
    color: var(--primary);
    border-color: #93c5fd;
}

.action-btn.edit:hover {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.action-btn.delete:hover {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.customer-code {
    font-weight: 700;
    color: var(--primary);
}

.customer-name {
    font-weight: 700;
    color: var(--secondary);
}

.customer-mobile {
    color: var(--text-light);
}

.balance-receivable {
    color: var(--success);
    font-weight: 700;
}

.balance-payable {
    color: var(--danger);
    font-weight: 700;
}

.customer-form {
    max-width: 1000px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-grid-full {
    grid-column: 1 / -1;
}

.form-section-title {
    font-size: 16px;
    font-weight: 750;
    color: var(--secondary);

    padding-bottom: 10px;
    margin-bottom: 18px;

    border-bottom: 1px solid var(--border);
}

.form-actions {
    display: flex;
    gap: 10px;

    padding-top: 10px;
}

.customer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.customer-info-item {
    padding: 15px;

    border-bottom: 1px solid var(--border);
}

.customer-info-item:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.customer-info-label {
    display: block;

    color: var(--text-light);

    font-size: 12px;
    margin-bottom: 4px;
}

.customer-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary);
}

.empty-state {
    text-align: center;
    padding: 45px 20px;

    color: var(--text-light);
}

.empty-state-icon {
    font-size: 40px;
    margin-bottom: 10px;
}


/* =========================================================
   CUSTOMER MASTER MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .customer-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-search {
        max-width: none;
    }

    .customer-search .btn {
        width: auto;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid-full {
        grid-column: auto;
    }

    .customer-info-grid {
        grid-template-columns: 1fr;
    }

    .customer-info-item:nth-child(odd) {
        border-right: none;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

}

/* =========================================================
   ADMIN - BUSINESS USER MANAGEMENT
   ========================================================= */

.admin-user-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.admin-user-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 550px;
}

.admin-user-search .form-control {
    flex: 1;
}

.user-business-name {
    font-weight: 700;
    color: var(--secondary);
}

.user-person-name {
    font-size: 13px;
    color: var(--text-light);
}

.user-id {
    font-weight: 700;
    color: var(--primary);
}

.user-contact {
    font-size: 13px;
    color: var(--text-light);
}

.status-btn {
    border: 0;
    cursor: pointer;
    background: transparent;
}

.user-action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-action-btn {
    width: 35px;
    height: 35px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: var(--white);
    color: var(--text);

    cursor: pointer;

    transition: var(--transition);
}

.user-action-btn:hover {
    background: #eff6ff;
    color: var(--primary);
    border-color: #93c5fd;
}

.user-action-btn.edit:hover {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.user-action-btn.view:hover {
    background: #ecfeff;
    color: #0e7490;
    border-color: #67e8f9;
}

.user-action-btn.status:hover {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.user-action-btn.reset:hover {
    background: #f3e8ff;
    color: #7e22ce;
    border-color: #d8b4fe;
}

.user-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 25px;
    height: 25px;

    padding: 0 8px;

    border-radius: 20px;

    background: #eff6ff;
    color: var(--primary);

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   USER SUMMARY CARDS
   ========================================================= */

.user-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.user-summary-card {
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    padding: 18px;

    box-shadow: var(--shadow-sm);
}

.user-summary-label {
    font-size: 12px;
    color: var(--text-light);
}

.user-summary-value {
    margin-top: 3px;

    font-size: 24px;
    font-weight: 800;

    color: var(--secondary);
}


/* =========================================================
   USER MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .admin-user-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-user-search {
        max-width: none;
    }

    .admin-user-search .btn {
        width: auto;
    }

    .user-summary-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   DASHBOARD ACCOUNTING SUMMARY
   ========================================================= */

.dashboard-summary-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 24px;
}


.dashboard-summary-card {

    display: flex;

    align-items: center;

    gap: 16px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    text-decoration: none;

    color: inherit;

    box-shadow:
        0 4px 14px
        rgba(0, 0, 0, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.dashboard-summary-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.09);

}


.dashboard-summary-icon {

    width: 52px;

    height: 52px;

    min-width: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: #f3f4f6;

    font-size: 25px;
}


.dashboard-summary-content {

    min-width: 0;
}


.dashboard-summary-label {

    font-size: 13px;

    color: #6b7280;

    margin-bottom: 5px;
}


.dashboard-summary-value {

    font-size: 23px;

    font-weight: 700;

    line-height: 1.2;

    color: #111827;

}


.dashboard-summary-link {

    margin-top: 7px;

    font-size: 12px;

    color: #6b7280;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (
    max-width: 1100px
) {

    .dashboard-summary-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (
    max-width: 600px
) {

    .dashboard-summary-grid {

        grid-template-columns: 1fr;

        gap: 14px;

    }


    .dashboard-summary-card {

        padding: 18px;

    }


    .dashboard-summary-value {

        font-size: 21px;

    }

}

/* =========================================================
   DASHBOARD STAT CLICKABLE CARDS
   ========================================================= */

.dashboard-stat-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.dashboard-stat-link:hover {
    text-decoration: none;
}