/* ===== Base Styles ===== */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Invoice / Quote Preview Box ===== */
.invoice-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* ===== Table Wrapper (for horizontal scroll on small screens) ===== */
.table-responsive-custom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== Login / Register Cards ===== */
.auth-card {
    max-width: 400px;body { background-color: #f8f9fa; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.invoice-box { background: white; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1); padding: 20px; }
.table-responsive-custom { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.auth-card { max-width: 400px; margin: 50px auto; box-shadow: 0 0 20px rgba(0,0,0,0.1); border: none; border-radius: 10px; }
.auth-card .card-body { padding: 2rem; }
.auth-card h3 { font-weight: 600; color: #333; }
.auth-card .form-control { border-radius: 8px; padding: 10px 15px; }
.auth-card .btn-primary { border-radius: 8px; padding: 10px; font-weight: 600; }
.auth-card a { text-decoration: none; }
.auth-card a:hover { text-decoration: underline; }
@media (max-width: 576px) {
    .invoice-box { padding: 12px; }
    .invoice-box h5 { font-size: 1rem; }
    .invoice-box h6 { font-size: 0.9rem; }
    .invoice-box p { font-size: 0.85rem; margin-bottom: 3px; }
    .table th, .table td { font-size: 0.8rem; padding: 4px 6px; }
    .btn { font-size: 0.8rem; padding: 6px 10px; }
    .d-flex.flex-wrap { gap: 6px; }
    .text-end { text-align: left !important; }
    .row .col-6 { width: 100%; margin-bottom: 10px; }
    .row .col-6.text-end { text-align: left !important; }
    .navbar-brand { font-size: 1rem; }
    .auth-card { margin: 20px 15px; }
    .auth-card .card-body { padding: 1.5rem; }
}
@media (min-width: 577px) and (max-width: 768px) {
    .invoice-box { padding: 16px; }
    .table th, .table td { font-size: 0.9rem; padding: 6px 8px; }
    .auth-card { margin: 40px auto; }
}
.text-muted a { color: #6c757d; }
.text-muted a:hover { color: #343a40; }
.btn-group .dropdown-menu { min-width: 200px; }
    margin: 50px auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 10px;
}
.auth-card .card-body {
    padding: 2rem;
}
.auth-card h3 {
    font-weight: 600;
    color: #333;
}
.auth-card .form-control {
    border-radius: 8px;
    padding: 10px 15px;
}
.auth-card .btn-primary {
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
}
.auth-card a {
    text-decoration: none;
}
.auth-card a:hover {
    text-decoration: underline;
}

/* ===== Mobile Adjustments ===== */
@media (max-width: 576px) {
    .invoice-box {
        padding: 12px;
    }
    .invoice-box h5 {
        font-size: 1rem;
    }
    .invoice-box h6 {
        font-size: 0.9rem;
    }
    .invoice-box p {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }
    .table th,
    .table td {
        font-size: 0.8rem;
        padding: 4px 6px;
    }
    .btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    .d-flex.flex-wrap {
        gap: 6px;
    }
    .text-end {
        text-align: left !important;
    }
    .row .col-6 {
        width: 100%;
        margin-bottom: 10px;
    }
    .row .col-6.text-end {
        text-align: left !important;
    }
    .navbar-brand {
        font-size: 1rem;
    }
    .auth-card {
        margin: 20px 15px;
    }
    .auth-card .card-body {
        padding: 1.5rem;
    }
}

/* ===== Tablet Adjustments ===== */
@media (min-width: 577px) and (max-width: 768px) {
    .invoice-box {
        padding: 16px;
    }
    .table th,
    .table td {
        font-size: 0.9rem;
        padding: 6px 8px;
    }
    .auth-card {
        margin: 40px auto;
    }
}

/* ===== Utility Tweaks ===== */
.text-muted a {
    color: #6c757d;
}
.text-muted a:hover {
    color: #343a40;
}
.btn-group .dropdown-menu {
    min-width: 200px;
}