/* Shared customer workspace. Loaded after feature styles to keep controls consistent. */
:root {
  --ink:#232c39;
  --muted:#546073;
  --paper:#f2f4f6;
  --line:#dadfe6;
  --green:#213b61;
  --green-600:#182c4a;
  --radius-md:12px;
  --radius-lg:14px
}

body {
  font-size:14px;
  line-height:1.6
}

.sidebar {
  width:232px;
  padding:24px 16px 16px;
  overflow-y:auto;
  background:#1a2434
}

main {
  margin-left:232px
}

.sidebar nav:before {
  display:none
}

.office {
  margin:24px 6px 20px;
  color:#ced6e1;
  font-size:12px;
  border-color:#444f5f
}

.sidebar nav a {
  font-size:13px;
  padding:10px 12px;
  margin:3px 0;
  color:#cad2dd
}

.sidebar nav a[aria-current] {
  background:#354154;
  color:#fff;
  box-shadow:inset 3px 0 #b6c9e6
}

.sidebar nav a:hover {
  background:#2d3848
}

.nav-label {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1.3px;
  color:#a3adbd;
  margin:22px 12px 9px;
  font-weight:650
}

.nav-more {
  border-top:1px solid #444f5f;
  margin-top:20px;
  padding-top:14px
}

.nav-more summary {
  padding:10px 12px;
  color:#c1cad8;
  font-size:12px;
  cursor:pointer
}

.nav-more[open] summary {
  margin-bottom:8px
}

.sidebar-foot {
  margin-top:24px;
  color:#ced6e1
}
.sidebar-foot button {
  color:#bdc4cf;
  min-height:36px
}

.skip-link {
  position:fixed;
  top:8px;
  left:250px;
  z-index:100;
  background:white;
  padding:12px 20px;
  border:2px solid var(--green);
  border-radius:8px;
  transform:translateY(-180%)
}
.skip-link:focus {
  transform:none
}

.desk-topbar {
  height:68px;
  padding:0 36px;
  gap:20px
}
.desk-breadcrumb {
  font-size:12px
}
.local-tag {
  font-size:9px;
  color:#495464
}

.desk-search {
  width:300px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:4px 10px;
  background:#f6f7f8
}
.desk-search input {
  font-size:13px!important
}
.desk-search button {
  min-height:28px;
  min-width:28px
}

.page-content {
  padding:0 36px
}
header {
  padding:32px 0 26px;
  flex-wrap:wrap
}
h1,.intake-heading h1,.desk h1 {
  font-size:32px;
  letter-spacing:-1.1px
}
h2 {
  font-size:18px
}
header .muted,.intake-heading p.muted {
  font-size:14px
}
.eyebrow {
  font-size:10px;
  color:#576478
}

button,.button {
  min-height:42px;
  font-size:13px;
  padding:10px 16px;
  border-radius:8px
}
button:disabled {
  opacity:.6;
  cursor:wait
}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea {
  font-size:14px;
  min-height:42px;
  border-color:#b9c1cc;
  border-radius:7px
}
label {
  font-size:12px;
  color:#455060
}
input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:2px solid #3b557d;
  outline-offset:2px
}
.small {
  font-size:12px
}
.helptext {
  color:var(--muted)
}

.panel,.form-panel,.case-card {
  box-shadow:0 2px 6px #1a243404
}
.panel {
  overflow-wrap:anywhere
}
th {
  font-size:11px;
  color:#515e71;
  background:#f7f8f9
}
td,.work-table td,.queue-table td {
  font-size:13px;
  padding:18px
}
.work-table th {
  font-size:10px
}
.work-table small,.client-cell small,.queue-name small {
  font-size:11px;
  color:#566377
}
.table-actions a,.queue-open {
  font-size:12px
}
.badge,.status-chip {
  font-size:11px;
  padding:5px 9px
}

.stats span {
  font-size:12px
}
.stats .stat-note {
  font-size:11px
}
.linked-stats .metric {
  background:#fff;
  border-color:var(--line);
  border-top:3px solid var(--tone-line,#c2ccdb);
  padding:20px
}
.metric span,.stats .metric .stat-note {
  color:#566376
}
.metric strong {
  font-size:34px
}
.stage-strip a {
  font-size:12px
}
.section-title a,.quick-links {
  font-size:12px
}
.section-caption {
  font-size:12px;
  color:var(--muted)
}
.list-row strong {
  font-size:13px
}
.list-row p {
  font-size:12px
}
.empty {
  font-size:14px;
  padding:38px 24px;
  color:var(--muted)
}
.filter-bar select,.filter-bar input {
  font-size:13px!important;
  height:42px
}
.filter-bar label {
  font-size:12px
}
.pagination {
  font-size:12px
}
.pagination .button {
  font-size:12px
}
.source-note {
  font-size:12px
}

.intake-upload {
  padding:28px;
  border:1px dashed #94a0b2;
  background:#ecf0f5;
  gap:28px;
  border-radius:14px
}
.upload-intro h2 {
  font-size:22px
}
.upload-intro p,.upload-intro .small,.intake-upload form p {
  font-size:12px;
  color:#4f5b6c
}
.intake-upload input[type=file] {
  font-size:13px;
  background:white
}
.intake-flow {
  font-size:12px;
  color:#4f5b6c;
  padding:22px 0 28px
}
.intake-flow b {
  font-size:11px;
  color:#465771
}
.queue-tabs {
  gap:6px;
  margin-top:20px
}
.queue-tabs a {
  font-size:12px;
  color:#505c6e;
  padding:9px 12px
}
.queue-tabs b {
  font-size:11px;
  color:inherit
}
.queue-tabs a[aria-current] {
  background:#dbe2ed;
  color:#273a56;
  box-shadow:inset 0 -2px #405370
}
.inbox-toolbar .search input {
  font-size:13px
}
.queue-name {
  font-weight:600
}
.packet-summary {
  padding:26px
}
.packet-page-body>p,.page-fact,.filed-to {
  font-size:12px!important
}
.page-fact span {
  color:#566377
}
.page-fact strong {
  font-size:12px
}
.packet-page-body .button {
  font-size:13px
}
.packet-foot p {
  font-size:12px
}
.processing-notice p,.intake-alert {
  font-size:13px
}

.desk {
  --muted:#546073
}
.desk-heading {
  padding:26px 28px
}
.desk-heading p {
  font-size:13px
}
.desk-kicker {
  font-size:10px;
  color:#576478
}
.desk-layout {
  grid-template-columns:minmax(0,1fr) minmax(420px,.95fr)
}
.desk-viewer,.desk-review {
  height:calc(100dvh - 232px);
  min-height:570px;
  border-radius:12px
}
.desk .desk-steps button {
  font-size:13px;
  color:#566376;
  min-height:60px
}
.desk-steps button>span {
  width:25px;
  height:25px;
  font-size:11px
}
.desk h2 {
  font-size:21px
}
.desk label {
  font-size:12px;
  color:#444e5d
}
.desk input:not([type=checkbox]):not([type=hidden]),.desk select {
  font-size:14px;
  height:42px
}
.desk .full-name input {
  height:44px
}
.step-description,.desk-note,.desk .helptext {
  font-size:12px;
  color:#546073
}
.group-label {
  font-size:10px;
  color:#536073
}
.group-label>span,.field-source,.field-hint {
  font-size:11px;
  color:#5b697d
}
.desk .choice-list button {
  padding:15px
}
.choice-list strong {
  font-size:13px
}
.choice-list small,.match-card small {
  font-size:12px;
  color:#546073
}
.identity-card small,.save-receipt small {
  font-size:10px;
  color:#515d6f
}
.identity-card div>span {
  font-size:12px;
  color:#546073
}
.desk .check-row {
  font-size:12px
}
.read-badge {
  font-size:11px
}
.desk summary {
  font-size:12px;
  color:#4a5566
}
.attention-banner strong {
  font-size:13px
}
.attention-banner small {
  font-size:12px;
  color:#7b5e2e
}
.conflict-item dt {
  font-size:11px;
  color:#766247
}
.desk .errorlist {
  font-size:12px
}
.desk .action-buttons button {
  font-size:13px;
  min-height:44px
}
.action-meta {
  font-size:10px;
  color:#546073
}
.cancel-review {
  font-size:12px;
  color:#4a5566
}
.file-label strong {
  font-size:13px
}
.file-label small {
  font-size:11px;
  color:#546073
}
.viewer-download {
  width:40px;
  height:40px
}
.desk .viewer-controls button {
  font-size:12px;
  min-height:38px
}
.viewer-controls {
  gap:8px;
  flex-wrap:wrap
}
.viewer-controls>span {
  font-size:10px
}
.page-strip a {
  font-size:12px;
  min-width:36px;
  text-align:center
}
.packet-progress,.packet-progress a {
  font-size:12px
}
.upload-location-actions span,.location-actions small {
  font-size:11px
}
.upload-location-form label {
  font-size:12px
}
.upload-location-form textarea {
  font-size:13px
}
.upload-location-actions button {
  font-size:12px
}
.desk-footnote {
  font-size:11px;
  color:#546073
}
.source-details p {
  font-size:12px
}

.page-content>* {
  animation:none
}
footer {
  color:#5a687d
}

@media(min-width:1400px) {
  .page-content {
  padding:0 44px
}
.desk-layout {
  gap:24px
}
.step-page {
  padding:24px 28px
}

}

@media(max-width:1100px) and (min-width:851px) {
  .sidebar {
  width:214px;
  padding:20px 12px
}
main {
  margin-left:214px
}
.page-content {
  padding:0 24px
}
.desk-topbar {
  padding:0 24px
}
.desk-layout {
  grid-template-columns:minmax(0,1fr) minmax(355px,1fr)
}
.desk-search {
  width:220px
}
.local-tag {
  display:none
}

}

@media(max-width:850px) {
  main {
  margin-left:0
}
.sidebar {
  width:100%
}
.mobile-menu,.mobile-navigation-ready .mobile-header {
  background:#1a2434
}
.page-content {
  padding:0 20px
}
.desk-topbar {
  padding:0 20px;
  height:60px
}
.local-tag {
  display:none
}
.desk-search {
  width:240px
}
.mobile-menu .sidebar nav .nav-label {
  margin:20px 12px 8px
}
.mobile-menu .sidebar nav a {
  font-size:14px;
  min-height:44px
}
.mobile-menu .sidebar-foot {
  margin-top:20px
}
.skip-link {
  left:12px
}
.desk-layout {
  grid-template-columns:1fr
}
.desk-viewer {
  height:480px;
  min-height:0
}
.desk-review {
  height:auto;
  min-height:580px
}
.desk-form-body {
  overflow:visible
}
.desk-actions {
  position:sticky;
  bottom:0;
  z-index:4;
  box-shadow:0 -5px 16px #1a243408
}
.desk-heading {
  padding:24px 20px
}
.packet-progress {
  width:145px
}
.desk-steps {
  position:sticky;
  top:64px;
  background:white;
  z-index:3
}
.intake-flow {
  flex-wrap:wrap;
  gap:12px
}
.intake-upload {
  grid-template-columns:1fr
}
.overview-columns {
  grid-template-columns:1fr
}
.intake-heading .status-chip {
  display:none
}

}

@media(max-width:600px) {
  .page-content {
  padding:0 16px
}
header {
  padding:24px 0 20px;
  gap:16px
}
h1,.intake-heading h1,.desk h1 {
  font-size:28px
}
.desk-topbar {
  padding:0 16px
}
.desk-breadcrumb {
  display:none
}
.desk-search {
  display:flex;
  width:100%;
  margin:0
}
.desk-search input {
  font-size:16px!important
}
.stats {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.linked-stats .metric {
  padding:15px
}
.stats span {
  font-size:11px
}
.stats .stat-note {
  font-size:10px
}
.metric strong {
  font-size:29px
}
.intake-upload {
  padding:20px
}
.intake-upload input[type=file] {
  max-width:100%
}
.intake-flow {
  justify-content:flex-start;
  gap:8px 16px;
  font-size:11px
}
.intake-flow i {
  display:none
}
.queue-tabs {
  flex-wrap:nowrap;
  overflow-x:auto;
  padding-bottom:12px
}
.queue-tabs a {
  white-space:nowrap
}
.inbox-toolbar .search {
  max-width:none
}
.search input {
  min-width:0
}
.desk-layout {
  padding:0 12px
}
.desk-heading {
  align-items:flex-start
}
.desk-heading p {
  max-width:210px
}
.packet-progress {
  width:110px
}
.desk-viewer {
  height:440px
}
.viewer-stage {
  padding:16px
}
.desk .viewer-controls button {
  padding:6px 9px
}
.desk-review {
  min-height:580px
}
.desk .action-buttons button {
  padding:10px 12px;
  gap:8px
}
.action-buttons {
  gap:10px
}
.step-page {
  padding:20px 16px
}
.field-grid {
  gap:0 10px
}
.desk input:not([type=checkbox]):not([type=hidden]),.desk select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea {
  font-size:16px
}
.desk .action-meta {
  font-size:10px
}
.desk .group-label {
  flex-wrap:wrap;
  gap:2px
}
.desk-footnote {
  padding:14px 16px
}
.upload-intro h2 {
  font-size:20px
}
.intake-heading .filename {
  font-size:25px
}
.desk-steps {
  top:64px
}
.form-panel {
  padding:20px
}

}

@media(prefers-reduced-motion:reduce) {
  * {
  scroll-behavior:auto!important
}

}


.nav-demo {
  float:right;
  font-size:9px;
  padding:1px 5px;
  border:1px solid #697992;
  border-radius:4px;
  color:#d2d9e3
}
.review-recap {
  border:1px solid var(--line);
  border-radius:8px;
  padding:16px;
  margin-top:20px;
  background:#f8f9fa
}
.review-recap h3 {
  font-size:14px
}
.review-recap dl {
  margin:12px 0
}
.review-recap dl>div {
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin:7px 0;
  font-size:12px
}
.review-recap dt {
  color:#546073
}
.review-recap dd {
  margin:0;
  text-align:right;
  overflow-wrap:anywhere
}
.review-recap a {
  font-size:12px
}
@media(min-width:601px) and (max-width:850px) {
  .stats {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

}


.viewer-location {
  background:#fff;
  border-bottom:1px solid var(--line);
  flex-shrink:0
}
.viewer-location>summary {
  padding:12px 17px;
  cursor:pointer;
  font-weight:600
}
.viewer-location>summary span {
  font-weight:400;
  color:var(--muted);
  margin-left:10px
}
.viewer-location .upload-location-form {
  border:0
}
.viewer-stage {
  min-height:100px
}
@media(max-width:600px) {
  .desk-heading {
  flex-wrap:nowrap;
  gap:12px
}
.desk-heading>div:first-child {
  min-width:0;
  flex:1
}
.desk-heading .packet-progress {
  flex:0 0 100px
}
.desk-heading p {
  font-size:12px
}
.desk-viewer {
  height:500px
}
.desk .viewer-controls {
  gap:6px
}
.desk .viewer-controls .small {
  font-size:11px
}
.desk .viewer-controls>span {
  display:none
}

}


.step-page h2 {
  scroll-margin-top:145px
}
.desk-notice {
  color:#70502d
}
.review-recap[hidden] {
  display:none
}

.mobile-menu .sidebar nav:before {
  display:none
}


/* Navigation follows employee tasks. The compact rail keeps every destination reachable. */
.sidebar nav a { display:flex; align-items:center; gap:10px; min-height:40px; }
.sidebar nav a .nav-ico { margin:0; flex:0 0 22px; font-size:19px; opacity:1; }
.nav-copy { min-width:0; }
.nav-group .nav-label { margin:18px 10px 7px; color:#bfc6d1; font-size:10px; }
.nav-utilities { border-top:1px solid #495464; padding-top:12px; margin-top:18px; }
.sidebar .helper-nav { background:#2a3648; color:#dbe4f1; border:1px solid #536073; }
.sidebar-toggle { flex-shrink:0; width:40px; min-height:38px; padding:6px; font-size:18px; }
.desk-topbar { gap:16px; }
.page-guide { margin:22px 0 0; border:1px solid #d3dae4; border-radius:10px; background:#ecf0f5; }
.page-guide summary { color:#3b4759; font-size:12px; padding:11px 16px; cursor:pointer; }
.page-guide>div { padding:2px 16px 14px; max-width:850px; font-size:13px; }
.page-guide>div>strong { display:none; }
.page-guide p { margin:0 0 9px; }
.page-guide a { font-size:12px; }
.review-mode .page-guide { display:none; }
.nav-demo { margin-left:8px; }
.client-record-actions { padding-top:4px; }
.record-more-actions { position:relative; }
.record-more-actions>summary { cursor:pointer; padding:10px 14px; background:white; border:1px solid var(--line); border-radius:8px; font-size:12px; }
.record-more-actions[open]>div { position:absolute; right:0; top:48px; z-index:10; padding:12px; background:white; border:1px solid var(--line); box-shadow:var(--shadow-md); border-radius:10px; min-width:235px; }
.record-more-actions a { display:block; padding:10px; font-size:13px; }
#document-details { scroll-margin-top:90px; }
.client-profile-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 22px; padding-bottom:8px; border-bottom:1px solid var(--line); }
.client-profile-tabs a { display:inline-flex; align-items:center; min-height:42px; padding:8px 14px; border-radius:8px; font-size:13px; font-weight:600; text-decoration:none; }
.client-profile-tabs a:hover, .client-profile-tabs a[aria-current="page"] { background:#e6ebf2; color:#29384f; }
@media (max-width:480px) {
  .client-profile-tabs { gap:4px; }
  .client-profile-tabs a { padding-inline:9px; }
}
.client-documents-tab section + section { margin-top:24px; }
@media (min-width:901px) {
  .record-layout.client-detail-layout { grid-template-columns:minmax(260px,1fr) minmax(0,1.45fr); }
}
.client-document-details > summary { padding:14px 16px; font-size:13px; overflow-wrap:anywhere; }
.client-document-details > summary span { display:block; margin:4px 0 0 17px; }
.client-document-facts { padding-top:0; }
.client-document-facts > a { display:inline-block; margin-top:10px; }
.client-document-facts .facts dt { font-size:12px; color:var(--muted); }
.client-document-facts .facts dd { font-size:13px; }
.client-document-pagination { display:flex; flex-wrap:wrap; align-items:center; gap:12px; font-size:12px; }
.checklist-panel .requirement { padding:22px; }
.requirement>p { font-size:13px; color:#4e5a6c; }
.form-aside p { font-size:13px; color:#4e5a6c; }
.form-panel .helptext { font-size:12px; line-height:1.6; }
.work-table { table-layout:auto; }
.work-table td:first-child { width:auto; min-width:160px; }
.work-table td { min-width:110px; }
.row-actions { display:flex; gap:12px; flex-wrap:wrap; }
.form-panel .errorlist { padding:10px 14px; font-size:13px; border-left:3px solid #b94f4f; background:#fff1ed; }
.form-panel>p { margin-bottom:22px; }
.signed-out .sidebar { display:none; }
.signed-out main { margin-left:0; }
.signed-out .desk-topbar { justify-content:center; }
.signed-out .local-tag,.signed-out .desk-breadcrumb { display:none; }
@media(min-width:851px) {
  .navigation-compact .sidebar { width:76px; padding:22px 10px; }
  .navigation-compact main { margin-left:76px; }
  .navigation-compact .sidebar .brand { width:40px; overflow:hidden; padding:0 5px; font-size:0; gap:0; }
  .navigation-compact .sidebar .mark { flex-shrink:0; font-size:25px; }
  .navigation-compact .sidebar .office,.navigation-compact .nav-copy,.navigation-compact .nav-label,.navigation-compact .sidebar-foot>span { display:none; }
  .navigation-compact .sidebar nav { margin-top:24px; }
  .navigation-compact .sidebar nav a { justify-content:center; padding:10px; }
  .navigation-compact .nav-group { border-top:1px solid #495464; padding-top:8px; margin-top:8px; }
  .navigation-compact .sidebar-foot { padding:12px 0 0; }
  .navigation-compact .sidebar-foot button { font-size:10px; margin:0; width:100%; }
  .navigation-compact .sidebar nav a .nav-ico { flex-basis:22px; }
}
@media(max-width:850px) {
  .sidebar-toggle { display:none; }
  .mobile-menu .sidebar nav a { display:flex; white-space:normal; }
  .mobile-menu .sidebar nav a .nav-ico { margin:0; }
  .mobile-menu .sidebar nav .nav-label { margin:18px 12px 7px; }
  .page-guide { margin-top:16px; }
  .record-more-actions[open]>div { position:static; margin-top:8px; min-width:0; }
  .client-record-actions { gap:8px; }
}
/* Work lists become labelled cards on phones, avoiding tiny horizontally squeezed columns. */
@media(max-width:600px) {
  table[data-mobile-records] { min-width:650px; }
  table.mobile-records-ready { display:block; min-width:0; width:100%; }
  .mobile-records-ready thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .mobile-records-ready tbody { display:block; }
  .mobile-records-ready tbody tr { display:block; border-bottom:8px solid var(--paper); padding:8px 14px; }
  .mobile-records-ready tbody tr:last-child { border-bottom:0; }
  .mobile-records-ready tbody td { display:block; min-width:0; width:100%; padding:10px 0; border-bottom:1px solid var(--line); font-size:13px; }
  .mobile-records-ready tbody td:last-child { border-bottom:0; }
  .mobile-records-ready td[data-cell-label]:not(:first-child)::before { content:attr(data-cell-label); display:block; color:var(--muted); font-size:10px; font-weight:600; letter-spacing:.5px; text-transform:uppercase; margin-bottom:5px; }
  .mobile-records-ready .client-cell,.mobile-records-ready .queue-name { min-width:0; }
  .mobile-records-ready .queue-name { font-size:14px; }
  .mobile-records-ready .table-primary { font-size:15px; }
  .mobile-records-ready .row-actions { gap:18px; }
  .mobile-records-ready .evidence-cell { min-width:0; }
  .mobile-records-ready .empty { padding:24px 8px; }
  .mobile-records-ready .queue-open { display:inline-block; padding:5px 0; }
  .mobile-records-ready th { overflow-wrap:normal; }
}
