/* Armatura: HAY Retail visual system, adapted to existing role-aware components. */
:root {
  --bg:#f7f3ee;
  --ink:#181818;
  --muted:#68615c;
  --link:#775b52;
  --line:#e5ddd5;
  --radius:10px;
  --sidebar:240px;
  --action:#181818;
  --action-hover:#38302b;
  --action-surface:#fffdf9;
  --action-border:#b8a79b;
  --action-tint:#efe4de;
  --control-radius:6px;
  --surface:#fffdf9;
  --field-border:#9c8e84;
  --accent:#b69a91;
  --accent-dark:#775b52;
  --accent-bg:#efe4de;
  --serif:Georgia,"Times New Roman",serif;
}
* {
  box-sizing:border-box;
}
html {
  scroll-padding-top:20px;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
a {
  color:var(--link);
  text-decoration:none;
}
a:hover {
  text-decoration:underline;
}
button,input,select,textarea {
  font:inherit;
}
button,:is(.button,.btn) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  gap:10px;
  border:1px solid var(--action);
  border-radius:var(--control-radius);
  padding:11px 18px;
  background:var(--action);
  color:var(--action-surface);
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  line-height:1.4;
  text-align:center;
}
:is(.button,.btn):hover,button:hover {
  background:var(--action-hover);
  border-color:var(--action-hover);
  text-decoration:none;
}
:is(.button,.btn):active,button:active {
  background:#0b0b0b;
  border-color:#0b0b0b;
}
.secondary {
  background:transparent;
  color:var(--action);
  border-color:var(--action-border);
}
.secondary:hover {
  background:var(--action-tint);
  color:var(--action);
  border-color:#9b8074;
}
.secondary:active {
  background:#e5d4ca;
  color:var(--action);
}
.quiet {
  border-color:transparent;
  background:transparent;
  color:var(--muted);
  padding:8px 0;
  min-width:52px;
}
.quiet:hover {
  border-color:transparent;
  background:transparent;
  color:var(--ink);
}
button:disabled,:is(.button,.btn)[aria-disabled="true"] {
  opacity:.5;
  cursor:not-allowed;
}
button:disabled:hover {
  background:var(--action);
  border-color:var(--action);
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid #775b52;
  outline-offset:3px;
}
button:focus-visible,:is(.button,.btn):focus-visible {
  outline-color:#775b52;
}
.skip-link {
  position:fixed;
  left:12px;
  top:-100px;
  z-index:1500;
  background:var(--surface);
  border:2px solid var(--link);
  padding:12px;
}
.skip-link:focus {
  top:12px;
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:var(--sidebar);
  height:100dvh;
  background:var(--surface);
  color:var(--ink);
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:28px;
  padding:32px 20px 24px;
  overflow-y:auto;
  z-index:100;
}
.brand {
  display:block;
  color:var(--ink);
  font:30px/1.15 var(--serif);
  letter-spacing:-.025em;
  padding:0 10px;
}
.brand:hover {
  text-decoration:none;
  color:var(--ink);
}
.brand span {
  display:block;
  margin-top:12px;
  color:var(--muted);
  font-size:12px;
  font-weight:400;
  letter-spacing:0;
}
.site-menu {
  flex:1;
}
.site-menu summary {
  min-height:44px;
  cursor:pointer;
  padding:10px 14px;
  color:var(--ink);
  border:1px solid var(--action-border);
  border-radius:var(--control-radius);
  font-weight:600;
  list-style:none;
}
.site-menu summary::-webkit-details-marker {
  display:none;
}
.site-menu nav {
  display:grid;
  gap:4px;
  margin:0;
}
.site-menu nav a {
  color:#5d5650;
  display:flex;
  align-items:center;
  min-height:46px;
  padding:11px 14px;
  border:1px solid transparent;
  border-radius:var(--control-radius);
  font-size:14px;
  overflow-wrap:anywhere;
}
.site-menu nav a:hover {
  background:#f4eee8;
  color:var(--ink);
  text-decoration:none;
}
.site-menu nav a.is-active {
  background:var(--accent-bg);
  border-color:#e5d4ca;
  color:var(--ink);
  font-weight:600;
}
.secondary-nav {
  border-top:1px solid #e5ddd5;
  padding-top:16px!important;
  margin-top:22px!important;
}
.identity {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid #e5ddd5;
  padding:20px 10px 0;
  color:var(--ink);
  font-size:14px;
  min-width:0;
}
.identity form {
  margin:0;
  flex-shrink:0;
}
.profile-label {
  min-width:0;
  overflow-wrap:anywhere;
}
.profile-label small {
  display:block;
  color:#68615c;
  font-size:11px;
  margin-top:3px;
}
.mobile-menu-heading {
  display:none;
}
main {
  max-width:1638px;
  margin-left:var(--sidebar);
  padding:36px 48px 48px;
  min-width:0;
}
body:not(:has(.sidebar)) main {
  margin:0;
  max-width:none;
}
.breadcrumbs {
  color:var(--muted);
  font-size:12px;
  margin:0 0 16px;
}
.breadcrumbs ol {
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
  padding:0;
  margin:0;
  list-style:none;
}
.breadcrumbs li+li:before {
  content:' / ';
  color:#68615c;
  margin-right:10px;
}
.breadcrumbs a {
  color:var(--muted);
}
.section-nav {
  display:flex;
  flex-wrap:wrap;
  gap:4px 12px;
  border-bottom:1px solid var(--line);
  padding-bottom:12px;
  margin:0 0 26px;
}
.section-nav a {
  color:#5d5650;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:9px 16px;
  border:1px solid transparent;
  border-radius:var(--control-radius);
  font-size:14px;
}
.section-nav a:hover {
  background:var(--action-tint);
  color:var(--action);
  text-decoration:none;
}
.section-nav a.is-active {
  background:var(--action-surface);
  border-color:var(--action-border);
  color:var(--action);
  font-weight:600;
}
:is(.heading,.page-heading) {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px;
  flex-wrap:wrap;
}
:is(.heading,.page-heading) p {
  margin:6px 0 0;
}
h1 {
  font:42px/1.12 var(--serif);
  margin:0 0 12px;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
}
h2 {
  font:24px/1.25 var(--serif);
  letter-spacing:-.02em;
  margin:0 0 14px;
}
h3 {
  font:21px/1.3 var(--serif);
  margin:0 0 10px;
}
p {
  margin:0 0 12px;
}
.muted,.helptext {
  color:var(--muted);
}
.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:.13em;
  color:var(--muted);
  margin-bottom:8px!important;
}
:is(.panel,.card) {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  margin-top:24px;
  min-width:0;
}
.actions {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}
.actions a:not(:is(.button,.btn)) {
  min-height:44px;
  display:inline-flex;
  align-items:center;
}
.filters {
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.filters label {
  min-width:130px;
  flex:0 1 180px;
}
.filters label:first-child {
  flex:1 1 220px;
}
.filters input {
  margin-bottom:0;
}
.filters button {
  flex-shrink:0;
}
label {
  display:block;
  font-size:14px;
  font-weight:500;
  line-height:1.4;
}
input,select,textarea {
  display:block;
  min-height:44px;
  width:100%;
  max-width:100%;
  border:1px solid var(--field-border);
  border-radius:var(--control-radius);
  background:var(--surface);
  color:var(--ink);
  font-size:14px;
  padding:10px 12px;
  margin-top:6px;
}
textarea {
  min-height:100px;
  resize:vertical;
}
input[type=checkbox] {
  display:inline-block;
  accent-color:var(--ink);
  width:18px;
  height:18px;
  min-height:18px;
  vertical-align:middle;
  margin:8px 10px 8px 0;
}
.checkbox-field {
  display:flex;
  align-items:center;
  min-height:44px;
  gap:8px;
}
.form-panel form {
  max-width:720px;
}
form p {
  max-width:680px;
}
.form-field {
  margin-bottom:18px;
}
.form-field .helptext {
  font-size:12px;
  margin-top:7px;
  margin-bottom:0;
}
.optional-fields {
  border:1px solid var(--line);
  border-radius:8px;
  margin:22px 0;
  padding:0 16px;
}
.optional-fields summary {
  min-height:48px;
  display:list-item;
  padding:13px 0;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
}
.optional-fields[open] summary {
  margin-bottom:8px;
}
.back-link {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin-bottom:14px;
  font-size:13px;
}
.errorlist {
  padding:10px 12px;
  background:#f7e8e2;
  color:#873c35;
  list-style:none;
  border-radius:7px;
  margin:8px 0;
  font-size:13px;
}
.error-summary {
  background:#f7e8e2;
  border:1px solid #dfb8ad;
  border-radius:8px;
  padding:18px;
  margin-bottom:24px;
  color:#873c35;
}
.error-summary h2 {
  font-size:16px;
}
.error-summary ul {
  margin:8px 0;
  padding-left:20px;
}
.error-summary a {
  color:#873c35;
}
.notice,.warning {
  padding:13px 16px;
  border-radius:8px;
  margin-bottom:18px;
}
.notice {
  background:#edf1e9;
  color:#315f41;
  border:1px solid #cad9c5;
}
.warning {
  background:#f4ebdf;
  color:#705332;
  border:1px solid #deccb3;
}
.notice.error {
  background:#f7e8e2;
  color:#873c35;
  border-color:#dfb8ad;
}
[hidden] {
  display:none!important;
}
.table-wrap {
  background:var(--surface);
  border-radius:var(--control-radius);
  width:100%;
  max-width:100%;
  overflow:auto;
  max-height:72vh;
  overscroll-behavior:contain;
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}
td,th {
  text-align:left;
  padding:16px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
th {
  font-size:14px;
  font-weight:400;
  color:var(--muted);
}
thead th {
  position:sticky;
  top:0;
  background:#f8f2ec;
  z-index:1;
  box-shadow:0 1px 0 var(--line);
}
th[scope=row] {
  color:var(--ink);
  font-weight:500;
}
td.numeric,th.numeric,td.number,th.number,.numeric {
  font-variant-numeric:tabular-nums;
  text-align:right;
}
td a {
  display:inline-block;
  min-height:32px;
}
.pagination {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
  margin-top:18px;
}
.pagination a {
  min-height:44px;
  display:inline-flex;
  align-items:center;
  border:1px solid #e5d4ca;
  background:#efe4de;
  border-radius:8px;
  padding:8px 12px;
}
.tabs {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:24px 0 18px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.tabs a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  justify-content:center;
  border:1px solid transparent;
  border-radius:var(--control-radius);
  color:var(--muted);
  padding:9px 16px;
  font-size:14px;
}
.tabs a:hover {
  background:var(--action-tint);
  color:var(--action);
  text-decoration:none;
}
.tabs a[aria-current],.tabs a.is-active {
  background:var(--action-surface);
  border-color:var(--action-border);
  color:var(--action);
  font-weight:600;
}
section[id] {
  scroll-margin-top:20px;
}
article+article {
  border-top:1px solid var(--line);
  padding-top:16px;
  margin-top:16px;
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.metrics :is(.panel,.card) {
  margin-top:0;
}
.metrics strong {
  font:29px/1.2 var(--serif);
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}
.metrics p {
  font-size:14px;
  color:var(--muted);
  margin-bottom:12px;
}
.dashboard-grid,.hub-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.dashboard-grid :is(.panel,.card) {
  margin-top:0;
}
.hub-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.hub-card {
  display:block;
  min-height:128px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fffdf9;
  color:var(--ink);
}
.hub-card:hover {
  border-color:#b69a91;
  background:#efe4de;
  text-decoration:none;
}
.hub-card h2 {
  font-size:17px;
  margin-bottom:20px;
}
.hub-card span {
  color:var(--link);
  font-size:13px;
}
.task-link {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:54px;
  border-top:1px solid var(--line);
  padding:12px 0;
}
.task-link:first-of-type {
  border-top:0;
}
.task-link small {
  color:var(--muted);
  display:block;
}
.login {
  max-width:460px;
  margin:7vh auto;
  padding:32px;
}
.login form p {
  margin-bottom:16px;
}
.financial-overview {
  margin-top:26px;
}
.financial-overview>summary {
  min-height:48px;
  cursor:pointer;
  font-weight:500;
  color:var(--ink);
  padding:12px 0;
}
.financial-overview[open]>summary {
  margin-bottom:12px;
}
.task-actions {
  margin-top:0;
  margin-bottom:28px;
}
.task-actions :is(.button,.btn) {
  min-width:135px;
}
.role-intro {
  margin-bottom:24px;
}
.role-intro p {
  color:var(--muted);
  max-width:700px;
}
/* Existing report aliases share the same controls and surfaces. */
::selection { background: var(--accent-bg); color: var(--ink); }
html { scrollbar-color: var(--accent) var(--bg); }
input,select,textarea { min-width: 0; caret-color: var(--ink); }
input::placeholder,textarea::placeholder { color: #786d64; opacity: 1; }
input:disabled,select:disabled,textarea:disabled { background: #eee7df; color: var(--muted); cursor: not-allowed; }
input[type=hidden] { display: none; }
input[type=file]::file-selector-button { min-height: 32px; margin-right: 12px; padding: 6px 10px; border: 1px solid var(--action-border); border-radius: var(--control-radius); background: var(--accent-bg); color: var(--ink); font: inherit; cursor: pointer; }
label:has(>input[type=checkbox]) { min-height: 44px; align-content: center; }
.filters > p { flex: 1 1 180px; min-width: 0; margin: 0; }
.filters > p > label { min-width: 0; }
.filters.card { margin-bottom: 24px; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 24px; }
.empty-state h2 { color: var(--ink); }
:is(.heading,.page-heading)>div { min-width: 0; }
details:not(.site-menu)>summary { min-height: 44px; padding: 10px 0; cursor: pointer; color: var(--ink); }
.purchase-entry { background: #fdfaf6; }
.errorlist { overflow-wrap: anywhere; }
.notice.warning { background: #f4ebdf; color: #705332; border-color: #deccb3; }
.notice.success { background: #edf1e9; color: #315f41; border-color: #cad9c5; }
.quiet:active { background: transparent; border-color: transparent; color: var(--ink); }
@media(max-width:760px) {
  input:not([type=checkbox]):not([type=hidden]),select,textarea { font-size: 16px; }
  .filters > p { flex-basis: 100%; }
  .identity { color: var(--ink); }
  .menu-close:hover { color: var(--surface); }
}
@media print {
  thead th { position: static; background: transparent; color: #000; box-shadow: none; }
}

@media(min-width:761px) {
  .js .site-menu>summary {
    display:none;
  }
  .navigation-panel {
    display:block;
  }
  .sidebar .site-menu:not([open]) .navigation-panel {
    display:none;
  }
}
@media(max-width:1100px) {
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .hub-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  main {
    padding:24px;
  }
}
@media(max-width:760px) {
  body.menu-open {
    overflow:hidden;
  }
  .sidebar {
    position:static;
    width:100%;
    height:auto;
    padding:14px 16px 10px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    overflow:visible;
  }
  .brand {
    font-size:24px;
    padding:0;
    align-self:center;
  }
  .brand span {
    display:none;
  }
  .site-menu {
    grid-column:2;
    grid-row:1;
    flex:none;
  }
  .site-menu summary {
    font-size:13px;
    min-height:44px;
    padding:10px 14px;
  }
  .site-menu summary:after {
    content:' +';
    padding-left:8px;
  }
  .js .site-menu[open]:before {
    content:'';
    position:fixed;
    inset:0;
    background:#18181866;
    z-index:1000;
  }
  .js .site-menu[open] .navigation-panel {
    position:fixed;
    z-index:1100;
    inset:0 0 0 auto;
    width:min(320px,calc(100vw - 28px));
    height:100dvh;
    overflow-y:auto;
    overscroll-behavior:contain;
    background:var(--surface);
    border-left:1px solid var(--line);
    padding:18px 16px;
    box-shadow:-12px 0 35px #0003;
  }
  .mobile-menu-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
    color:var(--muted);
    font-size:12px;
  }
  .menu-close {
    color:var(--ink);
    background:transparent;
    border:1px solid #5d5650;
    min-height:44px;
    padding:8px 12px;
    font-size:12px;
  }
  .site-menu nav a {
    font-size:14px;
    min-height:44px;
  }
  .secondary-nav {
    margin-top:16px!important;
    padding-top:14px!important;
  }
  .identity {
    grid-column:1/-1;
    margin:0;
    padding:0;
    border:0;
    font-size:11px;
  }
  .profile-label small {
    display:inline;
    margin-left:8px;
    font-size:10px;
  }
  .quiet {
    min-height:44px;
    padding:4px 8px;
  }
  .sidebar+.identity {
    border:0;
  }
  main {
    margin:0;
    padding:20px 16px 36px;
  }
  .breadcrumbs {
    margin-bottom:12px;
  }
  .section-nav {
    gap:4px;
    margin-bottom:22px;
    padding-bottom:10px;
  }
  .section-nav a {
    font-size:12px;
    padding:8px;
    max-width:100%;
    overflow-wrap:anywhere;
  }
  h1 {
    font-size:32px;
  }
  :is(.heading,.page-heading) {
    gap:12px;
    align-items:flex-start;
    margin-bottom:18px;
  }
  :is(.panel,.card) {
    padding:16px;
    margin-top:18px;
  }
  .metrics {
    gap:10px;
  }
  .metrics :is(.panel,.card) {
    padding:16px;
  }
  .metrics strong {
    font-size:25px;
  }
  .dashboard-grid,.hub-grid {
    grid-template-columns:1fr;
    gap:14px;
  }
  .hub-card {
    min-height:102px;
    padding:18px;
  }
  .hub-card h2 {
    margin-bottom:14px;
  }
  .filters {
    gap:10px;
  }
  .filters label {
    flex:1 1 120px;
    min-width:120px;
  }
  .filters label:first-child {
    flex-basis:100%;
  }
  .filters button {
    width:100%;
  }
  .table-wrap {
    max-height:65vh;
  }
  td,th {
    padding:11px 10px;
  }
  .actions {
    gap:9px;
  }
  .task-actions {
    gap:9px;
  }
  .task-actions :is(.button,.btn) {
    flex:1 1 145px;
  }
  .form-panel {
    padding:16px;
  }
  .login {
    margin:3vh auto;
    padding:22px 16px;
  }
  .optional-fields {
    padding:0 12px;
  }
  .tabs a {
    font-size:12px;
    padding:8px 11px;
  }
  .task-link {
    overflow-wrap:anywhere;
    align-items:flex-start;
  }
  .task-link>span {
    min-width:0;
  }
  .financial-overview {
    margin-top:20px;
  }
}
@media(prefers-reduced-motion:no-preference) {
  a,button {
    transition:background-color .12s,border-color .12s;
  }
}

/* Shared, decorative outline icons; accessible link names remain their labels. */
.site-menu nav a { gap: 12px; }
.nav-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.nav-label { min-width: 0; }

.expense-target { border: 0; padding: 0; margin: 0; min-width: 0; }

.workflow-path { display: flex; gap: 12px 24px; flex-wrap: wrap; list-style: none; padding: 0; margin: 20px 0; }
.workflow-path li { display: flex; flex-direction: column; gap: 2px; }
.workflow-path small { color: var(--muted, #68615c); }
.workflow-next .actions form { margin: 0; }

.setup-checklist { margin-block: 24px; }
