@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;600;700;800;900&display=swap');

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #0a0c0b;
  --muted: #5c6267;
  --line: #e5e8eb;
  --brand: #51acfb;
  --brand-2: #2f84c7;
  --ok: #1f7a4d;
  --warn: #9a6a12;
  --risk: #a04416;
  --bad: #982c24;
  --shadow: 0 12px 30px rgba(25, 56, 78, 0.08);
  font-family: Mulish, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(100%, 440px);
}

.login-card,
.panel,
.detail-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card {
  padding: 34px;
}

.brand-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.login-logo {
  width: 178px;
  height: auto;
  border-radius: 8px;
}

.brand-mark.small {
  width: 48px;
  height: 48px;
  float: left;
  margin-right: 14px;
}

.eyebrow {
  margin: 20px 0 6px;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
}

.muted,
.panel-head p,
.demo-hint {
  color: var(--muted);
}

.alert {
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff0ed;
  color: var(--bad);
  border: 1px solid #f2b6ad;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 13px;
  font: inherit;
}

button {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.demo-hint {
  margin: 16px 0 0;
  font-size: 13px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-home {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 168px;
  max-width: 38vw;
  height: auto;
  border-radius: 8px;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.topbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.userbox {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--muted);
}

.userbox span {
  color: var(--ink);
  font-weight: 800;
}

.userbox a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.app-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 28px auto 46px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.kpi {
  padding: 18px;
  background: #fafdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.kpi span,
.mini-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.kpi small {
  display: block;
  margin-top: 4px;
  color: var(--risk);
  font-weight: 800;
}

.kpi:last-child strong {
  font-size: 18px;
}

.panel {
  padding: 18px;
}

.home-head {
  align-items: center;
}

.home-head .eyebrow {
  margin-top: 0;
}

.home-source,
.home-card-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.home-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.home-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.home-card-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.home-card-button:hover,
.home-card-button:focus-visible {
  border-color: var(--brand-2);
}

.billing-summary-list {
  margin-top: 20px;
  max-height: min(52vh, 480px);
  overflow-y: auto;
}

.billing-summary-action {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border-radius: 8px;
  background: var(--brand-2);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.home-card--primary {
  border-color: #b8dcf6;
  background: #f2f9fe;
}

.home-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.home-card > strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.1;
}

.home-card > p {
  min-height: 20px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.home-card-status,
.home-trend {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
}

.home-card-status.is-ok,
.home-trend.is-up {
  color: var(--ok);
}

.home-card-status.is-warning,
.home-trend.is-down {
  color: var(--risk);
}

.home-action-link {
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.home-action-link:hover,
.home-action-link:focus-visible {
  text-decoration: underline;
}

.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 22px;
}

.action-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-section {
  min-width: 0;
}

.home-section .section-title-row {
  align-items: end;
}

.home-section h3 {
  margin: 0 0 4px;
}

.home-section .section-title-row p {
  margin: 0;
  font-size: 13px;
}

.home-monthly-list,
.home-invoice-list {
  border-top: 1px solid var(--line);
}

.home-month-row,
.home-invoice-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.home-month-row {
  grid-template-columns: minmax(116px, .8fr) minmax(80px, 1.4fr) minmax(110px, .7fr);
}

.home-month-meta,
.home-invoice-row > div {
  min-width: 0;
}

.home-month-meta strong,
.home-month-meta span,
.home-invoice-row strong,
.home-invoice-row span {
  display: block;
}

.home-month-meta strong,
.home-invoice-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-month-meta span,
.home-invoice-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.home-month-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #eaf0f4;
}

.home-month-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.home-month-value {
  text-align: right;
  white-space: nowrap;
  font-size: 14px;
}

.home-goal-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #e7edf1;
}

.home-goal-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ok);
}

.home-action-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.home-action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.home-action-item > div {
  min-width: 0;
}

.home-action-item strong,
.home-action-item span {
  display: block;
}

.home-action-item > div strong,
.home-action-item > div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-action-item > div span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.home-priority {
  padding: 6px 9px;
  border-radius: 8px;
  background: #eef7fd;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 900;
}

.home-invoice-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.home-invoice-row > div:last-child {
  text-align: right;
}

.home-empty-state {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.home-empty-state strong {
  display: block;
  color: var(--ok);
}

.home-empty-state p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.app-menu {
  position: relative;
  z-index: 40;
}

.app-menu > summary {
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.app-menu > summary::-webkit-details-marker { display: none; }
.menu-icon { font-size: 24px; line-height: 1; }
.app-menu[open] > summary { border-color: var(--brand-2); color: var(--brand-2); }

.menu-panel {
  width: min(360px, calc(100vw - 24px));
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--line);
}

.menu-heading span { color: var(--brand-2); font-weight: 900; }
.menu-heading strong { font-size: 13px; }
.menu-panel nav { display: grid; gap: 2px; padding: 7px 0; }

.view-tab {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  transition: background .15s, color .15s, transform .15s;
}

.view-tab:hover,
.view-tab:focus-visible {
  background: #eef7fd;
  color: var(--brand-2);
}

.view-tab.active {
  background: #fff;
  color: var(--brand-2);
  box-shadow: 0 2px 7px rgba(25, 56, 78, .1);
}

.view-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--ok);
  text-decoration: none;
}

.menu-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--line);
}

.menu-user strong,
.menu-user small { display: block; }
.menu-user small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.menu-user > a { color: var(--brand-2); font-size: 13px; font-weight: 900; text-decoration: none; }

.view-tab-link::after {
  content: " ↗";
  margin-left: 5px;
}

.operational-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 12px;
}

.dashboard-section-head .eyebrow { margin: 0 0 4px; }
.dashboard-section-head h3 { margin: 0; font-size: 19px; }
.dashboard-section-head > p { max-width: 440px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }

.operational-summary {
  min-height: 178px;
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(25, 56, 78, .05);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.operational-summary:hover,
.operational-summary:focus-visible {
  border-color: var(--brand-2);
  box-shadow: 0 9px 24px rgba(25, 56, 78, .1);
  transform: translateY(-2px);
}
.operational-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.operational-summary-head span,
.operational-summary-head small,
.operational-summary strong,
.operational-summary p,
.operational-summary b { display: block; }
.operational-summary-head span { color: var(--ink); font-size: 14px; font-weight: 900; }
.operational-summary-head small { color: var(--muted); font-size: 11px; font-weight: 800; }
.operational-summary strong { margin-top: 18px; font-size: 34px; line-height: 1; }
.operational-summary p { margin: 7px 0 18px; color: var(--muted); font-size: 13px; }
.operational-summary b { color: var(--brand-2); font-size: 13px; }

.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.focus-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.focus-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.focus-card-head span { color: var(--brand-2); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.focus-card h3 { margin: 5px 0 0; font-size: 16px; }
.focus-card-head > strong { color: var(--ok); font-size: 13px; text-align: right; }
.focus-card > p { min-height: 38px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.purchase-pattern { min-height: 82px; margin: 12px 0; padding: 12px; border-left: 3px solid var(--brand-2); background: #f5faff; }
.purchase-pattern strong,
.purchase-pattern span { display: block; }
.purchase-pattern strong { font-size: 12px; }
.purchase-pattern span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.focus-meta { display: flex; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 800; }
.focus-action { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; margin-top: 14px; border: 0; border-radius: 8px; background: var(--brand-2); color: #fff; font-weight: 800; text-decoration: none; }

.client-pattern-detail { margin: 16px 0; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfd; }
.client-pattern-detail h4 { margin: 4px 0 0; font-size: 18px; }
.client-pattern-detail > p { margin: 10px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pattern-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pattern-facts > div { padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.pattern-facts span,
.pattern-facts strong { display: block; }
.pattern-facts span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.pattern-facts strong { margin-top: 4px; font-size: 12px; }

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.panel-head.compact {
  margin-top: 24px;
}

.panel-head h2 {
  margin-bottom: 4px;
}

.panel-head h3 {
  margin-bottom: 4px;
}

.notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.notice.success {
  color: var(--ok);
  background: #e3f3ea;
  border: 1px solid #a7d9bd;
}

.notice.error {
  color: var(--bad);
  background: #fff0ed;
  border: 1px solid #f2b6ad;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filters input {
  width: 230px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  gap: 16px;
  align-items: start;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr);
  gap: 16px;
  align-items: start;
}

.document-form,
.document-preview {
  min-width: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

textarea {
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 11px 13px;
  font: inherit;
  resize: vertical;
}

.items-head,
.document-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 18px 0 10px;
}

.upload-panel {
  margin-top: 18px;
  padding-top: 2px;
}

.upload-form {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.upload-form button {
  white-space: nowrap;
}

.uploads-table-wrap {
  max-height: 360px;
}

.download-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #f8efe2;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.table-meta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8efe2;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.payment-editor {
  min-width: 190px;
}

.payment-editor summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.payment-editor summary::-webkit-details-marker {
  display: none;
}

.payment-editor summary::after {
  content: "+";
  font-weight: 900;
}

.payment-editor[open] summary {
  margin-bottom: 8px;
  background: #f8efe2;
}

.payment-editor[open] summary::after {
  content: "-";
}

.inline-payment-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 280px;
  align-items: center;
}

.inline-payment-form input,
.inline-payment-form select,
.inline-payment-form button {
  width: 100%;
  min-height: 38px;
  font-size: 13px;
}

.inline-payment-form button {
  white-space: nowrap;
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.billing-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.billing-card[hidden] {
  display: none;
}

.billing-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.billing-card-head .eyebrow {
  margin: 0 0 5px;
}

.billing-card-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.billing-card-head .pill {
  flex: 0 0 auto;
  max-width: 42%;
  white-space: normal;
  text-align: center;
}

.billing-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 0;
}

.billing-card-grid span,
.billing-card-info > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-card-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.billing-card-grid > div:last-child strong {
  text-align: right;
  white-space: nowrap;
}

.billing-card-info {
  min-height: 52px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.billing-card-info p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.billing-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.collect-form {
  flex: 1;
}

.collect-button {
  width: 100%;
  min-height: 40px;
  background: var(--ok);
}

.collect-button:hover,
.collect-button:focus-visible {
  background: #17653f;
}

.billing-card-actions .payment-editor {
  position: relative;
  flex: 0 0 auto;
}

.billing-card-actions .payment-editor summary {
  min-height: 40px;
}

.billing-card-actions .inline-payment-form {
  position: absolute;
  right: 0;
  z-index: 2;
  width: 280px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.billing-empty {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.billing-empty strong {
  display: block;
  color: var(--ok);
}

.billing-empty p {
  margin: 5px 0 0;
  font-size: 13px;
}

.items-head h3 {
  margin: 0;
}

.secondary-button {
  width: auto;
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.items-table input,
.items-table select {
  width: 100%;
  min-width: 120px;
}

.item-custom {
  margin-top: 8px;
}

.icon-button {
  width: 36px;
  min-height: 36px;
  padding: 0;
  background: #fff0ed;
  color: var(--bad);
  border: 1px solid #f2b6ad;
  font-size: 20px;
}

.document-preview {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: auto;
}

.empty-preview {
  display: grid;
  min-height: 420px;
  place-items: center;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
}

.print-document {
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}

.doc-header,
.doc-parties,
.doc-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.doc-header {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--brand);
}

.doc-logo {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.doc-meta {
  text-align: right;
}

.doc-meta h2 {
  margin-bottom: 8px;
}

.doc-meta strong,
.doc-meta span {
  display: block;
}

.doc-parties {
  margin-bottom: 18px;
}

.doc-parties h3,
.doc-bottom h3 {
  margin-bottom: 6px;
  color: var(--brand);
}

.doc-parties p,
.doc-bottom p {
  margin-bottom: 5px;
}

.doc-table,
.totals-table {
  width: 100%;
  border-collapse: collapse;
}

.doc-table th,
.doc-table td,
.totals-table th,
.totals-table td {
  border: 1px solid var(--line);
}

.doc-bottom {
  align-items: start;
  margin-top: 18px;
}

.doc-bottom > div {
  flex: 1;
}

.doc-bottom small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.totals-table {
  width: 230px;
}

.totals-table td {
  text-align: right;
  font-weight: 800;
}

.table-wrap,
.invoice-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #faf8f4;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

tbody tr:nth-child(even):not(.note-row):not(.selected) {
  background: #fffdf9;
}

tbody tr:hover:not(.note-row) {
  background: #fbf4e8;
}

.money-cell {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.invoice-card-list,
.document-card-list {
  display: grid;
  gap: 10px;
}

.invoice-card,
.document-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.invoice-card-head,
.document-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.invoice-card-head > div,
.document-card-head > div {
  min-width: 0;
}

.invoice-card span,
.document-card span,
.invoice-card small,
.document-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.invoice-card strong,
.document-card strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.invoice-card-grid,
.document-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
}

.invoice-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.client-row {
  cursor: pointer;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.client-card {
  width: 100%;
  min-width: 0;
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink);
  text-align: left;
  appearance: none;
}

.client-card:hover,
.client-card:focus-visible,
.client-card.selected {
  background: #f8efe2;
  border-color: #c7ddea;
  box-shadow: 0 8px 18px rgba(25, 56, 78, .08);
}

.client-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  min-height: 72px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.client-card-head .eyebrow {
  margin: 0 0 5px;
}

.client-card-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.client-card-head div > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.client-card-head .badge {
  flex: 0 0 auto;
  max-width: 38%;
  white-space: normal;
  text-align: center;
}

.client-follow-up {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-card-follow-up {
  margin: 12px 0;
}

.client-follow-up strong {
  font-size: 13px;
}

.client-follow-up span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.follow-up-urgent {
  border-color: #f2b6ad;
  background: #fff0ed;
}

.follow-up-urgent strong {
  color: var(--bad);
}

.follow-up-attention {
  border-color: #ecd39e;
  background: #fff8e8;
}

.follow-up-attention strong {
  color: var(--warn);
}

.follow-up-ok {
  border-color: #b8ddc7;
  background: #eef9f2;
}

.follow-up-ok strong {
  color: var(--ok);
}

.follow-up-review {
  border-color: #c7ddea;
  background: #f2f9fe;
}

.follow-up-review strong {
  color: var(--brand-2);
}

.client-card-metrics {
  display: grid;
  grid-template-columns: 1.35fr .75fr .85fr;
  gap: 8px;
  padding: 14px 0;
}

.client-card-metrics span,
.client-card-footer {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.client-card-metrics span {
  display: block;
}

.client-card-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.client-card-metrics > div:last-child strong {
  color: var(--risk);
}

.client-card-footer {
  display: grid;
  gap: 4px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  line-height: 1.3;
}

.client-card[hidden] {
  display: none;
}

.client-modal {
  width: min(760px, calc(100% - 24px));
  max-width: 760px;
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 29, 39, .25);
}

.client-modal::backdrop {
  background: rgba(15, 29, 39, .42);
}

.client-modal-shell {
  position: relative;
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 18px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: #f8efe2;
  color: var(--brand-2);
}

.client-modal .detail-card {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.client-detail {
  position: sticky;
  top: 96px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
}

.section-title-row h4 {
  margin: 0;
}

.client-task-list {
  margin: 18px 0;
}

.client-task-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-task-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.client-task-list li.is-overdue {
  border-color: #f2b6ad;
  background: #fff0ed;
}

.seller-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.seller-card {
  display: grid;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.seller-card:hover,
.seller-card:focus-visible {
  border-color: #b8dcf6;
  box-shadow: 0 10px 22px rgba(25, 56, 78, .08);
  transform: translateY(-1px);
}

.seller-card h3 {
  margin-bottom: 14px;
}

.seller-card .eyebrow {
  margin-top: 0;
}

.seller-alert {
  margin: 0;
  color: var(--risk);
  font-weight: 800;
}

.seller-card-action {
  justify-self: start;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
}

.seller-modal .client-modal-shell {
  max-width: 760px;
}

.seller-modal-section {
  margin-top: 18px;
}

.seller-modal-section h4 {
  margin: 0 0 10px;
}

.seller-action-list {
  display: grid;
  gap: 8px;
}

.seller-action-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.seller-action-list article > div {
  min-width: 0;
}

.seller-action-list strong,
.seller-action-list span {
  display: block;
}

.seller-action-list article > div strong,
.seller-action-list article > div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-action-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.task-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.task-summary-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.task-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.task-summary-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.task-create-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.task-create-card h3 {
  margin-bottom: 6px;
}

.task-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

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

.task-form button {
  width: fit-content;
}

.task-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.task-overdue {
  box-shadow: inset 4px 0 0 var(--bad);
}

.task-editor {
  min-width: 220px;
}

.task-editor summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.task-editor summary::-webkit-details-marker {
  display: none;
}

.task-editor summary::after {
  content: "+";
  font-weight: 900;
}

.task-editor[open] summary {
  margin-bottom: 8px;
  background: #f8efe2;
}

.task-editor[open] summary::after {
  content: "-";
}

.task-edit-form {
  display: grid;
  gap: 8px;
  min-width: 280px;
}

.proposal-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.proposal-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.proposal-card[hidden] {
  display: none;
}

.proposal-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.proposal-card-head > div {
  min-width: 0;
}

.proposal-card-head h3 {
  margin: 8px 0 4px;
  font-size: 17px;
  line-height: 1.25;
}

.proposal-card-head span:not(.pill) {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proposal-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0;
}

.proposal-card-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.proposal-card-grid strong {
  display: block;
  min-width: 0;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.proposal-alert {
  margin: 0 0 10px;
  color: var(--bad);
  font-size: 13px;
  font-weight: 900;
}

.proposal-editor {
  margin-top: 12px;
}

.task-edit-form input,
.task-edit-form select,
.task-edit-form textarea,
.task-edit-form button {
  width: 100%;
  min-height: 38px;
  font-size: 13px;
}

.product-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card,
.admin-card {
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.product-card {
  overflow: hidden;
  padding: 0;
  background: #eef7ff;
}

.product-image-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dcefff;
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-empty {
  display: grid;
  place-items: center;
  color: var(--brand-2);
  font-size: 28px;
  font-weight: 900;
}

.product-card > div:not(.product-image-wrap) {
  padding: 18px 18px 0;
}

.product-card .product-facts {
  padding: 0 18px 18px;
}

.product-card .eyebrow,
.admin-card .eyebrow {
  margin-top: 0;
}

.product-card h3,
.admin-card h3 {
  margin-bottom: 8px;
}

.product-card p,
.admin-card p {
  color: var(--muted);
}

.product-facts,
.admin-facts {
  grid-template-columns: 1fr;
  margin: 0;
}

.google-form {
  display: grid;
  gap: 12px;
}

.checkline {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.checkline input {
  width: 18px;
  min-height: 18px;
}

.schema-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schema-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f8efe2;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.company-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.company-columns h4 {
  margin-bottom: 8px;
}

.company-columns p {
  margin-bottom: 6px;
}

.detail-card {
  padding: 18px;
  box-shadow: none;
}

.detail-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.detail-title h3 {
  margin-bottom: 14px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.mini-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 18px 0;
}

.facts div {
  min-width: 0;
}

.edit-client-box {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.edit-client-box summary {
  color: var(--brand);
  cursor: pointer;
  font-weight: 800;
}

.client-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.client-edit-form .wide,
.client-edit-form button {
  grid-column: 1 / -1;
}

.client-edit-form input,
.client-edit-form select,
.client-edit-form textarea {
  width: 100%;
  min-width: 0;
}

.client-edit-form button {
  width: fit-content;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #ece7de;
  color: var(--ink);
  white-space: nowrap;
}

.badge.activo {
  background: #e3f3ea;
  color: var(--ok);
}

.badge.atencion {
  background: #fff3d6;
  color: var(--warn);
}

.badge.riesgo {
  background: #ffe8d8;
  color: var(--risk);
}

.badge.inactivo {
  background: #ffe1dc;
  color: var(--bad);
}

.pagada---conciliada {
  background: #e3f3ea;
  color: var(--ok);
}

.anulada---nota-de-credito {
  background: #f1eee8;
  color: var(--muted);
}

.sin-informacion,
.por-revisar,
.credito-por-cobrar {
  background: #fff3d6;
  color: var(--warn);
}

.task-status-pendiente,
.task-status-contactado {
  background: #fff3d6;
  color: var(--warn);
}

.task-status-cotizado {
  background: #e7f0ff;
  color: #245ea8;
}

.task-status-ganado {
  background: #e3f3ea;
  color: var(--ok);
}

.task-status-perdido,
.task-status-cerrado {
  background: #f1eee8;
  color: var(--muted);
}

.priority-alta {
  background: #ffe1dc;
  color: var(--bad);
}

.priority-media {
  background: #fff3d6;
  color: var(--warn);
}

.priority-baja {
  background: #e3f3ea;
  color: var(--ok);
}

.note-row td {
  padding-top: 0;
  color: var(--muted);
  font-size: 12px;
  background: #fffdf9;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.detail-empty {
  min-height: 180px;
  display: grid;
  align-content: center;
}

.log-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.log-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.log-list strong,
.log-list span {
  display: block;
}

.log-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.log-list p {
  margin: 7px 0 0;
}

@media (max-width: 1100px) {
  .layout,
  .document-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .kpi-grid,
  .home-summary-grid,
  .task-summary-grid,
  .product-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-detail {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .app-shell {
    width: calc(100% - 24px);
    margin-top: 16px;
  }

  .topbar {
    padding: 14px 16px;
  }

  .panel {
    padding: 14px;
  }

  .view-tab { min-height: 44px; }
  .dashboard-section-head { display: block; margin-top: 24px; }
  .dashboard-section-head > p { margin-top: 5px; text-align: left; }
  .operational-summary-grid,
  .focus-grid { grid-template-columns: 1fr; }
  .operational-summary { min-height: 156px; }
  .pattern-facts { grid-template-columns: 1fr; }

  .layout > *,
  .document-layout > *,
  .table-wrap,
  .invoice-wrap {
    min-width: 0;
    max-width: 100%;
  }

  table {
    min-width: 640px;
  }

  .items-table {
    min-width: 0;
  }

  .items-table thead {
    display: none;
  }

  .items-table,
  .items-table tbody,
  .items-table tr,
  .items-table td {
    display: block;
    width: 100%;
  }

  .items-table tr {
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }

  .items-table td {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 7px 0;
    border: 0;
  }

  .items-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .items-table .item-total {
    text-align: left;
    font-weight: 900;
  }

  .table-wrap,
  .invoice-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
  }

  .userbox {
    justify-items: start;
  }

  .kpi-grid,
  .home-summary-grid,
  .client-grid,
  .seller-grid,
  .task-summary-grid,
  .product-grid,
  .admin-grid,
  .mini-grid,
  .facts {
    grid-template-columns: 1fr;
  }

  .topbar-home {
    align-items: center;
    flex-direction: row;
  }

  .brand-logo {
    width: 112px;
    flex: 0 0 auto;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .topbar p {
    font-size: 12px;
  }

  .filters,
  .filters input,
  .filters select,
  .filters .table-meta,
  .document-actions,
  .items-head,
  .upload-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .company-columns {
    grid-template-columns: 1fr;
  }

  .task-create-card,
  .task-form {
    grid-template-columns: 1fr;
  }

  .proposal-card-list,
  .proposal-card-grid {
    grid-template-columns: 1fr;
  }

  .proposal-card-head {
    flex-direction: column;
  }

  .proposal-card-head span:not(.pill) {
    white-space: normal;
  }

  .home-columns,
  .action-board {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-head {
    align-items: stretch;
  }

  .home-source {
    align-self: flex-start;
  }

  .home-month-row {
    grid-template-columns: minmax(100px, .8fr) minmax(50px, 1fr) auto;
    gap: 8px;
  }

  .home-month-value {
    font-size: 12px;
  }

  .home-action-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-action-item > div strong,
  .home-action-item > div span {
    white-space: normal;
  }

  .task-form button {
    width: 100%;
  }

  .client-edit-form {
    grid-template-columns: 1fr;
  }

  .inline-payment-form {
    grid-template-columns: 1fr;
    min-width: 280px;
  }

  .billing-grid {
    grid-template-columns: 1fr;
  }

  .billing-card-head {
    flex-direction: column;
    gap: 8px;
  }

  .billing-card-head .pill {
    max-width: 100%;
  }

  .billing-card-actions .inline-payment-form {
    position: static;
    width: 100%;
  }

  .invoice-card-head,
  .document-card-head {
    flex-direction: column;
  }

  .invoice-card-grid,
  .document-card-grid {
    grid-template-columns: 1fr;
  }

  .document-card .download-link {
    width: 100%;
    justify-content: center;
  }

  .client-edit-form button {
    width: 100%;
  }

  .client-card-head {
    flex-direction: column;
    gap: 8px;
  }

  .client-card-head .badge {
    max-width: 100%;
  }

  .client-card-metrics {
    grid-template-columns: 1fr;
  }

  .client-card-metrics > div:last-child strong {
    text-align: left;
  }

  .upload-form {
    display: flex;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .kpi-grid,
  .app-menu,
  .panel-head,
  .document-form {
    display: none !important;
  }

  .app-shell,
  .panel,
  .document-preview {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .app-view {
    display: none !important;
  }

  #documentsView,
  #documentsView.active {
    display: block !important;
  }
}
