/* Phòng vé Bảo Lâm — pure CSS (converted from Next.js/Tailwind) */
.payment-demo{display:flex;flex-direction:column;gap:16px}.demo-banner{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(120deg,#16336f,#2459e8);color:#fff;padding:17px 20px;border-radius:13px}.demo-banner b{font-size:13px;letter-spacing:.5px}.demo-banner p{margin:5px 0 0;color:#dbe5ff;font-size:12px}.demo-banner>span{background:#ffffff20;border:1px solid #ffffff35;border-radius:16px;padding:6px 10px;font-size:10px}.sample-switch{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sample-switch button{display:flex;flex-direction:column;align-items:flex-start;border:1px solid #dfe5ee;background:#fff;border-radius:11px;padding:13px 16px;color:#2b3549;cursor:pointer}.sample-switch button.selected{border-color:#2459e8;background:#f3f6ff;box-shadow:0 0 0 2px #2459e812}.sample-switch button b{font-size:16px}.sample-switch button small{margin-top:4px;color:#7a8497}.payment-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:16px}.receipt-box,.posting-box{background:#fff;border:1px solid #e1e7ef;border-radius:14px;padding:19px;box-shadow:0 2px 5px #19233b08}.box-title{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #edf0f4;padding-bottom:14px}.box-title h3,.posting-result h3{font-size:14px;margin:0}.box-title p{font-size:11px;color:#8992a3;margin:4px 0 0}.paste-shortcut{border:1px solid #c9d5e7;color:#2459e8;border-radius:8px;padding:8px 11px;background:#f7f9ff;font-size:11px;font-weight:800;white-space:nowrap}.scan-preview{margin:14px 0;padding:15px;background:#f4f8ff;border:1px dashed #aebfe0;border-radius:10px;display:grid;grid-template-columns:36px 1fr;align-items:center}.paste-zone{min-height:82px;cursor:text;outline:none;transition:border-color .18s,box-shadow .18s,background .18s}.paste-zone:hover,.paste-zone:focus{border-color:#2459e8;background:#f7f9ff;box-shadow:0 0 0 3px #2459e812}.paste-zone.has-image{grid-template-columns:100px 1fr;border-style:solid;border-color:#79c5a1;background:#f1fbf6}.paste-zone img{width:86px;height:72px;object-fit:cover;border:1px solid #cad4e1;border-radius:7px;background:#fff}.paste-symbol{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#dfe8ff;color:#2459e8;font-size:16px;font-weight:800}.paste-copy{display:flex;flex-direction:column;gap:5px}.scan-preview b{font-size:12px}.scan-preview small{font-size:10px;color:#7b8497}.extract-list p{display:flex;justify-content:space-between;gap:15px;margin:0;padding:9px 2px;border-bottom:1px solid #eff2f6;font-size:11px}.extract-list p span{color:#7e8798}.extract-list p b{text-align:right;max-width:65%;font-size:11px}.posting-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.posting-fields label{font-size:10px;font-weight:700;color:#647086}.posting-fields select{display:block;width:100%;margin-top:6px;border:1px solid #d8e0eb;border-radius:8px;padding:10px;background:#fff}.account-class{display:flex;gap:12px;align-items:center;margin-top:13px;padding:13px;background:#f7f9fc;border-radius:10px}.class-badge{padding:8px;border-radius:7px;font-size:10px;font-weight:800}.class-badge.f1{background:#fff0db;color:#b86712}.class-badge.own{background:#e2f6ec;color:#15754e}.account-class div{display:flex;flex-direction:column}.account-class small{font-size:9px;color:#8b94a4}.account-class b{font-size:12px;margin:4px 0}.account-class p{font-size:10px;color:#758096;margin:0}.posting-result{margin-top:15px}.entry{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;margin-top:7px;border:1px solid #e5e9f0;border-radius:8px;font-size:11px}.entry small{color:#8992a3}.entry b{color:#bd3540}.confirm-demo{width:100%;margin-top:14px}.balance-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.balance-strip article{background:#fff;border:1px solid #e1e7ef;border-radius:12px;padding:15px}.balance-strip small{font-size:9px;color:#7f899a;font-weight:700}.balance-strip article>div{display:flex;align-items:center;gap:10px;margin:9px 0}.balance-strip s{color:#a6adba;font-size:11px}.balance-strip b{font-size:17px}.balance-strip em{font-style:normal;color:#158158;font-size:10px}.balance-strip .safe{color:#168158}
.inline-add {
  float: right;
  border: 0;
  background: transparent;
  color: #2459e8;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.partner-form {
  width: min(560px, 100%) !important;
}
.partner-fields {
  grid-template-columns: 1fr 180px;
}
.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.header-actions {
  display: flex;
  gap: 10px;
}
.paste {
  border: 1px solid #b9c8eb;
  background: #fff;
  color: #2459e8;
  border-radius: 9px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
}
.excel-btn {
  border: 1px solid #9fd5b8;
  background: #eef9f3;
  color: #13764d;
  border-radius: 9px;
  padding: 10px 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.excel-btn:hover {
  background: #ddf3e7;
}
.f1-upload-btn,.excel-upload-btn,.drive-upload-btn{display:inline-flex;align-items:center;padding:10px 14px;border:1px solid #6aa8e8;border-radius:8px;background:#eef6ff;color:#1a5fb4;font-size:12px;font-weight:800;cursor:pointer}.excel-upload-btn:hover,.drive-upload-btn:hover{background:#e0efff}.f1-upload-btn input,.f1-reselect input,.drive-upload-btn input,.excel-upload-btn input{display:none}
.drive-import-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:11px 14px;border:1px solid #d6deec;border-radius:9px;background:#f8fafc;font-size:11px;color:#5c6b82;flex-wrap:wrap}
.drive-bulk-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.drive-bulk-actions>span{font-weight:800;color:#344157;font-size:10px}
.drive-bulk-actions .dash-chip{padding:6px 10px;font-size:10px}
.drive-decision-cell{min-width:120px}
.drive-decision-cell small{display:block;margin-bottom:5px;font-size:9px;font-weight:800}
.drive-dup-tag{color:#c43d46;background:#ffe8ea;padding:2px 6px;border-radius:8px}
.drive-new-tag{color:#168158;background:#e4f6ed;padding:2px 6px;border-radius:8px}
.drive-action-select,.drive-op-select{width:100%;min-width:110px;padding:7px 8px;border:1px solid #cbd5e4;border-radius:7px;background:#fff;font-size:11px;font-weight:700;color:#27344b}
.drive-action-select:focus,.drive-op-select:focus{border-color:#2459e8;outline:2px solid #2459e815}
.drive-op-select:disabled{opacity:.45;cursor:not-allowed;background:#f4f6f9}
.drive-dup-reason{display:block;margin-top:4px;color:#c43d46;font-size:9px;font-weight:700}

/* ===== TỔNG QUAN / DASHBOARD ===== */
.content-dashboard{padding-top:22px}
.dashboard{display:flex;flex-direction:column;gap:16px}
.dash-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.dash-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dash-chip{border:1px solid #d5deeb;background:#fff;color:#53617a;border-radius:8px;padding:8px 12px;font-size:11px;font-weight:800;cursor:pointer}
.dash-chip.on{border-color:#2459e8;background:#eef3ff;color:#2459e8}
.dash-date{display:flex;align-items:center;gap:6px;color:#6b778c;font-size:10px;font-weight:700}
.dash-date input{padding:7px 9px;border:1px solid #d5deeb;border-radius:7px;font-size:11px}
.dash-month-picker{display:flex;align-items:center;gap:4px;padding:2px 4px 2px 8px;border:1px solid #c9d5e7;border-radius:9px;background:#f7f9ff}
.dash-month-label input[type="month"]{min-width:132px;font-weight:700;color:#2459e8;border-color:#b9c8eb;background:#fff}
.dash-month-nav{width:30px;height:30px;border:1px solid #c9d5e7;border-radius:7px;background:#fff;color:#2459e8;font-size:16px;font-weight:800;cursor:pointer;line-height:1}
.dash-month-nav:hover{background:#eef3ff;border-color:#2459e8}
.dash-range-label{color:#8a93a5;font-size:11px;margin-left:4px}
.dash-quick{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dash-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.dash-kpis.three{grid-template-columns:repeat(3,1fr);margin-bottom:14px}
.dash-kpis.three.dash-kpis-balance{margin-bottom:18px}
.dash-kpi{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid #e1e7ef;border-radius:14px;padding:16px 18px;background:#fff;cursor:pointer;box-shadow:0 2px 5px #19233b08;transition:transform .12s,box-shadow .12s}
.dash-kpi:hover{transform:translateY(-1px);box-shadow:0 8px 20px #19233b12}
.dash-kpi small{font-size:10px;font-weight:800;letter-spacing:.4px;color:#7b8498}
.dash-kpi b{font-size:22px;margin:10px 0 6px;color:#172033}
.dash-kpi em{font-style:normal;font-size:11px;font-weight:700}
.dash-kpi em.up{color:#158158}.dash-kpi em.down{color:#c43d46}.dash-kpi em.flat{color:#8a93a5}
.dash-kpi-hint{margin-top:8px;font-size:10px;color:#98a1b0}
.dash-kpi.tone-revenue b{color:#1d4ed8}
.dash-kpi.tone-collected b{color:#0f7a4f}
.dash-kpi.tone-debt b{color:#c43d46}
.dash-kpi.tone-profit b{color:#6d28d9}
.dash-debt-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.dash-debt-strip article{background:#fff;border:1px solid #e1e7ef;border-radius:13px;padding:16px 18px;display:flex;flex-direction:column;min-height:96px}
.dash-debt-strip small{font-size:10px;font-weight:800;color:#707c91}
.dash-debt-strip b{margin:10px 0 6px;font-size:20px;color:#18243b}
.dash-debt-strip em{font-style:normal;font-size:10px;color:#8a93a5}
.dash-debt-strip .debt-ar b{color:#cf303d}
.dash-debt-strip .debt-ap b{color:#c87316}
.dash-debt-strip .debt-credit-c b{color:#148a5b}
.dash-debt-strip .debt-credit-s b{color:#2459e8}
.dash-panel{background:#fff;border:1px solid #e1e7ef;border-radius:14px;overflow:hidden;box-shadow:0 2px 5px #19233b08}
.dash-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;border-bottom:1px solid #edf0f4}
.dash-panel-head h3{margin:0;font-size:14px;color:#1c2941}
.dash-panel-head p{margin:4px 0 0;font-size:11px;color:#8791a3}
.dash-link{border:0;background:none;color:#2459e8;font-size:11px;font-weight:800;cursor:pointer}
.dash-chart-panel{padding-bottom:12px}
.dash-chart-wrap{padding:8px 12px 14px}
.dash-chart-svg{width:100%;height:auto;display:block}
.dash-grid{stroke:#edf0f4;stroke-width:1}
.dash-axis{fill:#9aa4b4;font-size:10px}
.dash-line{stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.dash-line.revenue{stroke:#2459e8}
.dash-line.collected{stroke:#148a5b}
.dash-line.profit{stroke:#7c3aed}
.dash-chart-legend{display:flex;gap:16px;flex-wrap:wrap;padding:0 18px 8px;font-size:11px;font-weight:700;color:#5c6b82}
.dash-chart-legend span::before{content:"";display:inline-block;width:12px;height:3px;border-radius:2px;margin-right:7px;vertical-align:middle}
.dash-chart-legend .lg-revenue::before{background:#2459e8}
.dash-chart-legend .lg-collected::before{background:#148a5b}
.dash-chart-legend .lg-profit::before{background:#7c3aed}
.dash-chart-empty{padding:48px;text-align:center;color:#8a93a5;font-size:13px}
.dash-two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.dash-table-wrap{overflow:auto;max-height:360px}
.dash-table{width:100%;border-collapse:collapse;min-width:480px;font-size:12px}
.dash-table th{background:#f8fafc;color:#7a8497;font-size:10px;text-align:left;padding:11px 14px;border-bottom:1px solid #e2e8f0;white-space:nowrap}
.dash-table td{padding:12px 14px;border-bottom:1px solid #edf0f4;vertical-align:middle}
.dash-table td b{display:block}
.dash-table td small{display:block;margin-top:3px;color:#98a1b0;font-size:10px}
.dash-empty{margin:0;padding:28px 18px;color:#8a93a5;font-size:12px}
.dash-alerts{list-style:none;margin:0;padding:8px 0}
.dash-alerts li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid #edf0f4;font-size:12px}
.dash-alerts li:last-child{border-bottom:0}
.dash-alerts li span{color:#2b3549;font-weight:600}
.dash-alerts li button{border:1px solid #c9d5e7;background:#f7f9ff;color:#2459e8;border-radius:7px;padding:6px 10px;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap}
.dash-alerts .alert-danger{background:#fff7f7}
.dash-alerts .alert-warn{background:#fffaf0}
.dash-alerts .alert-info{background:#f5f8ff}
.dash-alerts .alert-ok{background:#f3fbf7;color:#168158}
.dash-recent{display:flex;flex-direction:column}
.dash-recent-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 16px;border:0;border-bottom:1px solid #edf0f4;background:#fff;text-align:left;cursor:pointer}
.dash-recent-item:hover{background:#f6f9ff}
.dash-recent-item:last-child{border-bottom:0}
.dash-recent-item b{display:block;font-size:12px;color:#26324a}
.dash-recent-item small{display:block;margin-top:3px;color:#8791a3;font-size:10px}
.dash-recent-item strong{font-size:12px;white-space:nowrap}
.dash-flight-panel{border-color:#f0d6a8;box-shadow:0 2px 8px #b8671210}
.dash-flight-panel .flight-pagination{padding:10px 16px 14px;border-top:1px solid #f0e4cc;background:#fffdf8}
.dash-flight-panel-head{align-items:flex-start;flex-wrap:wrap;gap:12px}
.dash-flight-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.dash-flight-windows{display:flex;align-items:center;gap:6px}
.dash-chip.flight-win{padding:7px 11px;font-size:10px}
.dash-chip.flight-win.on{border-color:#d39b45;background:#fff8ec;color:#a15e08}
.dash-flight-search{display:flex;align-items:center;gap:6px;min-width:220px;padding:8px 12px;border:1px solid #e0c89a;border-radius:9px;background:#fff;color:#9a7b3c;font-size:12px}
.dash-flight-search input{border:0;outline:0;width:100%;min-width:160px;color:#2b3549;font-size:12px;background:transparent}
.dash-flight-search input::placeholder{color:#b0a08a}
.dash-flight-badge{padding:5px 10px;border-radius:12px;background:#fff0db;color:#b86712;font-size:10px;font-weight:800;white-space:nowrap}
@media (max-width:700px){
  .dash-flight-head-actions{width:100%;justify-content:stretch}
  .dash-flight-search{flex:1;min-width:0}
  .dash-flight-windows{width:100%}
  .dash-chip.flight-win{flex:1;text-align:center}
}
.dash-table tr.flight-urgent{background:#fff8f0}
.flight-remain{display:inline-block;padding:4px 8px;border-radius:10px;background:#eef2f8;color:#4d5a70;font-size:10px;font-weight:800}
.flight-remain.hot{background:#ffe8d6;color:#c45a12}
.flight-soon-text{color:#c45a12}
.flight-leg{display:inline-block;padding:4px 8px;border-radius:10px;font-size:10px;font-weight:800}
.flight-leg.leg-depart{background:#e8efff;color:#2459e8}
.flight-leg.leg-return{background:#f3e8ff;color:#7c3aed}
.chip-flight-soon{border-color:#f0c48a!important;background:#fff8ee!important;color:#a15e08!important}
.f1-note-flight{border-color:#f0c48a;background:#fff8ee}
.f1-note-flight b{color:#a15e08}
@media (max-width:1100px){
  .dash-kpis,.dash-debt-strip,.dash-two-col{grid-template-columns:1fr 1fr}
}
@media (max-width:700px){
  .dash-kpis,.dash-debt-strip,.dash-two-col{grid-template-columns:1fr}
  .dash-toolbar{align-items:stretch;flex-direction:column}
}.f1-import-modal{z-index:24}.f1-import-modal>section{width:min(1180px,96vw);max-height:94vh;overflow:auto;border-radius:14px;background:#fff}.f1-import-body{padding:18px 22px}.f1-import-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.f1-import-summary article{display:flex;flex-direction:column;padding:14px 16px;border:1px solid #dfe5ee;border-radius:10px;background:#f8fafc}.f1-import-summary small{color:#748096;font-size:9px;font-weight:800}.f1-import-summary b{margin-top:7px;color:#17233a;font-size:21px}.f1-import-summary .skip{background:#fff5f5;border-color:#efc9cc}.f1-import-summary .skip b{color:#c43a45}.f1-import-summary .fresh{background:#eff9f4;border-color:#bee2d0}.f1-import-summary .fresh b{color:#168158}.f1-note{display:flex;gap:14px;align-items:center;margin:14px 0;padding:11px 14px;border:1px solid #cbd7ef;border-radius:9px;background:#f5f8ff;font-size:10px}.f1-note b{color:#244b9b;white-space:nowrap}.f1-note span{color:#68758b}.f1-preview-table{max-height:420px;border:1px solid #e1e6ee;border-radius:9px}.f1-preview-table table{min-width:950px}.f1-preview-table td{padding-top:10px;padding-bottom:10px}.f1-preview-table td strong,.f1-preview-table td b{display:block}.f1-preview-table td b{margin-top:4px;font-size:10px}.f1-preview-table tbody tr.duplicate{background:#fff7f7;color:#8f98a8}.f1-preview-table tbody tr.duplicate td:first-child span{color:#bd3540;background:#ffe8ea}.f1-preview-table tbody tr.new-ticket td:first-child span{color:#147a52;background:#e4f6ed}.f1-preview-table td:first-child span{display:inline-block;padding:5px 7px;border-radius:10px;font-size:9px;font-weight:800}.f1-more{margin:10px 0 0;color:#7d8798;font-size:10px}.f1-error{display:flex;flex-direction:column;gap:6px;padding:15px;border:1px solid #efc2c5;border-radius:9px;background:#fff4f4;color:#a72d37}.f1-error b{font-size:13px}.f1-error span{font-size:11px}.f1-reselect{margin-right:auto;padding:9px 12px;border:1px solid #cbd6e8;border-radius:8px;color:#2459e8;font-size:10px;font-weight:800;cursor:pointer}
.f1-source-picker{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px;padding:14px;border:1px solid #d6deec;border-radius:10px;background:#f8fafc}.f1-source-picker>div{display:flex;flex-direction:column;gap:7px}.f1-source-picker label{font-size:10px;font-weight:800;color:#59667b}.f1-source-picker select,.f1-source-picker input{width:100%;padding:10px 11px;border:1px solid #cbd5e4;border-radius:8px;background:#fff;color:#202b40;font-size:12px}.f1-source-picker select:focus,.f1-source-picker input:focus{border-color:#2459e8;outline:2px solid #2459e815}.f1-source-picker .field-hint{color:#7e8798;font-size:10px;font-weight:500}.ca-import-pick{margin-bottom:4px;grid-template-columns:1fr 1fr}.ca-import-pick .ca-code-bulk{grid-column:1/-1}.ca-import-pick .inline-add{margin-left:8px;vertical-align:middle}.ca-agent-search{position:relative;width:100%;min-width:160px;max-width:280px}.ca-agent-search>input{width:100%;padding:9px 28px 9px 10px;border:1px solid #cbd5e4;border-radius:8px;background:#fff;font-size:12px;font-weight:600;color:#17233a}.ca-agent-search>input:focus{border-color:#2459e8;outline:2px solid #2459e815}.drive-agent-cell{min-width:180px;max-width:240px;vertical-align:top}.drive-agent-cell .ca-agent-search{max-width:220px}.drive-agent-cell .ca-agent-search>input{padding:7px 26px 7px 8px;font-size:11px}.ca-agent-menu{z-index:120}.ca-agent-new-opt{background:#eff9f4!important;border-bottom:1px solid #bee2d0}.ca-agent-new-opt b{color:#168158}.ca-agent-pax-opt{background:#f5f8ff!important}.drive-service-select{min-width:140px;max-width:220px;padding:6px 8px;border:1px solid #cbd5e4;border-radius:8px;background:#fff;font-size:11px}.drive-pnr-cell{min-width:160px}.drive-code-input{display:block;width:100%;max-width:140px;margin:0 0 4px;padding:7px 9px;border:1px solid #2459e8;border-radius:8px;background:#f5f8ff;color:#17233a;font:700 12px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.04em;text-transform:uppercase}.drive-code-input:focus{outline:2px solid #2459e830;border-color:#2459e8}.drive-code-input:disabled{opacity:.55;border-color:#cbd5e4;background:#f3f5f8}.drive-code-input::placeholder{font-weight:600;letter-spacing:0;text-transform:none;color:#9aa5b8}.f1-preview-table table{min-width:1320px}.f1-preview-table .fee-positive{color:#b46809}.f1-preview-table .rebate-negative{color:#168158}
.f1-import-summary.four{grid-template-columns:repeat(4,1fr)}.f1-import-summary.four article:nth-child(2){background:#f3f6ff;border-color:#cbd7ef}.f1-import-summary.four article:nth-child(2) b{color:#2459e8}.f1-preview-table tbody tr.supplier-transfer{background:#f3f7ff}.f1-preview-table tbody tr.supplier-transfer td:first-child span{color:#2459e8;background:#e2eaff}
.f1-duplicate-review{margin:14px 0;border:1px solid #efc270;border-radius:11px;background:#fffaf0;overflow:hidden}.f1-duplicate-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border-bottom:1px solid #f1d9a9}.f1-duplicate-head h3{margin:0;color:#9a5700;font-size:13px}.f1-duplicate-head p{margin:4px 0 0;color:#7f6b4b;font-size:10px}.f1-duplicate-head>b{padding:6px 9px;border-radius:10px;background:#fff0ce;color:#9a5700;font-size:10px;white-space:nowrap}.f1-duplicate-list{max-height:340px;overflow:auto}.f1-duplicate-list article{padding:13px 15px;border-bottom:1px solid #f0dfbd;background:#fff}.f1-duplicate-list article:last-child{border-bottom:0}.f1-duplicate-list article.approved{background:#f1fbf6}.f1-duplicate-title{display:flex;justify-content:space-between;align-items:center;gap:16px}.f1-duplicate-title>div{display:flex;align-items:center;gap:9px}.f1-duplicate-title strong{color:#b04b20;font-size:11px}.f1-duplicate-title span{color:#8791a2;font-size:9px}.f1-duplicate-title label{display:flex;align-items:center;gap:7px;color:#174a37;font-size:10px;font-weight:800;cursor:pointer}.f1-duplicate-title input{width:15px;height:15px;accent-color:#168158}.f1-duplicate-compare{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.f1-duplicate-compare>div{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:10px 12px;border:1px solid #e4e8ef;border-radius:8px;background:#f8fafc}.f1-duplicate-compare small{grid-column:1/-1;color:#8a95a7;font-size:8px;font-weight:800}.f1-duplicate-compare b{font-size:10px}.f1-duplicate-compare span{grid-column:1/2;color:#68758b;font-size:9px}.f1-duplicate-compare strong{grid-column:2;grid-row:2/5;align-self:center;font-size:11px}.f1-duplicate-operation{display:flex;align-items:center;gap:9px;margin-top:10px;padding:9px 11px;border-radius:8px;background:#e5f6ed;color:#175b40;font-size:10px}.f1-duplicate-operation span{font-weight:800}.f1-duplicate-operation select{width:180px;padding:7px 9px;border:1px solid #a9d7bf;border-radius:7px;background:#fff}.f1-duplicate-operation em{color:#60806f;font-style:normal}
.ledger-toolbar-actions,.detail-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.entity-btn{border:1px solid #b8c9ef;background:#f3f6ff;color:#2459e8;padding:10px 13px;border-radius:8px;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}.opening-fields{grid-template-columns:1fr 1.5fr}.opening-fields label:last-child small{display:block;margin-top:6px;color:#7f899b;font-size:9px;line-height:1.4}
.opening-inline{display:grid;grid-template-columns:minmax(0,1fr) 220px auto;gap:12px;align-items:center;margin:0 22px 18px;padding:13px 15px;border:1px solid #c7d6f5;background:#f5f8ff;border-radius:10px}.opening-inline small{color:#244b9b;font-size:9px;font-weight:800}.opening-inline p{margin:4px 0 0;color:#78849a;font-size:9px}.opening-inline label{display:flex;align-items:center;border:1px solid #cbd6e8;background:#fff;border-radius:8px;overflow:hidden}.opening-inline input{width:100%;padding:10px;border:0;outline:0;text-align:right;font-weight:700}.opening-inline label span{padding-right:10px;color:#647087}.opening-inline button{padding:10px 13px;border:0;border-radius:8px;background:#2459e8;color:#fff;font-size:10px;font-weight:800;cursor:pointer}
.ledger-detail-tabs{display:flex;gap:6px;margin:0 22px 18px;padding:5px;border:1px solid #dde4ef;border-radius:10px;background:#f3f6fa}.ledger-detail-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;padding:11px 14px;border:0;border-radius:7px;background:transparent;color:#637087;font-size:12px;font-weight:800;cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}.ledger-detail-tabs button:hover{background:#fff;color:#2459e8}.ledger-detail-tabs button.active{background:#fff;color:#2459e8;box-shadow:0 1px 5px #1c2b4a18}.ledger-detail-tabs button span{min-width:22px;padding:3px 7px;border-radius:12px;background:#e7ecf5;color:#637087;font-size:9px}.ledger-detail-tabs button.active span{background:#e8efff;color:#2459e8}.ledger-detail-tabs button:focus-visible{outline:2px solid #2459e8;outline-offset:2px}
.detail-actions > button:not(.excel-btn) {
  border: 0;
  background: none;
  color: #2459e8;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.modal-actions {
  align-items: center;
}
.modal-actions > span {
  margin-right: auto;
  color: #7e8798;
  font-size: 12px;
}
.booking-modal form {
  width: min(920px, 100%);
  max-height: 94vh;
  overflow: auto;
}
.booking-body {
  padding: 22px 24px;
}
.booking-modal .import-expense-builder.expense-builder {
  margin: 16px 0 4px;
}
.booking-modal .import-expense-builder .expense-fields {
  grid-template-columns: 1.4fr 1.2fr 1fr;
}
/* Ô ngày gõ tay dd/mm/yyyy + nút lịch */
.date-typeable {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
  width: 100%;
}
.date-typeable .date-text-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding-right: 36px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.date-typeable .date-picker-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  opacity: 0.85;
}
/* icon lịch native đè lên vùng phải */
.date-typeable .date-picker-btn::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 1;
}
.booking-ocr-block {
  margin-bottom: 16px;
  padding: 14px 14px 12px;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  background: #fbfcfe;
}
.booking-ocr-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}
.booking-ocr-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.booking-ocr-head p {
  margin: 4px 0 0;
  font-size: 11px;
  color: #7b8497;
  font-weight: 500;
}
.booking-paste-zone {
  min-height: 88px;
  cursor: pointer;
}
.booking-paste-zone.is-ocr {
  border-color: #2459e8;
  background: #f5f8ff;
}
.booking-paste-zone.drag-over {
  border-color: #2459e8 !important;
  background: #eef3ff !important;
  box-shadow: 0 0 0 3px rgba(36, 89, 232, 0.18);
}
.booking-preview-img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d5deeb;
  background: #fff;
}
.booking-ocr-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
}
.booking-ocr-actions .pay-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 0;
}
.booking-ocr-actions .pay-file-btn input {
  display: none;
}
.booking-ocr-error {
  margin-top: 8px;
}
.booking-paste {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #596377;
}
.booking-paste-hint {
  font-weight: 500;
  color: #8b94a4;
  font-size: 10px;
}
.booking-paste textarea {
  display: block;
  width: 100%;
  height: 145px;
  margin-top: 8px;
  border: 1px solid #cad4e3;
  border-radius: 10px;
  padding: 13px;
  font: 12px/1.55 monospace;
  resize: vertical;
  outline: none;
  background: #f9fbfd;
}
.booking-paste textarea:focus {
  border-color: #2459e8;
  box-shadow: 0 0 0 3px #2459e815;
}
.parse-result {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #b9e3d0;
  background: #f0fbf5;
  border-radius: 10px;
  color: #177650;
}
.parse-result.error {
  border-color: #f0d6aa;
  background: #fff9ed;
  color: #a36b17;
}
.parse-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.parse-chips span {
  background: #fff;
  border: 1px solid #dfe8e4;
  color: #667183;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 11px;
}
.parse-chips strong {
  color: #26334b;
}
.pax-preview {
  margin-top: 12px;
  border-top: 1px solid #d9ebe2;
  padding-top: 11px;
}
.pax-preview > small {
  font-size: 10px;
  color: #7e8e87;
}
.pax-preview p {
  display: flex;
  justify-content: space-between;
  margin: 7px 0 0;
  color: #26334b;
  font-size: 12px;
}
.pax-preview p span {
  color: #7c8797;
}
.import-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 17px;
}
.import-fields label {
  font-size: 11px;
  font-weight: 700;
  color: #596377;
}
.import-fields input,
.import-fields select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  outline: none;
}
@media (max-width: 640px) {
  .header-actions {
    width: 100%;
  }
  .header-actions button {
    flex: 1;
    padding: 10px !important;
  }
  .import-fields {
    grid-template-columns: 1fr;
  }
  .pax-preview p {
    align-items: flex-start;
    gap: 6px;
    flex-direction: column;
  }
}
@media(max-width:850px){.payment-grid{grid-template-columns:1fr}.balance-strip{grid-template-columns:1fr}.sample-switch{grid-template-columns:1fr}}
:root {
  --navy: #12213e;
  --blue: #2459e8;
  --green: #148a5b;
  --bg: #f3f6fa;
  --line: #e2e8f0;
  --text: #172033;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
/* Chỉ sidebar app — không style mọi <aside> */
aside.app-sidebar,
.app-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: 232px;
  height: 100vh;
  background: #f8faff;
  border-right: 1px solid #e4eaf3;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  overflow: hidden;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 6px 8px 18px;
  min-width: 0;
  flex-shrink: 0;
}
.brand > span {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #2a5ef0, #152a55);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 14px #1e4fd525;
}
.brand-text,
.user-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.brand-text b,
.user-text b {
  font-size: 12px;
  line-height: 1.25;
  color: #15233c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text small,
.user-text small {
  color: #8791a5;
  margin-top: 3px;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-sidebar nav,
aside.app-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 0;
}
.app-sidebar nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 11px;
  text-align: left;
  padding: 11px 12px;
  color: #5f6b80;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background .12s, color .12s, box-shadow .12s;
  min-width: 0;
}
.app-sidebar nav button:hover {
  background: #eef3ff;
  color: #204fc9;
}
.app-sidebar nav button i {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-style: normal;
  font-size: 15px;
  background: #eef2f8;
  color: #647089;
}
.app-sidebar nav button:hover i {
  background: #dfe8ff;
  color: #2459e8;
}
.app-sidebar nav button .nav-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.app-sidebar nav button.active {
  background: #e8efff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #c9d8ff;
  font-weight: 750;
}
.app-sidebar nav button.active i {
  background: #2459e8;
  color: #fff;
  box-shadow: 0 4px 10px #2459e833;
}
.user {
  margin-top: auto;
  border-top: 1px solid #e4eaf3;
  padding: 14px 8px 4px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}
.user > span {
  background: #e8eeff;
  color: #2459e8;
  font-weight: 800;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
}
.content {
  margin-left: 232px;
  padding: 30px 34px;
  width: calc(100% - 232px);
  box-sizing: border-box;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
h1 {
  margin: 0 0 6px;
  font-size: 27px;
}
header p,
.modal-head p {
  margin: 0;
  color: #8b94a6;
  font-size: 13px;
}
.primary {
  background: var(--blue) !important;
  color: white !important;
  border: 0 !important;
  border-radius: 9px !important;
  padding: 12px 18px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.cards article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px #19233b08;
}
.cards small {
  font-size: 11px;
  color: #7b8498;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.cards b {
  font-size: 22px;
  margin: 11px 0;
}
.cards em {
  font-style: normal;
  font-size: 11px;
  color: var(--green);
}
.cards em.blue {
  color: var(--blue);
}
.cards .debt {
  border-color: #f2d5d5;
}
.cards .debt b,
.cards .debt em {
  color: #c43d46;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.filter {
  border: 0;
  background: none;
  padding: 9px 11px;
  color: #737d91;
  font-weight: 600;
  cursor: pointer;
}
.filter.on {
  background: #edf2ff;
  color: #2459e8;
  border-radius: 8px;
}
.filter span {
  font-size: 10px;
  background: #dde5fb;
  padding: 2px 6px;
  border-radius: 8px;
}
.toolbar label {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  color: #99a1b1;
}
.toolbar input {
  border: 0;
  outline: 0;
  width: 220px;
}
.ticket-filterbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:12px 18px;border-bottom:1px solid var(--line);background:#f8fafc;flex-wrap:wrap}.ticket-period-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex:1}.ticket-period-bar>b{color:#344157;font-size:11px;white-space:nowrap}.ticket-period-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ticket-period-chips .dash-chip{padding:7px 11px;font-size:10px}.ticket-week-picker input[type="week"]{min-width:148px;font-weight:700;color:#2459e8}.date-range-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.date-range-filter>b{margin-right:3px;color:#344157;font-size:11px}.date-range-filter label{display:flex;align-items:center;gap:7px;color:#778297;font-size:10px}.date-range-filter input{padding:7px 9px;border:1px solid #d6deea;border-radius:7px;background:#fff;color:#29354b;font-size:11px}.sort-summary{display:flex;align-items:center;gap:10px;color:#788397;font-size:10px;flex-wrap:wrap}.sort-summary button{padding:7px 9px;border:1px solid #cfd8e7;border-radius:7px;background:#fff;color:#53617a;font-size:10px;font-weight:700;cursor:pointer}.sort-head{border:0;background:none;padding:0;color:inherit;font:inherit;font-weight:inherit;white-space:nowrap;cursor:pointer}.sort-head:hover,.sort-head.active{color:#2459e8}.sort-head.active{font-weight:900}
.delete-selected {
  margin-left: 10px;
  padding: 8px 11px;
  border: 1px solid #f0b9be;
  border-radius: 8px;
  background: #fff3f4;
  color: #c52d3a;
  font-weight: 700;
  cursor: pointer;
}
.select-cell {
  width: 42px;
  padding-left: 16px;
  padding-right: 6px;
  text-align: center;
}
.select-cell input {
  width: 16px;
  height: 16px;
  accent-color: #2459e8;
  cursor: pointer;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1120px;
  font-size: 12px;
}
th {
  background: #f8fafc;
  color: #7a8497;
  font-size: 10px;
  text-align: left;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 12px 13px;
  border-bottom: 1px solid #edf0f4;
  vertical-align: middle;
  white-space: nowrap;
}
td small,
td b,
td strong {
  display: block;
}
td small {
  color: #98a1b0;
  margin-top: 4px;
  font-size: 10px;
}
td strong {
  color: #2459e8;
  margin-bottom: 4px;
}
.route {
  background: #eef2f8;
  color: #4d5a70;
  border-radius: 6px;
  padding: 5px 7px;
  font-weight: 700;
}
.gain {
  color: var(--green);
  font-weight: 700;
}
.loss,
.owed {
  color: #bd3540;
  font-weight: 700;
}
.status {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 14px;
  font-weight: 700;
}
.status.done {
  background: #def7e9;
  color: #198258;
}
.status.pending {
  background: #fff0e4;
  color: #cc6327;
}
.panel footer {
  padding: 14px 18px;
  color: #8a93a5;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.panel footer b {
  color: #bd3540;
  font-size: 13px;
}
.ticket-pagination{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.ticket-pagination-top{padding:12px 18px;border-bottom:1px solid var(--line);background:#fff}.page-size,.page-controls{display:flex;align-items:center;gap:8px}.page-size select{padding:7px 28px 7px 9px;border:1px solid #d5deeb;border-radius:7px;background:#fff;color:#27344b;font-size:11px;font-weight:800}.page-controls{margin-left:auto}.page-controls button{padding:7px 10px;border:1px solid #d5deeb;border-radius:7px;background:#fff;color:#2459e8;font-size:10px;font-weight:800;cursor:pointer}.page-controls button:disabled{color:#aab3c2;background:#f4f6f9;cursor:not-allowed}.page-controls button.active{border-color:#2459e8;background:#2459e8;color:#fff}.page-number-wrap{display:flex;align-items:center;gap:8px}.page-number-wrap i{color:#9aa4b4;font-style:normal}
.operation-hint{display:block;margin-top:5px;color:#168158;font-size:9px;font-weight:600;line-height:1.35}
.fee-only-notice{margin:0 18px 12px;padding:10px 12px;border-radius:10px;background:#eef8f2;border:1px solid #b7e0c8;color:#0f5c3a;font-size:11px;line-height:1.45}
.fee-only-notice b{color:#0a4d30}
.import-source-calc.fee-only-calc{gap:12px}
.import-source-calc.fee-only-calc .muted,.posting-preview .muted{color:#8a93a5;font-style:normal;font-weight:600}
.f1-import-summary em{margin-top:4px;color:#a45c62;font-size:9px;font-style:normal}
.modal {
  position: fixed;
  inset: 0;
  background: #10182888;
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 20px;
}
.modal form {
  background: #fff;
  width: min(720px, 100%);
  border-radius: 16px;
  box-shadow: 0 30px 80px #0003;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0 0 5px;
}
.modal-head button {
  border: 0;
  background: none;
  font-size: 28px;
  color: #8891a2;
  cursor: pointer;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
}
.form-grid label {
  font-size: 12px;
  font-weight: 700;
  color: #596377;
}
.form-grid input,
.form-grid select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  outline: none;
}
.form-grid input:focus {
  border-color: #2459e8;
}
.partner-search {
  position: relative;
  margin-top: 7px;
}
.form-grid .partner-search > input,
.import-fields .partner-search > input {
  margin-top: 0;
  padding-right: 34px;
}
.partner-search-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #667187;
  pointer-events: none;
}
.partner-search-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #d7deea;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 30px #17233f24;
}
.partner-search-menu button {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: #202b40;
  text-align: left;
  cursor: pointer;
}
.partner-search-menu button:hover {
  background: #edf3ff;
}
.partner-search-menu button b {
  font-size: 12px;
}
.partner-search-menu button small {
  color: #7c8799;
  font-size: 10px;
}
.partner-search-menu p {
  margin: 0;
  padding: 12px 10px;
  color: #7c8799;
  font-size: 11px;
}
.modal-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-actions button {
  padding: 11px 18px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  font-weight: 700;
}
.editable-row {
  cursor: text;
  user-select: text;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.editable-row:hover {
  background: #f3f7ff;
  box-shadow: inset 4px 0 #2459e8;
}
.editable-row .ticket-copy,
.detail-editable-row .ticket-copy {
  user-select: all;
  cursor: text;
}
.editable-row .select-cell {
  cursor: pointer;
  user-select: none;
}
.editable-row.row-selected {
  background: #eef3ff;
}
.editable-row:focus-visible {
  outline: 2px solid #2459e8;
  outline-offset: -2px;
}
.edit-notice {
  margin: 18px 24px 0;
  padding: 12px 14px;
  border: 1px solid #bcd0ff;
  border-radius: 8px;
  background: #f2f6ff;
  color: #244485;
  font-size: 13px;
  font-weight: 600;
}
.cost-modal{width:min(920px,100%)!important;max-height:94vh;overflow:auto}.cost-modal .expense-row,.cost-modal .expense-fields label.full-width{overflow:visible}.cost-modal .bsv-card-search{position:relative;z-index:6}.expense-builder{margin:0 24px 22px;border:1px solid #dfe5ee;border-radius:12px;overflow:hidden}.expense-head{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;background:#f7f9fc}.expense-head h3{font-size:14px;margin:0}.expense-head p{font-size:11px;color:#7c8797;margin:4px 0 0}.expense-head>span{font-size:10px;font-weight:700;color:#2459e8;background:#e9efff;padding:6px 9px;border-radius:12px}.expense-row{padding:14px 16px;border-top:1px solid #edf0f4}.expense-title{display:flex;justify-content:space-between;color:#26334b;font-size:12px}.expense-title button{border:0;background:none;color:#9aa3b2;cursor:pointer;font-size:18px}.expense-fields{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin-top:10px}.expense-fields.four{grid-template-columns:2fr .8fr .9fr 1fr}.expense-fields label{font-size:10px;font-weight:700;color:#687386}.expense-fields input,.expense-fields select{display:block;width:100%;margin-top:5px;padding:9px;border:1px solid #d9e0ea;border-radius:7px;background:#fff}.expense-fields strong{display:flex;align-items:center;height:36px;margin-top:5px;color:#172033}.expense-add{display:flex;gap:7px;flex-wrap:wrap;padding:13px 16px;border-top:1px solid #edf0f4}.expense-add button{border:1px dashed #9eb4e7;background:#f7f9ff;color:#2459e8;padding:8px 10px;border-radius:7px;font-size:10px;font-weight:700;cursor:pointer}.cost-summary{display:grid;grid-template-columns:repeat(4,1fr);background:#12213e;color:#fff}.cost-summary span{padding:13px 15px;font-size:9px;color:#aebbd2;border-right:1px solid #ffffff18}.cost-summary b{display:block;color:#fff;font-size:14px;margin-top:5px}.cost-summary .profit b{color:#5ee0a8}.cost-summary .negative b{color:#ff8e96}.bsv-page{display:flex;flex-direction:column;gap:16px}.bsv-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.bsv-summary article{display:flex;flex-direction:column;background:#fff;border:1px solid #e1e7ef;border-radius:13px;padding:18px}.bsv-summary small{font-size:10px;color:#7c8797;font-weight:700}.bsv-summary b{font-size:20px;margin:10px 0}.bsv-summary em{font-size:10px;color:#168158;font-style:normal}.bsv-panel-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #e5e9f0}.bsv-panel-head h3,.bsv-ledger h3{font-size:14px;margin:0}.bsv-panel-head p{font-size:11px;color:#8791a3;margin:4px 0 0}.tier-badge{display:inline-block;background:#edf2ff;color:#2459e8;padding:5px 8px;border-radius:12px;font-weight:700;font-size:11px;line-height:1.2;white-space:nowrap}
.tier-badge.tier-platinum{background:#1a1a1a;color:#f5f5f5}
.tier-badge.tier-gold{background:#fbbf24;color:#78350f}
.tier-badge.tier-titanium{background:#dbeafe;color:#1d4ed8}
.tier-badge.tier-diamond{background:#e0e7ff;color:#3730a3}
.tier-badge.tier-member{background:#f1f5f9;color:#475569}.bsv-ledger{background:#fff;border:1px solid #e1e7ef;border-radius:13px;padding:18px}.bsv-ledger>div{display:flex;align-items:center;margin-top:13px;padding:12px;background:#f8fafc;border-radius:9px}.ledger-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:#fff0db;color:#b86712;font-weight:800}.bsv-ledger p{display:flex;flex-direction:column;gap:4px;margin:0 0 0 12px;font-size:12px}.bsv-ledger p small{color:#8791a3}.bsv-ledger strong{margin-left:auto;text-align:right;color:#bd3540}.bsv-ledger strong small{display:block;color:#8791a3;margin-top:4px;font-size:10px}
.expense-fields.service-grid{grid-template-columns:1.35fr 1.2fr .75fr .75fr}.expense-fields.service-grid label.full-width{grid-column:1/-1}.expense-fields label>small{float:right;color:#9aa3b2;font-size:8px;font-weight:500}
.expense-fields.bsv-five{grid-template-columns:1.25fr 1.45fr .65fr .75fr .8fr}.expense-add{align-items:center}.expense-add .add-service{border-style:solid;background:#2459e8;color:#fff;padding:9px 14px}.expense-add>span{font-size:10px;color:#7b8497}
.import-services{margin-top:17px;border:1px solid #dfe5ee;border-radius:11px;overflow:hidden}.import-service-total{display:flex;justify-content:flex-end;gap:25px;padding:12px 16px;background:#12213e;color:#aebbd2;font-size:10px}.import-service-total b{display:block;margin-top:4px;color:#fff;font-size:13px}
.plus-note,.minus-note{float:right;font-size:9px}.plus-note{color:#b86712}.minus-note{color:#168158}.source-calc,.import-source-calc{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:11px 16px;background:#f7f9fc;border-top:1px solid #edf0f4;font-size:10px;color:#667183}.source-calc b,.import-source-calc .add{color:#b86712}.source-calc em,.import-source-calc .subtract{color:#168158;font-style:normal}.source-calc strong,.import-source-calc strong{margin-left:auto;color:#172033}.import-source-calc{margin-top:13px;border:1px solid #dfe5ee;border-radius:9px}.import-source-calc span,.import-source-calc strong{display:flex;flex-direction:column;gap:4px}.import-source-calc b{font-size:12px}
.web-payment-box{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px;align-items:end;margin:0 24px 15px;padding:13px 15px;border:1px solid #bcd0ff;background:#f4f7ff;border-radius:10px}.booking-body .web-payment-box{margin:13px 0}.web-payment-box>div{align-self:center}.web-payment-box b,.web-payment-box small{display:block}.web-payment-box small{margin-top:4px;color:#78849a;font-size:10px}.web-payment-box label{font-size:10px;font-weight:700;color:#596377}.web-payment-box select,.web-payment-box input{display:block;width:100%;margin-top:5px;padding:9px;border:1px solid #ccd7e8;border-radius:7px;background:#fff}.posting-preview{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 24px 17px;padding:11px 14px;background:#eef8f3;border:1px solid #bee3d1;border-radius:9px;font-size:10px}.booking-body .posting-preview{margin:13px 0}.posting-preview>b{color:#177650}.posting-preview span{padding-left:12px;border-left:1px solid #cfe5da;color:#667183}.posting-preview strong{color:#172033}
.duplicate-alert{display:flex;flex-direction:column;gap:5px;margin:16px 24px 0;padding:12px 14px;border:1px solid #f0b8ba;background:#fff3f3;border-radius:9px;color:#a62932;font-size:11px}.booking-body>.duplicate-alert{margin:14px 0 0}.duplicate-alert b{font-size:12px}.operation-note{display:block;margin-top:5px;color:#168158;font-size:9px;font-weight:500}
.ledger-duplicate-warning{display:flex;flex-direction:column;gap:4px;margin:12px 16px;padding:11px 13px;border:1px solid #efb8bc;border-radius:9px;background:#fff3f3;color:#a62932;font-size:10px}.ledger-duplicate-warning b{font-size:12px}.group-pnr-duplicate{background:#fff6f6!important;box-shadow:inset 3px 0 #dc3545}.duplicate-pnr-badge{display:inline-block;margin-left:7px;padding:3px 6px;border-radius:9px;background:#ffe0e2;color:#b12631;font-size:8px;font-weight:800;vertical-align:middle}
.previous-booking-note{display:flex;flex-direction:column;gap:5px;margin-top:14px;padding:12px 14px;border:1px solid #b9d8cb;background:#eef8f3;border-radius:9px;color:#176a4b;font-size:11px}.previous-booking-note b{font-size:12px}.previous-booking-note strong{color:#123e31}
.operation-result{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:1px;margin-top:13px;border-radius:9px;overflow:hidden;background:#dfe5ee}.operation-result span,.operation-result strong{display:flex;flex-direction:column;gap:5px;padding:12px 15px;background:#f7f9fc;color:#667183;font-size:10px}.operation-result b{font-size:14px;color:#172033}.operation-result.refund strong{background:#eef8f3;color:#177650}.operation-result.refund strong b{color:#177650}.operation-result.exchange strong{background:#f3f6ff;color:#2459e8}.operation-result.exchange strong b{color:#2459e8}.catalog-modal{z-index:20}.single-field{grid-template-columns:1fr}
.partner-ledger-page{display:flex;flex-direction:column;gap:16px}.ledger-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.ledger-summary article{display:flex;flex-direction:column;min-height:108px;padding:17px 18px;border:1px solid #dfe5ee;border-radius:13px;background:#fff;box-shadow:0 2px 5px #18233b08}.ledger-summary article.receivable{}.ledger-summary article.payable{}.ledger-summary small{color:#707c91;font-size:10px;font-weight:800}.ledger-summary b{margin:11px 0 7px;color:#18243b;font-size:20px}.ledger-summary .receivable b{color:#cf303d}.ledger-summary .payable b{color:#c87316}.ledger-summary em{color:#7f899b;font-size:10px;font-style:normal}.ledger-toolbar{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border:1px solid #dfe5ee;border-radius:13px;background:#fff}.ledger-toolbar h2{margin:0;color:#1c2941;font-size:15px}.ledger-toolbar p{margin:4px 0 0;color:#7e899c;font-size:10px}.ledger-toolbar label{display:flex;align-items:center;gap:6px;width:320px;padding:10px 12px;border:1px solid #d9e0ea;border-radius:9px;color:#8e98a8}.ledger-toolbar input{width:100%;border:0;outline:0}.ledger-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ledger-panel{overflow:hidden;border:1px solid #dfe5ee;border-radius:13px;background:#fff}.ledger-panel-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #e7ebf1}.ledger-panel-head h3{margin:0;color:#26324a;font-size:13px}.ledger-panel-head p{margin:4px 0 0;color:#818c9e;font-size:10px}.ledger-panel-head>span{padding:5px 8px;border-radius:11px;background:#edf2ff;color:#2459e8;font-size:9px;font-weight:800}.ledger-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid #edf0f4;background:#fafbfd;font-size:11px;color:#667183}
.ledger-pagination .page-controls{margin-left:0}
.ledger-list{max-height:530px;overflow-y:auto}.ledger-list>button{display:grid;grid-template-columns:minmax(0,1fr) auto 12px;gap:12px;align-items:center;width:100%;padding:14px 17px;border:0;border-bottom:1px solid #edf0f4;background:#fff;text-align:left;cursor:pointer}.ledger-list>button:hover{background:#f6f9ff}.ledger-person{display:flex;align-items:center;min-width:0}.ledger-person>span{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:#eaf0ff;color:#2459e8;font-size:10px;font-weight:800}.ledger-person.supplier>span{background:#fff0dc;color:#bd6b13}.ledger-person p{min-width:0;margin:0 0 0 10px}.ledger-person b,.ledger-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ledger-person b{color:#26324a;font-size:12px}.ledger-person small{margin-top:4px;color:#8993a4;font-size:9px}.ledger-amount{text-align:right}.ledger-amount small,.ledger-amount b,.ledger-amount em{display:block}.ledger-amount small{color:#8791a2;font-size:8px;font-weight:800}.ledger-amount b{margin:4px 0;font-size:13px}.ledger-amount b.red{color:#d23340}.ledger-amount b.orange{color:#c77318}.ledger-amount b.green{color:#168158}.ledger-amount em{color:#929baa;font-size:8px;font-style:normal}.ledger-list>button>i{color:#9da7b6;font-size:20px;font-style:normal}
.ledger-detail-modal{z-index:18}.ledger-detail-modal>section{width:min(1120px,96vw);max-height:94vh;overflow:auto;border-radius:14px;background:#fff;box-shadow:0 24px 70px #10182d55}.detail-balance{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:1px;margin:18px 22px;border:1px solid #dfe5ee;border-radius:10px;overflow:hidden;background:#dfe5ee}.detail-balance>span,.detail-balance>strong{display:flex;flex-direction:column;gap:6px;padding:14px 16px;background:#f7f9fc}.detail-balance>strong{background:#eef8f3}.detail-balance small{color:#768196;font-size:9px}.detail-balance b{color:#18243b;font-size:17px}.detail-balance strong b{color:#148058}.detail-section-head{display:flex;align-items:center;justify-content:space-between;padding:0 22px 11px}.detail-section-head h3{margin:0;color:#26324a;font-size:13px}.detail-section-head p{margin:4px 0 0;color:#8792a4;font-size:10px}.detail-section-head>button{border:0;background:none;color:#2459e8;font-size:10px;font-weight:800;cursor:pointer}.detail-table{margin:0 22px;border:1px solid #e1e6ee;border-radius:9px}.detail-table table{min-width:900px}.detail-table td{padding-top:10px;padding-bottom:10px}.supplier-value{color:#c77318;font-weight:800}.payment-head{margin-top:18px}.payment-ledger{margin:0 22px 22px;border:1px solid #e1e6ee;border-radius:9px;overflow:hidden}.payment-ledger>div{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #edf0f4;background:#fff}.payment-check{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#e3f6ec;color:#168158;font-weight:900}.payment-ledger p{display:flex;flex:1;flex-direction:column;gap:3px;margin:0}.payment-ledger p b{color:#26324a;font-size:11px}.payment-ledger p small{color:#8792a4;font-size:9px}.payment-ledger>div>strong{color:#168158;font-size:13px}.empty-payment{margin:0;padding:17px;color:#8792a4;font-size:10px}.payment-payer{display:flex;align-items:center;gap:8px;margin-top:6px;color:#4f5d73;font-size:9px;font-weight:800}.payment-payer select{min-width:230px;padding:7px 9px;border:1px solid #cfd9e8;border-radius:7px;background:#fff;color:#27344b;font-size:10px}
.detail-editable-row{cursor:text;user-select:text;transition:background .15s ease}.detail-editable-row:hover{background:#f2f6ff}.detail-editable-row:focus-visible{outline:2px solid #2459e8;outline-offset:-2px}.detail-editable-row .detail-row-actions{cursor:default;user-select:none}.detail-row-actions{white-space:nowrap;width:88px}.row-edit-btn{border:1px solid #b8c9ef;background:#f3f6ff;color:#2459e8;padding:7px 11px;border-radius:7px;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}.row-edit-btn:hover{background:#e5edff;border-color:#2459e8}.transaction-edit-modal{z-index:55}.payment-edit-modal{z-index:56}.ledger-detail-modal{z-index:40}
.entity-fields-supplier{grid-template-columns:1fr 1.4fr!important}
.entity-fields-customer.opening-fields{grid-template-columns:1fr 1.3fr 1fr}
.entity-name-search{margin-top:7px}
.entity-name-search>input{margin-top:0!important}
.partner-search-menu button.entity-dup-option{background:#fff5f5}
.partner-search-menu button.entity-dup-option b{color:#b12631}
.partner-search-menu button.entity-dup-option small{color:#c43a45}
.partner-search-menu button.entity-dup-option:hover{background:#ffe8ea}

/* ---- Báo cáo ---- */
.content-reports{padding-top:18px}
.reports-page{display:flex;flex-direction:column;gap:14px}
.report-toolbar{display:flex;flex-direction:column;gap:12px}
.report-type-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px;
  border:1px solid #e1e7ef;
  border-radius:14px;
  background:#fff;
}
.report-type-tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border:1px solid #d9e2ef;
  border-radius:999px;
  background:#f7f9fc;
  cursor:pointer;
  text-align:left;
  transition:border-color .12s,box-shadow .12s,background .12s,color .12s;
  max-width:100%;
}
.report-type-tab b{font-size:11px;color:#1c2941;white-space:nowrap}
.report-type-tab span{font-size:10px;color:#7b8699;line-height:1.2;white-space:nowrap}
.report-type-tab:hover{border-color:#a8bce8;background:#f0f5ff}
.report-type-tab.on{border-color:#2459e8;background:#e8efff;box-shadow:0 0 0 1px #2459e822}
.report-type-tab.on b{color:#1d4ed8}
.report-type-tab.on span{color:#4b6fd4}
.report-filters{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border:1px solid #e1e7ef;border-radius:13px;background:#fff}
.report-advanced{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.report-select{display:flex;flex-direction:column;gap:4px;font-size:10px;font-weight:700;color:#667183}
.report-select-label{font-size:10px;font-weight:700;color:#667183}
.report-select select{min-width:140px;padding:8px 10px;border:1px solid #d5deeb;border-radius:8px;background:#fff;font-size:11px;font-weight:600;color:#1c2941}
.report-select-search{min-width:180px}
.report-filter-search{position:relative;min-width:180px}
.report-filter-search>input{width:100%;box-sizing:border-box}
.report-filter-search .partner-search-menu button.on{background:#edf3ff}
.report-filter-search .partner-search-menu button.on b{color:#2459e8}
.report-search{display:flex;align-items:center;gap:6px;min-width:200px;padding:8px 12px;border:1px solid #d5deeb;border-radius:8px;color:#8e98a8;background:#fff;margin-bottom:1px}
.report-search input{border:0;outline:0;width:100%;font-size:12px;color:#1c2941}
.report-compare-toggle{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:#53617a;cursor:pointer;user-select:none;padding-bottom:8px}
.report-compare-toggle input{accent-color:#2459e8}
.report-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:2px 2px 0}
.report-intro h2{margin:0;font-size:16px;color:#1c2941}
.report-intro p{margin:6px 0 0;font-size:12px;color:#6b778c;max-width:720px;line-height:1.45}
.report-intro p b{color:#1c2941}
.report-export-main{flex-shrink:0}
.report-kpis{display:grid;gap:12px}
.report-kpis.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.report-kpis.six{grid-template-columns:repeat(6,minmax(0,1fr))}
.report-kpis .dash-kpi{cursor:pointer;min-width:0}
.report-kpis article.dash-kpi{cursor:default}
.report-kpis .dash-kpi b{font-size:18px;word-break:break-word}
.report-table-wrap{max-height:560px;overflow:auto}
.report-table td small,.report-table td b{display:block}
.report-table td strong{display:block;color:#1c2941}
.report-table tfoot td{background:#f5f8fc;border-top:1px solid #dce3ee}
.report-op-tag{display:inline-block;padding:3px 7px;border-radius:8px;background:#eef2ff;color:#3557c2;font-size:9px;font-weight:800}
.report-perf-dims{display:flex;flex-wrap:wrap;gap:8px}
.report-compare-panel .up{color:#158158;font-weight:700}
.report-compare-panel .down{color:#c43d46;font-weight:700}
.report-compare-panel .flat{color:#8a93a5}
.report-drill{border-top:1px solid #e8edf5;box-shadow:inset 0 3px 0 0 #eaf0ff}
.report-drill-actions{display:flex;align-items:center;gap:10px}
.report-advanced>button[data-action="clear-report-filters"]{border:1px solid #d5deeb;background:#fff;color:#667183;padding:8px 12px;border-radius:8px;font-size:11px;font-weight:700;cursor:pointer;margin-bottom:1px}
.report-advanced>button[data-action="clear-report-filters"]:hover{border-color:#c43d46;color:#c43d46}

@media (max-width: 1200px) {
  .report-kpis.six{grid-template-columns:repeat(3,minmax(0,1fr))}
  .report-type-tab span{display:none}
}
@media (max-width: 1100px) {
  .app-sidebar {
    width: 78px;
    padding: 14px 10px;
  }
  .brand {
    justify-content: center;
    padding: 4px 0 14px;
  }
  .brand-text,
  .user-text,
  .app-sidebar nav button .nav-label {
    display: none;
  }
  .brand > span {
    margin: 0 auto;
  }
  .app-sidebar nav button {
    justify-content: center;
    padding: 10px 8px;
    gap: 0;
  }
  .app-sidebar nav button i {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 16px;
  }
  .app-sidebar nav button.active {
    box-shadow: none;
  }
  .user {
    justify-content: center;
    padding: 12px 0 2px;
  }
  .content {
    margin-left: 78px;
    width: calc(100% - 78px);
    padding: 22px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .ledger-summary,.ledger-columns {
    grid-template-columns: 1fr 1fr;
  }
  .report-kpis.four,.report-kpis.six{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-intro{flex-direction:column}
}
@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 15px;
  }
  header {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .toolbar {
    align-items: stretch;
    gap: 10px;
    flex-direction: column;
  }
  .toolbar input {
    width: 85%;
  }
  .ticket-filterbar,.date-range-filter{align-items:stretch;flex-direction:column}.ticket-filterbar{gap:10px}.date-range-filter label{justify-content:space-between}.sort-summary{justify-content:space-between}
  .form-grid {
    grid-template-columns: 1fr;
  }
  .expense-fields,.expense-fields.four,.expense-fields.bsv-five,.cost-summary,.bsv-summary,.web-payment-box{grid-template-columns:1fr}.cost-summary span{border-right:0;border-bottom:1px solid #ffffff18}.posting-preview{align-items:flex-start;flex-direction:column}.posting-preview span{padding-left:0;border-left:0}
  .ledger-summary,.ledger-columns{grid-template-columns:1fr}.ledger-toolbar{align-items:stretch;flex-direction:column;gap:12px}.ledger-toolbar label{width:auto}.opening-inline{grid-template-columns:1fr}.opening-inline label{width:100%}.f1-import-summary,.f1-import-summary.four{grid-template-columns:1fr}.f1-note{align-items:flex-start;flex-direction:column}.f1-duplicate-head,.f1-duplicate-title,.f1-duplicate-operation{align-items:flex-start;flex-direction:column}.f1-duplicate-compare{grid-template-columns:1fr}.f1-duplicate-operation select{width:100%}
  .report-type-tabs,.report-kpis.four,.report-kpis.six{grid-template-columns:1fr}
  .report-advanced{flex-direction:column;align-items:stretch}
  .report-select select,.report-search{width:100%;min-width:0}
}
