﻿*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:linear-gradient(180deg,#f4f7fb 0%,#edf2f8 100%);color:#1d2733}.top{background:linear-gradient(135deg,#3f0d3d,#5a1a4b 52%,#7c244a);color:white;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 8px 24px rgba(61,14,42,.22)}.top a{color:rgba(255,255,255,.9);text-decoration:none;margin-left:16px;font-weight:600}.top a:hover{color:#fff}.brand{display:flex;align-items:center;gap:10px;flex-shrink:0}.brand-logo{height:30px!important;width:auto!important;max-width:135px!important;object-fit:contain;display:block;flex-shrink:0}.brand-text{font-weight:700;letter-spacing:.04em;font-size:11px;white-space:nowrap}.wrap{max-width:1200px;margin:24px auto;padding:0 16px}.card{background:white;border-radius:14px;padding:20px;box-shadow:0 8px 24px rgba(15,23,42,.06);margin-bottom:20px;border:1px solid rgba(148,163,184,.12)}.flash-message{display:flex;align-items:flex-start;gap:12px;background:linear-gradient(135deg,#fff1f2,#fef2f2);border:1px solid #f5c2c7;color:#7a1d28;border-radius:12px;padding:14px 16px;margin:0 0 18px;box-shadow:0 8px 20px rgba(122,29,40,.08)}.flash-message.flash-success{background:linear-gradient(135deg,#ecfdf5,#f0fdf4);border-color:#a7f3d0;color:#065f46}.flash-message.flash-info{background:linear-gradient(135deg,#eff6ff,#f8fbff);border-color:#bfdbfe;color:#1d4ed8}.flash-icon{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;background:#fff;flex-shrink:0}.flash-message.flash-error .flash-icon{color:#b42318}.flash-message.flash-success .flash-icon{color:#047857}.flash-message.flash-info .flash-icon{color:#1d4ed8}.flash-message strong{display:block;margin-bottom:2px;font-size:13px}.flash-message div:last-child{font-size:14px;line-height:1.5}.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.dashboard-hero h1{margin:0;font-size:28px;letter-spacing:-.03em}.dashboard-subtitle{color:#64748b;margin-top:6px;font-size:14px}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.stat-card{background:linear-gradient(135deg,#ffffff,#f8fafc);border:1px solid rgba(148,163,184,.18);border-radius:16px;padding:20px;box-shadow:0 8px 20px rgba(15,23,42,.04)}.stat-card .muted{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#64748b}.stat{font-size:34px;font-weight:800;letter-spacing:-.04em;color:#0f172a;margin-top:8px}.stat-card.accent-1{background:linear-gradient(135deg,#eef6ff,#f5f9ff)}.stat-card.accent-2{background:linear-gradient(135deg,#effcf5,#f4fff8)}.stat-card.accent-3{background:linear-gradient(135deg,#fff7ed,#fffbf5)}.panel-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.panel-header h2{margin:0;font-size:22px}.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}.c6{grid-column:span 6}.c4{grid-column:span 4}.c3{grid-column:span 3}.c12{grid-column:span 12}label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}input,select,textarea{width:100%;padding:10px;border:1px solid #ccd3da;border-radius:8px;background:white;transition:border-color .15s ease, box-shadow .15s ease}input:focus,select:focus,textarea:focus{outline:none;border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.12)}textarea{min-height:80px}.btn{display:inline-block;padding:10px 14px;border:0;border-radius:10px;background:linear-gradient(135deg,#153a63,#1f4e7a);color:white;text-decoration:none;cursor:pointer;font-weight:700;box-shadow:0 8px 16px rgba(21,58,99,.22);transition:transform .12s ease, box-shadow .12s ease}.btn:hover{transform:translateY(-1px);box-shadow:0 10px 18px rgba(21,58,99,.28)}.btn.gray{background:linear-gradient(135deg,#64748b,#475569)}.btn.red{background:linear-gradient(135deg,#b42318,#d92d20)}.btn.green{background:linear-gradient(135deg,#087443,#0f9f6e)}table{width:100%;border-collapse:collapse;overflow:hidden;border-radius:12px}.th,td{padding:9px;border-bottom:1px solid #e6e8eb;text-align:left;vertical-align:top}th{background:#f8fafc;color:#334155;font-size:12px;text-transform:uppercase;letter-spacing:.06em}td{font-size:14px}tr:hover td{background:#fafcff}.right{text-align:right}.muted{color:#6c7783}.searchbox{position:relative}.results{position:absolute;z-index:20;left:0;right:0;background:#fff;border:1px solid #ccd3da;max-height:260px;overflow:auto;border-radius:10px;box-shadow:0 12px 26px rgba(15,23,42,.08)}.result{padding:10px 12px;cursor:pointer;border-bottom:1px solid #eef2f7}.result:hover{background:#eef4fa}.quotation-document{background:#fff;color:#111;max-width:980px;margin:0 auto;padding:22px 22px 12px;border:1px solid #d7d7d7;box-shadow:0 0 0 1px rgba(0,0,0,.02);font-family:"Times New Roman",Times,serif;line-height:1.35;letter-spacing:0}.quotation-header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid #1b1b1b}.logo-block{display:flex;align-items:flex-end;gap:0;position:relative}.logo-badge{position:relative;width:86px;height:86px;display:flex;align-items:center;justify-content:center;z-index:3;margin-right:-8px}.logo-star{position:relative;width:72px;height:72px;background:linear-gradient(135deg,#f9d95f,#d6a213);clip-path:polygon(50% 0%,61% 35%,100% 35%,68% 57%,79% 100%,50% 72%,21% 100%,32% 57%,0% 35%,39% 35%);box-shadow:0 3px 8px rgba(0,0,0,.12)}.logo-star:before{content:"";position:absolute;inset:7px;background:rgba(255,255,255,.18);clip-path:polygon(50% 0%,61% 35%,100% 35%,68% 57%,79% 100%,50% 72%,21% 100%,32% 57%,0% 35%,39% 35%)}.logo-word-wrapper{position:relative;margin-left:0;z-index:2;padding-bottom:6px}.logo-swoosh{position:absolute;left:6px;top:40px;width:290px;height:62px;border:9px solid #777f85;border-top-color:#777f85;border-left-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-radius:50% 50% 0 0 / 100% 100% 0 0;transform:rotate(-8deg);opacity:.9}.logo-word{font-size:70px;font-weight:700;letter-spacing:-5px;color:#2f2f2f;line-height:1;font-family:"Times New Roman",Times,serif;position:relative;z-index:2;transform:scaleY(1.05)}.company-meta{font-size:12px;line-height:1.6;text-align:left;min-width:300px;font-family:"Times New Roman",Times,serif;color:#111}.company-meta h2{margin:0 0 5px;font-size:20px;font-weight:700;color:#4fa666;letter-spacing:.2px}.company-meta div{color:#111}.customer-section{display:flex;justify-content:space-between;gap:20px;padding-top:18px}.customer-block{width:58%;font-size:14px;line-height:1.5;color:#111}.to-label{font-weight:700;margin-bottom:6px;color:#111}.customer-name{font-weight:700;margin-bottom:4px;color:#111}.meta-block{width:260px;font-size:12px;margin-top:8px;color:#111}.meta-row{display:flex;justify-content:space-between;gap:12px;padding:4px 0;font-size:12px;color:#111}.meta-row span{font-weight:700}.attention-block{display:block;margin:16px 0 12px;font-size:13px;line-height:1.7;color:#111}.editable-inline-form{margin:0 0 16px;padding:12px 14px;border:1px solid #d7d7d7;border-radius:8px;background:#fafafa}.editable-row{display:flex;align-items:center;gap:8px;margin-bottom:6px}.editable-row input{display:inline-block;width:auto;min-width:220px;padding:6px 8px;border:1px solid #bac2ca;border-radius:4px;background:#fff}.subject-label{font-weight:700;color:#111}.quote-title{font-size:22px;font-weight:700;margin:14px 0 10px;text-transform:uppercase;letter-spacing:.5px;color:#111}.quotation-table{border-collapse:collapse;width:100%;border:2px solid #111;background:#fff}.quotation-table th,.quotation-table td{border:1px solid #111;padding:6px 8px;vertical-align:top;font-size:12px;color:#111}.quotation-table th{background:#d9d9d9;font-weight:700;text-align:center}.quotation-table td.right{text-align:right}.totals-box{margin-left:auto;margin-top:12px;width:280px;border:1px solid #111;background:#f3f3f3;color:#111}.total-row{display:flex;justify-content:space-between;padding:8px 10px;border-bottom:1px solid #9b9b9b;font-size:12px;color:#111}.total-row.grand{background:#f4ea00;font-weight:700;color:#111}.terms-box{margin-top:16px;font-size:12px;line-height:1.6;color:#111}.terms-box h4{margin:0 0 8px;font-size:15px;font-weight:700}.signature-box{margin-top:28px;width:280px;margin-right:auto;text-align:left;font-size:12px;line-height:1.5;color:#111}.company-sign{font-weight:700;margin-top:8px;color:#111}.signature-mark{font-size:34px;font-weight:800;color:#1c3c90;letter-spacing:2px;margin:10px 0 4px}.signer-name{font-weight:700;margin-top:8px}.signer-title{font-weight:600}.print-only{display:none}@media print{@page{size:A4;margin:10mm 12mm 10mm 12mm}html,body{background:#fff;margin:0;padding:0;width:100%}.top,.no-print{display:none!important}.wrap{max-width:none;margin:0;padding:0}.card{box-shadow:none;border:none;padding:0;margin:0;background:transparent}.quotation-document{max-width:none;width:100%;margin:0;padding:0;border:none;box-shadow:none;page-break-after:avoid}.quotation-header,.customer-section,.attention-block,.quote-title,.quotation-table,.totals-box,.terms-box,.signature-box{width:100% !important;max-width:none !important}.quotation-table,.quotation-table th,.quotation-table td{page-break-inside:avoid;break-inside:avoid}.quotation-table{table-layout:fixed}.quotation-table th,.quotation-table td{overflow-wrap:anywhere}.quotation-table th:nth-child(1),.quotation-table td:nth-child(1){width:5% !important}.quotation-table th:nth-child(2),.quotation-table td:nth-child(2){width:7% !important}.quotation-table th:nth-child(3),.quotation-table td:nth-child(3){width:12% !important}.quotation-table th:nth-child(4),.quotation-table td:nth-child(4){width:25% !important}.quotation-table th:nth-child(5),.quotation-table td:nth-child(5){width:14% !important}.quotation-table th:nth-child(6),.quotation-table td:nth-child(6){width:10% !important}.quotation-table th:nth-child(7),.quotation-table td:nth-child(7){width:15% !important}.quotation-table th:nth-child(8),.quotation-table td:nth-child(8){width:12% !important}.quotation-table th,.quotation-table td{padding:4px 6px;font-size:11px}.quotation-table td.right{text-align:right}.totals-box{margin-top:12px;margin-left:auto;margin-right:0}.total-row{padding:6px 8px;font-size:11px}.terms-box{margin-top:12px}.signature-box{margin-top:18px}.company-meta{min-width:0}.customer-section{display:flex !important}.customer-block{width:58% !important}.meta-block{width:260px !important;margin-left:auto;margin-top:8px}}@media(max-width:750px){.c6,.c4,.c3{grid-column:span 12}.top{display:block}.top nav{margin-top:10px}.top a{margin:0 12px 0 0}.quotation-header,.customer-section{display:block}.company-meta,.customer-block,.meta-block{width:100%}.logo-word{font-size:56px}.quotation-document{padding:12px}.totals-box{width:100%}}@media print{.no-print,.top{display:none!important}.print-only{display:block}.wrap{max-width:none;margin:0;padding:0}.card{box-shadow:none;padding:0;border:none;border-radius:0}.quotation-document{border:none;box-shadow:none;padding:0;max-width:none}}
@media print{.quotation-document{font-family:Arial,sans-serif;font-size:11px;line-height:1.2;padding:0 0 10px}.quotation-header{height:150px;padding:0 0 12px;border-bottom:1px solid #111;align-items:flex-start;gap:18px;margin-bottom:8px}.logo-block{width:52%;height:145px;align-items:flex-end}.logo-badge{width:92px;height:108px}.logo-star{width:84px;height:84px}.logo-word{font-size:66px;letter-spacing:-4px}.logo-swoosh{width:250px;height:58px;top:36px}.company-logo{display:block;width:320px;max-width:100%;height:120px;object-fit:contain;object-position:left top;margin-right:10px}.company-meta{width:48%;padding-top:4px;font-size:11px;line-height:1.35}.company-meta h2{font-size:18px;margin-bottom:3px}.customer-section{padding-top:10px;gap:18px;margin-bottom:6px}.customer-block{font-size:11px;line-height:1.35}.meta-block{font-size:11px}.meta-row{font-size:11px;padding:2px 0}.attention-block{margin:10px 0 8px;font-size:11px;line-height:1.35}.quote-title{font-size:15px;margin:12px 0 6px}.quotation-table th,.quotation-table td{padding:3px 5px;font-size:10px;line-height:1.2}.quotation-table th:nth-child(1),.quotation-table td:nth-child(1){width:3% !important}.quotation-table th:nth-child(2),.quotation-table td:nth-child(2){width:3% !important}.quotation-table th:nth-child(3),.quotation-table td:nth-child(3){width:10% !important}.quotation-table th:nth-child(4),.quotation-table td:nth-child(4){width:39% !important}.quotation-table th:nth-child(5),.quotation-table td:nth-child(5){width:9% !important}.quotation-table th:nth-child(6),.quotation-table td:nth-child(6){width:5% !important}.quotation-table th:nth-child(7),.quotation-table td:nth-child(7){width:13% !important}.quotation-table th:nth-child(8),.quotation-table td:nth-child(8){width:18% !important}.totals-box{width:81% !important;margin-top:0}.total-row{padding:5px 7px;font-size:10px}.terms-box{margin-top:12px;font-size:10px;line-height:1.35}.terms-box h4{font-size:12px;margin-bottom:4px}.signature-box{margin-top:18px;font-size:10px;line-height:1.35}.signature-mark{font-size:30px;margin:8px 0 2px}}@media print{.quotation-header{display:flex !important}.customer-section{display:flex !important}.company-meta{width:48% !important}.customer-block{width:58% !important}.meta-block{width:260px !important;margin-left:auto !important}}@media print{.quotation-table th{text-align:center;vertical-align:middle;white-space:nowrap}.quotation-table td{vertical-align:middle}.quotation-table th:nth-child(1),.quotation-table td:nth-child(1),.quotation-table th:nth-child(2),.quotation-table td:nth-child(2),.quotation-table th:nth-child(3),.quotation-table td:nth-child(3),.quotation-table th:nth-child(8),.quotation-table td:nth-child(8){text-align:center}.quotation-table th:nth-child(4),.quotation-table td:nth-child(4){text-align:left}.quotation-table td:nth-child(5),.quotation-table td:nth-child(6),.quotation-table td:nth-child(7){text-align:right;white-space:nowrap}.quotation-table tbody tr{height:24px}}@media print{.quotation-table{width:100% !important;table-layout:fixed;overflow:hidden}.quotation-table th,.quotation-table td{max-width:100%;overflow-wrap:anywhere;word-break:normal;white-space:normal}.quotation-table th:nth-child(1),.quotation-table td:nth-child(1){width:4% !important}.quotation-table th:nth-child(2),.quotation-table td:nth-child(2){width:4% !important}.quotation-table th:nth-child(3),.quotation-table td:nth-child(3){width:11% !important}.quotation-table th:nth-child(4),.quotation-table td:nth-child(4){width:31% !important}.quotation-table th:nth-child(5),.quotation-table td:nth-child(5){width:14% !important}.quotation-table th:nth-child(6),.quotation-table td:nth-child(6){width:7% !important}.quotation-table th:nth-child(7),.quotation-table td:nth-child(7){width:15% !important}.quotation-table th:nth-child(8),.quotation-table td:nth-child(8){width:14% !important}.quotation-table td:nth-child(5),.quotation-table td:nth-child(6),.quotation-table td:nth-child(7){white-space:normal;overflow-wrap:anywhere}}@media print{.quotation-header{border-bottom:0 !important}.logo-block{transform:translateY(-8px)}}.quotation-header{border-bottom:0}.meta-row{display:grid;grid-template-columns:42px 12px minmax(0,1fr);gap:0}.meta-row em{font-style:normal;font-weight:700}.meta-row strong{text-align:right;white-space:nowrap}@media print{.meta-block{width:48% !important;margin-left:auto !important}}.meta-row strong{text-align:left}@media print{.customer-section{display:grid !important;grid-template-columns:52% 48%;gap:0}.customer-block{width:100% !important}.meta-block{width:100% !important;margin-left:0 !important}}@media screen{body{font-family:Segoe UI,Arial,sans-serif;background:#eef3f7;color:#243447}.top{background:linear-gradient(135deg,#123d63,#1f6b78);padding:16px 28px;box-shadow:0 3px 12px rgba(20,50,70,.18)}.top strong{font-size:17px;letter-spacing:.2px}.top nav{display:flex;align-items:center;gap:6px}.top a{margin-left:0;padding:8px 11px;border-radius:6px;color:#eaf7f8;font-size:14px;transition:background .2s ease,color .2s ease}.top a:hover{background:rgba(255,255,255,.16);color:#fff}.wrap{max-width:1240px;margin:30px auto;padding:0 22px}.card{border:1px solid #dce5eb;border-radius:10px;padding:24px;box-shadow:0 6px 18px rgba(35,61,78,.07);margin-bottom:22px}.card h2{margin:0 0 18px;color:#173b5c;font-size:22px}.grid{gap:18px}.stat{color:#173b5c;font-size:32px;margin-top:6px}.muted{font-size:13px;color:#6a7b88}.btn{padding:10px 16px;border-radius:6px;font-weight:600;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.btn:hover{transform:translateY(-1px);box-shadow:0 4px 10px rgba(21,58,99,.18)}input,select,textarea{border:1px solid #c7d4dd;border-radius:6px;padding:11px 12px;font:inherit;transition:border-color .2s ease,box-shadow .2s ease}input:focus,select:focus,textarea:focus{outline:none;border-color:#268a92;box-shadow:0 0 0 3px rgba(38,138,146,.14)}table{border:1px solid #d8e1e7;border-radius:8px;overflow:hidden;background:#fff}th,td{padding:11px 12px;border-bottom:1px solid #e5ebef}th{background:#edf4f7;color:#29465b;font-size:13px}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#f7fbfc}.searchbox .results{border-color:#b9cbd5;border-radius:0 0 6px 6px;box-shadow:0 5px 12px rgba(35,61,78,.12)}label{color:#344f61}textarea{resize:vertical}}@media(max-width:750px){.top{padding:14px 18px}.top nav{flex-wrap:wrap;gap:2px}.top a{padding:7px 8px}.wrap{margin:18px auto;padding:0 12px}.card{padding:17px}.card h2{font-size:19px}.btn{padding:9px 12px}}@media print{.totals-box{width:86% !important}}@media print{.totals-box{margin-left:0 !important;margin-right:auto !important}}@media print{.quotation-table th{white-space:nowrap !important;overflow-wrap:normal !important;word-break:keep-all}.quotation-table th:nth-child(2),.quotation-table td:nth-child(2){width:6% !important}.quotation-table th:nth-child(4),.quotation-table td:nth-child(4){width:29% !important}}