* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #06b6d4;
    --starbor-blue: #2a5298;
    --starbor-navy: #1e3c72;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --page-bg: #f8fafc;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: var(--page-bg);
    color: var(--text-primary);
    padding: 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08);
    border: 1px solid var(--border-color);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.app-header {
    background: linear-gradient(135deg, var(--starbor-navy) 0%, var(--starbor-blue) 100%);
    color: #fff;
    padding: 20px 24px;
    border-radius: 16px;
    border: none;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(30, 60, 114, 0.25);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    height: 52px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    background: transparent;
}

.app-header h1 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.app-header .subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-top: 4px;
}

.app-header .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.app-header .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.app-header .btn-logout {
    background: rgba(239, 68, 68, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-header h1 {
    font-size: 1.75rem;
    color: var(--starbor-navy);
}

.subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 4px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.campaign-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-section {
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-section:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.form-section h2 {
    font-size: 1.15rem;
    color: var(--starbor-navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.15);
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.flex-1 { flex: 1; min-width: 140px; }
.flex-2 { flex: 2; min-width: 200px; }

.form-group { margin-bottom: 14px; }

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.default-offer-note {
    margin: 0 0 12px;
    padding: 10px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e40af;
    font-size: 0.92rem;
    font-weight: 500;
}

.notes-extra-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.readonly-field {
    background: #f1f5f9 !important;
    color: #475569;
}

.readonly-field.highlight {
    background: #dbeafe !important;
    color: #1d4ed8;
    font-weight: 600;
}

.price-info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.price-note {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
}

.totals-box {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95rem;
}

.total-row.grand {
    border-top: 2px solid var(--starbor-navy);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--starbor-navy);
}

.vat-settings { margin-top: 12px; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: 500;
}

.table-wrap { overflow-x: auto; }

.iskonto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.iskonto-table th,
.iskonto-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.iskonto-table th {
    background: linear-gradient(135deg, var(--starbor-navy), var(--starbor-blue));
    color: #fff;
    font-weight: 600;
}

.iskonto-table tr.active-tier {
    background: rgba(99, 102, 241, 0.12);
    font-weight: 600;
}

.iskonto-table tr.active-tier td {
    color: var(--primary-dark);
}

.iskonto-summary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.08));
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--starbor-navy);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.rules-list {
    padding-left: 20px;
    font-size: 0.9rem;
    color: #475569;
}

.rules-list li { margin-bottom: 8px; }

.eligibility-checks {
    margin-top: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

.eligibility-checks h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #334155;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

button, .btn-primary, .btn-secondary, .btn-logout {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
}

.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-add-row {
    background: linear-gradient(135deg, var(--secondary-color), #0891b2);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    width: auto;
    margin: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.modal.is-open {
    display: flex;
}

.modal-bayi {
    z-index: 1100;
}

.modal-preview {
    z-index: 1000;
}

body.modal-open {
    overflow: hidden;
}

.modal-content {
    background: #fff;
    margin: 0;
    padding: 28px;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    position: relative;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
}

.modal-large {
    max-width: 900px;
    overflow-y: auto;
}

.modal-bayi-content {
    max-width: 520px;
}

.close {
    position: absolute;
    right: 16px; top: 12px;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.bayi-count {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin: 12px 0;
}

.add-bayi-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.add-bayi-form input { flex: 1; }

.bayi-list {
    flex: 1;
    min-height: 0;
    max-height: min(440px, calc(100vh - 300px));
    overflow-y: auto;
    padding-right: 4px;
}

.bayi-list::-webkit-scrollbar {
    width: 6px;
}

.bayi-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.bayi-message {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.bayi-message.success {
    background: #d1fae5;
    color: #065f46;
}

.bayi-message.error {
    background: #fee2e2;
    color: #b91c1c;
}

.bayi-loading {
    text-align: center;
    color: #64748b;
    padding: 24px 12px;
    font-size: 0.9rem;
}

.bayi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin-bottom: 6px;
    background: var(--card-bg, #fff);
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.bayi-edit-form {
    display: flex;
    flex: 1;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.bayi-edit-input {
    flex: 1;
    margin-bottom: 0 !important;
    padding: 8px 10px !important;
    font-size: 0.9rem !important;
}

.bayi-remove-form {
    margin: 0;
}

.btn-save {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    width: auto;
    margin: 0;
}

.form-section-inner {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header-row h3 {
    font-size: 1rem;
    color: var(--starbor-navy);
    margin: 0;
}


.btn-logout {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 10px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.line-items-header {
    display: grid;
    gap: 8px;
    padding: 0 12px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.line-items-header.starbor-header {
    grid-template-columns: 1fr 1fr 1fr 50px 0.9fr 36px;
}

.line-items-header.material-header {
    grid-template-columns: 2fr 1fr 50px 0.9fr 36px;
}

.line-row {
    display: grid;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.line-row.starbor-row {
    grid-template-columns: 1fr 1fr 1fr 50px 0.9fr 36px;
}

.line-row.material-row {
    grid-template-columns: 2fr 1fr 50px 0.9fr 36px;
}

.vat-detail-box {
    margin: 12px 0;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.vat-detail-box.accountant-only {
    border-color: #93c5fd;
    background: #eff6ff;
}

.vat-detail-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.vat-detail-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vat-detail-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    color: #475569;
    padding: 4px 0;
    border-bottom: 1px solid #e2e8f0;
}

.vat-detail-item:last-child {
    border-bottom: none;
}

.vat-detail-empty {
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
}

.vat-none {
    color: #94a3b8;
    font-style: italic;
}

.offer-vat-detail {
    margin: 14px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 10px;
}

.offer-vat-detail strong {
    display: block;
    margin-bottom: 8px;
    color: #1e3a5f;
}

.offer-vat-detail .vat-detail-item {
    font-size: 10px;
}


.field-note {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: normal;
}

.line-row .form-group {
    margin-bottom: 0;
}

.line-row input {
    margin-bottom: 0 !important;
    padding: 8px 10px !important;
    font-size: 0.9rem !important;
}

.row-vat-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
}

.row-vat-check input {
    width: auto !important;
}

.cari-section h3 {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 12px;
}

.cari-row {
    align-items: flex-end;
}

.cari-vat-label {
    margin-top: 8px;
    white-space: nowrap;
}

.flex-0 { flex: 0 0 auto; }

@media (max-width: 768px) {
    .line-items-header { display: none; }
    .line-row.starbor-row,
    .line-row.material-row {
        grid-template-columns: 1fr 1fr;
    }
    .line-row .btn-remove-row {
        grid-column: span 2;
        width: 100%;
    }
}

.btn-remove-row {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-bottom: 2px;
    padding: 0;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.85rem;
}

.success-msg {
    background: #d1fae5;
    color: #065f46;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.autocomplete-wrap {
    position: relative;
}

.autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.autocomplete-list.show {
    display: block;
}

.autocomplete-list li {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.autocomplete-list li:last-child {
    border-bottom: none;
}

.autocomplete-list li:hover,
.autocomplete-list li.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.autocomplete-list .no-result {
    color: #64748b;
    cursor: default;
    font-style: italic;
}

.autocomplete-list .no-result:hover {
    background: #fff;
    color: #64748b;
}

.notification {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e3a5f;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    z-index: 2000;
}

/* Login */
.login-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 45%, #312e81 100%);
}

.login-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: loginFloat 18s ease-in-out infinite;
}

.login-bg-shapes .shape-1 {
    width: 420px;
    height: 420px;
    background: #6366f1;
    top: -120px;
    left: -80px;
}

.login-bg-shapes .shape-2 {
    width: 360px;
    height: 360px;
    background: #06b6d4;
    bottom: -100px;
    right: -60px;
    animation-delay: -6s;
}

.login-bg-shapes .shape-3 {
    width: 280px;
    height: 280px;
    background: #818cf8;
    top: 40%;
    left: 55%;
    animation-delay: -12s;
}

@keyframes loginFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 25px) scale(0.95); }
}

.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 960px;
    min-height: 560px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.login-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.95) 0%, rgba(49, 46, 129, 0.98) 100%);
    color: #fff;
}

.login-brand-logo {
    max-height: 52px;
    width: auto;
    margin-bottom: 28px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.login-brand h2 {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.login-brand > p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.login-features li i {
    color: #a5f3fc;
    font-size: 0.85rem;
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
    background: #fff;
}

.login-card-header {
    margin-bottom: 32px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-bottom: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 999px;
}

.login-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--starbor-navy);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.login-field .input-wrap {
    position: relative;
}

.login-field .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s;
}

.login-field input {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-field input::placeholder {
    color: #94a3b8;
}

.login-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.login-field .input-wrap:focus-within .input-icon {
    color: var(--primary-color);
}

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.error-msg {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 4px;
    font-size: 0.88rem;
    border: 1px solid #fecaca;
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.btn-login:hover i {
    transform: translateX(4px);
}

.login-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .login-page {
        padding: 16px;
        align-items: flex-start;
        padding-top: 32px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        max-width: 420px;
    }

    .login-brand {
        padding: 32px 28px;
    }

    .login-brand > p,
    .login-features {
        display: none;
    }

    .login-brand h2 {
        font-size: 1.35rem;
        margin-bottom: 0;
    }

    .login-brand-logo {
        margin-bottom: 16px;
    }

    .login-card {
        padding: 32px 28px 36px;
    }

    .login-card h1 {
        font-size: 1.45rem;
    }
}

/* PDF Preview styles */
#offerPreview {
    background: #fff;
    padding: 24px;
    font-size: 11px;
    color: #333;
}

.offer-header {
    background: linear-gradient(135deg, var(--starbor-navy) 0%, var(--starbor-blue) 100%);
    color: #fff;
    text-align: center;
    margin: -24px -24px 24px;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
}

.offer-header .logo-container {
    margin-bottom: 10px;
}

.offer-header .main-logo {
    max-height: 48px;
    max-width: 130px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.offer-title {
    font-size: 18px;
    color: #fff;
    margin: 8px 0;
}

.offer-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
}

.offer-section-title {
    font-size: 12px;
    color: var(--starbor-navy);
    margin: 16px 0 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-info-box {
    background: #f8fafc;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.info-item { margin-bottom: 6px; }

.offer-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 10px;
}

.offer-table th {
    background: linear-gradient(135deg, var(--starbor-navy), var(--starbor-blue));
    color: #fff;
    padding: 8px;
    text-align: left;
}

.offer-table td {
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.offer-totals-box {
    text-align: right;
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.offer-total {
    font-size: 14px;
    font-weight: 700;
    color: #1e3a5f;
    margin-top: 8px;
}

.offer-notes {
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 10px;
    line-height: 1.5;
    color: #334155;
}

.offer-rules {
    margin-top: 20px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 9px;
}

@media (max-width: 768px) {
    .container { padding: 16px; }
    .page-header { flex-direction: column; }
    .form-row { flex-direction: column; }
}

@media print {
    body * { visibility: hidden; }
    #offerPreview, #offerPreview * { visibility: visible; }
    #offerPreview { position: absolute; left: 0; top: 0; width: 100%; }
}
