/* ==========================================================================
   BKAV E-HOADON 2.0 PORTAL STYLESHEET (VAN.EHOADON.VN MAIN PORTAL)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

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

body {
  font-family: 'Roboto', Tahoma, Arial, sans-serif;
  font-size: 12px;
  background-color: #e9ecef;
  color: #212529;
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================= TOP HEADER ================= */
.bkav-header {
  background: linear-gradient(180deg, #155bb5 0%, #004098 100%);
  color: #ffffff;
  padding: 10px 20px 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 100;
  min-height: 68px;
}

.bkav-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
}

.bkav-brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #fff;
}

.bkav-logo-text {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.5px;
}

.bkav-logo-sub {
  font-size: 19px;
  font-weight: 700;
  font-style: italic;
}

.bkav-version-tag {
  font-size: 10px;
  color: #93c5fd;
  margin-left: 2px;
  font-weight: normal;
}

.header-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #e0f2fe;
}

.header-user-actions a {
  color: #ffffff;
  text-decoration: none;
}

.header-user-actions a:hover {
  text-decoration: underline;
}

.header-icon-btn {
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
}

/* Header Main Navigation Tabs */
.bkav-nav-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-left: auto;
}

.nav-tab-item {
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 4px 4px 0 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: none;
}

.nav-tab-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

.nav-tab-item.active {
  background: #ffffff;
  color: #004098;
  border-color: #ffffff;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

/* ================= MAIN CONTAINER ================= */
.main-wrapper {
  flex: 1;
  background-color: #f0f2f5;
  padding: 10px 14px 0px 14px;
  display: flex;
  flex-direction: column;
}

/* ================= FILTER TOOLBAR (MATCHING EXACT BKAV IMAGE) ================= */
.filter-card {
  background: #e5e9f0;
  border: 1px solid #b8c4d9;
  border-radius: 2px;
  padding: 8px 10px;
  margin-bottom: 8px;
  box-shadow: inset 0 1px 0 #fff;
  position: relative;
}

.filter-card-close-btn {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 12px;
  color: #0054a6;
  cursor: pointer;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  flex-wrap: nowrap;
}

.filter-row-1 {
  margin-bottom: 6px;
}

/* EXACT FIXED COLUMN METRICS matching Bkav screenshot */
.col-lbl-1 {
  width: 50px;
  text-align: right;
  font-size: 11px;
  color: #1e293b;
  white-space: nowrap;
  flex-shrink: 0;
}

.col-ctrl-1 {
  width: 85px;
  flex-shrink: 0;
}

.col-lbl-2 {
  width: 55px;
  text-align: right;
  font-size: 11px;
  color: #1e293b;
  white-space: nowrap;
  flex-shrink: 0;
}

.col-ctrl-2 {
  width: 115px;
  flex-shrink: 0;
}

.col-lbl-3 {
  width: 85px;
  text-align: right;
  font-size: 11px;
  color: #1e293b;
  white-space: nowrap;
  flex-shrink: 0;
}

.col-ctrl-3 {
  width: 140px;
  flex-shrink: 0;
}

.col-lbl-4 {
  width: 60px;
  text-align: right;
  font-size: 11px;
  color: #1e293b;
  white-space: nowrap;
  flex-shrink: 0;
}

.col-ctrl-4 {
  width: 100px;
  flex-shrink: 0;
}

.col-lbl-5 {
  width: 45px;
  text-align: right;
  font-size: 11px;
  color: #1e293b;
  white-space: nowrap;
  flex-shrink: 0;
}

.col-ctrl-5 {
  flex: 1;
}

/* TAKES ALL EXPANDED SPACE TO THE RIGHT */

.filter-input,
.filter-select {
  height: 24px;
  padding: 1px 6px;
  font-size: 11px;
  border: 1px solid #a6b7d4;
  border-radius: 2px;
  background-color: #fff;
  color: #1e293b;
  width: 100%;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #0054a6;
}

/* DYNAMIC DATE RANGE SUB-ROW (CONTAINED INLINE INSIDE FILTER PANEL) */
.filter-custom-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #a6b7d4;
  border-radius: 2px;
  padding: 4px 10px;
  margin-top: 6px;
  width: 100%;
}

.filter-custom-date-row.hidden {
  display: none !important;
}

.date-picker-input {
  width: 95px;
  height: 22px;
  padding: 1px 6px;
  font-size: 11px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  text-align: center;
  color: #0054a6;
  font-weight: 500;
  background: #fff;
}

.date-picker-input:focus {
  outline: none;
  border-color: #0054a6;
}

/* SQUARE ICON BUTTONS MATCHING BKAV IMAGE */
.btn-filter-square {
  height: 24px;
  width: 26px;
  background: #0054a6;
  color: #fff;
  border: 1px solid #003d7a;
  border-radius: 2px;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-filter-square:hover {
  background: #003d7a;
}

/* Announcement & Action Bar */
.action-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
}

.news-ticker {
  color: #b91c1c;
  font-weight: 500;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.news-ticker:hover {
  text-decoration: underline;
}

.toolbar-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-toolbar {
  height: 26px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.btn-excel {
  background-color: #0054a6;
}

.btn-add-new {
  background-color: #0284c7;
}

.btn-more {
  background-color: #0054a6;
  padding: 0 8px;
}

/* ================= PAGINATION BAR ================= */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e2e8f0;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-bottom: none;
  font-size: 11px;
}

.pager-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pager-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
}

.pager-btn:hover {
  background: #f8fafc;
}

/* ================= MAIN DATA TABLE ================= */
.invoice-table-wrapper {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  overflow-x: auto;
}

.bkav-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}

.bkav-data-table th {
  background: #003d7a;
  color: #ffffff;
  font-weight: bold;
  padding: 6px 6px;
  border: 1px solid #002b57;
  text-align: center;
  vertical-align: middle;
  line-height: 1.2;
}

.bkav-data-table td {
  padding: 6px 6px;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
}

.bkav-data-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.bkav-data-table tbody tr:hover {
  background-color: #e6f0fa;
}

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

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

.text-sub {
  font-size: 10px;
  color: #64748b;
  display: block;
}

.text-bold-blue {
  font-weight: bold;
  color: #0054a6;
}

/* Status Text Colors */
.st-mt {
  color: #000000;
  font-weight: bold;
}

.st-ck {
  color: #854d0e;
  font-weight: bold;
}

.st-dph {
  color: #0284c7;
  font-weight: bold;
}

.st-dh {
  color: #dc2626;
  font-weight: bold;
}

.st-tdd {
  color: #004098;
  font-weight: bold;
}

.action-icon-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.act-icon {
  color: #0054a6;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}

.act-icon:hover {
  color: #002b57;
}

/* ================= LEGEND CARD ================= */
.legend-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 11px;
}

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

.legend-title {
  font-weight: bold;
  font-size: 11px;
  margin-bottom: 6px;
  color: #003d7a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 3px;
}

.legend-items-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 12px;
  line-height: 1.35;
}

.legend-item {
  display: flex;
  gap: 4px;
}

/* ================= FIXED ANCHORED FOOTER (NEO ĐÁY TRANG) ================= */
.bkav-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: #1e293b;
  color: #94a3b8;
  padding: 6px 16px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #0054a6;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

.bkav-footer a {
  color: #cbd5e1;
  text-decoration: none;
  margin: 0 4px;
}

.bkav-footer a:hover {
  text-decoration: underline;
}

/* Floating Support Chat Button */
.floating-support-btn {
  position: fixed;
  bottom: 50px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0084ff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0, 132, 255, 0.4);
  cursor: pointer;
  z-index: 9999;
}

/* ==========================================================================
   BKAV CREATE/EDIT INVOICE MODAL (100% MATCHING BKAV USER SCREENSHOT)
   ========================================================================== */
.bkav-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.bkav-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bkav-modal-card {
  background: #ffffff;
  width: 94%;
  max-width: 1080px;
  max-height: 94vh;
  border-radius: 3px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #0054a6;
}

.bkav-modal-header {
  background: #0054a6;
  color: #ffffff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  font-size: 13px;
}

.modal-close-x {
  cursor: pointer;
  font-size: 14px;
  color: #ffffff;
}

.modal-close-x:hover {
  opacity: 0.8;
}

.bkav-modal-body {
  padding: 10px 14px;
  overflow-y: auto;
  flex: 1;
}

/* Fieldset Container Styles */
.bkav-fieldset {
  border: 1px solid #b8c4d9;
  border-radius: 2px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #f8fafc;
}

.bkav-legend {
  font-size: 11px;
  font-weight: bold;
  color: #0054a6;
  padding: 0 6px;
  width: auto;
}

.modal-top-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 11px;
}

.form-lbl {
  width: 75px;
  color: #334155;
  font-size: 11px;
  flex-shrink: 0;
  text-align: left;
}

.form-lbl-sm {
  width: 80px;
  color: #334155;
  font-size: 11px;
  flex-shrink: 0;
  text-align: left;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 5px;
}

.form-col {
  display: flex;
  align-items: center;
}

.form-input {
  height: 24px;
  padding: 1px 6px;
  font-size: 11px;
  border: 1px solid #a6b7d4;
  border-radius: 2px;
  background-color: #fff;
  color: #1e293b;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: #0054a6;
}

.btn-fetch-info {
  height: 24px;
  padding: 0 10px;
  background: #0054a6;
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
}

.btn-fetch-info:hover {
  background: #003d7a;
}

/* Item Details Section */
.item-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 6px;
}

.btn-sub-action {
  height: 24px;
  padding: 0 10px;
  background: #0054a6;
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.btn-sub-action:hover {
  background: #003d7a;
}

.item-table-wrapper {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  max-height: 180px;
  overflow-y: auto;
}

.modal-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.modal-detail-table th {
  background: #0054a6;
  color: #ffffff;
  font-weight: bold;
  padding: 5px 6px;
  border: 1px solid #003d7a;
  text-align: center;
}

.modal-detail-table td {
  padding: 4px 6px;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
}

.item-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e2e8f0;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-top: none;
  font-size: 11px;
}

.btn-add-file-icon {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: #0054a6;
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Modal Footer Action Buttons */
.bkav-modal-footer {
  background: #f1f5f9;
  padding: 8px 14px;
  border-top: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-modal-red {
  height: 26px;
  padding: 0 14px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-modal-red:hover {
  background: #b91c1c;
}

.btn-modal-blue {
  height: 26px;
  padding: 0 16px;
  background: #0054a6;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.btn-modal-blue:hover {
  background: #003d7a;
}

.btn-modal-grey {
  height: 26px;
  padding: 0 16px;
  background: #94a3b8;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.btn-modal-grey:hover {
  background: #64748b;
}

/* =========================================
   VIEW INVOICE MODAL (A4 VAT INVOICE STYLE)
   ========================================= */

#view-invoice-modal .modal-content {
  width: 900px;
  max-width: 95%;
  max-height: 94vh;
  background: #f1f5f9;
  padding: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#view-invoice-modal .modal-body {
  padding: 10px;
  background: #f1f5f9;
  overflow-y: auto;
  overflow-x: auto;
}

/* A4 Paper Container */
.invoice-a4-container {
  width: 100%;
  max-width: 800px;
  min-width: 700px;
  /* Maintain A4 layout on small screens (modal body scrolls) */
  min-height: 1120px;
  background: #fff;
  padding: 70px 55px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  border: none;
  background-color: #fff;
  background-image: url('../img/bg_invoice.jpg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  font-family: 'Times New Roman', Times, serif !important;
  color: #000;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.invoice-a4-container * {
  box-sizing: border-box;
}

.inv-inner-box {
  border: 1px solid #0054a6;
  padding: 0;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.en-italic {
  font-style: italic;
  font-size: 12px;
  font-weight: normal;
}

/* Header Section */
.inv-header {
  display: flex;
  justify-content: space-between;
  padding: 15px 5px;
}

.inv-logo-box {
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inv-title-box {
  text-align: center;
  flex: 1;
  padding: 0 5px;
}

.inv-title-box h1 {
  font-size: 20px;
  color: #0054a6;
  margin: 0 0 5px 0;
  font-weight: bold;
}

.inv-title-box h2 {
  font-size: 16px;
  color: #0054a6;
  margin: 0 0 10px 0;
  font-weight: normal;
}

.inv-date {
  font-size: 13px;
  color: #0054a6;
}

.inv-meta-box {
  width: 270px;
  font-size: 13px;
  text-align: right;
  line-height: 1.6;
  color: #0054a6;
  font-weight: bold;
  white-space: nowrap;
}

.inv-tax-authority {
  font-size: 13px;
  border-top: 1px solid #0054a6;
  border-bottom: 1px solid #0054a6;
  padding: 6px 15px;
}

/* Info Sections */
.inv-info-row {
  display: flex;
  margin-bottom: 4px;
  font-size: 13px;
}

.inv-info-label {
  width: 130px;
  color: #0054a6;
  font-weight: normal;
}

.inv-info-value {
  flex: 1;
  font-weight: bold;
  word-wrap: break-word;
  word-break: break-word;
}

.inv-seller-block {
  border-bottom: 1px solid #0054a6;
  padding: 10px 15px;
}

.inv-buyer-block {
  border-bottom: 1px solid #0054a6;
  padding: 10px 15px;
}

/* Table */
.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.inv-table th,
.inv-table td {
  border-right: 1px solid #0054a6;
  padding: 6px 8px;
  word-wrap: break-word;
  word-break: break-word;
}

.inv-table th:last-child,
.inv-table td:last-child {
  border-right: none;
}

.inv-table th {
  color: #0054a6;
  font-weight: bold;
  text-align: center;
}

.inv-table .col-stt {
  width: 50px;
  text-align: center;
}

.inv-table .col-name {
  text-align: left;
}

.inv-table .col-unit {
  width: 70px;
  text-align: center;
}

.inv-table .col-qty {
  width: 70px;
  text-align: right;
}

.inv-table .col-price {
  width: 110px;
  text-align: right;
}

.inv-table .col-total {
  width: 130px;
  text-align: right;
}

.inv-table tbody tr td {
  border-bottom: 1px solid #0054a6;
}

.inv-table tbody tr:last-child td {
  border-bottom: none;
}

.inv-summary-row td {
  border-top: 1px solid #0054a6;
  padding: 6px 8px;
}

.inv-summary-label {
  text-align: right;
  color: #0054a6;
}

.inv-summary-value {
  text-align: right;
  font-weight: bold;
  word-wrap: break-word;
  word-break: break-word;
}

.inv-words {
  font-size: 13px;
  border-top: 1px solid #0054a6;
  border-bottom: 1px solid #0054a6;
  padding: 6px 15px;
  color: #0054a6;
  word-wrap: break-word;
  word-break: break-word;
}

/* Signatures */
.inv-signatures {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  margin-bottom: 30px;
  text-align: center;
}

.inv-sig-buyer,
.inv-sig-seller {
  width: 45%;
}

.inv-sig-title {
  color: #0054a6;
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 5px;
}

.inv-digital-sig {
  margin-top: 15px;
  background-color: #dcfce7;
  padding: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #166534;
  display: inline-block;
  min-width: 250px;
}

.inv-inner-footer {
  text-align: center;
  padding-bottom: 10px;
}

.inv-outer-footer {
  text-align: center;
  font-size: 12px;
  margin-top: 15px;
  line-height: 1.5;
}

/* Print Button Wrapper */
.inv-actions-top {
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px;
  background: #fff;
  border-top: 1px solid #cbd5e1;
}

/* =========================================================
   PRINT STYLES
========================================================= */
@media print {
  body * {
    visibility: hidden;
  }

  #view-invoice-modal,
  #view-invoice-modal * {
    visibility: visible;
  }

  #view-invoice-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: none;
  }

  .inv-actions-top,
  .close-modal-btn {
    display: none !important;
  }

  .invoice-a4-container {
    box-shadow: none;
    min-height: auto;
  }
}

.inv-actions-top .bkav-btn {
  margin-left: 10px;
}

/* =========================================================
   CQT VIEW STYLES (KẾT NỐI VỚI CQT)
========================================================= */
#view-ketnoicqt {
  padding: 5px 0 0 0;
  background: transparent;
  min-height: calc(100vh - 120px);
}

.cqt-sub-tabs {
  display: flex;
  margin-bottom: 0px;
}

.cqt-sub-tab {
  background: #a1a1aa;
  /* gray */
  color: #fff;
  padding: 6px 15px;
  margin-right: 2px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.cqt-sub-tab.active {
  background: #0054a6;
  /* bkav blue */
}

.cqt-main-container {
  background: #fff;
  border: 1px solid #0054a6;
  border-top: 1px solid #0054a6;
}

.cqt-filter-grid {
  display: grid;
  grid-template-columns: auto auto auto auto;
  justify-content: start;
  gap: 10px 40px;
  padding: 10px 15px;
  border-bottom: 1px solid #cbd5e1;
}

.cqt-filter-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cqt-col-btn {
  justify-content: flex-start;
}

.cqt-row {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.cqt-row label {
  width: 60px;
  color: #333;
}

.cqt-select {
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  height: 28px;
  width: 140px;
  font-size: 13px;
  outline: none;
}

.cqt-wide {
  width: 100%;
  max-width: 250px;
}

.cqt-input {
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  height: 28px;
  width: 140px;
  font-size: 13px;
  outline: none;
}

.cqt-btn {
  height: 28px;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-left: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cqt-btn-search {
  background: #0ea5e9;
  width: 32px;
}

.cqt-btn-search:hover {
  background: #0284c7;
}

.cqt-btn-filter {
  background: #0284c7;
  width: 32px;
}

.cqt-btn-filter:hover {
  background: #0369a1;
}

.cqt-btn-export {
  background: #0054a6;
  padding: 0 15px;
}

.cqt-btn-export:hover {
  background: #003e7e;
}

.cqt-table-container {
  background: #fff;
  margin: 15px;
}

.cqt-table-container .bkav-data-table th {
  background: #0054a6;
  border-right: 1px solid #2563eb;
}

.cqt-table-container .bkav-data-table th:last-child {
  border-right: none;
}

/* THÔNG ĐIỆP GỬI ĐẾN CQT SPECIFIC STYLES */
.cqt-gui-toolbar {
  padding: 10px 15px;
  border-bottom: 1px solid #cbd5e1;
}

.cqt-gui-row-1 {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin-bottom: 10px;
}

.cqt-gui-row-1 label {
  margin-right: 5px;
  color: #333;
}

.cqt-gui-row-2 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.cqt-btn-add {
  background: #0054a6;
  padding: 0 15px;
}

.cqt-btn-add:hover {
  background: #003e7e;
}

.cqt-legend {
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.6;
}

.cqt-legend h3 {
  font-size: 16px;
  font-weight: normal;
  color: #333;
  margin: 0 0 10px 0;
}

.cqt-legend .legend-item {
  margin-bottom: 4px;
}
 / *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
       P R I N T   S T Y L E S 
       = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 @ m e d i a   p r i n t   { 
     b o d y   { 
         b a c k g r o u n d - c o l o r :   # f f f ; 
     } 
     . b k a v - h e a d e r , 
     . b k a v - n a v - t a b s , 
     . b k a v - m a i n - c o n t e n t , 
     # v i e w - t a i k h o a n , 
     # c r e a t e - i n v o i c e - m o d a l   { 
         d i s p l a y :   n o n e   ! i m p o r t a n t ; 
     } 
     
     # v i e w - i n v o i c e - m o d a l   { 
         p o s i t i o n :   s t a t i c   ! i m p o r t a n t ; 
         d i s p l a y :   b l o c k   ! i m p o r t a n t ; 
         b a c k g r o u n d :   t r a n s p a r e n t   ! i m p o r t a n t ; 
         p a d d i n g :   0   ! i m p o r t a n t ; 
         z - i n d e x :   1   ! i m p o r t a n t ; 
     } 
     
     # v i e w - i n v o i c e - m o d a l   . b k a v - m o d a l - c a r d   { 
         b a c k g r o u n d :   t r a n s p a r e n t   ! i m p o r t a n t ; 
         b o x - s h a d o w :   n o n e   ! i m p o r t a n t ; 
         w i d t h :   1 0 0 %   ! i m p o r t a n t ; 
         p a d d i n g :   0   ! i m p o r t a n t ; 
         m a r g i n :   0   ! i m p o r t a n t ; 
     } 
     
     # v i e w - i n v o i c e - m o d a l   . b k a v - m o d a l - b o d y   { 
         p a d d i n g :   0   ! i m p o r t a n t ; 
     } 
     
     . v i e w - i n v o i c e - p a p e r   { 
         b o x - s h a d o w :   n o n e   ! i m p o r t a n t ; 
         b o r d e r :   n o n e   ! i m p o r t a n t ; 
         m a r g i n :   0   a u t o   ! i m p o r t a n t ; 
         w i d t h :   1 0 0 %   ! i m p o r t a n t ; 
     } 
     
     . i n v - a c t i o n s - t o p   { 
         d i s p l a y :   n o n e   ! i m p o r t a n t ; 
     } 
 }  
 