/* ==========================================================================
   CocoMeo Birthday Invoice Stylesheet
   hoadonsinhnhat.cocomeo.uk
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #f59e0b;
  --success: #10b981;
  --success-dark: #047857;
  --danger: #ef4444;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-excel: #94a3b8;
  --excel-grid: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Top Navigation Bar
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.2;
}

.sub-brand {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Language & Template Buttons */
.lang-switch-group, .template-selector {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.lang-btn, .tpl-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-btn.active, .tpl-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

.btn-success {
  background-color: #10b981;
  color: #ffffff;
}

.btn-success:hover {
  background-color: #059669;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.82rem;
}

.btn-outline {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-outline-success {
  background: #ffffff;
  border-color: var(--success);
  color: var(--success-dark);
}

.btn-outline-success:hover {
  background: #ecfdf5;
}

/* ==========================================================================
   Layout: Sidebar + Invoice View
   ========================================================================== */
.app-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  padding: 24px;
  max-width: 1540px;
  margin: 0 auto;
  align-items: start;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fafafa;
  border-bottom: 1px solid var(--border-color);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e3a8a;
}

.panel-title h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-reset:hover {
  background: #f1f5f9;
  color: var(--danger);
  border-color: #fca5a5;
}

.form-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.label-hint {
  font-size: 0.76rem;
  font-weight: normal;
  color: var(--text-muted);
}

.required {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input-date-wrapper {
  display: flex;
  gap: 8px;
}

.btn-today {
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.btn-today:hover {
  background: #dbeafe;
}

.input-number-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-suffix {
  position: absolute;
  right: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  pointer-events: none;
}

.form-divider {
  border: none;
  border-top: 1px dashed var(--border-color);
  margin: 4px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-top: 2px;
}

.badge-price {
  font-size: 0.72rem;
  font-weight: 600;
  background: #ecfdf5;
  color: var(--success-dark);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #a7f3d0;
}

/* Packages */
.package-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  gap: 10px;
}

.package-info {
  display: flex;
  flex-direction: column;
}

.package-info strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.unit-price {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.package-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.small-input {
  width: 65px;
  text-align: center;
  padding: 5px 8px;
  font-weight: 700;
}

.package-amount {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e3a8a;
  min-width: 90px;
  text-align: right;
}

/* Compact input rows (+ / -) */
.form-row-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.row-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
  flex: 1;
}

.currency-input {
  width: 150px;
  text-align: right;
  font-family: 'Nunito', monospace;
  font-size: 0.92rem;
  padding: 6px 10px;
}

.small-note-input {
  padding: 4px 8px;
  font-size: 0.78rem;
  font-style: italic;
  margin-top: -6px;
  margin-bottom: 2px;
}

.highlight-deposit {
  background: #fffbeb;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #fef3c7;
}

.bold-input {
  font-weight: 700;
  color: #b45309;
}

/* Summary Card */
.summary-card {
  margin-top: 6px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #cbd5e1;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sum-value {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.text-deposit {
  color: #b45309;
}

.balance-row {
  border-top: 2px solid #cbd5e1;
  padding-top: 8px;
  margin-top: 4px;
}

.balance-row span:first-child {
  font-size: 1rem;
  font-weight: 800;
  color: #1e3a8a;
}

.text-balance {
  font-size: 1.35rem;
  color: #047857;
  font-weight: 900;
}

.panel-tip {
  display: flex;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.8rem;
  color: #166534;
  line-height: 1.4;
}

.tip-icon {
  font-size: 1.2rem;
}

/* ==========================================================================
   Right Side: Invoice Display & Exact Excel Layout
   ========================================================================== */
.invoice-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.invoice-toolbar {
  width: 100%;
  max-width: 660px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 10px;
}

.sheet-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e3a8a;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
}

.toggle-grid-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 8px;
}

.toolbar-right {
  display: flex;
  gap: 8px;
}

.sheet-outer-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 24px;
}

/* ==========================================================================
   Excel Invoice Sheet (A1 : F36) Exact Proportions
   ========================================================================== */
.excel-invoice-sheet {
  width: 650px;
  min-width: 650px;
  background: #ffffff;
  border: 1px solid #94a3b8;
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
  font-family: 'Calibri', 'Be Vietnam Pro', sans-serif;
  color: #000000;
  position: relative;
  padding-bottom: 8px;
}

/* Excel Column Header (When toggled) */
.excel-col-header {
  display: grid;
  grid-template-columns: 36px 18px 182px 162px 132px 132px 24px;
  background: #e2e8f0;
  border-bottom: 1px solid #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-align: center;
}

.excel-col-header .cell-head {
  padding: 4px;
  border-right: 1px solid #cbd5e1;
}

/* Sheet Row Layout:
   Columns A (18px), B (182px), C (162px), D (132px), E (132px), F (24px)
   Total = 650px
*/
.sheet-row {
  display: grid;
  grid-template-columns: 18px 182px 162px 132px 132px 24px;
  min-height: 24px;
  position: relative;
}

.sheet-row.show-row-idx {
  grid-template-columns: 36px 18px 182px 162px 132px 132px 24px;
}

.row-indicator {
  background: #f1f5f9;
  border-right: 1px solid #cbd5e1;
  font-size: 0.72rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  user-select: none;
}

.cell {
  padding: 2px 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  word-break: break-word;
}

.text-center { justify-content: center; text-align: center; }
.text-right { justify-content: flex-end; text-align: right; }

/* Rows 1-3: Header (Logo + Kids & Coffee on Col B, Birthday Title Banner on C-E) */
.header-excel-row {
  min-height: 105px;
  padding-top: 6px;
}

.brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.excel-brand-logo {
  height: 62px;
  width: auto;
  object-fit: contain;
}

.excel-subbrand-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.title-col {
  grid-column: span 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
}

.excel-header-banner {
  max-width: 100%;
  height: 96px;
  object-fit: contain;
}

/* Rows 4-5: Cute Column Icons (Kids, Calendar, Location, Guests) */
.cute-icons-row {
  min-height: 38px;
  align-items: flex-end;
}

.icon-cell {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
}

.excel-cute-icon {
  object-fit: contain;
}

.host-icon { height: 34px; }
.cal-icon { height: 32px; }
.loc-icon { height: 35px; }
.guests-icon { height: 30px; }

/* Row 6: Info Header (CHỦ TIỆC, NGÀY, CƠ SỞ, SỐ LƯỢNG KHÁCH) */
.info-header-row {
  min-height: 26px;
}

.th-cell {
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  justify-content: center;
  padding: 4px 2px;
  border-top: 1px dashed #7f7f7f;
}

.th-host {
  color: #0070c0;
  border-left: 2px dashed #5b9bd5;
  border-right: 1px dashed #7f7f7f;
}

.th-date {
  color: #00b050;
  border-right: 1px dashed #7f7f7f;
}

.th-branch {
  color: #c00000;
  border-right: 1px dashed #7f7f7f;
}

.th-guests {
  color: #0070c0;
  border-right: 2px dashed #5b9bd5;
}

/* Row 7: Info Values */
.info-value-row {
  min-height: 28px;
}

.val-cell {
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  justify-content: center;
  padding: 4px 2px;
  border-bottom: 1px dashed #7f7f7f;
}

.val-cell.host-val {
  color: #000000;
  border-left: 2px dashed #5b9bd5;
  border-right: 1px dashed #7f7f7f;
}

.val-cell.date-val {
  color: #000000;
  border-right: 1px dashed #7f7f7f;
  font-family: 'Calibri', monospace;
}

.val-cell.branch-val {
  color: #000000;
  border-right: 1px dashed #7f7f7f;
}

.val-cell.count-val {
  color: #000000;
  border-right: 2px dashed #5b9bd5;
}

/* Empty rows */
.empty-row {
  min-height: 10px;
}

/* Row 10: CHI TIẾT THANH TOÁN */
.section-header-row {
  min-height: 28px;
}

.section-heading {
  grid-column: span 4;
  background: #4472c4;
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  justify-content: center;
  text-align: center;
  border: 2px solid #203764;
  border-bottom: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Row 11: Table Header (NỘI DUNG, SỐ LƯỢNG, ĐƠN GIÁ, THÀNH TIỀN) */
.tbl-header-row {
  min-height: 24px;
}

.tbl-th {
  background: #d9e1f2;
  color: #1f4e78;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 6px;
  border-top: 1px solid #8ea9db;
  border-bottom: 1px solid #8ea9db;
  justify-content: center;
}

.tbl-header-row .col-b {
  border-left: 2px solid #203764;
  border-right: 1px dashed #8ea9db;
}

.tbl-header-row .col-c, .tbl-header-row .col-d {
  border-right: 1px dashed #8ea9db;
}

.tbl-header-row .col-e {
  border-right: 2px solid #203764;
}

/* Rows 13-24: Data Rows (with Excel borders) */
.data-row {
  min-height: 24px;
}

.data-row .col-b {
  border-left: 2px solid #203764;
  border-right: 1px dashed #b4c6e7;
  font-weight: 700;
  font-size: 12px;
  justify-content: center;
}

.data-row .col-c {
  border-right: 1px dashed #b4c6e7;
  font-size: 12px;
}

.data-row .col-d {
  border-right: 1px dashed #b4c6e7;
  font-size: 12px;
}

.data-row .col-c-d {
  grid-column: span 2;
  border-right: 1px dashed #b4c6e7;
}

.data-row .col-e {
  border-right: 2px solid #203764;
  font-size: 12px;
  font-weight: 700;
}

.sub-note-text {
  font-size: 11px;
  font-weight: normal;
  color: #64748b;
  font-style: italic;
  margin-left: 4px;
}

.text-deduct {
  color: #c00000;
}

/* ==========================================================================
   Rows 26 - 31: Bottom Totals Section with Cute Cat
   ========================================================================== */
.bottom-calc-wrapper {
  display: grid;
  grid-template-columns: 18px 182px 426px 24px;
  align-items: center;
  padding: 4px 0;
}

.cat-illustration-box {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.cute-cat-cake-img {
  max-height: 140px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.06));
}

.calc-rows-container {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 6px;
}

.calc-spacing-line {
  height: 4px;
}

/* Calc Row Shared */
.row-27-calc, .row-29-calc, .row-31-calc {
  display: grid;
  grid-template-columns: 294px 132px;
  min-height: 34px;
  border-radius: 4px;
  overflow: hidden;
}

.cell-calc-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  border-right: 1px dotted #999;
}

.cell-calc-val {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Calibri', 'Nunito', sans-serif;
}

/* Row 27: TỔNG CỘNG */
.total-box-row {
  background: #deebf7;
  border: 2px dashed #41719c;
  color: #002060;
}

.total-label-cell {
  font-size: 16px;
  letter-spacing: 0.5px;
}

.total-val-cell {
  font-size: 17px;
}

/* Row 29: ĐÃ CỌC */
.deposit-box-row {
  background: #ffffff;
  border: 2px dashed #7f7f7f;
  color: #000000;
}

.deposit-label-cell {
  font-size: 15px;
}

.deposit-val-cell {
  font-size: 16px;
  color: #b45309;
}

/* Row 31: CÒN LẠI */
.balance-box-row {
  background: #fff2cc;
  border: 2px dashed #ed7d31;
  color: #ed6917;
  min-height: 40px;
}

.balance-label-cell {
  font-size: 19px;
  letter-spacing: 0.5px;
}

.balance-val-cell {
  font-size: 21px;
  font-weight: 900;
}

/* ==========================================================================
   Rows 32 - 36: Footer Banner Image
   ========================================================================== */
.footer-banner-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px 4px;
}

.footer-banner-cell {
  grid-column: span 4;
  width: 100%;
  display: flex;
  justify-content: center;
}

.excel-footer-banner {
  max-width: 100%;
  height: 64px;
  object-fit: contain;
}

/* ==========================================================================
   Compact Template Layout
   ========================================================================== */
.compact-layout {
  padding: 24px 28px;
}

.compact-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f59e0b;
}

.compact-logo {
  height: 60px;
  object-fit: contain;
}

.compact-title-box h3 {
  font-size: 1.3rem;
  font-weight: 900;
  color: #1e3a8a;
  text-transform: uppercase;
}

.cpt-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: #d97706;
  letter-spacing: 1px;
}

.compact-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.cpt-meta-row {
  display: flex;
  font-size: 0.88rem;
}

.cpt-label {
  width: 90px;
  font-weight: 600;
  color: var(--text-muted);
}

.cpt-value {
  font-weight: 600;
  color: var(--text-main);
}

.cpt-bold {
  color: #b45309;
  font-weight: 800;
}

.compact-calc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.compact-calc-table td {
  padding: 6px 8px;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
}

.compact-calc-table .col-name {
  width: 50%;
  font-weight: 600;
  color: #1e293b;
}

.compact-calc-table .col-sign {
  width: 5%;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
}

.compact-calc-table .col-val {
  width: 30%;
  text-align: right;
  font-family: 'Nunito', sans-serif;
  font-size: 0.94rem;
}

.compact-calc-table .col-note {
  width: 15%;
  text-align: right;
  font-size: 0.78rem;
  color: #64748b;
  font-style: italic;
}

.subtotal-calc-row {
  background: #f8fafc;
  font-weight: 700;
}

.compact-total-row {
  background: #f1f5f9;
  font-size: 0.95rem;
}

.compact-deposit-row {
  background: #fffbeb;
}

.compact-balance-row {
  background: #fff2cc;
  border-top: 2px dashed #ed7d31;
  border-bottom: 2px dashed #ed7d31;
}

.highlight-box {
  font-size: 1.25rem !important;
  color: #ed6917 !important;
}

.compact-footer {
  text-align: center;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-popup {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1e293b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.9rem;
  font-weight: 600;
}

.toast-popup.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  font-size: 1.2rem;
}

/* ==========================================================================
   Print Optimization
   ========================================================================== */
@media print {
  body {
    background: #ffffff;
    padding: 0;
    margin: 0;
  }

  .top-nav, .control-panel, .invoice-toolbar, .no-print, .toast-popup {
    display: none !important;
  }

  .app-layout {
    display: block;
    padding: 0;
    margin: 0;
    max-width: 100%;
  }

  .invoice-container {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .sheet-outer-wrapper {
    padding: 0;
    overflow: visible;
  }

  .excel-invoice-sheet {
    box-shadow: none !important;
    border: none !important;
    margin: 0 auto;
    page-break-inside: avoid;
  }

  @page {
    size: auto;
    margin: 8mm;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .control-panel {
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .top-nav {
    padding: 10px 14px;
  }

  .app-layout {
    padding: 10px;
  }

  .excel-invoice-sheet {
    transform: scale(0.92);
    transform-origin: top center;
  }
}
