/* Shared compact layout for the suite's working pages: the client portal,
   the portal office, and the discovery pages (both counsel-facing and
   firm-facing). These are tools, not brochure pages — lists can run to
   hundreds of rows, so everything below the firm header trades the site's
   roomy editorial spacing for economy: small type, 1.4 line height, tight
   rows, a slim one-line banner, and a slim footer pinned to the viewport
   bottom. Loaded after site.css / portal.css / office.css; overrides all
   three. Replaces the earlier discovery.css + office-discovery.css pair. */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.4;
}
main { flex: 1 0 auto; }

/* ---------- Slim one-line banner ---------- */

.page-banner { padding: 12px 0 11px; }
.page-banner h1 {
  display: inline;
  font-size: 19px;
  letter-spacing: 0.05em;
}
.page-banner p {
  display: inline;
  margin: 0 0 0 14px;
  font-size: 14px;
  max-width: none;
}

.section { padding: 22px 0 30px; }

/* ---------- portal.css elements (client portal + counsel page) ---------- */

.portal-meta { font-size: 12px; padding-bottom: 8px; margin-bottom: 4px; }

.contact-info h2, .contact-form h2 { font-size: 19px; }

.case-picker select { font-size: 14px; padding: 4px 8px; }

table.record th { padding: 6px 8px 5px; font-size: 11px; letter-spacing: 0.12em; }
table.record td { padding: 6px 8px; font-size: 14px; }
table.record td.when { font-size: 13px; }
table.record td.when .time { font-size: 11px; }
table.record td.size { font-size: 13px; }
table.record .note { font-size: 13px; margin-top: 2px; }
table.record a.dl { font-size: 10px; margin-left: 10px; }
table.record th.num, table.record td.num { text-align: right; white-space: nowrap; }

/* Folder headings inside a record table (client From Our Office) */
table.record tr.folder-head td {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-dark);
  border-bottom: 2px solid var(--brass);
  padding-top: 16px;
}
table.record tr.folder-head .fnote {
  display: block;
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-soft);
  margin: 3px 0 2px;
}

/* Selection column (discovery) */
table.record th.sel, table.record td.sel { width: 28px; padding-right: 0; }
table.record input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--navy);
  cursor: pointer;
}

.dropzone { padding: 18px 20px; }
.dropzone .big { font-size: 16px; margin-bottom: 3px; }
.dropzone .sub { font-size: 10px; }

.pending-list li { padding: 6px 0; }
.pending-list .fsize { font-size: 13px; }
.pending-list .remove { font-size: 10px; }
.pending-list .p-detail { font-size: 12px; }

.upload-note label { font-size: 11px; }
.upload-note textarea, .upload-note input { font-size: 14px; }
.upload-status { font-size: 13px; padding: 9px 12px; margin-top: 10px; }

button.portal-btn { font-size: 11px; padding: 9px 22px; margin-top: 12px; }
button.portal-btn.small { padding: 8px 18px; margin-top: 0; }

.form-success { font-size: 14px; padding: 9px 12px; }

/* ---------- discovery page elements ---------- */

#folders-body td.fname { cursor: pointer; color: var(--navy); }
#folders-body tr:hover td { background: var(--cream); }
#folders-body td.fname::before { content: '▸ '; color: var(--brass-dark); }

.loose-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin: 24px 0 4px;
}

.disc-crumb { margin: 8px 0 8px; font-size: 13px; }
.disc-crumb .crumb-name {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--navy);
  text-transform: none;
  letter-spacing: normal;
  margin-left: 10px;
}

.list-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 8px;
}
.tools-note {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- office hub navigation ---------- */

.hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 6px;
}
.hub-link {
  flex: 1 1 220px;
  display: block;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  background: var(--cream);
  padding: 14px 16px;
  text-decoration: none;
}
.hub-link:hover { border-left-color: var(--brass-dark); background: #f1ecdf; }
.hub-link .hub-title {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 3px;
}
.hub-link .hub-sub {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
}
.quiet-links {
  margin: 34px 0 0;
  font-family: var(--sans);
  font-size: 12px;
}
.quiet-links a { color: var(--ink-soft); text-decoration: underline; }
.quiet-links a:hover { color: var(--brass-dark); }

/* Home link (every office page) */
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brass-dark);
  text-decoration: none;
  font-family: var(--sans);
}
.home-link:hover { color: var(--navy); text-decoration: underline; }
.home-link svg { flex: none; position: relative; top: -1px; }

/* Sub-page navigation line (crumb back-links + sibling pages) */
.subnav {
  font-family: var(--sans);
  font-size: 13px;
  margin: 8px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.subnav a { color: var(--brass-dark); text-decoration: underline; }
.subnav a:hover { color: var(--navy); }

/* ---------- office.css elements (both office pages) ---------- */

.office-meta { font-size: 13px; padding-bottom: 8px; margin-bottom: 6px; }

.office-h2 { font-size: 19px; margin: 0 0 8px; }
.office-h2::after { margin-top: 6px; }
.office-h3 { font-size: 16px; margin: 26px 0 6px; }

table.office { margin-top: 4px; }
table.office th { padding: 6px 8px 5px; font-size: 11px; letter-spacing: 0.1em; }
table.office td { padding: 7px 8px; font-size: 14px; }
table.office .sub { font-size: 12px; margin-top: 1px; }
table.office .mono { font-size: 12px; }
.office-action { font-size: 12px; margin-right: 12px; }

.office-card { padding: 16px 18px; margin: 18px 0; }
.office-card form { gap: 10px; }
.office-card label { font-size: 12px; margin-bottom: 4px; }
.office-card input, .office-card select { font-size: 15px; padding: 8px 10px; }
.office-card textarea { font-size: 14px; }
.office-card .hint { font-size: 12px; }
.office-card button.primary { font-size: 13px; padding: 10px 26px; }
.office-msg { font-size: 14px; padding: 10px 12px; }
.hint-line { font-size: 13px; }
.compose-to { font-size: 15px; }

.disc-link { font-size: 13px; }
.disc-actions { margin: 4px 0 6px; }

.folder-form { gap: 10px; margin-top: 10px; }
.folder-form input { font-size: 14px; padding: 7px 10px; }
table.office select.move-select {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #cfc8b8;
  padding: 3px 6px;
  max-width: 180px;
}

/* Structured client-name entry (add-client form) */
.type-toggle { display: flex; gap: 26px; padding: 4px 0 2px; }
.type-toggle .radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  margin: 0;
  cursor: pointer;
}
.type-toggle input[type="radio"] { accent-color: var(--navy); width: 15px; height: 15px; }
.name-row { display: flex; gap: 10px; }
.name-row input { flex: 1 1 auto; min-width: 0; }
.name-row .name-mi { flex: 0 0 64px; }
.name-row .name-suffix { flex: 0 0 130px; }

/* ---------- Slim footer pinned to the viewport bottom ---------- */

.site-footer {
  flex-shrink: 0;
  margin-top: 28px;
  padding: 12px 0;
  font-size: 12px;
}
.site-footer .container { gap: 4px 40px; }
.site-footer .firm-name { font-size: 12.5px; margin: 0 0 2px; }
.site-footer p { margin: 0; }
.site-footer a { padding: 1px 0; }
.site-footer .fine {
  font-size: 10.5px;
  margin-top: 4px;
  padding-top: 5px;
}
