/* Export Platform - responsive dark-blue theme */
:root {
  --bg: #0f172a;
  --panel: #16213b;
  --card: #1f2937;
  --border: #2d3b55;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --blue: #3b82f6;
  --blue-strong: #2563eb;
  --teal: #14b8a6;
  --green: #22c55e;
  --orange: #f59e0b;
  --red: #ef4444;
  --accent: #38bdf8;
  --shadow: 0 25px 50px -12px rgba(8, 47, 73, 0.45);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  height: 100%;
}

body {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 45%),
              radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 50%),
              var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.16) 0%, rgba(22, 33, 59, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-header {
  text-align: center;
  padding: 2.5rem 2rem 1.5rem;
}

.login-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(20, 184, 166, 0.9));
  color: var(--bg);
  font-size: 2rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px -12px rgba(20, 184, 166, 0.8);
}

/* the company logo fills the circle and is cropped to a perfect round shape */
.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
}

/* a logo with transparent edges is padded instead of cropped */
.login-logo img.contain {
  object-fit: contain;
  padding: 8px;
  background: #ffffff;
}

.login-logo img[hidden] {
  display: none;
}

.login-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.login-header p {
  color: var(--text-tertiary);
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0 2rem 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.form-error {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.form-success {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: #86efac;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.btn {
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.95));
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px -20px rgba(59, 130, 246, 0.9);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
}

.btn-full {
  width: 100%;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
}

.sidebar {
  background: linear-gradient(180deg, rgba(22, 33, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
}

.sidebar-brand {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.8rem 1.8rem 1.2rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(20, 184, 166, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 1.6rem;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-sub {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 1rem 1rem;
  overflow-y: auto;
}

.nav-group {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 1rem 0 0.4rem;
  padding: 0 0.8rem;
}

.nav-item {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.nav-item i {
  width: 20px;
  text-align: center;
}

.nav-item:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.28), transparent);
  color: var(--text-primary);
  border-left: 3px solid rgba(56, 189, 248, 0.9);
  padding-left: 0.8rem;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-top: 1px solid var(--border);
}

.brand-end {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(20, 184, 166, 0.14));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.brand-end-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.brand-end-text {
  min-width: 0;
}

.brand-end-name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-end-sub {
  color: var(--text-tertiary);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(20, 184, 166, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
}

.user-name {
  font-weight: 600;
}

.user-role {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  text-transform: capitalize;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 2rem 2.6rem;
  gap: 1.8rem;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-left h2 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.topbar-left p {
  color: var(--text-tertiary);
}

.topbar-right {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.view-container {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.grid {
  display: grid;
  gap: 1.4rem;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.mt-4 {
  margin-top: 1.4rem;
}

.kpi-card {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18) 0%, rgba(31, 41, 55, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.kpi-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.kpi-icon.blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
}

.kpi-icon.green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
}

.kpi-icon.orange {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
}

.kpi-icon.teal {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.9), rgba(13, 148, 136, 0.9));
}

.kpi-label {
  color: var(--text-tertiary);
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-label {
  color: var(--text-tertiary);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 600;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--border);
}

.panel-header h3 {
  font-size: 1.1rem;
}

.panel-body {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.table-wrap {
  overflow-x: auto;
  padding: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.95rem;
}

.data-table thead th {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.08);
}

.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.9), rgba(13, 148, 136, 0.9));
  color: #042f2e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.kv span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.modal {
  border: none;
  background: transparent;
}

.modal::backdrop {
  background: rgba(8, 11, 24, 0.7);
}

.modal-card {
  margin: auto;
  width: min(460px, 90vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 92vh;
}

.modal-card.small {
  width: min(420px, 90vw);
}

.modal-card.wide {
  width: min(760px, 94vw);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-grid.wide {
  grid-template-columns: repeat(3, 1fr);
}

.form-grid .form-group.wide {
  grid-column: 1 / -1;
}

.form-help {
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

.form-group input[readonly] {
  opacity: 0.6;
  cursor: not-allowed;
}

.confirm-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.btn-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(185, 28, 28, 0.95));
}

.btn-danger:hover:not(:disabled) {
  box-shadow: 0 20px 40px -20px rgba(239, 68, 68, 0.9);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 150ms ease;
}

.btn-icon:hover {
  border-color: rgba(56, 189, 248, 0.6);
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.12);
}

.btn-icon.danger:hover {
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}

.row-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

.toast-box {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 9999;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
  box-shadow: var(--shadow);
  animation: toast-in 220ms ease;
  max-width: 360px;
}

.toast.error {
  border-left-color: var(--red);
}

.toast.info {
  border-left-color: var(--accent);
}

.toast.hide {
  opacity: 0;
  transform: translateX(20px);
  transition: all 300ms ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.inline-error {
  margin-top: 1rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: flex-end;
}

.filter-bar .form-group {
  flex: 0 1 190px;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-tertiary);
}

.empty-state i {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  opacity: 0.5;
  display: block;
}

.muted {
  color: var(--text-tertiary);
  font-size: 0.92rem;
}

.loading {
  color: var(--text-tertiary);
  padding: 2rem 0;
  text-align: center;
}

.actions-cell {
  text-align: right;
  width: 90px;
}

.btn-icon[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-icon[disabled]:hover {
  border-color: var(--border);
  background: transparent;
  color: var(--text-secondary);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 1rem 1.6rem 1.4rem;
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 1.2rem;
  cursor: pointer;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.form-inline .form-group {
  flex: 1 1 220px;
}

@media (max-width: 1280px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(1, 1fr);
  }
  .span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 1024px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
  }
}

/* ---------------------------------------------------------- invoice screen */

.invoice-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.25);
}

.check-group-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.35rem;
}

.check-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}

.check-row:hover {
  background: rgba(56, 189, 248, 0.08);
}

.check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.check-name {
  font-size: 0.92rem;
}

.check-desc {
  grid-column: 2;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.check-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.invoice-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  margin-top: 0.9rem;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 0.95rem;
}

.invoice-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.invoice-toggles .form-group {
  margin: 0;
}

.invoice-toggles input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.invoice-mini table {
  width: 100%;
  border-collapse: collapse;
}

.invoice-mini td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.invoice-mini td:last-child {
  text-align: right;
  font-weight: 600;
}

/* ------------------------------------------------------- printable invoice */

.invoice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  z-index: 9998;
  overflow-y: auto;
  padding: 2.5rem 1.5rem;
}

.invoice-toolbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin: 0 auto 1.2rem;
  max-width: 860px;
  z-index: 2;
}

.invoice-sheet {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 2.6rem 2.8rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid #0f3b5c;
}

.invoice-head-left {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.invoice-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 8px;
}

.invoice-company-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f3b5c;
  margin-bottom: 0.25rem;
}

.invoice-company-line {
  font-size: 0.85rem;
  color: #475569;
}

.invoice-head-right {
  text-align: right;
  min-width: 220px;
}

.invoice-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0ea5a4;
}

.invoice-number {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.2rem 0 0.4rem;
}

.invoice-head-right .muted {
  color: #64748b;
  font-size: 0.82rem;
}

.invoice-info {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 1.6rem 0;
  padding: 1.1rem 1.3rem;
  background: #f1f5f9;
  border-radius: 10px;
}

.invoice-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.invoice-buyer {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.invoice-info > div div:not(.invoice-label) {
  font-size: 0.87rem;
  color: #334155;
}

.invoice-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.8rem 1.6rem;
  flex: 0 0 46%;
}

.invoice-fact-value {
  font-weight: 600;
  font-size: 0.92rem;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.invoice-table th {
  background: #0f3b5c;
  color: #ffffff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.invoice-table th.right,
.invoice-table td.right {
  text-align: right;
}

.invoice-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
  vertical-align: top;
}

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

.invoice-item-name {
  font-weight: 600;
}

.invoice-item-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.invoice-totals {
  margin: 1.4rem 0 0 auto;
  width: 46%;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: #334155;
}

.invoice-total-row.strong {
  margin-top: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: #0f3b5c;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
}

.invoice-block {
  margin-top: 1.4rem;
}

.invoice-block p {
  margin: 0;
  font-size: 0.9rem;
  color: #334155;
  white-space: pre-wrap;
}

.invoice-foot {
  margin-top: 2rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

@media print {
  body.invoice-open > *:not(.invoice-overlay) {
    display: none !important;
  }
  .invoice-overlay {
    position: static;
    background: #ffffff;
    padding: 0;
    overflow: visible;
  }
  .invoice-toolbar {
    display: none !important;
  }
  .invoice-sheet {
    box-shadow: none;
    border-radius: 0;
    max-width: none;
    padding: 0;
  }
  .invoice-overlay,
  .invoice-sheet {
    page-break-inside: avoid;
  }
}
