:root {
    --bg: #000000;
    --panel: #0a0a0a;
    --input: #141414;
    --electric: #00b4d8;
    --electric-hover: #0096b4;
    --silver: #c8cdd4;
}

body { background: var(--bg); }
.bg-panel { background: var(--panel); color: #fff; border-color: #222 !important; }
.login-page {
    background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 180, 216, 0.12), transparent 50%), var(--bg);
}
.login-card {
    border: 1px solid rgba(0, 180, 216, 0.2) !important;
    box-shadow: 0 0 40px rgba(0, 180, 216, 0.08) !important;
}
.bg-input { background: var(--input); }
.form-control, .form-select, textarea {
    color: #f4f8ff !important;
}
.form-control::placeholder, textarea::placeholder {
    color: #8aa0bd !important;
    opacity: 1;
}
.form-control:focus, .form-select:focus, textarea:focus {
    color: #ffffff !important;
    background: var(--input) !important;
}
.input-group-text {
    color: #f4f8ff !important;
}
.force-light-input,
.force-light-input:-webkit-autofill,
.force-light-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    transition: background-color 9999s ease-in-out 0s;
}
.login-logo-full {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    display: inline-block;
}
.text-electric { color: var(--electric); }
.btn-electric { background: var(--electric); color: #0a0a0a; border: none; font-weight: 600; }
.btn-electric:hover { background: var(--electric-hover); color: #fff; }
.brand-logo-nav {
    height: 44px;
    width: auto;
    max-width: min(340px, 52vw);
    object-fit: contain;
    object-position: left center;
}
.settings-logo-preview {
    max-width: 280px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.list-group-item { background: transparent; color: #d7d7d7; border: 0; }
.list-group-item.active { background: var(--electric); border-radius: 8px; }
.table-dark { --bs-table-bg: #121821; --bs-table-striped-bg: #161f2c; }
.product-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #2f3e55;
}
.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chart-row {
    display: grid;
    grid-template-columns: 100px 1fr 90px;
    align-items: center;
    gap: 10px;
}
.chart-label {
    color: #c8d8eb;
    font-size: 0.9rem;
}
.chart-track {
    height: 12px;
    background: #1a2536;
    border-radius: 999px;
    overflow: hidden;
}
.chart-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b4d8, #48cae4);
    border-radius: 999px;
}
.chart-value {
    text-align: right;
    color: #eff7ff;
    font-size: 0.88rem;
}
.print-quotation {
    display: none;
    position: relative;
}
.print-watermark {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(0, 180, 216, 0.07);
    pointer-events: none;
    z-index: 0;
}
.print-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 2px solid #dbe7f3;
    padding-bottom: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}
.print-logo {
    width: auto;
    max-width: 200px;
    max-height: 88px;
    height: auto;
    object-fit: contain;
}
.print-company h2 {
    margin: 0;
    font-size: 1.35rem;
}
.print-company p,
.print-meta p,
.print-client p {
    margin: 2px 0;
    font-size: 0.9rem;
}
.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    position: relative;
    z-index: 2;
}
.print-table th,
.print-table td {
    border: 1px solid #d5dde6;
    padding: 8px;
    font-size: 0.9rem;
}
.print-notes {
    margin-top: 12px;
    position: relative;
    z-index: 2;
}
.print-terms {
    margin-top: 10px;
    border: 1px solid #d5dde6;
    border-radius: 6px;
    padding: 8px 10px;
    background: #f8fbff;
    position: relative;
    z-index: 2;
}
.print-terms p {
    margin-bottom: 4px;
    font-size: 0.88rem;
}
.print-contract-clauses {
    margin-top: 10px;
    border: 1px dashed #b8c8da;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fbfdff;
    position: relative;
    z-index: 2;
}
.print-contract-clauses h6 {
    margin-bottom: 6px;
}
.print-contract-clauses ol {
    margin: 0;
    padding-left: 18px;
}
.print-contract-clauses li {
    margin-bottom: 4px;
    font-size: 0.86rem;
}
.print-notes h6 {
    margin-bottom: 6px;
}
.print-notes p {
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.print-totals {
    margin-left: auto;
    margin-top: 14px;
    width: 280px;
    position: relative;
    z-index: 2;
}
.print-totals p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.print-totals .total {
    border-top: 2px solid #1f2f42;
    padding-top: 6px;
    font-size: 1.02rem;
}
.print-footer {
    margin-top: 22px;
    border-top: 1px solid #d5dde6;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    position: relative;
    z-index: 2;
}
.print-footer a {
    color: #0096b4;
    text-decoration: none;
}
.print-signatures {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}
.print-signatures > div {
    flex: 1;
    text-align: center;
}
.sign-line {
    border-top: 1px solid #3a4b60;
    margin-bottom: 6px;
}
.print-signatures p {
    margin: 0;
    font-size: 0.84rem;
}
@media print {
    body * {
        visibility: hidden !important;
    }
    #printQuotation,
    #printQuotation * {
        visibility: visible !important;
    }
    #printQuotation {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    nav, .list-group, .card.bg-panel { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    @page {
        size: A4;
        margin: 12mm;
    }
    .print-quotation {
        display: block !important;
        background: #fff !important;
        color: #000 !important;
        padding: 4px;
        min-height: 270mm;
    }
}
