/* ==========================================================================
   Golden Gate Hotel - Staff Quotation Portal Stylesheet
   Complete Dynamic Control Drawer, Auth Overlay & Print Layout
   ========================================================================== */

:root {
    --primary-navy: #0f172a;
    --secondary-slate: #334155;
    --accent-gold: #c59d5f;
    --accent-gold-dark: #9e793b;
    --accent-gold-light: #f9f5ec;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-canvas: #f8fafc;
    --card-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.1), 0 0 10px rgba(0, 0, 0, 0.02);
    --danger-red: #ef4444;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-canvas);
    line-height: 1.5;
    font-size: 13px;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   1. Access Gate / Password Overlay
   ========================================================================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(197, 157, 95, 0.3);
    text-align: center;
}

.login-header {
    margin-bottom: 25px;
}

.login-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--accent-gold);
    margin-bottom: 12px;
}

.login-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: 1px;
}

.login-header p {
    font-size: 12px;
    color: var(--accent-gold-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.login-form .form-group {
    text-align: left;
    margin-bottom: 18px;
}

.login-form label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--secondary-slate);
    margin-bottom: 6px;
}

.login-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: border 0.2s;
}

.login-form input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(197, 157, 95, 0.2);
}

.login-error {
    color: var(--danger-red);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    display: none;
}

.login-error.is-visible {
    display: block;
}

.login-footer {
    margin-top: 20px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   2. On-Screen Action Bar & App Container
   ========================================================================== */
.action-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 157, 95, 0.3);
    padding: 12px 24px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-brand {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-brand .dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-primary, .btn-secondary, .btn-logout, .btn-sm-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #c59d5f, #9e793b);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(197, 157, 95, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 12px;
}

.btn-logout:hover {
    background: var(--danger-red);
    color: #ffffff;
}

.btn-sm-gold {
    background: var(--accent-gold-light);
    color: var(--accent-gold-dark);
    border: 1px solid rgba(197, 157, 95, 0.4);
    font-size: 11.5px;
    padding: 4px 10px;
}

.btn-sm-gold:hover {
    background: var(--accent-gold);
    color: #ffffff;
}

.full-width {
    width: 100%;
}

/* ==========================================================================
   3. Form Drawer / Panel
   ========================================================================== */
.form-drawer {
    position: fixed;
    top: 57px;
    left: 0;
    width: 440px;
    height: calc(100vh - 57px);
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 900;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-drawer.closed {
    transform: translateX(-100%);
}

.drawer-header {
    background: var(--primary-navy);
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-gold);
}

.drawer-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

.drawer-body {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
}

.form-section {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}

.form-section h4 {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}

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

.section-header-flex h4 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.col-full {
    grid-column: span 2;
}

.input-field label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--secondary-slate);
    margin-bottom: 4px;
}

.input-field input, .input-field select, .input-field textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    background: #ffffff;
}

.input-field input:focus, .input-field select:focus, .input-field textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(197, 157, 95, 0.2);
}

/* Service Item Card in Drawer */
.service-item-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
}

.service-item-card .card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.service-item-card .card-head span {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold-dark);
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: var(--danger-red);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.btn-remove-item:hover {
    text-decoration: underline;
}

/* ==========================================================================
   4. Main Document Container
   ========================================================================== */
.page-wrapper {
    max-width: 920px;
    margin: 30px auto 60px auto;
    padding: 0 15px;
    transition: margin-left 0.3s ease;
}

/* Shift page when drawer is open */
.app-container.drawer-open .page-wrapper {
    margin-left: 460px;
}

.quotation-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 45px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

/* Header Section */
.doc-header {
    margin-bottom: 25px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
}

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

.brand-logo {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--accent-gold);
}

.brand-titles .hotel-name {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: 1px;
    line-height: 1.1;
}

.brand-titles .hotel-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-gold-dark);
    letter-spacing: 2px;
    margin-top: 4px;
}

.contact-block {
    text-align: right;
    font-size: 11.5px;
    color: var(--secondary-slate);
}

.contact-line {
    margin-bottom: 2px;
}

.contact-tax {
    margin-top: 6px;
    font-weight: 600;
    color: var(--primary-navy);
    background: var(--accent-gold-light);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.header-accent-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-navy) 0%, var(--accent-gold) 50%, var(--primary-navy) 100%);
    border-radius: 2px;
}

/* Title Bar */
.doc-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-navy);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.title-meta .doc-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 2px;
}

.title-meta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.meta-pills {
    display: flex;
    gap: 20px;
}

.pill-item {
    text-align: right;
}

.pill-label {
    display: block;
    font-size: 9.5px;
    color: #94a3b8;
    letter-spacing: 1px;
    font-weight: 600;
}

.pill-value {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.gold-text {
    color: var(--accent-gold) !important;
}

/* Client & Event Info */
.client-section {
    margin-bottom: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.box-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-gold-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.client-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.client-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.event-box p {
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

/* Table Styling */
.table-section {
    margin-bottom: 25px;
}

.quotation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.quotation-table th {
    background: #f1f5f9;
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    border-top: 2px solid var(--primary-navy);
    border-bottom: 2px solid var(--border-color);
}

.quotation-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.col-num { width: 5%; }
.col-desc { width: 48%; }
.col-rate { width: 17%; }
.col-qty { width: 15%; }
.col-total { width: 15%; }

.text-right { text-align: right; }
.text-center { text-align: center; }

.item-title {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 13px;
    margin-bottom: 4px;
}

.item-desc {
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.rate-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.amount-cell {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 13.5px;
}

/* Totals & Breakdown */
.totals-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.unit-breakdown-card {
    background: var(--accent-gold-light);
    border: 1px solid rgba(197, 157, 95, 0.3);
    border-radius: 8px;
    padding: 16px;
}

.card-subtitle {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-gold-dark);
    margin-bottom: 8px;
}

.highlight-row {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(197, 157, 95, 0.3);
}

.words-box {
    margin-top: 10px;
}

.words-label {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: block;
}

.words-text {
    font-size: 11.5px;
    font-style: italic;
    font-weight: 600;
    color: var(--primary-navy);
    line-height: 1.4;
    margin-top: 2px;
}

.totals-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    margin-bottom: 8px;
    color: var(--secondary-slate);
}

.grand-total-row {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-navy);
    border-top: 2px solid var(--primary-navy);
    padding-top: 10px;
    margin-top: 6px;
    margin-bottom: 0;
}

.grand-total-row strong {
    color: var(--accent-gold-dark);
    font-size: 16px;
}

/* Terms & Compliance */
.terms-section {
    margin-bottom: 25px;
}

.terms-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terms-box, .compliance-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 18px;
}

.terms-box h4, .compliance-box h4 {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--primary-navy);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.terms-box ol {
    margin-left: 18px;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.terms-box li {
    margin-bottom: 4px;
}

.compliance-box {
    background: #fafbfc;
}

.checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px 20px;
    font-size: 11.5px;
    color: var(--text-dark);
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: default;
    line-height: 1.4;
}

.check-item input[type="checkbox"] {
    accent-color: var(--accent-gold-dark);
    width: 14px;
    height: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Signatures & Footer */
.doc-footer {
    margin-top: 30px;
}

.sig-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
}

.sig-box {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.sig-title {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-gold-dark);
    margin-bottom: 15px;
}

.sig-line-space {
    height: 50px;
    display: flex;
    align-items: center;
}

.digital-stamp {
    border: 2px dashed var(--accent-gold);
    color: var(--accent-gold-dark);
    font-family: 'Cinzel', serif;
    font-size: 9.5px;
    font-weight: 700;
    text-align: center;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--accent-gold-light);
    letter-spacing: 0.5px;
}

.sig-name {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 12px;
}

.sig-role {
    font-size: 11px;
    color: var(--text-muted);
}

.sig-date {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-note {
    text-align: center;
    font-size: 10.5px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    font-style: italic;
}

/* ==========================================================================
   6. Document Attachments & File Upload (Form Drawer)
   ========================================================================== */

/* Section Description Hint */
.section-desc-hint {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

/* Quick Preset Chips */
.quick-preset-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.preset-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--accent-gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preset-chip {
    background: var(--accent-gold-light);
    color: var(--primary-navy);
    border: 1px solid rgba(197, 157, 95, 0.4);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.preset-chip:hover {
    background: var(--accent-gold);
    color: #ffffff;
    border-color: var(--accent-gold-dark);
    transform: translateY(-1px);
}

/* Upload Dropzone */
.upload-section {
    margin-bottom: 14px;
}

.upload-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    background: #ffffff;
}

.upload-dropzone:hover {
    border-color: var(--accent-gold);
    background: var(--accent-gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 157, 95, 0.12);
}

.upload-dropzone.dragover {
    border-color: var(--accent-gold);
    background: var(--accent-gold-light);
    box-shadow: 0 0 0 3px rgba(197, 157, 95, 0.2);
    transform: scale(1.01);
}

.dropzone-icon {
    color: var(--accent-gold-dark);
    margin-bottom: 4px;
    display: flex;
    justify-content: center;
}

.dropzone-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 2px;
}

.dropzone-sub {
    font-size: 10.5px;
    color: var(--text-muted);
}

.hidden-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Dynamic Documents List */
.dynamic-documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.empty-docs-hint {
    text-align: center;
    padding: 20px 14px;
    background: #ffffff;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 11.5px;
}

.dynamic-doc-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    position: relative;
    transition: all 0.2s ease;
}

.dynamic-doc-card.is-active {
    border-left: 3px solid var(--accent-gold);
}

.dynamic-doc-card.is-disabled {
    opacity: 0.6;
    background: #f8fafc;
}

.doc-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.doc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.doc-check-toggle {
    accent-color: var(--accent-gold-dark);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.doc-index-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--accent-gold-dark);
    letter-spacing: 0.5px;
}

.btn-remove-doc {
    background: transparent;
    border: none;
    color: var(--danger-red);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
}

.btn-remove-doc:hover {
    text-decoration: underline;
}

.doc-title-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-navy);
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s;
}

.doc-title-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(197, 157, 95, 0.2);
}

/* Document File Zone */
.doc-file-zone {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
}

.attach-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary-slate);
    background: #f8fafc;
    border: 1px dashed var(--border-color);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: all 0.15s ease;
}

.attach-file-btn:hover {
    background: var(--accent-gold-light);
    border-color: var(--accent-gold);
    color: var(--accent-gold-dark);
}

.attached-file-preview-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
}

.preview-thumbnail-box {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: #e2e8f0;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.doc-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pdf-icon-box {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-gold-dark);
    letter-spacing: 0.5px;
}

.attached-file-meta {
    flex: 1;
    min-width: 0;
}

.file-name-text {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta-sub {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.file-actions-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.btn-action-mini {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #ffffff;
    color: var(--secondary-slate);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.btn-action-mini:hover {
    background: var(--accent-gold-light);
    border-color: var(--accent-gold);
    color: var(--accent-gold-dark);
}

.btn-action-mini.remove-doc-file:hover {
    background: #fef2f2;
    border-color: var(--danger-red);
    color: var(--danger-red);
}

/* ==========================================================================
   7. Image Editor Modal
   ========================================================================== */
.image-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.editor-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
}

.editor-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(197, 157, 95, 0.3);
    overflow: hidden;
    animation: editorSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes editorSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--primary-navy);
    color: #ffffff;
}

.editor-header h3 {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

.editor-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0 4px;
}

.editor-close-btn:hover {
    color: #ffffff;
}

.editor-body {
    padding: 20px;
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.editor-canvas-wrap {
    width: 100%;
    max-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    padding: 16px;
}

.editor-preview-img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.editor-file-name {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.editor-controls {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
    justify-content: center;
    flex-wrap: wrap;
}

.editor-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    color: var(--secondary-slate);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.editor-btn:hover {
    background: var(--accent-gold-light);
    border-color: var(--accent-gold);
    color: var(--accent-gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(197, 157, 95, 0.2);
}

.editor-btn-primary {
    background: linear-gradient(135deg, #c59d5f, #9e793b);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(197, 157, 95, 0.4);
}

.editor-btn-primary:hover {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(197, 157, 95, 0.5);
}

/* ==========================================================================
   8. Attachment Pages (Print Document)
   ========================================================================== */
.attachment-pages-section {
    display: none;
}

.attachment-page {
    page-break-before: always;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 3px solid var(--primary-navy);
    width: 100%;
}

.attachment-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.attachment-page-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.attachment-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--accent-gold);
}

.attachment-hotel-name {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: 0.5px;
}

.attachment-ref {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.attachment-page-label {
    text-align: right;
}

.attachment-badge {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-gold-dark);
    background: var(--accent-gold-light);
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 4px;
}

.attachment-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-navy);
    text-transform: capitalize;
}

.attachment-page-body {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.pdf-rendered-body {
    background: #ffffff;
    padding: 0;
}

.attachment-full-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.attachment-page-footer {
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   9. Print Stylesheet (@media print)
   ========================================================================== */
@page {
    size: A4 portrait;
    margin: 10mm 12mm 10mm 12mm;
}

@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }

    .no-print, .form-drawer, .action-bar, .login-overlay {
        display: none !important;
    }

    .app-container.drawer-open .page-wrapper, .page-wrapper {
        margin: 0 !important;
        max-width: 100% !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .quotation-card {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .doc-header, .doc-title-bar, .client-section, .table-section, .totals-section, .terms-section, .doc-footer {
        page-break-inside: avoid;
    }

    .doc-title-bar {
        background: #0f172a !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .unit-breakdown-card {
        background: #f9f5ec !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .quotation-table th {
        background: #f1f5f9 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Attachment Pages Print Styles */
    .attachment-pages-section {
        display: block !important;
        width: 100% !important;
    }

    .attachment-page {
        page-break-before: always !important;
        page-break-inside: avoid;
        margin-top: 0 !important;
        padding-top: 10px !important;
        border-top: none !important;
        width: 100% !important;
    }

    .attachment-page-header {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        width: 100% !important;
    }

    .attachment-badge {
        background: #f9f5ec !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .attachment-page-body {
        background: #ffffff !important;
        border: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        min-height: auto !important;
        padding: 0 !important;
        width: 100% !important;
        page-break-inside: avoid;
    }

    .attachment-full-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        display: block !important;
        margin: 0 !important;
    }

    .image-editor-modal {
        display: none !important;
    }
}

