@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #292720;
  --muted: #756f64;
  --line: #e2dbce;
  --paper: #f8f6f0;
  --white: #fff;
  --forest: #c8a45f;
  --forest-deep: #624718;
  --mint: #f1e6d1;
  --acid: #f0d58b;
  --rust: #bd593d;
  --sidebar-bg: #1b1f36;
  --sidebar-line: #373c54;
  --display: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  --body: 'DM Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 14px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 43%) 1fr; background: #f4efe4; }
.login-panel { min-height: 100vh; padding: 43px clamp(30px, 7vw, 100px); display: flex; flex-direction: column; background: var(--paper); position: relative; z-index: 1; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgb(41 39 32 / 8%); }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; color: var(--acid); background: var(--forest-deep); font: 700 14px var(--display); letter-spacing: 0; }
.brand-mark span { color: #fff; padding: 0 1px; }
.brand-name { color: var(--forest-deep); font: 700 12px var(--display); letter-spacing: 0; }
.brand-name span { display: block; color: #829188; font: 600 9px var(--body); letter-spacing: 0; margin-top: 2px; }
.login-copy { margin: auto 0 30px; max-width: 380px; }
.eyebrow { margin: 0 0 12px; color: #78877e; font: 700 10px var(--body); letter-spacing: 1.1px; }
.login-copy h1 { margin: 0 0 18px; color: var(--forest-deep); font: 600 clamp(38px, 5vw, 58px)/1.02 var(--display); letter-spacing: 0; }
.login-copy > p:last-child { max-width: 320px; margin: 0; color: #69766e; font-size: 14px; line-height: 1.7; }
.login-form { width: min(100%, 390px); display: grid; gap: 9px; margin-bottom: 26px; }
.login-form label, .field label, .field legend { color: #3a4941; font-size: 12px; font-weight: 700; }
.login-form label:not(:first-child) { margin-top: 8px; }
.login-form input, .field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid #d7e0d9; border-radius: 3px; outline: none; background: #fff; color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease; }
.login-form input { height: 46px; padding: 0 13px; }
.login-form input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: #bd944b; box-shadow: 0 0 0 3px rgb(135 99 31 / 13%); }
.form-error { min-height: 17px; margin: 0; color: var(--rust); font-size: 12px; }
.login-footnote { margin: auto 0 0; color: #9aa49e; font-size: 10px; letter-spacing: .4px; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 0 17px; border: 0; border-radius: 3px; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-primary { color: #2d271b; background: var(--forest); }
.button-primary:hover { background: #b8944f; }
.login-submit { width: 100%; min-height: 49px; margin-top: 3px; justify-content: space-between; padding: 0 16px; }
.login-aside { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 43px clamp(30px, 5vw, 76px) 35px; color: #fffaf0; background: #b48d47; isolation: isolate; }
.login-aside::before { content: ''; position: absolute; z-index: -2; inset: 0; background: linear-gradient(140deg, #d1ae6d 0%, #b48d47 52%, #876323 100%); }
.aside-grid { position: absolute; z-index: -1; inset: 0; opacity: .2; background-image: linear-gradient(rgb(255 250 236 / 18%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 250 236 / 18%) 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(90deg, transparent, #000 32%, #000); }
.aside-caption, .aside-index { display: flex; justify-content: space-between; color: #fff3d8; font: 600 9px var(--body); letter-spacing: 1px; }
.aside-stamp { position: absolute; top: 17%; right: 11%; width: 100px; height: 100px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; border: 1px solid rgb(255 250 236 / 55%); border-radius: 50%; color: #fff1c8; transform: rotate(9deg); }
.aside-stamp span:first-child { font: 700 9px var(--body); letter-spacing: 1px; }
.aside-stamp span:last-child { color: #fff8e9; text-align: center; font: 600 8px/1.4 var(--body); letter-spacing: .8px; }
.aside-message { margin: auto 0 11vh; position: relative; }
.aside-message .eyebrow { color: var(--acid); }
.aside-message p { margin: 0; color: #f4f7ee; font: 500 clamp(44px, 7vw, 94px)/.99 var(--display); letter-spacing: 0; }
.aside-rule { height: 1px; background: rgb(255 250 236 / 36%); }
.aside-index { margin: 15px 0 0; }
.aside-index span { color: #fff8e9; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 27px 19px 20px; border-right: 1px solid var(--sidebar-line); background: var(--sidebar-bg); }
.sidebar .brand-name { color: #fff; }
.sidebar .brand-name span { color: #b9bfd2; }
.sidebar-caption { margin: 55px 0 13px 11px; color: #a4abc2; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.sidebar nav { display: grid; gap: 4px; }
.nav-group { display: grid; gap: 4px; }
.nav-link { min-height: 41px; display: flex; align-items: center; gap: 11px; padding: 0 11px; color: #d6d9e4; border-radius: 3px; font-size: 12px; font-weight: 600; }
.sidebar .nav-link:hover, .sidebar .nav-link.is-active { color: #fff; background: #343950; }
.nav-icon { width: 16px; color: var(--forest); text-align: center; font-size: 16px; }
.nav-submenu { display: none; }
.app-shell.is-rate-panel-open .nav-group.is-open .nav-submenu { position: fixed; z-index: 8; inset: 0 0 0 auto; width: min(500px, calc(100vw - 20px)); height: 100vh; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; margin: 0; padding: 22px 18px; border: 1px solid #e3dccb; border-radius: 0; background: #f8f3ea; box-shadow: -12px 0 30px rgb(41 39 32 / 12%); animation: slide-in .2s ease both; }
.nav-submenu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-submenu h3 { margin: 0; color: var(--forest-deep); font: 700 10px var(--body); letter-spacing: .8px; text-transform: uppercase; }
.rate-entry-dialog { width: min(620px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; border: 0; color: var(--ink); background: transparent; }
.rate-entry-dialog::backdrop { background: rgb(16 32 25 / 54%); backdrop-filter: blur(2px); }
.rate-entry-dialog[open] { animation: dialog-appear .18s ease both; }
.rate-entry-panel { display: grid; gap: 14px; padding: 22px 25px 24px; border: 1px solid #e3dccb; background: #f8f3ea; box-shadow: 0 20px 65px rgb(14 34 24 / 22%); }
.rate-panel-close { width: 31px; height: 31px; border: 0; border-radius: 3px; color: #76857b; background: transparent; cursor: pointer; font-size: 20px; }
.rate-panel-close:hover { color: var(--forest-deep); background: #f1e7d3; }
.rate-entry-close { width: 31px; height: 31px; border: 0; border-radius: 3px; color: #76857b; background: transparent; cursor: pointer; font-size: 20px; }
.rate-entry-close:hover { color: var(--forest-deep); background: #f1e7d3; }
.rate-form { display: grid; gap: 14px; }
.nav-submenu label { display: grid; gap: 6px; color: #5d5a52; font-size: 11px; font-weight: 700; }
.nav-submenu select, .nav-submenu input { width: 100%; min-height: 39px; padding: 0 10px; border: 1px solid #d7d1c3; border-radius: 4px; background: #fff; color: var(--ink); }
.nav-submenu select[multiple] { height: 116px; padding: 5px 8px; background-image: none; }
.nav-submenu select[multiple] option { padding: 4px 2px; }
.rate-form-hint { color: #827b6d; font-size: 10px; font-weight: 400; }
.rate-form-footer { display: grid; gap: 8px; margin-top: 3px; }
.rate-form-footer .form-feedback { min-height: 16px; margin: 0; }
.rate-form-footer .button { width: 100%; min-height: 40px; justify-content: space-between; }
.rate-edit-cancel { min-height: 32px; border: 1px solid #d7d1c3; border-radius: 3px; color: #625d51; background: #fff; cursor: pointer; font-size: 11px; font-weight: 600; }
.rate-records { min-width: 0; margin-top: 8px; padding-top: 15px; border-top: 1px solid #e3dccb; }
.rate-records-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rate-records-header h4 { margin: 0; color: var(--forest-deep); font: 700 10px var(--body); letter-spacing: .6px; text-transform: uppercase; }
.rate-record-add { flex: 0 0 31px; min-height: 31px; margin-left: auto; color: var(--forest-deep); font-size: 19px; }
.rate-record-clear { min-height: 28px; padding: 0 9px; border: 1px solid #d9b6a9; border-radius: 4px; color: #9c4a38; background: #fff; cursor: pointer; font-size: 10px; font-weight: 700; }
.rate-record-clear:hover:not(:disabled) { background: #fff5f2; }
.rate-record-clear:disabled { cursor: not-allowed; opacity: .45; }
.rate-record-filter { max-width: 140px; min-height: 28px !important; margin-left: auto; padding: 0 8px !important; font-size: 11px !important; border: 1px solid #d7d1c3 !important; border-radius: 4px !important; background: #fff !important; }
.rate-record-clear-feedback { min-height: 16px; margin: -3px 0 8px; font-size: 10px; }
.rate-record-table-wrap { width: 100%; min-width: 0; overflow-x: auto; border: 1px solid #e3dccb; background: rgb(255 255 255 / 72%); }
.rate-record-table { width: 100%; min-width: 500px; border-collapse: collapse; text-align: left; }
.rate-record-table th { height: 32px; padding: 0 8px; border-bottom: 1px solid #e3dccb; color: #827b6d; background: #f3eee4; font-size: 9px; font-weight: 700; }
.rate-record-table td { padding: 9px 8px; border-bottom: 1px solid #eee8dc; color: #4c4941; font-size: 10px; white-space: nowrap; }
.rate-record-table tbody tr:last-child td { border-bottom: 0; }
.rate-record-table tbody tr.is-newly-saved td { background: #f5e8c9; }
.rate-record-empty { color: #797468 !important; text-align: center; }
.rate-record-actions { display: flex; gap: 5px; }
.rate-record-action { width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 1px solid #ded5c3; border-radius: 3px; color: var(--forest-deep); background: #fff; cursor: pointer; }
.rate-record-action svg, .entry-action-button svg { width: 14px; height: 14px; }
.rate-record-action:hover { background: #f3eee4; }
.rate-record-delete { color: #9c4a38; }
.sidebar-bottom { margin-top: auto; }
.sidebar-status { display: flex; align-items: center; gap: 8px; margin: 0 3px 16px; color: #bec3d3; font-size: 10px; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #ba913f; box-shadow: 0 0 0 3px rgb(186 145 63 / 16%); }
.user-block { display: flex; align-items: center; gap: 9px; padding: 12px 3px 0; border-top: 1px solid var(--sidebar-line); }
.user-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #252a40; background: #e8d9b4; font: 700 9px var(--display); }
.user-meta { display: grid; gap: 3px; min-width: 0; flex: 1; }
.user-meta strong { overflow: hidden; color: #f3f4f8; font-size: 11px; text-overflow: ellipsis; }
.user-meta small { color: #b9bfd2; font-size: 9px; }
.icon-button { width: 31px; height: 31px; border: 0; border-radius: 3px; background: transparent; color: #bec3d3; cursor: pointer; font-size: 15px; }
.icon-button:hover { color: #fff; background: #343950; }
.workspace { min-width: 0; }
.topbar { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(22px, 4vw, 58px); border-bottom: 1px solid #e0e6e0; background: rgb(255 255 255 / 72%); }
.topbar .eyebrow { margin: 0 0 4px; font-size: 9px; }
.topbar-title { margin: 0; color: #34443b; font: 600 13px var(--display); }
.topbar-date { display: flex; align-items: center; gap: 9px; color: #75827a; font-size: 9px; font-weight: 700; letter-spacing: .7px; }
.content { width: min(100%, 1500px); margin: 0 auto; padding: 36px clamp(22px, 4vw, 58px) 20px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.workspace-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.page-heading .eyebrow, .section-heading .eyebrow { margin-bottom: 8px; }
.page-heading h1, .section-heading h2 { margin: 0; color: #2b2923; font: 600 29px/1.1 var(--display); letter-spacing: 0; }
.page-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.button-dark { color: #fffaf0; background: var(--forest-deep); }
.button-dark:hover { background: #493513; }
.button-outline { border: 1px solid #ded5c3; color: var(--forest-deep); background: #fff; }
.button-outline:hover { background: #f8f3ea; }
.metrics { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); border: 1px solid #e2dbce; background: #fff; }
.dashboard-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.report-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metric { min-width: 0; min-height: 115px; padding: 16px 19px 14px; border-left: 1px solid #ebe5d9; }
.metric:first-child { border-left: 0; }
.metric-featured { background: #f2e8d4; }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: #756f64; font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.metric-symbol { color: var(--forest); font-size: 14px; }
.metric strong { display: block; overflow: hidden; margin-top: 13px; color: #302b21; font: 600 27px/1 var(--display); text-overflow: ellipsis; }
.metric small { display: block; margin-top: 8px; color: #817a6e; font-size: 10px; }
.company-total-list { display: grid; gap: 4px; margin-top: 9px; }
.company-total-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.company-total-list span { color: #756f64; font-size: 10px; font-weight: 700; }
.company-total-list strong { margin: 0; color: #302b21; font: 600 14px/1 var(--display); white-space: nowrap; }
.entry-section { margin-top: 32px; padding: 22px 25px 24px; border: 1px solid #dde5dd; background: #fff; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-heading h2 { font-size: 20px; }
.section-index { color: #8a978e; font-size: 9px; font-weight: 700; letter-spacing: .8px; white-space: nowrap; }
.form-grid { display: grid; gap: 15px 17px; }
.report-fields { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.activity-fields {
  min-width: 760px;
  grid-template-columns: 1.2fr repeat(7, minmax(72px, 1fr));
  gap: 15px 12px;
}
.activity-fields .field:has(.activity-select) { grid-column: 1; }
.activity-fields .hole-id-field { grid-column: 2; }
.activity-fields .core-type-field { grid-column: 3; }
.activity-fields .from-meter-field,
.activity-fields .from-time-field { grid-column: 4; }
.activity-fields .to-meter-field,
.activity-fields .to-time-field { grid-column: 5; }
.activity-fields .quantity-field { grid-column: 6; }
.activity-fields .field:has(.rate-input) { grid-column: 7; }
.activity-fields .field:has(.amount-input-value) { grid-column: 8; }
.core-type-field label { white-space: nowrap; }
.core-type-field select { width: 50%; min-width: 0; }
.meter-segment-controls { margin-top: 2px; }
.add-meter-segment { padding: 2px 0; border: 0; color: var(--forest); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.add-meter-segment:hover:not(:disabled) { background: #faf4e8; }
.add-meter-segment:disabled { cursor: not-allowed; opacity: .5; }
.meter-segments { display: grid; grid-template-columns: 1.2fr repeat(7, minmax(72px, 1fr)); gap: 15px 12px; margin-top: 0; }
.meter-segment { display: contents; }
.meter-segment-heading { grid-column: 1; display: flex; align-items: end; justify-content: space-between; min-width: 0; padding-bottom: 1px; color: #78877e; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.remove-meter-segment { width: 25px; height: 25px; border: 1px solid #e2e8e2; border-radius: 3px; color: #77857c; background: #fff; cursor: pointer; font-size: 15px; }
.meter-segment-fields { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px 12px; }
.drilling-total { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin: 4px 0 2px; color: #78877e; font-size: 10px; font-weight: 700; }
.drilling-total[hidden] { display: none; }
.drilling-total-amount { min-width: 125px; color: var(--forest-deep); font: 700 13px/1.2 var(--display); text-align: right; }
.entry-totals[hidden], .activity-total-slot:empty { display: none; }
.activity-total-slot:not(:empty) { padding-top: 5px; border-top: 1px solid #e0e8e1; }
.activity-list { display: grid; gap: 0; }
.activity-card { min-width: 0; padding: 0 0 1px; border-bottom: 1px solid #e0e8e1; animation: reveal .2s ease both; }
.activity-card:first-child { padding-top: 0; }
.activity-card:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0; }
.activity-card-label { color: #78877e; font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.remove-activity { width: 24px; height: 24px; border: 1px solid #e2e8e2; border-radius: 3px; color: #77857c; background: #fff; cursor: pointer; font-size: 16px; }
.remove-activity:hover:not(:disabled) { border-color: #e1b2a5; color: var(--rust); background: #fff8f6; }
.remove-activity:disabled { cursor: not-allowed; opacity: .45; }
.activity-card .form-divider { margin-top: 16px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; margin: 0; padding: 0; border: 0; }
.field label, .field legend { display: block; }
.field label span, .field legend span { color: var(--rust); }
.field label .quantity-label { color: var(--ink); }
.field input, .field select { height: 39px; padding: 0 10px; font-size: 12px; }
.field input::placeholder, .field textarea::placeholder { color: #a5b0a8; }
.field input[readonly] { color: var(--forest-deep); background: #f4ecd9; font-weight: 700; }
.field select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%236d7d72' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.shift-field { min-width: 0; }
.segmented-control { height: 39px; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid #d7e0d9; border-radius: 3px; background: #f4f7f3; }
.segmented-control label { position: relative; display: grid; place-items: center; color: #78867d; font-size: 11px; cursor: pointer; }
.segmented-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.segmented-control label span { width: 100%; display: grid; place-items: center; height: 31px; border-radius: 2px; color: #748178; }
.segmented-control input:checked + span { color: var(--forest-deep); background: white; box-shadow: 0 1px 4px rgb(77 57 23 / 14%); }
.segmented-control input:focus-visible + span { outline: 2px solid #bd944b; }
.form-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: #7f8e84; font-size: 9px; font-weight: 700; letter-spacing: .9px; }
.divider-line { height: 1px; flex: 1; background: #e7ece7; }
.input-suffix { position: relative; display: flex; align-items: center; }
.input-suffix input { padding-right: 40px; }
.input-suffix > span { position: absolute; right: 10px; color: #89958d; font-size: 10px; pointer-events: none; }
.field-hint { color: #9aa49d; font-size: 9px; }
.meter-continuation-hint.is-error { color: var(--rust); }
.add-driller { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0 4px 7px; border: 0; color: var(--forest); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; white-space: nowrap; }
.add-driller span { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #d7bd84; border-radius: 50%; font-size: 13px; }
.add-driller:hover span { color: #fff; background: var(--forest); }
.driller-list { display: flex; flex-wrap: wrap; gap: 10px; }
.driller-row { width: min(100%, 260px); display: flex; align-items: end; gap: 7px; animation: reveal .2s ease both; }
.driller-row .field { flex: 1; }
.driller-row .field input { height: 37px; }
.driller-label { color: #77857c; font-size: 10px; }
.remove-driller { width: 34px; height: 37px; border: 1px solid #e2e8e2; border-radius: 3px; color: #77857c; background: white; cursor: pointer; font-size: 17px; }
.remove-driller:hover { border-color: #e1b2a5; color: var(--rust); background: #fff8f6; }
.comment-field { max-width: 700px; margin-top: 17px; }
.attachment-field { max-width: 700px; margin-top: 14px; }
.attachment-field input[type="file"] { height: auto; padding: 8px; background: #fff; }
.attachment-field .field-hint { display: block; margin-top: 5px; }
.attachment-selection, .report-attachments ul { display: grid; gap: 5px; margin: 7px 0 0; padding-left: 18px; color: #59685e; font-size: 11px; }
.report-attachments { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #e3e9e3; background: #f8faf7; }
.report-attachments h3 { margin: 0; color: #3a4941; font-size: 12px; }
.report-attachments p { margin: 7px 0 0; color: #7e8a82; font-size: 11px; }
.report-attachments li { padding-left: 2px; }
.report-attachments li a { color: #705219; font-weight: 600; }
.report-attachments li span { margin-left: 8px; color: #89958d; font-size: 10px; }
.field textarea { min-height: 72px; resize: vertical; padding: 10px; font-size: 12px; line-height: 1.5; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; }
.form-feedback { min-height: 16px; margin: 0; color: #76591e; font-size: 11px; }
.form-feedback.is-error { color: var(--rust); }
.report-export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-print-context { display: none; }
.report-filters { padding: 17px 0; border-top: 1px solid #e2dbce; border-bottom: 1px solid #e2dbce; }
.report-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 15px; }
.report-filter-actions { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 9px; grid-column: span 3; align-self: end; }
.report-filter-actions .form-feedback { margin-left: auto; }
.report-summary { margin-top: 20px; }
.report-result-note { min-height: 16px; margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.report-ledger { margin-top: 8px; }
.report-table { min-width: 1400px; }
.ledger-section { margin-top: 31px; border-top: 1px solid #dbe3db; }
.ledger-heading { margin: 20px 0 15px; }
.entry-type-filters { display: inline-flex; overflow: hidden; border: 1px solid #ddcfad; border-radius: 3px; background: #fff; }
.entry-type-filter { min-width: 42px; min-height: 30px; padding: 0 9px; border: 0; border-right: 1px solid #e8dfcc; color: #705219; background: transparent; cursor: pointer; font-size: 10px; font-weight: 600; }
.entry-type-filter:last-child { border-right: 0; }
.entry-type-filter:hover { background: #faf4e8; }
.entry-type-filter.is-active { color: #fff; background: var(--forest); }
.entry-type-filter:focus-visible { position: relative; outline: 2px solid #c6a65e; outline-offset: -3px; }
.entries-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 0 2px; }
.entries-pagination .button { min-height: 32px; gap: 0; padding: 0 11px; font-size: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid #dde5dd; background: #fff; }
table { width: 100%; min-width: 1120px; border-collapse: collapse; text-align: left; }
th { height: 38px; padding: 0 12px; border-bottom: 1px solid #e5ebe5; color: #86938a; background: #f6f8f5; font-size: 9px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
td { max-width: 180px; padding: 12px; border-bottom: 1px solid #edf0ed; color: #48574e; font-size: 11px; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f9fbf8; }
.cell-primary { display: block; color: #2d4035; font-weight: 700; white-space: nowrap; }
.cell-secondary { display: block; margin-top: 4px; color: #919d94; font-size: 10px; white-space: nowrap; }
.amount-cell { color: #244b38; font-weight: 700; white-space: nowrap; }
.plod-details-toggle { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; font-weight: 700; text-align: left; text-decoration: underline; text-decoration-color: #c6a65e; text-underline-offset: 3px; }
.plod-details-toggle:hover { color: #705219; }
.plod-details-toggle:focus-visible { outline: 2px solid #c6a65e; outline-offset: 3px; }
.plod-status-line { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.plod-status { display: inline-block; padding: 4px 7px; border-radius: 3px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.plod-status-pending { color: #805c19; background: #f7efd9; }
.plod-status-approved { color: #286246; background: #e6f2e9; }
.plod-status-returned { color: #9c4a38; background: #fff0eb; }
.plod-return-reason { display: block; max-width: 220px; margin-top: 5px; color: #735448; font-size: 10px; white-space: normal; }
.plod-approve-button, .plod-return-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; padding: 5px; border: 1px solid; border-radius: 4px; background: #fff; cursor: pointer; }
.plod-approve-button { border-color: #c6a65e; color: #587b50; }
.plod-approve-button:hover { background: #edf5eb; }
.plod-approve-button:disabled { cursor: wait; opacity: .6; }
.plod-return-button { border-color: #d9a99c; color: #9c4a38; }
.plod-return-button:hover { background: #fff5f2; }
.plod-return-button:disabled { cursor: wait; opacity: .6; }
.plod-approve-button svg, .plod-return-button svg { width: 16px; height: 16px; }
.plod-approve-button:focus-visible, .plod-return-button:focus-visible { outline: 2px solid #c6a65e; outline-offset: 2px; }
.report-details-wrap { margin: 0; }
table.report-details-table { min-width: 980px; }
.report-details-table th { height: 32px; }
.report-details-table td { padding: 9px 10px; }
.report-details-table .cell-secondary { margin-top: 2px; }
.activity-tag { display: inline-block; padding: 4px 6px; border-radius: 2px; color: #705219; background: #f4ead4; font-size: 10px; white-space: nowrap; }
.entry-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.entry-action-button { width: 27px; height: 27px; display: grid; place-items: center; padding: 0; border: 1px solid #e1d7c2; border-radius: 3px; color: #705219; background: #fff; cursor: pointer; }
.entry-action-button:hover { border-color: #c6a65e; background: #faf4e8; }
.entry-delete-button { color: #9c4a38; }
.entry-delete-button:hover { border-color: #d9a99c; background: #fff5f2; }
.empty-state { padding: 31px 12px; color: #8a978e; text-align: center; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 21px 0 8px; color: #9ba69e; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.footer-separator { padding: 0 5px; color: #6f9a7a; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-in { from { opacity: .7; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .meter-segments { grid-template-columns: repeat(3, minmax(100px, 1fr)); column-gap: 17px; }
  .meter-segment-fields { grid-column: 2 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-fields { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .report-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-filter-actions { grid-column: 1 / -1; }
  .report-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-metrics .company-metric { grid-column: 1 / -1; }
  .report-summary .company-metric { grid-column: auto; }
  .report-summary .metric:nth-child(3) { border-left: 1px solid #ebe5d9; }
  .report-summary .metric:nth-child(4) { border-left: 0; }
  .report-summary .metric:nth-child(n + 4) { border-top: 1px solid #e3e9e3; }
  .metric:nth-child(3) { border-left: 0; border-top: 1px solid #e3e9e3; }
  .metric:nth-child(4), .metric:nth-child(5) { border-top: 1px solid #e3e9e3; }
}
@media (max-width: 700px) {
  .login-screen { min-height: 100svh; grid-template-columns: 1fr; }
  .login-panel { min-height: 100svh; padding: 27px 25px 22px; }
  .login-copy { margin: auto 0 26px; padding-top: 45px; }
  .login-copy h1 { font-size: 46px; }
  .login-aside { display: none; }
  .login-footnote { margin-top: 20px; }
  .app-shell { display: block; padding-bottom: 58px; }
  .sidebar { position: fixed; z-index: 5; inset: auto 0 0; width: 100%; height: 58px; flex-direction: row; align-items: center; justify-content: center; padding: 0 9px; border-top: 1px solid var(--sidebar-line); border-right: 0; background: var(--sidebar-bg); }
  .sidebar > .brand-lockup, .sidebar-caption, .sidebar-bottom { display: none; }
  .sidebar nav { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .app-shell.is-rate-panel-open .nav-group.is-open .nav-submenu { inset: 0; width: auto; height: 100dvh; padding: 20px 16px; }
  .nav-submenu-heading { width: 100%; justify-self: start; display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
  .nav-submenu-heading h3 { text-align: center; }
  .rate-panel-close { display: grid; place-items: center; align-self: center; border: 1px solid #d7d1c3; background: #fff; }
  .nav-link { min-height: 42px; flex-direction: column; justify-content: center; gap: 1px; padding: 2px 1px; font-size: 8px; line-height: 1.1; text-align: center; }
  .topbar { min-height: 59px; padding: 0 18px; }
  .topbar .eyebrow { font-size: 8px; }
  .topbar-title { font-size: 12px; }
  .topbar-date { font-size: 8px; }
  .content { padding: 26px 16px 15px; }
  .page-heading { align-items: start; }
  .page-heading h1 { font-size: 26px; }
  .page-subtitle { max-width: 220px; line-height: 1.5; }
  .workspace-actions { flex-direction: column; align-items: stretch; }
  .workspace-actions > .button { min-height: 38px; gap: 8px; padding: 0 10px; font-size: 10px; white-space: nowrap; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .report-filter-actions { grid-column: 1 / -1; margin-top: 4px; }
  .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-metrics .company-metric { grid-column: 1 / -1; }
  .report-summary .company-metric { grid-column: auto; }
  .report-summary .metric:nth-child(3) { border-left: 0; }
  .report-summary .metric:nth-child(4) { border-left: 1px solid #ebe5d9; }
  .report-summary .metric:nth-child(n + 3) { border-top: 1px solid #e3e9e3; }
  .report-summary .metric:nth-child(-n + 2) { border-top: 0; }
  .report-filter-actions .form-feedback { flex-basis: 100%; margin-left: 0; }
  .metric { min-height: 100px; padding: 12px; }
  .metric:nth-child(odd) { border-left: 0; }
  .metric:nth-child(even) { border-left: 1px solid #e3e9e3; }
  .metric:nth-child(2) { border-top: 0; }
  .metric strong { font-size: 23px; }
  .metric-top { font-size: 8px; }
  .metric small { font-size: 9px; }
  .entry-section { margin-top: 23px; padding: 17px 14px 16px; }
  .section-heading { margin-bottom: 17px; }
  .section-heading h2 { font-size: 18px; }
  .section-index { font-size: 8px; }
  .report-fields { grid-template-columns: 1fr 1fr; gap: 13px 10px; }
  .activity-fields { gap: 13px 10px; }
  .meter-segments { grid-template-columns: 1fr 1fr; column-gap: 10px; }
  .meter-segment-heading, .meter-segment-fields { grid-column: 1 / -1; }
  .meter-segment-heading { align-items: center; padding: 3px 0 0; }
  .meter-segment-fields { grid-template-columns: 1fr 1fr; gap: 13px 10px; }
  .field label, .field legend { font-size: 11px; }
  .form-divider { margin-top: 17px; }
  .driller-row { width: 100%; }
  .comment-field { margin-top: 16px; }
  .form-footer .button { min-height: 41px; }
  .ledger-section { margin-top: 24px; }
  .page-footer { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 30px 18px; background: #c8a45f; }
.login-panel { width: min(414px, 100%); min-height: 0; padding: 31px 26px 23px; align-items: stretch; border: 1px solid rgb(255 255 255 / 70%); border-radius: 13px; background: #fff; box-shadow: 0 12px 30px rgb(71 54 23 / 13%); }
.login-brand { width: 100%; flex-direction: column; justify-content: center; gap: 0; margin-bottom: 24px; }
.login-mark { width: 43px; height: 43px; display: flex; align-items: center; justify-content: center; color: #c69a3e; background: transparent; font-size: 25px; }
.login-mark span { color: #d9b96e; }
.login-brand-name { margin-top: -2px; color: #314239; font-size: 8px; }
.login-copy { max-width: none; margin: 0 0 24px; text-align: center; }
.login-copy h1 { margin: 0 0 6px; color: #d0a957; font: 600 27px/1.2 var(--body); letter-spacing: 0; }
.login-copy > p:last-child { max-width: none; margin: 0; color: #738197; font-size: 13px; line-height: 1.5; }
.login-form { width: 100%; gap: 7px; margin: 0; }
.login-form label { color: #18212b; font-size: 12px; font-weight: 500; }
.login-form label:not(:first-child) { margin-top: 8px; }
.login-form input { height: 43px; padding: 0 12px; border-color: #d9e1ed; border-radius: 6px; background: #e9f0fc; color: #17212e; font-size: 14px; }
.login-form input:focus { border-color: #caa65f; box-shadow: 0 0 0 3px rgb(202 166 95 / 15%); }
.login-field-hint { color: #738197; font-size: 10px; line-height: 1.4; }
.form-error:empty { display: none; }
.login-notice { margin: 0; color: #687891; font-size: 11px; line-height: 1.4; }
.login-notice:empty { display: none; }
.login-actions { display: grid; gap: 7px; margin-top: 9px; }
.login-submit { width: 100%; min-height: 40px; justify-content: center; gap: 7px; margin: 0; padding: 0 12px; border-radius: 6px; color: #fff; background: #d1aa62; font-size: 14px; }
.login-submit:hover { background: #bd954e; }
.login-clear { width: 100%; min-height: 36px; border: 1px solid #8e99a6; border-radius: 6px; color: #66758a; background: #fff; font-size: 12px; font-weight: 500; }
.login-clear:hover { background: #f6f8fb; }
.forgot-button { justify-self: center; margin-top: 5px; padding: 4px 8px; border: 0; color: #6c7a8e; background: transparent; cursor: pointer; font-size: 11px; }
.forgot-button:hover { color: #b18a43; text-decoration: underline; }
@media (max-width: 480px) {
  .login-screen { min-height: 100svh; padding: 18px 15px; }
  .login-panel { padding: 27px 22px 21px; }
  .login-brand { margin-bottom: 19px; }
  .login-copy { margin-bottom: 21px; }
}

.user-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-access-field, .company-access-field { width: 100%; margin-top: 17px; padding: 12px 14px; border: 1px solid #d9e1db; border-radius: 3px; background: #f8faf7; }
.metric-access-field legend, .company-access-field legend { padding: 0 5px; color: #3a4941; font-size: 12px; font-weight: 700; }
.metric-access-options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; min-height: 32px; }
.metric-option { display: inline-flex !important; align-items: center; gap: 8px; min-height: 28px; color: #48574e; cursor: pointer; }
.metric-option input { width: 16px !important; height: 16px !important; flex: 0 0 16px; margin: 0; padding: 0; accent-color: var(--forest); }
.metric-option span { font-size: 12px; font-weight: 500; }
.metric-access-field .field-hint, .company-access-field .field-hint { margin-top: 4px; }
.users-form-section { margin-top: 0; }
.users-ledger { margin-top: 30px; }
table.users-table { min-width: 1120px; }
.users-feedback:empty { display: none; }
.users-feedback { margin: 12px 0 0; }
.user-status { font-size: 10px; font-weight: 700; white-space: nowrap; }
.user-status.is-active { color: #3f7050; }
.user-status.is-disabled { color: #9c4a38; }
.user-row-actions { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.user-row-action { min-height: 27px; padding: 0 8px; border: 1px solid #e1d7c2; border-radius: 3px; color: #705219; background: #fff; cursor: pointer; font-size: 10px; font-weight: 600; }
.user-row-action:hover:not(:disabled) { border-color: #c6a65e; background: #faf4e8; }
.user-row-action:disabled { cursor: not-allowed; opacity: .45; }
.user-row-delete { color: #9c4a38; }
.ledger-actions { display: flex; align-items: center; gap: 14px; }
.add-user-button, .add-activity-button { width: 34px; height: 34px; border: 1px solid #ddcfad; border-radius: 3px; color: var(--forest); background: #fff; font-size: 23px; line-height: 1; }
.add-user-button:hover, .add-activity-button:hover { color: #2d271b; background: var(--forest); }
.user-dialog { width: min(760px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; border: 0; color: var(--ink); background: transparent; }
.user-dialog::backdrop { background: rgb(16 32 25 / 54%); backdrop-filter: blur(2px); }
.user-dialog[open] { animation: dialog-appear .18s ease both; }
.user-dialog .users-form-section { margin: 0; padding: 22px 25px 24px; border: 1px solid #dde5dd; box-shadow: 0 20px 65px rgb(14 34 24 / 22%); }
.user-dialog-heading { align-items: flex-start; margin-bottom: 20px; }
.user-dialog-heading .icon-button { flex: 0 0 34px; border: 1px solid #e1e8e1; background: #f8faf7; font-size: 21px; }
.activity-dialog { width: min(1120px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; border: 0; color: var(--ink); background: transparent; }
.activity-dialog::backdrop { background: rgb(16 32 25 / 54%); backdrop-filter: blur(2px); }
.activity-dialog[open] { animation: dialog-appear .18s ease both; }
.activity-dialog .activity-form-section { margin: 0; padding: 22px 25px 24px; border: 1px solid #dde5dd; box-shadow: 0 20px 65px rgb(14 34 24 / 22%); }
.report-details-dialog { width: min(1280px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; border: 0; color: var(--ink); background: transparent; }
.report-details-dialog::backdrop { background: rgb(16 32 25 / 54%); backdrop-filter: blur(2px); }
.report-details-dialog[open] { animation: dialog-appear .18s ease both; }
.report-details-panel { margin: 0; padding: 22px 25px 24px; border: 1px solid #dde5dd; box-shadow: 0 20px 65px rgb(14 34 24 / 22%); }
.report-details-panel .section-heading { align-items: flex-start; }
.report-details-panel .page-subtitle { margin: 6px 0 0; }
.report-details-panel .user-dialog-heading .icon-button { flex: 0 0 34px; }
.report-details-actions { display: flex; align-items: center; gap: 16px; }
.report-return-reason-detail { max-width: 680px; max-height: 140px; overflow: auto; margin: 8px 0 0; color: #735448; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.report-clear-all { padding: 0; border: 0; color: #a14335; background: none; cursor: pointer; font: 600 12px var(--body); text-decoration: underline; }
.report-clear-all:hover { color: #7e2e23; }
.daily-budget-dialog { width: min(720px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; border: 0; color: var(--ink); background: transparent; }
.daily-budget-dialog::backdrop { background: rgb(16 32 25 / 54%); backdrop-filter: blur(2px); }
.daily-budget-dialog[open] { animation: dialog-appear .18s ease both; }
.daily-budget-panel { margin: 0; padding: 22px 25px 24px; border: 1px solid #dde5dd; background: #fff; box-shadow: 0 20px 65px rgb(14 34 24 / 22%); }
.daily-budget-panel .section-heading { align-items: flex-start; }
.daily-budget-panel .section-heading .icon-button { flex: 0 0 34px; }
.daily-budget-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.daily-budget-records { margin-top: 26px; padding-top: 18px; border-top: 1px solid #e5e9e4; }
.daily-budget-records-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.daily-budget-records-heading h3 { margin: 0; color: #415449; font: 700 11px var(--body); }
.daily-budget-records-heading .icon-button { flex: 0 0 34px; }
.daily-budget-date-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 10px; margin-bottom: 14px; }
.daily-budget-date-filters .field-hint { grid-column: 1 / 3; grid-row: 2; }
.daily-budget-date-filters .button { min-height: 39px; padding: 0 12px; }
.daily-budget-records .table-wrap { margin-top: 0; }
.daily-budget-records table { min-width: 0; }
.daily-budget-records td { padding: 9px 12px; }
.daily-budget-actions { display: flex; gap: 5px; }
@media (max-width: 560px) {
  .daily-budget-date-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-budget-date-filters .field-hint { grid-column: 1 / -1; grid-row: auto; }
  .daily-budget-date-filters .button { grid-column: 1 / -1; }
}
@keyframes dialog-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.issued-credentials { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 13px 15px; border: 1px solid #e8dcc1; border-radius: 3px; background: #f8f2e5; }
.issued-credentials > div { min-width: 0; display: grid; gap: 5px; }
.issued-credentials strong { color: #35533f; font-size: 11px; }
.issued-credentials code { width: fit-content; max-width: 100%; overflow-wrap: anywhere; color: #1c392a; font: 600 14px var(--body); }
.issued-credentials small { color: #819086; font-size: 10px; }
.issued-credentials .button { flex: 0 0 auto; }
@media (max-width: 700px) {
  .sidebar nav { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .nav-link { gap: 5px; padding: 0 4px; font-size: 10px; }
  .user-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-dialog .users-form-section { padding: 17px 14px 16px; }
  .activity-dialog .activity-form-section { padding: 17px 14px 16px; }
  .report-details-panel { padding: 17px 14px 16px; }
  .report-details-panel .section-heading { margin-bottom: 14px; }
  .rate-entry-panel, .daily-budget-panel { padding: 17px 14px 16px; }
  .issued-credentials { align-items: flex-start; flex-direction: column; }
}

@page { size: landscape; margin: 10mm; }
@media print {
  body { color: #171717; background: #fff; font-size: 8pt; }
  .login-screen, .sidebar, .topbar, .report-filters, .report-export-actions, .page-footer { display: none !important; }
  .app-shell { display: block !important; min-height: 0; padding: 0; }
  .workspace, .content { width: 100% !important; max-width: none; margin: 0; padding: 0; }
  #dashboard-view, #users-view { display: none !important; }
  #report-view:not([hidden]) { display: block !important; }
  .report-heading { align-items: center; margin: 0 0 3mm; }
  .report-heading .eyebrow, .report-heading .page-subtitle { display: none; }
  .report-heading h1 { color: #111; font-size: 18pt; }
  .report-print-context { display: block; margin: 0 0 4mm; color: #333; font-size: 8pt; }
  .report-summary { margin: 3mm 0; break-inside: avoid; }
  .report-summary .metric { min-height: 0; padding: 5pt 8pt; border-color: #bbb; }
  .report-summary .metric strong { margin-top: 4pt; color: #111; font-size: 13pt; }
  .report-summary .metric small { margin-top: 2pt; color: #444; }
  .report-result-note { min-height: 0; margin: 2mm 0; color: #333; }
  .report-ledger { margin: 0; border-color: #999; }
  .ledger-heading { margin: 3mm 0 2mm; }
  .report-table-wrap, .table-wrap { overflow: visible !important; border: 0; }
  .report-table { width: 100% !important; min-width: 0 !important; table-layout: fixed; }
  .report-table thead { display: table-header-group; }
  .report-table th, .report-table td { max-width: none; padding: 3pt 4pt; color: #111; font-size: 6.5pt; white-space: normal; overflow-wrap: anywhere; }
  .report-table th { background: #e9e9e9 !important; }
  .report-table tbody tr { break-inside: avoid; page-break-inside: avoid; }
  .report-table th:nth-child(1) { width: 7%; }
  .report-table th:nth-child(2), .report-table th:nth-child(3) { width: 6%; }
  .report-table th:nth-child(4) { width: 7%; }
  .report-table th:nth-child(5) { width: 4%; }
  .report-table th:nth-child(6) { width: 6%; }
  .report-table th:nth-child(7) { width: 8%; }
  .report-table th:nth-child(8) { width: 5%; }
  .report-table th:nth-child(9), .report-table th:nth-child(10) { width: 6%; }
  .report-table th:nth-child(11) { width: 8%; }
  .report-table th:nth-child(12), .report-table th:nth-child(13) { width: 5%; }
  .report-table th:nth-child(14) { width: 21%; }
}
