.employee-home[hidden] { display: none; }

.employee-home {
  --employee-ink: #172b3a;
  --employee-muted: #4c6376;
  --employee-line: #d9e5ee;
  --employee-accent: #125c86;
  --employee-hero: linear-gradient(125deg, #edf9ff, #e7f5f2 68%, #fff6e7);
  --employee-alt: #f5f8fb;
  box-sizing: border-box;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(12px, 3.7vw, 40px) clamp(12px, 3.7vw, 32px) 48px;
  color: var(--employee-ink);
}

:root[data-appearance="dark"] .employee-home {
  --employee-ink: var(--ui-ink);
  --employee-muted: var(--ui-muted);
  --employee-line: var(--ui-line);
  --employee-accent: var(--ui-accent);
  --employee-hero: linear-gradient(125deg, #20334b, #213c3b 68%, #3a3027);
  --employee-alt: var(--ui-alt);
}

.employee-home button,
.employee-home input:not([type="checkbox"]),
.employee-home select { min-height: 44px; }
.employee-home button {
  background: var(--ui-control, #fff);
  border-color: var(--employee-line);
  color: var(--employee-ink);
}
.employee-home button:hover:not(:disabled) { background: var(--employee-alt); }
.employee-home button.primary { background: var(--ui-primary, #1375a3); border-color: transparent; color: #fff; }
.employee-home button.primary:hover:not(:disabled) { filter: brightness(0.92); }
.employee-home :is(h1,h2,h3,p,dl) { margin: 0; }
.employee-home :is(h1,h2,h3) { line-height: 1.16; color: inherit; }
.employee-home h1 { font-size: clamp(1.6rem, 5vw, 2.75rem); letter-spacing: -0.04em; }
.employee-home h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.employee-home h3 { font-size: 1.14rem; }
.employee-home form { max-width: none; }
.employee-home label { min-width: 0; }
.employee-home input, .employee-home select, .employee-home textarea { font-size: 1rem; }

.employee-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(18px, 4vw, 32px);
  border: 1px solid var(--employee-line);
  border-radius: 24px;
  background: var(--employee-hero);
  overflow-wrap: anywhere;
}
.employee-header button { flex: none; }
.employee-header .employee-company {
  color: var(--employee-accent);
  font-size: 0.85rem;
  font-weight: 720;
  margin-bottom: 5px;
}
.employee-header .employee-person { margin-top: 8px; color: var(--employee-muted); }
.employee-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin: 18px 0 12px;
}
.employee-controls label {
  flex: 0 1 auto;
  margin: 0;
}
.employee-controls input { width: auto; min-width: 10rem; }
.employee-controls button { margin: 0; }
.employee-day { display: grid; gap: 14px; }
.employee-panel {
  min-width: 0;
  padding: clamp(16px, 4vw, 26px);
  background: var(--ui-surface, #fff);
  border: 1px solid var(--employee-line);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgb(25 54 78 / 5%);
  overflow-wrap: anywhere;
}
.employee-home .employee-meta { margin-top: 6px; color: var(--employee-muted); }
.employee-home .employee-empty {
  margin-top: 12px;
  padding: 12px;
  color: var(--employee-muted);
  background: var(--employee-alt);
  border-radius: 10px;
}
.employee-job-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 12px;
  margin-top: 15px;
}
.employee-job {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--employee-line);
  border-inline-start: 4px solid var(--employee-accent);
  border-radius: 12px;
  background: var(--employee-alt);
}
.employee-job .employee-job-time { color: var(--employee-accent); font-weight: 720; font-variant-numeric: tabular-nums; }
.employee-job dt { margin-top: 9px; color: var(--employee-muted); font-size: 0.82rem; font-weight: 680; }
.employee-job dd { margin: 2px 0 0; white-space: pre-wrap; }
.employee-report {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--employee-alt);
  border-radius: 10px;
}
.employee-home summary { min-height: 28px; padding: 6px 0; cursor: pointer; font-weight: 700; }
.employee-report-status {
  display: inline-block;
  padding: 2px 7px;
  margin-inline-start: 8px;
  border-radius: 8px;
  color: var(--employee-accent);
  background: var(--ui-tint, #dceffa);
  font-size: 0.75rem;
}
.employee-home .employee-report-copy { padding: 8px 0 4px; white-space: pre-wrap; }
.employee-report-editor { margin-top: 16px; display: grid; gap: 8px; }
.employee-home p.employee-feedback:not(:empty) { padding: 10px; margin-bottom: 8px; color: var(--ui-green, #195f52); background: var(--ui-green-bg, #eaf7ef); border-radius: 8px; }
.employee-home p.employee-feedback.employee-error:not(:empty) { color: var(--ui-red, #9b2229); background: var(--ui-red-bg, #fff0f0); }
.employee-password { margin-top: 14px; }
.employee-password form { padding-top: 10px; }
.employee-messages:empty { display: none; }
.employee-messages { display: grid; gap: 14px; }

.employee-chat, .employee-personnel {
  --message-border: var(--employee-line, var(--ui-line, #d9e5ee));
  --message-background: var(--employee-alt, var(--ui-alt, #f5f8fb));
  --message-accent: var(--employee-accent, var(--ui-accent, #125c86));
  --message-priority: var(--ui-red, #9b2229);
  --message-priority-bg: var(--ui-red-bg, #fff0f0);
}
.employee-chat [hidden], .employee-personnel [hidden] { display: none !important; }
.employee-chat > h2 { margin-bottom: 16px; }
.employee-feed { display: grid; gap: 12px; min-width: 0; }
.employee-chat .employee-feed {
  padding: clamp(10px, 2.5vw, 20px);
  border: 1px solid var(--message-border);
  border-radius: 18px;
  background: var(--message-background);
}
.employee-chat .employee-message-group { display: grid; gap: 9px; min-width: 0; }
.employee-chat .employee-message-group h3 { margin: 2px 0 0; }
.employee-chat [data-category="urgent"] > h3 { color: var(--message-priority); }
.employee-bubble {
  display: grid;
  gap: 6px;
  box-sizing: border-box;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--message-border);
  background: var(--ui-surface, #fff);
  overflow-wrap: anywhere;
}
.employee-home .employee-chat .employee-bubble { width: min(100%, 630px); margin-inline-start: auto; border-end-end-radius: 4px; }
.employee-bubble > header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--message-accent); }
.employee-bubble p { margin: 0; }
.employee-bubble audio { max-width: 100%; }
.employee-bubble a, .employee-personnel a { color: var(--message-accent); text-underline-offset: .2em; }
.employee-bubble.employee-urgent { border-inline-start: 4px solid var(--message-priority); }
.employee-priority-note { padding: 10px 12px; border-radius: 10px; background: var(--message-priority-bg); color: var(--message-priority); font-weight: 680; }
.employee-chat-text { white-space: pre-wrap; }
.employee-reply {
  margin: 6px 0 0 16px;
  padding: 9px 12px;
  border-inline-start: 2px solid var(--message-accent);
  border-radius: 8px;
  background: var(--message-background);
}
.employee-chat .employee-compose, .employee-personnel .employee-compose, .employee-message-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  align-items: end;
  margin-block: 14px;
}
.employee-compose label, .employee-message-filters label, .employee-message-actions label { min-width: 0; margin: 0; }
.employee-compose :is(.employee-recording, .employee-feedback, label:has(textarea)), .employee-message-filters label:has(input[type="search"]) { grid-column: 1 / -1; }
.employee-compose button[type="submit"], .employee-message-filters button { justify-self: start; }
.employee-compose .employee-feedback:empty, .employee-bubble > p[role="status"]:empty { display: none; }
.employee-message-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; padding-top: 6px; }
.employee-message-actions label:has(textarea) { width: 100%; }
.employee-chat > .employee-personnel { margin-top: 16px; padding: 12px; border: 1px solid var(--message-border); border-radius: 14px; }
.employee-personnel { scroll-margin-top: 12px; }
.employee-personnel summary { cursor: pointer; font-weight: 700; color: var(--message-accent); }
.employee-personnel[open] > summary { padding-bottom: 10px; border-bottom: 1px solid var(--message-border); }
.employee-personnel :is(h3, .employee-bubble, section) { margin-top: 12px; }
.employee-personnel section > a { display: block; padding: 8px 0; }
.employee-personnel-link { margin-top: 12px; }

@media (max-width: 410px) {
  .employee-home { padding-inline: 10px; }
  .employee-header { padding: 15px 12px; }
  .employee-header button { padding-inline: 10px; }
  .employee-chat .employee-compose, .employee-personnel .employee-compose, .employee-message-filters { grid-template-columns: minmax(0, 1fr); }
}

.employee-team:empty { display: none; }
.employee-team { margin-top: 16px; }
.employee-home .employee-chat-shortcut {
  margin-inline-start: auto;
  border-color: #4b527c;
  background: #293554;
  color: #fff;
}
.employee-home .employee-chat-shortcut:hover:not(:disabled) { background: #39466c; }

.employee-conversations {
  --chat-page: #fbfbff;
  --chat-inset: #f1f2fa;
  --chat-line: #e0e4f1;
  --chat-ink: #18213b;
  --chat-subtle: #545e79;
  --chat-focus: #354ea6;
  --chat-selected: #e7edff;
  --chat-own: #e9eeff;
  --chat-hero: radial-gradient(ellipse at 88% 4%, #69538f 0%, transparent 70%), linear-gradient(118deg, #15283e, #293455 63%, #3b3b70);
  min-width: 0;
  margin-block: 0 18px;
  overflow: hidden;
  color: var(--chat-ink);
  background: var(--chat-page);
  border: 1px solid var(--chat-line);
  border-radius: clamp(18px, 3vw, 26px);
  box-shadow: 0 14px 38px rgb(17 32 62 / 8%);
  scroll-margin-top: max(14px, env(safe-area-inset-top));
}
:root[data-appearance="dark"] .employee-conversations {
  --chat-page: #1c2230;
  --chat-inset: #171d2a;
  --chat-line: #323b52;
  --chat-ink: #f1f4ff;
  --chat-subtle: #aab6d1;
  --chat-focus: #b3c5ff;
  --chat-selected: #333f68;
  --chat-own: #2d395d;
  --chat-hero: radial-gradient(ellipse at 89% 3%, #604274 0%, transparent 69%), linear-gradient(118deg, #121d32, #20324c 64%, #343159);
  box-shadow: 0 14px 42px rgb(4 8 19 / 25%);
}
.employee-conversations [hidden] { display: none !important; }
.employee-conversations :is(button, a, input, textarea):focus-visible,
.employee-conversations:focus-visible { outline: 2px solid var(--chat-focus); outline-offset: 3px; }
.employee-conversations :is(h2, h3, p) { margin: 0; }
.employee-conversations :is(button, label) { margin: 0; }
.employee-chat-heading {
  padding: clamp(18px, 4vw, 30px) clamp(16px, 4vw, 32px);
  color: #f8f8ff;
  background: var(--chat-hero) #293554;
}
.employee-conversations .employee-chat-heading > h2 {
  color: #f8f8ff;
  font-size: clamp(1.55rem, 4.5vw, 2.3rem);
  font-weight: 730;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.employee-chat-layout { display: grid; grid-template-columns: minmax(180px, 26%) minmax(0, 1fr); }
.employee-chat-directory { display: block; padding: 12px; border-inline-end: 1px solid var(--chat-line); min-width: 0; }
.employee-chat-roster, .employee-chat-people { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.employee-chat-people { max-height: 430px; overflow: auto; padding: 2px; }
.employee-conversations .employee-chat-roster > h3 {
  padding: 10px 8px 4px;
  color: var(--chat-subtle);
  font-size: .8rem;
  font-weight: 650;
}
.employee-conversations button.employee-chat-thread {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--chat-ink);
  text-align: start;
  font-size: .9rem;
  font-weight: 660;
  overflow-wrap: anywhere;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.employee-conversations button.employee-chat-thread:hover { background: var(--chat-inset); }
.employee-conversations button.employee-chat-thread[aria-pressed="true"] {
  background: var(--chat-selected);
  border-color: color-mix(in srgb, var(--chat-focus) 25%, transparent);
}
.employee-chat-avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  color: var(--chat-focus);
  background: var(--chat-selected);
  font-size: .75rem;
  font-weight: 750;
  line-height: 1;
}
.employee-chat-avatar-team { color: #fff; background: linear-gradient(145deg, #246b78, #47568f); }
.employee-chat-pane { display: grid; align-content: start; min-width: 0; }
.employee-chat-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--chat-ink);
  background: var(--chat-page);
  border-bottom: 1px solid var(--chat-line);
  padding: 11px clamp(12px, 3vw, 22px);
}
.employee-chat-channel-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.employee-chat-channel-name h3 { color: var(--chat-ink); font-size: 1.02rem; line-height: 1.15; overflow-wrap: anywhere; }
.employee-conversations :is(.employee-chat-channel, .employee-chat-scroll, .employee-chat-file-note) button {
  min-height: 40px;
  border: 1px solid var(--chat-line);
  border-radius: 10px;
  padding: 6px 9px;
  color: var(--chat-focus);
  background: var(--chat-page);
  font-size: .82rem;
}
.employee-chat-scroll {
  height: clamp(220px, 42dvh, 450px);
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 12px clamp(10px, 3vw, 22px) 16px;
  background: var(--chat-inset);
}
.employee-chat-scroll > button { display: block; margin: 0 auto 9px; }
.employee-chat-log { display: grid; gap: 8px; }
.employee-conversations .employee-chat-date {
  justify-self: center;
  color: var(--chat-subtle);
  font-size: .73rem;
  font-weight: 650;
  margin-block: 5px 2px;
}
.employee-conversations .employee-chat-empty {
  color: var(--chat-subtle);
  font-size: .9rem;
  padding: 12px;
  text-align: center;
}
.employee-chat-message {
  justify-self: start;
  max-width: min(87%, 640px);
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--chat-line);
  border-radius: 15px 15px 15px 5px;
  color: var(--chat-ink);
  background: var(--chat-page);
  overflow-wrap: anywhere;
  animation: employee-chat-content-in 165ms ease both;
}
.employee-chat-message-mine {
  justify-self: end;
  border-radius: 15px 15px 5px 15px;
  background: var(--chat-own);
}
.employee-chat-message-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: space-between;
  padding: 0 0 3px;
  border: 0;
  background: transparent;
}
.employee-chat-message-head strong { color: var(--chat-focus); font-size: .83rem; }
.employee-chat-message-head time { flex: none; color: var(--chat-subtle); font-size: .72rem; font-variant-numeric: tabular-nums; }
.employee-conversations .employee-chat-message > p { color: var(--chat-ink); font-size: .95rem; line-height: 1.45; }
.employee-chat-media { display: grid; gap: 5px; margin-top: 5px; }
.employee-chat-media img { max-width: min(100%, 380px); max-height: 240px; height: auto; object-fit: contain; border-radius: 8px; }
.employee-chat-media audio { max-width: 100%; }
.employee-chat-media a { color: var(--chat-focus); font-size: .82rem; text-underline-offset: .2em; }
.employee-conversations .employee-chat-status:not(:empty) { padding: 9px 12px; color: var(--chat-subtle); font-size: .82rem; }
.employee-conversations .employee-chat-status.employee-error:not(:empty) { color: var(--ui-red, #9b2229); background: var(--ui-red-bg, #fff0f0); }
.employee-conversations .employee-chat-status:empty { display: none; }
.employee-conversations .employee-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  max-width: none;
  margin: 0;
  padding: 12px clamp(11px, 3vw, 22px);
  border-top: 1px solid var(--chat-line);
}
.employee-chat-composer textarea {
  box-sizing: border-box;
  width: 100%;
  resize: vertical;
  min-height: 48px;
  max-height: 160px;
  padding: 9px 11px;
  border: 1px solid var(--chat-line);
  border-radius: 11px;
  background: var(--chat-page);
  color: var(--chat-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
}
.employee-conversations .employee-chat-file {
  position: relative;
  display: grid;
  place-content: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--chat-focus);
  border: 1px solid var(--chat-line);
  border-radius: 11px;
  font-size: .82rem;
  font-weight: 660;
  cursor: pointer;
}
.employee-chat-file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.employee-chat-file:focus-within { outline: 2px solid var(--chat-focus); outline-offset: 2px; }
.employee-conversations button.employee-chat-send {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #354da1;
  color: #fff;
  font-size: .85rem;
}
.employee-conversations button.employee-chat-send:hover:not(:disabled) { background: #293f90; }
#shell #content .employee-conversations :is(button.employee-chat-thread, button.employee-chat-send) { min-height: 44px; }
#shell #content .employee-conversations .employee-chat-heading > h2 { margin: 0; font-size: clamp(1.55rem, 4.5vw, 2.3rem); }
.employee-chat-file-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: .82rem; overflow-wrap: anywhere; }
.employee-chat-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes employee-chat-content-in { from { opacity: 0; translate: 0 3px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 640px) {
  .employee-chat-layout { grid-template-columns: minmax(0, 1fr); }
  .employee-chat-directory { border-inline-end: 0; border-bottom: 1px solid var(--chat-line); padding: 9px 10px; }
  .employee-chat-people { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; justify-content: start; scroll-snap-type: inline proximity; }
  .employee-chat-people .employee-chat-thread { width: auto; max-width: 190px; scroll-snap-align: start; }
  .employee-chat-people .employee-chat-thread span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .employee-conversations .employee-chat-roster > h3 { padding-block: 4px 0; }
  .employee-chat-message { max-width: 91%; }
  .employee-conversations :is(.employee-chat-channel,.employee-chat-scroll,.employee-chat-file-note) button { min-height: 44px; }
  .employee-home { padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); }
}
@media (max-width: 480px) {
  .employee-conversations .employee-chat-composer { grid-template-columns: minmax(0, 1fr) auto; }
  .employee-chat-composer textarea { grid-column: 1 / -1; }
  .employee-conversations .employee-chat-file { justify-self: start; }
  .employee-conversations button.employee-chat-send { min-width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .employee-conversations * { animation: none; transition: none; }
}
:root[data-motion="reduce"] .employee-conversations * { animation: none; transition: none; }

/* The assignment and its tools share the same reading order on phone and tablet. */
.employee-home .job-tools {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-content:start}
.employee-home .job-tools :is(button,.button-link){margin:0;min-width:0;min-height:44px;width:100%;padding:8px 7px;text-align:center;white-space:normal}
.employee-home .employee-header {background:var(--ui-surface,#fff);border-radius:12px;border:1px solid var(--ui-line,#d4ddd6);box-shadow:none}
.employee-home .employee-job {border-inline-start-color:var(--ui-accent,#185a4a)}
.employee-home .employee-job-time {color:var(--ui-accent,#185a4a)}
.employee-home .employee-job .job-tools {border-top:1px solid var(--employee-line);padding-top:10px}
@media(max-width:520px){
 .employee-home .employee-controls {display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:6px}
 .employee-home .employee-controls label{min-width:0}
 .employee-home .employee-controls input{min-width:0;width:100%}
 .employee-home .employee-controls .employee-chat-shortcut{grid-column:1/-1;margin:0;width:100%;min-height:40px}
 .employee-home .employee-job dl{margin:5px 0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:5px 10px}
 .employee-home .employee-job dt,.employee-home .employee-job dd{margin:0;overflow-wrap:anywhere}
}


#content .owner-receipts{margin:0 0 20px;padding:clamp(14px,2.2vw,26px);border:1px solid var(--ui-line,#dce3e9);border-radius:14px}
.owner-receipt-heading,.owner-receipt-preview header,.owner-receipt-pager{display:flex;align-items:center;justify-content:space-between;gap:14px}
#content .owner-receipt-heading h2{margin:0;font-size:clamp(19px,2vw,25px);letter-spacing:-.03em}
.owner-receipt-filters{display:flex;flex-wrap:wrap;gap:8px 14px;margin:12px 0}
.owner-receipt-filters label{display:grid;gap:4px;margin:0;min-width:0;max-width:100%}
.owner-receipt-filters select{min-width:90px;width:auto;max-width:min(100%,26em)}
@media(max-width:580px){.owner-receipt-filters{display:grid;grid-template-columns:1fr 1fr}.owner-receipt-filters label:nth-child(2){grid-column:span 1}.owner-receipt-filters label:last-child{grid-column:1/-1}.owner-receipt-filters select{width:100%}}
.owner-receipt-list{margin-top:12px}
.owner-receipt-row{display:grid;grid-template-columns:minmax(145px,1fr) minmax(150px,1fr) auto auto;align-items:center;gap:10px 16px;padding:12px 0;border-top:1px solid var(--ui-line,#dce3e9)}
.owner-receipt-doc{display:flex;align-items:center;gap:12px;min-width:0}
.owner-receipt-doc>div,.owner-receipt-place{min-width:0;overflow-wrap:anywhere}
.owner-receipt-row small{display:block;color:var(--muted,#536578);font-size:.82rem}
.owner-receipt-icon{flex:none;display:grid;place-items:center;min-width:40px;min-height:40px;border-radius:9px;font-size:.75rem;font-weight:700;background:#e6f1f9;color:#26577a}
.owner-unassigned{color:#8a4c08}
.owner-receipt-row .owner-reviewed{color:#18735c}
.owner-receipt-edit>summary{cursor:pointer;font-weight:600;min-height:38px;align-content:center}
.owner-receipt-edit[open]{grid-column:1/-1}
.owner-receipt-edit .employee-message-actions{display:flex;flex-wrap:wrap;align-items:end;gap:8px}
.owner-receipt-edit .employee-message-actions>div{display:flex;flex-wrap:wrap;align-items:end;gap:8px}
.owner-receipt-pager{justify-content:flex-end}
.owner-receipt-preview{width:min(850px,94vw);max-height:88vh;overflow:auto;background:var(--ui-surface,#fff);color:var(--ui-ink,#182c3a);border:0;border-radius:14px;padding:18px}
.owner-receipt-preview::backdrop{background:rgb(13 24 35 / 58%)}
.owner-receipt-preview img{display:block;max-width:100%;max-height:64vh;object-fit:contain;margin:14px auto}
.owner-receipt-preview strong{overflow-wrap:anywhere}
.owner-receipts [hidden]{display:none!important}
@media(max-width:760px){
 .owner-receipt-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
 .owner-receipt-doc,.owner-receipt-place{grid-column:1}
 .owner-receipt-place{grid-row:auto}
 .owner-receipt-buttons{grid-column:2;grid-row:1}
 .owner-receipt-edit{grid-column:2;grid-row:2}
 .owner-receipt-edit[open]{grid-column:1/-1;grid-row:3}
 .owner-receipt-heading{align-items:flex-start;flex-wrap:wrap}
}

