/* Official InView Medical palette, derived from the logo supplied by InView. */
:root {
  --navy:#3167a7;
  --dark:#214b82;
  --teal:#366dbd;
  --teal-dark:#265b9b;
  --mint:#edf7ff;
  --soft:#f5f9ff;
  --muted:#71839a;
  --stroke:#e0ebf6;
  --shadow:0 7px 28px rgba(40,91,149,.055);
}
body.app-body{background:#f5f9ff;color:#25456b}
.sidebar{background:linear-gradient(160deg,#214a80 0%,#285d9e 50%,#1c4376 100%);color:white}
.brand{display:flex;flex-direction:column;align-items:stretch;gap:11px;padding:0 7px 29px}
.brand-logo{display:block;max-width:100%;width:220px;height:auto;background:white;border-radius:10px;padding:10px 9px;box-shadow:0 8px 25px rgba(8,29,60,.12)}
.brand-label{letter-spacing:1.45px;font-size:9px;font-weight:800;color:#c1e9ff;text-align:center}
.nav-section{color:#b1d6f1}.nav-link{color:#e2efff}.nav-link:hover{background:#366fb1;color:#fff}.nav-link.selected{background:#3f7bbe;color:white;box-shadow:inset 3px 0 #78d9ec}
.nav-icon{color:#b6e1ff}.profile-row{border-color:#4e80b8}.profile-text small{color:#c0dcf2}
.help-panel{background:#285c98;border-color:#4b80b9}.help-panel .help-icon{background:#397dc2;color:#dbf8ff}.help-panel p{color:#c0d9ed}.help-panel strong{color:#fff}
.avatar{background:#38b6ff}.topbar{border-color:#dfebf7}.topbar-title{color:#6e87a6}.topbar-right{color:#5e83ac}.safe-dot{background:#38b6ff}
.page-heading h1,.section-header h2,.panel-header h2{color:#214b82}.eyebrow,.overline{color:#367cbd}
.button.primary{background:#366dbd;box-shadow:0 6px 13px rgba(54,109,189,.14)}.button.primary:hover:not(:disabled){background:#275b9d}.button.outline{border-color:#cbdff3;color:#2e65a8}.button.outline:hover{background:#f1f8ff}.button.ghost{color:#5578a5}
.card,.metric-card{border-color:#deebf9}.metric-card.highlight-card{border-left-color:#38b6ff}.metric-icon.blue{color:#316db6;background:#e8f4ff}.metric-icon.slate{color:#3b74a2;background:#edf5ff}
.data-table thead{background:#f3f8fd}.data-table th{color:#819bb6}.data-table .table-primary,.money-cell{color:#214a76!important}.table-action,.inline-link{color:#316fba}.inline-link{text-decoration:underline}.table-action:hover,.inline-link:hover{color:#154c8e}
.tip-row{background:#eff7ff;border-color:#cfe4f9}.tip-row .tip-emoji,.tip-row strong{color:#326daf}.tip-row p{color:#54789d}.empty-icon{background:#e5f3ff;color:#3e88c4}
.status-draft{background:#edf5ff;color:#386ba5}.status-submitted{background:#fff4df;color:#aa782e}.status-approved{background:#e8f7ef;color:#25815f}
.auth-body{background:white}.login-hero{background:linear-gradient(138deg,#214d87,#285e9f 70%,#183d71)}.hero-eyebrow{color:#b6e7ff}.login-hero h1 em{color:#78d9ec}.login-hero p{color:#e2edfa}.hero-footer{color:#b0d3f1}.hero-stats>span{color:#8fe3ff}.hero-stats small{color:#d1e2f4}
.hero-shape{height:260px;margin-top:24px}.hero-shape:before,.hero-shape:after{border-color:#8edbff35}
.hero-corporate-mark{width:250px;height:auto;filter:drop-shadow(0 16px 23px rgba(7,30,64,.12));object-fit:contain;position:relative;z-index:1}
.login-logo{display:block;width:205px;max-width:80%;height:auto;margin:0 0 26px}.login-card h2{color:#214b82}.login-support strong{color:#2e70b8}
.mobile-brand img{height:auto;width:190px;max-width:80vw}
.text-input:focus{outline:2px solid #8edbff;outline-offset:0;border-color:#38b6ff}
.autosave-status{font-size:11px;color:#3f7da4;font-weight:650;line-height:1.5;max-width:100%}.autosave-status.autosave-error,[data-autosave-status].autosave-error{color:#a64040}
.autosave-note{display:flex;align-items:flex-start;gap:8px;margin:16px 24px 0;color:#3770ae;font-size:12px;font-weight:640;line-height:1.65}.autosave-note .status-dot{margin-top:7px;background:#38b6ff;flex-shrink:0}
.draft-expenses-note{border:1px solid #b7daf8;background:#eff8ff;padding:20px 25px;margin:2px 24px 20px;border-radius:10px}.draft-expenses-note strong{font-size:13px;color:#23568e}.draft-expenses-note p{font-size:12px;color:#5379a2;margin:6px 0 12px;line-height:1.6}
.draft-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #d7e9f9;font-size:12px;color:#3a638c}
.settings-card{max-width:820px}.settings-info{background:#edf7ff;border:1px solid #cfe5f9;border-radius:9px;margin:8px 25px 20px;padding:15px;font-size:12px;color:#5277a1;line-height:1.7}
@media (max-width:780px){.sidebar{box-shadow:12px 0 55px #143c7060}.mobile-brand{top:25px}.login-logo{display:none}.login-hero{display:none}}
@media (max-width:550px){.draft-expenses-note{margin:0 14px 18px;padding:16px}.draft-entry{align-items:flex-start;flex-direction:column}.form-section .panel-footer{flex-wrap:wrap}.autosave-status{width:100%;order:2}.hero-corporate-mark{width:190px}.settings-info{margin:10px 19px 20px}}
/* Autosave indicators must never collide with primary actions. */
.form-section .panel-footer:has(.autosave-status){justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px}
.form-section .panel-footer .autosave-status{margin-right:auto;flex:1 1 180px;min-width:0;overflow-wrap:break-word}
@media(max-width:550px){.form-section .panel-footer:has(.autosave-status) .autosave-status{order:0}.form-section .panel-footer:has(.autosave-status) .button{margin-left:auto}}

/* V4: column editor, downloadable document bundles and responsive table controls. */
.expense-toolbar,.heading-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px}
.heading-actions form{margin:0}.dashboard-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.dashboard-row-actions form{margin:0}
.document-number{display:block;font-weight:750;color:#265d9e;overflow-wrap:anywhere;max-width:240px}
.configurable-table{min-width:750px}.configurable-table .row-index{font-size:11px;color:#7791a8;font-weight:700}.configurable-table .custom-cell{min-width:180px}
.attachment-links{display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:4px 0;border-bottom:1px solid #e8f0f7;min-width:175px}.attachment-links:last-child{border:0}
.attachment-links .filename-label{display:block;flex-basis:100%;font-size:11px;color:#466988;overflow-wrap:anywhere;max-width:245px}
.attachment-links a,.attachment-actions a{font-size:11px;font-weight:750;color:#2a6cb2;text-decoration:underline;text-underline-offset:2px}
.attachment-links a:hover,.attachment-actions a:hover{color:#174d85}
.attachment-title{overflow-wrap:anywhere;font-size:12px}.attachment-title small{font-size:10px;color:#8496a7}
.attachment-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;white-space:nowrap}
.column-dialog{width:min(670px,94vw);max-width:min(670px,94vw);max-height:90vh;overflow-y:auto}.column-dialog>p{font-size:12px;color:#647d95;line-height:1.65}
.column-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px;margin:18px 0 10px}
.column-check{display:flex;align-items:center;gap:9px;border:1px solid #dae8f5;border-radius:8px;padding:11px 12px;font-size:12px;cursor:pointer;color:#24496e}
.column-check input{accent-color:#366dbd;height:17px;width:17px;flex-shrink:0}.column-check span{flex:1}.column-check small{font-size:9px;color:#6989ab}
.custom-column-editor{border-top:1px solid #e2edf7;margin-top:22px;padding-top:18px}.custom-column-editor h3{font-size:16px;margin:0 0 8px;color:#214b82}
.custom-column-editor p{font-size:11px;line-height:1.65;color:#6a8298;margin:0 0 13px}
.add-column-form{display:flex;gap:8px;align-items:center}.add-column-form .text-input{flex:1;min-width:0}
.custom-column-list{display:grid;gap:4px;margin-top:18px}.custom-column-list>strong{font-size:11px;color:#667f98}
.custom-column-list form{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #eaf1f8;padding:8px 0;font-size:12px}
.custom-cell-form{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.custom-cell-form .text-input{width:150px;max-width:100%;min-width:130px}.custom-cell-form .button{padding:7px 10px}
.admin-filters{flex-wrap:wrap;justify-content:flex-end}.admin-filters select{max-width:260px;min-width:175px}
@media(max-width:780px){.expense-toolbar{margin-top:12px;justify-content:flex-start}.column-checks{grid-template-columns:1fr}.add-column-form{flex-wrap:wrap}.add-column-form .button{width:100%}.admin-filters{justify-content:flex-start;margin-top:14px}.admin-filters select{max-width:none;min-width:0;width:100%}.heading-actions{justify-content:flex-start}}
