@charset "utf-8";

/* =============================================================================
   TABLE OF CONTENTS
   1.  Reset & Base
   2.  Typography
   3.  Layout & Main Container
   4.  Navigation — Desktop
   5.  Navigation — Mobile (hamburger)
   6.  Stats Bar
   7.  Dashboard Client Grid
   8.  Tables
   9.  Status Badges
   10. Action Buttons
   11. Forms (Admin)
   12. Settings Page
   13. Invoice Builder
   14. Invoice View (Admin)
   15. Invoice View (Public / pay.php)
   16. Client Portal (account.php)
   17. Reports Page
   18. Reconciliation Page
   19. Bulk Dispatcher Page
   20. Hosting Page
   21. Login Page
   22. Utilities
   23. Responsive Breakpoints
   ============================================================================= */


/* =============================================================================
   1. RESET & BASE
   ============================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    background-color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    color: #777;
    font-size: 13px;
    padding: 30px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none !important;
    transition: opacity 0.2s;
}
a:hover { opacity: 0.7; }


/* =============================================================================
   2. TYPOGRAPHY
   ============================================================================= */
h1 { font-size: 29px; color: #586694; font-weight: normal; }
h2 { font-size: 21px; color: #586694; font-weight: normal; }
h3 { font-size: 15px; color: #586694; font-weight: normal; margin-bottom: 5px; }
h4 { font-size: 16px; }

.section-title {
    color: #586694;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
    margin: 40px 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-label, .inv-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    margin-bottom: 5px;
}

.section-header {
    color: #586694;
    margin: 40px 0 20px 0;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.timestamp {
    font-size: 10px;
    color: #bbb;
    font-style: italic;
}

.sort-indicator { color: #586694; font-size: 10px; }
.sort-link      { color: #586694; text-decoration: none !important; }
.sort-link:hover { text-decoration: underline !important; color: #333; opacity: 1; }


/* =============================================================================
   3. LAYOUT & MAIN CONTAINER
   ============================================================================= */
.Main {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 100px;
}


/* =============================================================================
   4. NAVIGATION — DESKTOP
   ============================================================================= */
.top_menu_holder {
    border-bottom: 1px solid #ddd;
    padding: 89px 0 65px 0;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
}

.logo-area {
    position: absolute;
    left: 0;
    bottom: 45px;
    background: #fff;
    padding-right: 20px;
    line-height: 0;
}

.logo-area img {
    max-height: 140px;
    width: auto;
    display: block;
}

.top_menu {
    text-align: right;
    width: 100%;
}

.top_menu a {
    margin-left: 25px;
    color: #7B86B3;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top_menu a.active {
    color: #586694;
    border-bottom: 2px solid #586694;
    padding-bottom: 5px;
}

.top_menu a:hover { opacity: 0.7; }

.nav-logout {
    color: #bbb !important;
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
}

.menu-toggle { display: none; }


/* =============================================================================
   5. NAVIGATION — MOBILE (HAMBURGER)
   ============================================================================= */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 5px;
    align-self: center;
    z-index: 10;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #586694;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================================================
   6. STATS BAR
   ============================================================================= */
.stats-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 25px;
    background: #fafafa;
    border: 1px solid #eee;
    margin-bottom: 40px;
    color: #586694;
    font-size: 14px;
}

.stat-item { flex: 1; min-width: 150px; }


/* =============================================================================
   7. DASHBOARD CLIENT GRID
   ============================================================================= */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 60px;
}

.web_thumb {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    display: block;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.web_thumb:hover { transform: translateY(-5px) scale(1.02); }

.client-url  { display: block; font-size: 13px; color: #586694; margin-bottom: 5px; }

.client-meta {
    border-top: 1px solid #eee;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 11px;
}

.hrs-due  { color: #a71d2a; font-weight: bold; }
.hrs-zero { color: #ccc; }
.client-log { color: #ccc; }


/* =============================================================================
   8. TABLES
   ============================================================================= */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table, .i9-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    border-bottom: 1px solid #BBBBBB;
    padding: 12px 20px;
    text-align: left;
    color: #586694;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

td {
    border-bottom: 1px solid #EEEEEE;
    padding: 12px 20px;
    color: #777;
    vertical-align: middle;
}

tr:hover td { background: #fcfcfc; }

.col-inv-num  { color: #333; letter-spacing: 1px; font-weight: bold; white-space: nowrap; }
.col-project  { color: #555; font-weight: 500; }
.col-date     { color: #bbb; font-size: 12px; white-space: nowrap; }
.col-amount   { color: #666; font-size: 14px; letter-spacing: 0.5px; }
.col-status   { }
.col-action   { text-align: right; }

/* Hosting table specific columns */
.col-domain  { color: #333; font-weight: 500; }
.col-rate    { color: #333; }
.col-hrs     { }
.col-renewal { }

.action-link {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #586694;
    text-decoration: none;
}

.standard-table th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #99a2bf;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-weight: normal;
}

.standard-table td {
    vertical-align: middle;
    padding: 15px 10px;
    border-bottom: 1px solid #f8f9fa;
    font-size: 13px;
}

.standard-table tr:hover td { background-color: #fcfcfc; }


/* =============================================================================
   9. STATUS BADGES
   ============================================================================= */
.status-badge, .inv-status-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid transparent;
    min-width: 70px;
    text-align: center;
}

.status-draft    { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.status-sent     { background: #ebf4ff; color: #2b6cb0; border-color: #bee3f8; }
.status-paid     { background: #e6fffa; color: #2c7a7b; border-color: #b2f5ea; }
.status-viewed   { background: #fefcbf; color: #b7791f; border-color: #faf089; }
.status-void     { background: #f8f8f8; color: #bbb;    border-color: #e8e8e8; }
.status-partial  { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.status-forecast { background: #faf5ff; color: #6b21a8; border-color: #d8b4fe; }

.view-timestamp {
    font-size: 9px;
    color: #a0aec0;
    margin-top: 5px;
    display: block;
    text-transform: uppercase;
    font-weight: 600;
}

/* Hosting status indicators */
.status-overdue { color: #a71d2a; font-size: 10px; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; }
.status-current { color: #2c7a7b; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.text-overdue   { color: #a71d2a !important; font-weight: bold; }

.overdue-row td { background: #fffafa; }
.overdue-row:hover td { background: #fff5f5; }

/* Hours badges */
.hrs-badge { color: #a71d2a; font-weight: bold; font-size: 12px; }
.hrs-unit  { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: #bbb; }
.hrs-none  { color: #ddd; }

.unbilled-time-val { color: #a71d2a; }

/* Overdue badge (bulk dispatcher) */
.overdue-badge {
    background: #fee2e2;
    color: #991b1b;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: bold;
    margin-left: 10px;
}

/* Wave reconciliation badge */
.wave-badge {
    background: #635bff;
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 8px;
}


/* =============================================================================
   10. ACTION BUTTONS
   ============================================================================= */
.action-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

.btn-manage {
    background: #586694;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 2px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
}
.btn-manage:hover { opacity: 0.8 !important; }

.btn-action-outline {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #718096;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 2px;
    background: transparent;
}
.btn-action-outline:hover {
    background: #f7fafc;
    color: #2d3748;
    border-color: #cbd5e0;
    opacity: 1;
}

.btn-action-small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 2px;
}

.btn-bill {
    background: #586694;
    color: #fff !important;
    padding: 5px 12px;
    border-radius: 2px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-bill:hover { opacity: 0.8 !important; }

.domain-link { color: #586694; font-size: 13px; }
.monthly-rate { color: #333; font-weight: bold; }

.action-link-danger {
    color: #dc3545;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}
.action-link-danger:hover { color: #a71d2a; text-decoration: underline; opacity: 1; }


/* =============================================================================
   11. FORMS (ADMIN)
   ============================================================================= */

/* Bootstrap form-control overrides for i9 aesthetic */
.form-control, .form-select {
    border-color: #e8e8e8;
    border-radius: 2px;
    font-size: 13px;
    color: #444;
}

.form-control:focus, .form-select:focus {
    border-color: #586694;
    box-shadow: 0 0 0 2px rgba(88, 102, 148, 0.1);
}

/* Rate/tax info badges (invoice builder) */
.rate-badge {
    font-size: 9px;
    padding: 3px 8px;
    background: #ebf4ff;
    color: #2b6cb0;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 8px;
}
.tax-badge {
    font-size: 9px;
    padding: 3px 8px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 5px;
}

/* Invoice builder */
.builder-container { max-width: 820px; margin: 0 auto; }

/* PAC container (Google Maps autocomplete) */
.pac-container {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 4px;
    border: 1px solid #eee;
    z-index: 1050;
}


/* =============================================================================
   12. SETTINGS PAGE
   ============================================================================= */
.i9-form-max { max-width: 1000px; }

.settings-box {
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    padding: 25px 30px;
}

.settings-box .section-label {
    font-size: 11px;
    letter-spacing: 3px;
    color: #586694;
    font-weight: bold;
}


/* =============================================================================
   13. INVOICE BUILDER (create_invoice.php)
   ============================================================================= */
.list-group-item { font-size: 12px; border-color: #eee; }
.custom-box { background-color: #fcfcfc; border: 1px solid #eee; padding: 20px; }


/* =============================================================================
   14. INVOICE VIEW — ADMIN (view_invoice.php)
   ============================================================================= */
.invoice-view-container {
    background: #fff;
    max-width: 900px;
    margin: 40px auto;
    padding: 60px 80px;
    color: #666;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.inv-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
}

.inv-logo img { max-height: 80px; width: auto; }

.inv-title {
    font-size: 24px;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 60px;
    font-weight: 100;
}

.inv-meta-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 30px;
}

.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.inv-table th {
    color: #aaa;
    border-bottom: 1px solid #eee;
    font-weight: 400;
    letter-spacing: 2px;
    font-size: 11px;
    text-transform: uppercase;
    padding: 10px 0;
}
.inv-table td {
    padding: 20px 0;
    border-bottom: 1px solid #f9f9f9;
    color: #555;
    border-top: none;
    background: transparent;
}
.inv-table tr:hover td { background: transparent; }

.inv-totals-wrap { text-align: right; margin-top: 40px; }
.total-line { margin-bottom: 8px; color: #999; font-size: 14px; }
.total-due-row {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    font-size: 20px;
    color: #333;
    font-weight: bold;
}
.total-due-val { font-size: 20px; font-weight: bold; color: #333; }

.inv-footer {
    margin-top: 100px;
    font-size: 12px;
    color: #bbb;
    border-top: 1px solid #f9f9f9;
    padding-top: 40px;
}


/* =============================================================================
   15. INVOICE VIEW — PUBLIC (pay.php)
   ============================================================================= */
.stripe-btn {
    background: #000;
    color: #fff;
    padding: 20px 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 11px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: opacity 0.3s;
    font-family: inherit;
}
.stripe-btn:hover { opacity: 0.8; }

.paid-badge {
    background: #e6fffa;
    color: #2c7a7b;
    padding: 15px;
    text-align: center;
    border: 1px solid #b2f5ea;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.inv-from { font-size: 14px; line-height: 1.5; color: #555; margin-top: 15px; }

.interac-box {
    background: #fcfcfc;
    border: 2px solid #000;
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 30px;
    text-align: center;
}

.interac-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 24px;
    background: #eee;
    border-radius: 4px;
    letter-spacing: 1px;
    color: #000;
    margin: 15px 0;
}


/* =============================================================================
   16. CLIENT PORTAL (account.php)
   ============================================================================= */
.portal-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.portal-header img { max-height: 90px; }

.profile-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    color: #444;
    font-family: inherit;
}

.btn-save {
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    font-family: inherit;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-save:hover { opacity: 0.8; }

.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    font-size: 13px;
}

/* Portal invoice table */
.portal-inv-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.portal-inv-table th {
    background: #fafafa;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-weight: normal;
}
.portal-inv-table td { padding: 15px; border-bottom: 1px solid #eee; font-size: 13px; }

.portal-badge {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}
.portal-badge.paid   { background: #e6fffa; color: #2c7a7b; }
.portal-badge.sent   { background: #ebf8ff; color: #2b6cb0; }
.portal-badge.viewed { background: #fefcbf; color: #975a16; }
.portal-badge.partial { background: #fefcbf; color: #975a16; }

.portal-action-links a {
    color: #666;
    font-weight: bold;
    font-size: 12px;
    margin-right: 15px;
}


/* =============================================================================
   17. REPORTS PAGE
   ============================================================================= */
.report-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    height: 100%;
}

.report-label {
    color: #99a2bf;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.report-val { font-size: 26px; font-weight: bold; color: #333; }

.val-green  { color: #166534; }
.val-red    { color: #991b1b; }
.val-blue   { color: #1e3a8a; }
.val-purple { color: #6b21a8; }
.val-gold   { color: #b45309; }

.hover-underline:hover { text-decoration: underline !important; text-underline-offset: 4px; opacity: 1; }


/* =============================================================================
   18. RECONCILIATION PAGE
   ============================================================================= */
.recon-row {
    background: #fff;
    border: 1px solid #e0e4eb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    display: flex;
    gap: 40px;
}

.recon-row.is-reconciled { background: #fcfcfc; border-color: #eee; opacity: 0.8; }

.bank-side  { flex: 1; border-right: 1px dashed #e0e4eb; padding-right: 40px; }
.system-side { flex: 1; }

.tx-date { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #99a2bf; margin-bottom: 5px; }
.tx-desc { font-weight: bold; color: #333; font-size: 14px; margin-bottom: 10px; }
.tx-amt  { font-size: 24px; font-weight: bold; color: #166534; }

.match-card {
    border: 1px solid #b2f5ea;
    background: #f0fdf4;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.match-card.already-paid { border-color: #e2e8f0; background: #f8fafc; }

.btn-ignore {
    background: none;
    border: none;
    color: #a71d2a;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-top: 15px;
    font-family: inherit;
}
.btn-ignore:hover { text-decoration: underline; }


/* =============================================================================
   19. BULK DISPATCHER PAGE
   ============================================================================= */
.dispatch-card {
    background: #fff;
    border: 1px solid #e0e4eb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.dispatch-client-header {
    font-size: 14px;
    font-weight: bold;
    color: #1e3a8a;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.svc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f5f5f5;
    font-size: 12px;
}


/* =============================================================================
   20. HOSTING PAGE
   ============================================================================= */
/* Hosting uses the standard table styles — no extra needed */


/* =============================================================================
   21. LOGIN PAGE
   ============================================================================= */
body.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: #fff;
}

.login-wrap {
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.login-logo {
    margin-bottom: 50px;
    animation: fadeUp 1s ease-out;
}

.login-logo img {
    max-height: 100px;
    width: auto;
}

.login-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    font-size: 12px;
    padding: 10px 15px;
    border-radius: 3px;
    margin-bottom: 20px;
    text-align: left;
    letter-spacing: 0.5px;
}

.login-form { text-align: left; animation: fadeUp 1.2s ease-out; }

.login-field { margin-bottom: 16px; }

.login-field label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    font-size: 14px;
    color: #333;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.2s;
}

.login-field input:focus {
    outline: none;
    border-color: #586694;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 11px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.3s;
}
.login-btn:hover { opacity: 0.8; }

.login-tagline {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #cccccc;
    margin-top: 40px;
    animation: fadeUp 1.5s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* =============================================================================
   22. UTILITIES
   ============================================================================= */
.text-right  { text-align: right; }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.text-muted  { color: #aaa !important; }
.body-text   { font-size: 13px; color: #555; }

.year-filter   { max-width: 150px; }
.filter-select { max-width: 180px; }


/* =============================================================================
   23. RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* ─── Tablet: 1024px and below ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .client-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 40px;
    }
    .recon-row { flex-direction: column; gap: 20px; }
    .bank-side { border-right: none; border-bottom: 1px dashed #e0e4eb; padding-right: 0; padding-bottom: 20px; }
}

/* ─── Mobile: 768px and below ──────────────────────────────────────────────── */
@media (max-width: 768px) {

    body { padding: 15px; }

    /* Navigation */
    .top_menu_holder {
        padding: 20px 0 20px 0;
        flex-wrap: wrap;
        align-items: center;
    }

    .logo-area {
        position: static;
        bottom: auto;
        padding-right: 0;
        margin-bottom: 0;
    }

    .logo-area img { max-height: 60px; }

    .menu-toggle { display: flex; }

    .top_menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: left;
        padding: 20px 0 10px 0;
        border-top: 1px solid #f0f0f0;
        margin-top: 15px;
    }

    .top_menu.is-open { display: flex; }

    .top_menu a {
        margin-left: 0;
        margin-bottom: 12px;
        font-size: 13px;
        padding-bottom: 0;
        display: inline-block;
    }

    .top_menu a.active {
        border-bottom: 2px solid #586694;
        padding-bottom: 3px;
    }

    /* Stats bar */
    .stats-bar {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    .stat-item { min-width: unset; }

    /* Client grid */
    .client-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 30px;
    }

    /* Tables — horizontal scroll */
    .table-scroll { overflow-x: auto; }

    /* Make tables scroll on mobile when not wrapped */
    .Main > table,
    .Main > .i9-table,
    div > table:not(.inv-table):not(.portal-inv-table) {
        min-width: 600px;
    }

    /* Invoice view */
    .invoice-view-container {
        padding: 30px 20px;
        margin: 20px 0;
    }

    .inv-top-bar { flex-direction: column; gap: 20px; margin-bottom: 40px; }
    .inv-meta-grid { flex-direction: column; gap: 20px; margin-bottom: 30px; }
    .inv-title { margin-bottom: 30px; font-size: 18px; letter-spacing: 4px; }

    /* Client edit 2-col layout — Bootstrap col-md-4/col-md-8 stacks automatically */

    /* Forms */
    .form-grid { grid-template-columns: 1fr; }

    /* Portal */
    .portal-header { flex-direction: column; gap: 15px; text-align: center; }
    .portal-container { padding: 10px; margin: 20px auto; }

    /* Reports */
    .report-val { font-size: 20px; }

    /* Settings */
    .i9-form-max { max-width: 100%; }
    .settings-box { padding: 15px; }

    /* Reconcile */
    .recon-row { flex-direction: column; padding: 15px; }
    .bank-side { border-right: none; padding-right: 0; border-bottom: 1px dashed #e0e4eb; padding-bottom: 15px; }

    /* Interac box */
    .interac-email { font-size: 13px; padding: 10px; }
}

/* ─── Small phones: 480px and below ──────────────────────────────────────── */
/* Desktop shows full domain + meta; mobile shows short domain, no meta */
.client-url-short    { display: none; }
.client-url-full     { display: block; }
.client-meta-desktop { display: flex; }

@media (max-width: 480px) {
    .client-url-short    { display: block; margin-bottom:50px;}
    .client-url-full     { display: none; }
    .client-meta-desktop { display: none; }

    .client-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        overflow: hidden;
    }
    .invoice-view-container { padding: 20px 12px; }
    .inv-title { font-size: 14px; letter-spacing: 3px; }
    .stats-bar { font-size: 12px; }
    .action-group { flex-wrap: wrap; justify-content: flex-end; }
}