.desk-table-wrap { overflow-x: auto; margin-block: .25rem; }
.desk-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.desk-table :is(th, td) { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid #7f86953a; vertical-align: middle; }
.desk-table th { font-size: .88rem; }
.desk-table td { overflow-wrap: anywhere; }
.desk-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.desk-actions button { padding: .38em .65em; font-size: .86rem; min-height: 2.5rem; }
.desk-check { display: flex; align-items: center; gap: .6rem; }
.desk-check input { inline-size: 1.2rem; block-size: 1.2rem; flex: none; }
.desk-file { display: flex; align-items: start; flex-direction: column; gap: .45rem; }
.desk-file input { max-width: 100%; }
.desk-empty { margin-block: .6rem; }
.desk-clock { font-size: clamp(2rem, 8vw, 3.5rem); font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1; }
.desk-metric { padding: .7rem .85rem; margin: 0; border: 1px solid #7f86953a; border-radius: .65rem; }
.desk-metric strong { display: block; font-size: 1.25rem; overflow-wrap: anywhere; }
.desk-document { max-width: 60rem; margin-inline: auto; color: #172226; background: #fff; padding: clamp(.8rem, 3vw, 2.6rem); border: 1px solid #d8deda; border-radius: .75rem; overflow-wrap: anywhere; }
.desk-document p { margin-block: .4rem; }
.desk-document h2, .desk-document h3 { margin-block: .25rem; }
.desk-document header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-bottom: 2px solid #284b50; padding-bottom: .8rem; }
.desk-document section { margin-block: .9rem; }
.desk-document .desk-lines { white-space: pre-wrap; }
.desk-document .desk-total { text-align: right; margin-left: auto; max-width: 25rem; }
.desk-document li { margin-block: .35rem; }
.desk-item { min-width: 0; border: 1px solid #7f86953a; border-radius: .65rem; padding: .7em; }
.desk-item legend { padding-inline: .3rem; font-weight: 650; }
.desk-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; margin-block: .35rem; }
.desk-group { border-block-start: 1px solid #7f86953a; margin-block: 1rem; padding-block-start: .7rem; }
.desk-progress { width: min(100%, 30rem); }
.desk-tag { display: inline-block; border-radius: 1rem; font-size: .82rem; font-weight: 700; padding: .15rem .55rem; border: 1px solid currentColor; }
.desk-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .45rem; }
.desk-slot { padding: .5em .6em; border: 1px solid #7f86953a; border-radius: .45rem; }
.desk-checklist .desk-check { overflow-wrap: anywhere; }
body:has(.desk) #app-status:not(:empty) {
  position: sticky; bottom: .5rem; z-index: 2; margin-top: -.15rem; padding: .65rem .85rem;
  color: #194a3e; background: #eef7ec; border: 1px solid #85a89b; border-radius: .5rem;
}
body:has(.desk) #app-status.error { color: #7e261f; background: #fff2ef; border-color: #bb817a; }
@media print {
  body:has(.desk-print) :not(:has(.desk-print), .desk-print, .desk-print *) { display: none !important; }
  body:has(.desk-print) :has(.desk-print) { display: block; width: auto; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: #fff; }
  body:has(.desk-print) .desk-print { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: #fff; color: #111; }
  body:has(.desk-print) .desk-print .desk-table { font-size: 9pt; }
  body:has(.desk-print) .desk-print .desk-table-wrap { overflow: visible; }
  body:has(.desk-print) .desk-print tr { break-inside: avoid; }
  body:has(.desk-print) .desk-print .desk-actions { display: none; }
}
