:root {
  --blue: #007bff;
  --orange: #fd7e14;
  --red: #dc3545;
  --bg: #f4f6f9;
  --panel-bg: #fff;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 1rem;
}

body {
  margin: 0;
  font-family: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: #222;
}

header.site-header {
  background: var(--panel-bg);
  box-shadow: var(--shadow);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: .75rem;
  vertical-align: middle;
}

.brand h1 {
  display: inline-block;
  margin: 0;
  font-size: 1.25rem;
}

nav a {
  margin-left: 1rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

main.content {
  padding: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.panel {
  background: var(--panel-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: .6rem 1.2rem;
  border-radius: .5rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: #0069d9;
}

footer.site-footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.footer-links a {
  margin: 0 .5rem;
  color: var(--blue);
  text-decoration: none;
}

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.table th, .table td {
  padding: .75rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.table th {
  background: #f8f9fa;
}

/* ---------- Buttons ---------- */
.btn-edit { background: var(--orange); color: #fff; border:none; padding:.4rem .8rem; border-radius:.4rem; cursor:pointer; }
.btn-delete { background: var(--red); color: #fff; border:none; padding:.4rem .8rem; border-radius:.4rem; cursor:pointer; }
.btn-cancel { background: #6c757d; color:#fff; border:none; padding:.4rem .8rem; border-radius:.4rem; cursor:pointer; }

/* ---------- Modal ---------- */
.modal.hidden { display: none; }
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
}
.modal-content {
  background: var(--panel-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow);
}
.modal-content input, .modal-content select, .modal-content textarea {
  width: 100%; margin-bottom: .8rem; padding: .5rem;
  border: 1px solid #ccc; border-radius: .4rem;
}
.modal-actions {
  display: flex; justify-content: space-between; margin-top: 1rem;
}

/* ---------- Alerts ---------- */
.alert-success {
  background: #d4edda;
  color: #155724;
  border-radius: .5rem;
  padding: .75rem 1rem;
  box-shadow: var(--shadow);
  margin: 1rem 0;
  font-size: .9rem;
}
.alert-error {
  background: #f8d7da;
  color: #721c24;
  border-radius: .5rem;
  padding: .75rem 1rem;
  box-shadow: var(--shadow);
  margin: 1rem 0;
  font-size: .9rem;
}
.alert-error ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* ---------- Modal (wide journal version) ---------- */
.modal-content.wide {
  max-width: 800px;
}
.form-row-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-row-2col label {
  display: block;
  font-size: .8rem;
  margin-bottom: .4rem;
  font-weight: 500;
}
.form-row-2col input,
.form-row-2col select {
  width: 100%;
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: .4rem;
  font-size: .9rem;
}

/* ---------- Journal Lines Table ---------- */
.table-tight td,
.table-tight th {
  padding: .5rem;
  vertical-align: top;
}
#lineBody select,
#lineBody input {
  width: 100%;
  box-sizing: border-box;
  padding: .4rem;
  border: 1px solid #ccc;
  border-radius: .4rem;
  font-size: .8rem;
}
#lineBody .line-remove {
  line-height: 1;
  font-size: 1rem;
  font-weight: bold;
  padding: .4rem .6rem;
}

/* ---------- Invoice Lines Table ---------- */
#invBody input {
  width: 100%;
  padding: .4rem;
  border: 1px solid #ccc;
  border-radius: .4rem;
  font-size: .9rem;
}
#invLines th, #invLines td {
  padding: .5rem;
}

/* bank / reconcile helpers */
.muted {
  font-size: .8rem;
  color: #666;
}

.row-active {
  background: #e9f2ff;
}

.reconciled-row {
  background: #e8fbe8;
}

.import-block {
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-top: 1rem;
  font-size: .9rem;
}

.btn-small {
  font-size: .8rem;
  padding: .4rem .6rem;
}

/* ---------- Reports ---------- */
.table tfoot th, .table tfoot td {
  background: #f1f3f5;
  font-weight: 600;
}
.table tfoot th {
  text-align: right;
}
.grid .panel h3 {
  margin-top: 0;
}
@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.current-logo-block {
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}

.logo-preview {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: .5rem 0;
}

.logo-preview img {
  max-height: 60px;
  max-width: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: .5rem;
  box-shadow: var(--shadow);
  padding: .5rem;
}

.small-note {
  font-size: .8rem;
  line-height: 1.4;
  color: #666;
}

label {
  display: block;
  font-size: .8rem;
  margin-top: .75rem;
  margin-bottom: .4rem;
  font-weight: 500;
}

input[type="text"],
input[type="file"],
textarea {
  width: 100%;
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: .4rem;
  font-size: .9rem;
  box-sizing: border-box;
  background: #fff;
}
textarea {
  min-height: 4rem;
  resize: vertical;
}

.auth-panel {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.center-note {
  text-align: center;
  margin-top: 1rem;
}

.nav-user {
  font-size: .8rem;
  color: #333;
  background: #eef2ff;
  border-radius: .5rem;
  padding: .4rem .6rem;
  margin-right: .5rem;
  display: inline-block;
  font-weight: 500;
}

/* ---------- Auth Panels ---------- */
.auth-panel {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.center-note {
  text-align: center;
  margin-top: 1rem;
}

/* ---------- Bank / Reconcile helpers ---------- */
.muted {
  font-size: .8rem;
  color: #666;
}

.row-active {
  background: #e9f2ff;
}

.reconciled-row {
  background: #e8fbe8;
}

.import-block {
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-top: 1rem;
  font-size: .9rem;
}

.btn-small {
  font-size: .8rem;
  padding: .4rem .6rem;
}

/* header user badge */
.nav-user {
  font-size: .8rem;
  color: #333;
  background: #eef2ff;
  border-radius: .5rem;
  padding: .4rem .6rem;
  margin-right: .5rem;
  display: inline-block;
  font-weight: 500;
}

/* admin branding / logo preview */
.current-logo-block {
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}

.logo-preview {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: .5rem 0;
}

.logo-preview img {
  max-height: 60px;
  max-width: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: .5rem;
  box-shadow: var(--shadow);
  padding: .5rem;
}

.small-note {
  font-size: .8rem;
  line-height: 1.4;
  color: #666;
}

/* generic form tweaks for admin, journal modal, invoice modal */
label {
  display: block;
  font-size: .8rem;
  margin-top: .75rem;
  margin-bottom: .4rem;
  font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="file"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: .4rem;
  font-size: .9rem;
  box-sizing: border-box;
  background: #fff;
}

textarea {
  min-height: 4rem;
  resize: vertical;
}

/* inline-form for tiny forms inside tables */
.inline-form {
  display: inline-block;
  margin: 0;
}

/* table footers in reports */
.table tfoot th,
.table tfoot td {
  background: #f1f3f5;
  font-weight: 600;
}
.table tfoot th {
  text-align: right;
}
.grid .panel h3 {
  margin-top: 0;
}
@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* modal wide journal/invoice */
.modal-content.wide {
  max-width: 800px;
}

/* 2-col form rows */
.form-row-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-row-2col label {
  margin-top: 0;
}

/* journal lines & invoice lines */
.table-tight td,
.table-tight th {
  padding: .5rem;
  vertical-align: top;
}
#lineBody select,
#lineBody input,
#invBody input {
  width: 100%;
  box-sizing: border-box;
  padding: .4rem;
  border: 1px solid #ccc;
  border-radius: .4rem;
  font-size: .8rem;
}
#lineBody .line-remove,
.inv-remove {
  line-height: 1;
  font-size: 1rem;
  font-weight: bold;
  padding: .4rem .6rem;
}

/* === UpDuck Layout Restore === */
body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: #f5f7fb;
  color: #222;
}

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e0e4ea;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1d4ed8;
  font-weight: 600;
  gap: 0.5rem;
}

.brand-link .logo {
  height: 36px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #1d4ed8;
}

.btn-logout {
  color: #dc2626;
  font-weight: 600;
}

.site-content {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
}

.dashboard .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1rem;
}

.panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1.25rem;
}

.btn-primary {
  background: #1d4ed8;
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
}

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

.btn-small {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
}

.site-footer {
  background: #fff;
  border-top: 1px solid #e0e4ea;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  margin-left: 0.75rem;
  color: #555;
  text-decoration: none;
}

.footer-links a:hover {
  color: #1d4ed8;
}

/* ===== HEADER LAYOUT FIX ===== */

.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e4ea;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 32px;
  width: auto;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  padding: 2px 4px;
}

.brand-text {
  font-size: .95rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.main-nav-list {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
}

.main-nav-list li {
  display: flex;
  align-items: center;
}

.nav-link {
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: #334155;
  line-height: 1.2;
  padding: .4rem .5rem;
  border-radius: .4rem;
  transition: background-color .15s, color .15s;
  white-space: nowrap;
  display: inline-block;
}

.nav-link:hover {
  background: #eef2ff;
  color: #1d4ed8;
}

.nav-logout {
  color: #dc2626;
  font-weight: 600;
}

.nav-logout:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* Page body / container */
.site-content {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
  box-sizing: border-box;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  background: transparent;
}

/* Cards / panels / dashboard layout */
.dashboard .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1rem;
}

.panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1.25rem;
  box-sizing: border-box;
}

.panel h3 {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid #e0e4ea;
  margin-top: 3rem;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
  color: #475569;
  font-size: .8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
}

.footer-links a {
  color: #475569;
  text-decoration: none;
}

.footer-links a:hover {
  color: #1d4ed8;
}

/* Buttons */
.btn-primary {
  background: #1d4ed8;
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.2;
  display: inline-block;
}

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

.btn-small {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
}

/* ===== CORE UI RESTORE ===== */

/* Alerts */
.alert-success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: .75rem 1rem;
  border-radius: .5rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #7f1d1d;
  padding: .75rem 1rem;
  border-radius: .5rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}

.alert-error ul,
.alert-success ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: .9rem;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  font-size: .9rem;
}

.table thead {
  background: #f8fafc;
  text-align: left;
  font-size: .8rem;
  color: #475569;
}

.table th,
.table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  color: #1e293b;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table-tight th,
.table-tight td {
  padding: .5rem .6rem;
  font-size: .8rem;
}

/* Inline buttons for table actions */
.btn-edit {
  background: #e0e7ff;
  color: #1e40af;
  border: 1px solid #818cf8;
  border-radius: .4rem;
  font-size: .75rem;
  line-height: 1.2;
  padding: .35rem .6rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-edit:hover {
  background: #c7d2fe;
}

.btn-delete {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  border-radius: .4rem;
  font-size: .75rem;
  line-height: 1.2;
  padding: .35rem .6rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-delete:hover {
  background: #fecaca;
}

.btn-cancel {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: .4rem;
  font-size: .8rem;
  line-height: 1.2;
  padding: .4rem .6rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-cancel:hover {
  background: #cbd5e1;
}

/* Forms / inputs layout */
label {
  display: block;
  font-size: .8rem;
  margin-top: .75rem;
  margin-bottom: .4rem;
  font-weight: 500;
  color: #1e293b;
}

input[type="text"],
input[type="password"],
input[type="file"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: .5rem .6rem;
  border: 1px solid #cbd5e1;
  border-radius: .4rem;
  font-size: .9rem;
  line-height: 1.3;
  box-sizing: border-box;
  background: #fff;
  color: #0f172a;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

textarea {
  min-height: 4rem;
  resize: vertical;
}

/* Modal shell */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.45);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1rem 1.25rem 1.25rem;
  box-sizing: border-box;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.modal-content.wide {
  max-width: 800px;
}

.modal-content h3 {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Utility blocks */
.panel h2,
.dashboard h2,
.dashboard p {
  margin-top: 0;
}

.muted {
  font-size: .8rem;
  color: #6b7280;
}

.auth-panel {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1.25rem;
}

.center-note {
  text-align: center;
  margin-top: 1rem;
  font-size: .8rem;
  color: #475569;
}

/* === HEADER NAV BUTTON STYLING === */

.main-nav-list .nav-link {
  background-color: #1d4ed8; /* UpDuck blue */
  color: #fff !important;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px; /* full pill shape */
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.main-nav-list .nav-link:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

/* Red logout button */
.main-nav-list .nav-logout {
  background-color: #dc2626 !important;
  color: #fff !important;
}

.main-nav-list .nav-logout:hover {
  background-color: #b91c1c !important;
  transform: translateY(-1px);
}

/* === Invoice View / Print Layout === */

.invoice-print-area .panel {
  max-width: 900px;
  margin: 0 auto;
}

.invoice-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.invoice-brand {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem;
}

.invoice-logo {
  max-height: 60px;
  max-width: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  padding: 4px 6px;
}

.invoice-biz-name {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: .25rem;
}

.invoice-meta-small {
  font-size: .8rem;
  line-height: 1.4;
  color: #475569;
  white-space: nowrap;
}

.invoice-recipient h3 {
  margin: 0 0 .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: #0f172a;
}

.invoice-recipient-name {
  font-size: .9rem;
  font-weight: 500;
  color: #1e293b;
}

.invoice-address {
  font-family: inherit;
  font-size: .8rem;
  line-height: 1.4;
  color: #475569;
  white-space: pre-wrap;
  background: transparent;
  border: 0;
  padding: 0;
  margin: .5rem 0 0;
}

.invoice-lines-wrapper {
  margin-bottom: 1.5rem;
}

.invoice-totals {
  max-width: 300px;
  margin-left: auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .75rem 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  font-size: .9rem;
}

.invoice-totals-row {
  display: flex;
  justify-content: space-between;
  padding: .4rem 0;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.invoice-totals-row:last-child {
  border-bottom: 0;
}

.invoice-totals-row .label {
  font-weight: 500;
  color: #475569;
}

.invoice-totals-row.total-row .label {
  color: #0f172a;
  font-weight: 600;
}
.invoice-totals-row.total-row .value {
  font-weight: 600;
  color: #0f172a;
}

.invoice-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1.5rem;
}

.right {
  text-align: right;
}
