/* Module interiors. The approved navigation, planning and brand stay intact. */
@media screen {
  :root[data-theme] #content:not([data-view="planning"]):not([data-view="sheet"]) .btn:not([data-goods-tab]) {min-height:34px;padding:7px 12px;font-size:12px;border-radius:7px;line-height:1.4;box-shadow:none}
  :root[data-theme] #content:not([data-view="planning"]):not([data-view="sheet"]) .btn.small {min-height:30px;padding:5px 9px;font-size:11px}
  :root[data-theme] #content:not([data-view="planning"]) .toolbar {gap:10px;margin-bottom:16px}
  :root[data-theme] #content:not([data-view="planning"]) :is(th,td) {padding:12px 14px;vertical-align:middle}
  :root[data-theme] #content:not([data-view="planning"]) :is(.toolbar input:not([type="checkbox"]):not([type="radio"]),.toolbar select) {min-height:38px;padding:8px 11px;font-size:13px}
  :root[data-theme] #content:not([data-view="planning"]) .toolbar input[type="checkbox"] {width:16px;height:16px;min-width:16px;min-height:16px;padding:0;flex:0 0 16px;margin:0}
  :root[data-theme] #content:not([data-view="planning"]) .toolbar input[type="date"] {min-width:136px;width:146px;font-size:12px}
  :root[data-theme] #content:not([data-view="planning"]) :is(.panel,.card) {border-radius:12px}
  :root[data-theme] #content:not([data-view="planning"]) .toolbar>h2 {font-size:17px;margin:0 auto 0 0}
  :root[data-theme] [data-page-hidden],:root[data-theme] [data-collection-filtered] {display:none!important}
  :root[data-theme] .collection-pagination {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:16px 0 4px;margin-top:4px;border-top:1px solid var(--border);color:var(--muted);font-size:11px}
  :root[data-theme] .collection-pagination-controls {display:flex;align-items:center;gap:20px}
  :root[data-theme] .collection-pagination-controls>label {display:flex;align-items:center;gap:8px;font-size:10px}
  :root[data-theme] .collection-pagination select {min-height:30px;padding:4px 22px 4px 7px;font-size:11px;border-radius:6px;background:var(--surface)}
  :root[data-theme] .collection-page-buttons {display:flex;align-items:center;gap:4px}
  :root[data-theme] .collection-page-buttons>button {min-width:29px;height:30px;padding:3px 8px;background:transparent;border:1px solid transparent;border-radius:6px;color:var(--muted);font-size:11px}
  :root[data-theme] .collection-page-buttons>button:hover {background:var(--surface);border-color:var(--border);color:var(--ink)}
  :root[data-theme] .collection-page-buttons>button[aria-current] {color:var(--blue);background:var(--accent-soft);border-color:var(--border);font-weight:700}
  :root[data-theme] .collection-page-buttons>button:disabled {opacity:.35}
  :root[data-theme] .collection-ellipsis {padding:0 3px}
  :root[data-theme] .collection-search {display:flex;align-items:center;gap:9px;max-width:440px;margin-bottom:18px;color:var(--muted);font-size:21px}
  :root[data-theme] .collection-search>input {width:100%;min-height:38px;padding:8px 12px;font-size:12px}
  :root[data-theme] .collection-empty {grid-column:1/-1;margin:0;padding:36px 20px;text-align:center;font-size:12px;color:var(--muted);width:100%}
  :root[data-theme] .collection-empty[hidden] {display:none}
  :root[data-theme] .collection-no-results>.collection-empty {display:block}
  :root[data-theme] .collection-no-results>.muted {display:none}
  :root[data-theme] .collection-no-results:has(>.collection-empty)>table:has(tbody>tr:only-child>td[colspan]) {display:none}
  :root[data-theme] .record-menu-button {display:inline-grid;place-items:center;flex:none;min-width:30px;min-height:30px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--muted);font-size:11px;letter-spacing:1.4px;padding:5px;line-height:1}
  :root[data-theme] .record-menu-button:hover {background:var(--accent-soft);color:var(--blue);border-color:#a1bec1}
  :root[data-theme] .record-popover {position:fixed;inset:auto;margin:0;max-height:calc(100dvh - 24px);overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:11px;padding:6px;box-shadow:0 12px 45px #102b3a25}
  :root[data-theme] .record-popover:popover-open {display:flex;flex-direction:column;gap:3px}
  :root[data-theme] .record-popover::backdrop {background:transparent}
  :root[data-theme] .record-popover :is(.btn,button,a) {display:flex;justify-content:flex-start;align-items:center;text-align:left;width:100%;min-height:36px;margin:0!important;padding:8px 11px!important;border:0!important;border-radius:6px;font-size:12px;background:transparent!important;color:var(--ink)!important;text-decoration:none;box-shadow:none!important;transform:none!important;white-space:normal}
  :root[data-theme] .record-popover :is(.btn,button,a):hover {background:var(--surface-soft)!important}
  :root[data-theme] .record-popover .danger {color:#b64c48!important}
  :root[data-theme="dark"] .record-popover .danger {color:#e6a19d!important}
  :root[data-theme] .record-details>summary {font-size:10px;font-weight:500;color:var(--blue);list-style:none;display:flex;align-items:center;gap:6px;padding:5px 0}
  :root[data-theme] .record-details>summary::after {content:'⌄';font-size:12px}
  :root[data-theme] .record-details[open]>summary::after {transform:rotate(180deg)}
  :root[data-theme] .record-details>summary::-webkit-details-marker {display:none}
  :root[data-theme] .record-details :is(dl,p) {margin:8px 0;font-size:11px;line-height:1.7;color:var(--muted)}
  :root[data-theme] .record-details dl {display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 13px}
  :root[data-theme] .record-details dt {font-weight:500;color:var(--muted)}
  :root[data-theme] .record-details dd {margin:0;color:var(--ink);overflow-wrap:anywhere}
  :root[data-theme] .module-intro {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
  :root[data-theme] .module-intro h2 {font-size:18px;margin:0 0 5px}
  :root[data-theme] .module-intro p {font-size:11px;margin:0;color:var(--muted)}
  :root[data-theme] .module-count {font-size:11px;color:var(--muted);padding:7px 10px;border:1px solid var(--border);border-radius:7px;background:var(--surface);white-space:nowrap}
  :root[data-theme] .directory-tools {display:flex;align-items:center;gap:12px;margin-bottom:16px}
  :root[data-theme] .directory-tools .collection-search {flex:1;margin:0;max-width:460px}
  :root[data-theme] .directory-tools>.btn {margin-left:auto;flex:none}
  :root[data-theme] .directory-name {display:flex;align-items:center;gap:11px;min-width:180px}
  :root[data-theme] .directory-avatar {display:grid;place-items:center;width:33px;height:33px;flex:none;border-radius:9px;background:var(--accent-soft);color:var(--blue);font-size:10px;font-weight:650;text-transform:uppercase}
  :root[data-theme] .directory-name b {display:block;font-size:12px;font-weight:600}
  :root[data-theme] .directory-name small {display:block;font-size:10px;color:var(--muted);margin-top:3px}
  :root[data-theme] .directory-table .actions {justify-content:flex-end;min-width:0;display:flex;gap:7px}
  :root[data-theme] .directory-table th:last-child {text-align:right}
  :root[data-theme] .directory-table .employee-mail-toggle {display:flex;align-items:center;gap:7px;min-height:22px;min-width:0;font-size:11px;font-weight:400;max-width:220px}
  :root[data-theme] .directory-table .employee-mail-toggle input {width:15px;height:15px;flex:0 0 15px}
  :root[data-theme] .directory-table td>small {display:block;font-size:10px;color:var(--muted);margin:3px 0 0 22px}
  :root[data-theme] .directory-table td {padding:12px 14px}
  :root[data-theme] #content[data-view="employees"] .directory-table td {padding:10px 14px;vertical-align:middle}
  :root[data-theme] #content[data-view="employees"] .directory-table td.actions {display:table-cell;text-align:right;white-space:nowrap}
  :root[data-theme] .directory-table td.actions>.btn {margin-right:6px}
  :root[data-theme] .directory-table tr:last-child td {border-bottom:0}
  :root[data-theme] .users-grid {grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
  :root[data-theme] .user-card {position:relative;padding:19px;gap:13px}
  :root[data-theme] .user-card .user-avatar {width:38px;height:38px;font-size:13px;border-radius:10px}
  :root[data-theme] .user-card-name {font-size:14px}
  :root[data-theme] .user-card-email {font-size:11px}
  :root[data-theme] .user-card-actions {justify-content:flex-end;margin-top:auto;padding-top:12px}
  :root[data-theme] .user-card-actions .btn {flex:0 0 auto}
  :root[data-theme] .fleet-grid {grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:15px;margin-top:0}
  :root[data-theme] .fleet-card {display:grid;grid-template-columns:86px minmax(0,1fr);grid-template-rows:auto auto;padding:17px;column-gap:15px;align-content:start}
  :root[data-theme] .fleet-card-photo {grid-row:1/3;width:86px;height:80px;aspect-ratio:auto;border-radius:10px;cursor:pointer}
  :root[data-theme] .fleet-card-photo img {height:100%;width:100%;object-fit:cover}
  :root[data-theme] .fleet-card-body {padding:1px 0 10px}
  :root[data-theme] .fleet-card-name {font-size:15px;margin-bottom:6px}
  :root[data-theme] .fleet-card-meta {font-size:11px}
  :root[data-theme] .fleet-card-actions {grid-column:2;padding:0;justify-content:flex-start;gap:8px}
  :root[data-theme] .fleet-placeholder {font-size:29px}
  :root[data-theme] .department-cards {grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:15px}
  :root[data-theme] .department-card {padding:20px;position:relative;display:flex;flex-direction:column;gap:0}
  :root[data-theme] .department-card-head {margin-bottom:12px}
  :root[data-theme] .department-icon {width:36px;height:36px;font-size:12px;border-radius:9px}
  :root[data-theme] .department-card h3 {font-size:15px;margin:0 0 8px}
  :root[data-theme] .department-description {font-size:11px;line-height:1.7;margin:0 0 18px;min-height:0}
  :root[data-theme] .department-card>.actions {margin-top:auto;justify-content:space-between;padding-top:12px;border-top:1px solid var(--border)}
  :root[data-theme] .department-member-list,:root[data-theme] .department-picker {max-height:49vh;overflow:auto;overscroll-behavior:contain}
  :root[data-theme] .department-member {gap:10px;padding:11px 0;border-radius:0}
  :root[data-theme] .department-member strong {font-size:12px}
  :root[data-theme] .department-avatar {width:30px;height:30px;font-size:10px;border-radius:8px}
  :root[data-theme] .department-member-actions select {min-height:32px;padding:5px 8px;font-size:11px;max-width:190px}
  :root[data-theme] .visitor-list {grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:14px;margin-top:0}
  :root[data-theme] .visitor-card {padding:18px;gap:12px;box-shadow:var(--shadow)}
  :root[data-theme] .visitor-name {font-size:14px}
  :root[data-theme] .visitor-sub {font-size:11px;margin-top:3px}
  :root[data-theme] .visitor-meta {font-size:11px;gap:6px 12px;line-height:1.6}
  :root[data-theme] .visitor-card .tag {font-size:9px;max-width:125px;white-space:normal}
  :root[data-theme] .visitor-card-actions {display:flex;align-items:center;justify-content:space-between;gap:7px;padding-top:11px;margin-top:auto}
  :root[data-theme] .visitor-visitline {display:flex;gap:7px;flex-wrap:wrap;align-items:center;font-size:10px;color:var(--muted);padding:10px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
  :root[data-theme] .visitor-visitline strong {font-size:11px;color:var(--ink);font-weight:600}
  :root[data-theme] .visitor-docs-btn {width:auto;align-self:flex-start;justify-content:flex-start;font-weight:500}
  :root[data-theme] .visitor-actions {width:100%;padding:12px 0 0;border-top:1px solid var(--border);gap:12px}
  :root[data-theme] .visitor-actions #visCount {font-size:10px;margin-right:auto}
  :root[data-theme] .visitor-filters {gap:7px}
  :root[data-theme] .rooms-grid {grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px;margin-top:0}
  :root[data-theme] .room-card {padding:17px;min-height:150px}
  :root[data-theme] .room-number {font-size:23px}
  :root[data-theme] .room-capacity {font-size:10px}
  :root[data-theme] .room-status {font-size:9px;letter-spacing:.7px}
  :root[data-theme] .room-occupant {padding:10px 0;font-size:11px;border-color:var(--border)}
  :root[data-theme] .room-occupant small {font-size:10px}
  :root[data-theme] .room-occupants>summary {font-size:10px;margin-top:8px}
  :root[data-theme] .room-card-actions {display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:12px;margin-top:auto;border-top:1px solid var(--border)}
  :root[data-theme] .room-card-actions>.text-btn {font-size:11px}
  :root[data-theme] #goodsMetrics {grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
  :root[data-theme] #goodsMetrics .card {padding:14px 15px;border-radius:10px;box-shadow:none}
  :root[data-theme] #goodsMetrics .card>.muted {font-size:10px;line-height:1.5;min-height:30px}
  :root[data-theme] #goodsMetrics .metric {font-size:25px;line-height:1.2;margin-top:5px}
  :root[data-theme] .goods-updated {font-size:10px;margin:10px 0 17px}
  :root[data-theme] #goodsWork {padding:20px}
  :root[data-theme] #goodsWork>.toolbar:first-child {justify-content:flex-end;border:0;padding:0;background:transparent}
  :root[data-theme] #goodsWork>.toolbar:first-child h2 {margin-right:auto;font-size:17px;flex:1}
  :root[data-theme] #goodsWork>p.muted {font-size:11px;line-height:1.7;margin:9px 0 18px}
  :root[data-theme] #goodsSearch {border:0;border-radius:0;background:transparent;padding:0 0 16px;border-bottom:1px solid var(--border);align-items:end}
  :root[data-theme] #goodsSearch>label {min-width:0;flex:1;max-width:390px;font-size:10px;gap:6px}
  :root[data-theme] #goodsSearch input {min-width:0;width:100%}
  :root[data-theme] #goodsSearch>.btn {flex:0 0 auto}
  :root[data-theme] #goodsSearch .goods-owner-filters {flex:0 0 auto;margin-left:auto;gap:5px}
  :root[data-theme] #goodsSearch .goods-owner-filters .btn {min-width:62px}
  :root[data-theme] .goods-table-wrap {border:1px solid var(--border);border-radius:10px}
  :root[data-theme] .goods-table-wrap table {min-width:740px;font-size:11px}
  :root[data-theme] .goods-table-wrap :is(th,td) {padding:12px 10px!important}
  :root[data-theme] .goods-table-wrap th {font-size:9px;letter-spacing:.5px}
  :root[data-theme] .goods-table-wrap .goods-thumb {width:34px;height:34px;border-radius:7px}
  :root[data-theme] .goods-item-summary {display:flex;align-items:center;gap:9px;min-width:140px}
  :root[data-theme] .goods-item-summary strong {font-size:12px;font-weight:600;color:var(--ink)}
  :root[data-theme] .goods-company-badge {font-size:9px;padding:2px 5px;margin:3px 0}
  :root[data-theme] .goods-sub {font-size:10px;margin-top:3px}
  :root[data-theme] .goods-row-actions {display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:nowrap}
  :root[data-theme] .goods-row-actions>.btn {margin:0!important}
  :root[data-theme] .goods-status {font-size:9px;line-height:1.5;padding:4px 7px}
  :root[data-theme] .goods-table-wrap td.goods-state-cell {min-width:140px}
  :root[data-theme] .goods-table-wrap .goods-petit-saut {font-size:9px;line-height:1.6;white-space:normal;display:flex;align-items:flex-start;max-width:155px}
  :root[data-theme] .goods-petit-saut {font-size:9px;gap:5px}
  :root[data-theme] .goods-petit-saut input {width:14px;height:14px}
  :root[data-theme] .goods-table-wrap.is-selectable {max-height:620px;max-height:65vh;overflow:auto}
  :root[data-theme] .goods-table-wrap thead {position:sticky;top:0;z-index:2}
  :root[data-theme] .goods-document {padding:13px 16px;border-radius:10px;background:var(--surface);gap:14px}
  :root[data-theme] .goods-document strong {font-size:12px}
  :root[data-theme] .goods-document small {font-size:10px}
  :root[data-theme] .dispatch-surface {padding:22px}
  :root[data-theme] .dispatch-page-heading {gap:15px;margin-bottom:18px}
  :root[data-theme] .dispatch-page-heading h2 {font-size:19px}
  :root[data-theme] .dispatch-page-heading p {font-size:11px;margin:6px 0 0}
  :root[data-theme] .dispatch-cards {gap:14px}
  :root[data-theme] .dispatch-card {border-radius:11px;box-shadow:none}
  :root[data-theme] .dispatch-card-header {padding:14px 17px}
  :root[data-theme] .dispatch-card-title h3 {font-size:15px;letter-spacing:-.3px}
  :root[data-theme] .dispatch-card-meta {font-size:10px;gap:15px;margin-top:4px}
  :root[data-theme] .dispatch-status {font-size:10px;padding:5px 8px}
  :root[data-theme] .dispatch-card-body {padding:16px 17px;gap:18px}
  :root[data-theme] .dispatch-card-body.has-confirmations {grid-template-columns:minmax(0,1fr) minmax(170px,auto);align-items:start}
  :root[data-theme] .dispatch-confirmation-details>summary {justify-content:flex-end}
  :root[data-theme] .dispatch-confirmation-details[open]>summary {margin-bottom:9px}
  :root[data-theme] .dispatch-confirmation-details .dispatch-confirmations {padding:12px!important;border:1px solid var(--border)!important;border-radius:8px}
  :root[data-theme] .dispatch-items-table :is(th,td) {padding:9px 10px!important;font-size:11px}
  :root[data-theme] .dispatch-items-table th {font-size:9px!important}
  :root[data-theme] .dispatch-items-table .dispatch-item-edit .btn {white-space:nowrap;min-width:52px}
  :root[data-theme] .dispatch-item-quantity {font-size:12px;min-width:25px;padding:3px 7px}
  :root[data-theme] .dispatch-card-footer {padding:12px 17px;gap:10px}
  :root[data-theme] .dispatch-created {font-size:10px}
  :root[data-theme] .dispatch-confirmations {padding:13px;min-width:190px;border-radius:9px}
  :root[data-theme] .dispatch-confirmations h4 {font-size:10px;margin:0 0 11px}
  :root[data-theme] .dispatch-confirmation-copy strong {font-size:11px}
  :root[data-theme] .dispatch-signature-open img {height:43px;max-width:120px}
  :root[data-theme] .dispatch-confirmation {gap:9px}
  :root[data-theme] .dispatch-photos {gap:6px;margin-top:9px}
  :root[data-theme] .dispatch-photo-button {width:45px;height:45px}
  :root[data-theme] .disposal-page {padding:22px}
  :root[data-theme] .disposal-filters {padding:15px;gap:13px;background:var(--surface-soft);border-radius:10px;border:1px solid var(--border);margin-bottom:15px}
  :root[data-theme] .disposal-filters label {font-size:10px;gap:6px}
  :root[data-theme] .disposal-filters :is(input,select) {min-height:36px;font-size:12px;padding:8px 10px}
  :root[data-theme] .disposal-records {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  :root[data-theme] .disposal-card {display:grid;grid-template-columns:100px minmax(0,1fr);min-height:170px;border-radius:11px}
  :root[data-theme] .disposal-card-cover {height:auto;min-height:100%;width:100%;aspect-ratio:auto;border-radius:10px 0 0 10px}
  :root[data-theme] .disposal-card-cover img {height:100%;width:100%;object-fit:cover}
  :root[data-theme] .disposal-card-placeholder {height:100%;min-height:160px}
  :root[data-theme] .disposal-card-placeholder span {font-size:31px}
  :root[data-theme] .disposal-card-placeholder small {font-size:8px}
  :root[data-theme] .disposal-card-body {padding:14px}
  :root[data-theme] .disposal-card h3 {font-size:14px;margin:5px 0 8px}
  :root[data-theme] .disposal-card-label {font-size:8px;letter-spacing:.5px}
  :root[data-theme] .disposal-amount {font-size:17px}
  :root[data-theme] .disposal-truck {font-size:10px;margin-bottom:10px}
  :root[data-theme] .disposal-card-facts {gap:12px;padding:10px 0;margin:0}
  :root[data-theme] .disposal-card-facts small {font-size:9px}
  :root[data-theme] .disposal-card-facts strong {font-size:10px}
  :root[data-theme] .disposal-card-footer {padding-top:10px;margin-top:0;font-size:9px}
  :root[data-theme] .disposal-card-footer small {font-size:9px}
  :root[data-theme] .disposal-page:has(.collection-pagination) .disposal-pagination {display:none}
  :root[data-theme] .barge-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  :root[data-theme] .barge-card {padding:18px;border-radius:12px;background:var(--surface);box-shadow:var(--shadow);border:1px solid var(--border)}
  :root[data-theme] .barge-date-badge {font-size:10px;padding:4px 7px}
  :root[data-theme] .barge-card-head {gap:10px;padding-bottom:12px;margin-bottom:12px}
  :root[data-theme] .barge-card-meta {gap:14px;font-size:12px;margin-bottom:12px}
  :root[data-theme] .barge-meta-l {font-size:9px}
  :root[data-theme] .barge-items li {font-size:11px;padding:9px 0;gap:9px;grid-template-columns:minmax(0,1.3fr) auto minmax(0,1fr)}
  :root[data-theme] .barge-notes {font-size:11px}
  :root[data-theme] .barge-totals {font-size:11px;padding-top:10px;gap:8px}
  :root[data-theme] .barge-actions {padding-top:12px;margin-top:12px;justify-content:flex-end}
  :root[data-theme] .barge-actions .text-btn {font-size:11px}
  :root[data-theme] .barge-calendar {padding:14px 18px;margin-bottom:18px}
  :root[data-theme] .barge-calendar:not([open])>summary {padding:0}
  :root[data-theme] .register-page-panel {padding:20px!important}
  :root[data-theme] .register-page-panel h2 {font-size:17px;margin:0 0 13px}
  :root[data-theme] .register-page-panel table {font-size:12px}
  :root[data-theme] .register-link-actions {gap:5px}
  :root[data-theme] .register-signature-actions {gap:5px}
  :root[data-theme] .register-inline-signature-frame {min-height:50px}
  :root[data-theme] .register-inline-signature-frame img {max-height:57px;width:155px;object-fit:contain}
  :root[data-theme] .modal:not(.workspace-command)>div {padding:26px;max-height:88dvh;border-radius:15px}
  :root[data-theme] .modal:not(.workspace-command) h2 {font-size:20px;margin-bottom:20px}
  :root[data-theme] .modal:not(.workspace-command) .form {gap:16px}
  :root[data-theme] .modal:not(.workspace-command) .form label {font-size:12px;gap:7px}
  :root[data-theme] .modal:not(.workspace-command) .form :is(input,select,textarea) {min-height:39px;padding:9px 11px;font-size:13px}
  :root[data-theme] .modal:not(.workspace-command) .form :is(input[type=checkbox],input[type=radio]) {min-height:0;padding:0}
  :root[data-theme] .modal:not(.workspace-command) .actions {gap:8px}
  :root[data-theme] .cargo-mgr-list,:root[data-theme] .cargo-pick-list {max-height:49vh;overflow:auto;overscroll-behavior:contain}
  :root[data-theme] .cargo-mgr-item {padding:12px;font-size:12px;gap:10px}
  :root[data-theme] .cargo-mgr-item small {font-size:10px;line-height:1.7}
  :root[data-theme] .cargo-mgr-actions {gap:8px}
  :root[data-theme] .cargo-mgr-actions .text-btn {font-size:11px}
}
@media screen and (max-width:1150px) {
  :root[data-theme] #goodsMetrics {grid-template-columns:repeat(3,minmax(0,1fr))}
  :root[data-theme] .dispatch-card-body.has-confirmations {grid-template-columns:minmax(0,1fr)}
  :root[data-theme] .dispatch-confirmations {display:flex;flex-wrap:wrap;gap:15px}
  :root[data-theme] .dispatch-confirmations h4 {width:100%;margin:0}
  :root[data-theme] .dispatch-confirmation {flex:1;min-width:150px}
  :root[data-theme] .disposal-records,:root[data-theme] .barge-list {grid-template-columns:minmax(0,1fr)}
}
@media screen and (max-width:700px) {
  :root[data-theme] #content:not([data-view="planning"]):not([data-view="sheet"]) .btn:not([data-goods-tab]) {min-height:40px;font-size:11px;padding:8px 11px;white-space:normal;overflow-wrap:normal;max-width:100%}
  :root[data-theme] #content:not([data-view="planning"]):not([data-view="sheet"]) .btn.small {min-height:36px;font-size:10px;padding:7px 9px}
  :root[data-theme] #content:not([data-view="planning"]) :is(.toolbar input:not([type="checkbox"]):not([type="radio"]),.toolbar select) {font-size:16px;min-height:42px}
  :root[data-theme] .module-intro {gap:12px;margin-bottom:18px;align-items:start}
  :root[data-theme] .module-intro h2 {font-size:17px}
  :root[data-theme] .module-intro p {font-size:10px;line-height:1.8}
  :root[data-theme] .module-count {font-size:10px;padding:5px 8px}
  :root[data-theme] .directory-tools {flex-wrap:wrap;gap:10px}
  :root[data-theme] .directory-tools .collection-search {max-width:none;flex-basis:100%}
  :root[data-theme] .directory-tools>.btn {margin-left:0}
  :root[data-theme] .directory-table {border:0;background:transparent!important;overflow:visible!important;box-shadow:none!important}
  :root[data-theme] .directory-table table,:root[data-theme] .directory-table tbody {display:block;background:transparent!important;width:100%;min-width:0}
  :root[data-theme] .directory-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  :root[data-theme] .directory-table tr {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;border:1px solid var(--border);border-radius:11px;background:var(--surface);margin-bottom:12px;padding:15px}
  :root[data-theme] .directory-table td {display:block;border:0;padding:0!important;min-width:0}
  :root[data-theme] #content[data-view="employees"] .directory-table td.actions {display:flex;white-space:normal}
  :root[data-theme] .directory-table td:first-child {grid-column:1/-1;margin-bottom:13px}
  :root[data-theme] .directory-table td:nth-child(2) {grid-column:1/-1;font-size:11px;color:var(--muted);margin-bottom:12px}
  :root[data-theme] .directory-table td:nth-child(2)::before {content:attr(data-label) ' · ';font-weight:600}
  :root[data-theme] .directory-table td.actions {display:flex;align-items:center;justify-content:flex-end;grid-column:2;grid-row:3/5;gap:6px}
  :root[data-theme] .directory-table .directory-name {min-width:0}
  :root[data-theme] .directory-table .employee-mail-toggle {font-size:10px;max-width:none;min-height:32px}
  :root[data-theme] .directory-table td>small {font-size:10px}
  :root[data-theme] .collection-pagination {font-size:10px;gap:12px;padding:14px 0 4px}
  :root[data-theme] .collection-pagination-controls {width:100%;gap:10px;justify-content:space-between;flex-wrap:wrap}
  :root[data-theme] .collection-page-buttons {gap:2px}
  :root[data-theme] .collection-page-buttons>button {min-height:36px;min-width:29px;font-size:11px;padding:3px 6px}
  :root[data-theme] .collection-pagination-controls label {font-size:9px;gap:5px}
  :root[data-theme] .collection-pagination select {min-height:36px;font-size:12px}
  :root[data-theme] .collection-search {max-width:none;margin-bottom:15px}
  :root[data-theme] .collection-search>input {font-size:16px;min-height:42px}
  :root[data-theme] .record-menu-button {min-width:36px;min-height:36px}
  :root[data-theme] .record-popover :is(.btn,button,a) {min-height:44px!important;font-size:12px!important}
  :root[data-theme] .users-grid,:root[data-theme] .fleet-grid,:root[data-theme] .visitor-list {grid-template-columns:minmax(0,1fr)}
  :root[data-theme] .department-cards {grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  :root[data-theme] .department-card {padding:15px}
  :root[data-theme] .department-card-head {flex-wrap:wrap;gap:7px}
  :root[data-theme] .department-count {font-size:9px}
  :root[data-theme] .department-card h3 {font-size:13px;overflow-wrap:anywhere}
  :root[data-theme] .department-description {font-size:10px}
  :root[data-theme] .department-card>.actions {gap:7px;flex-wrap:wrap}
  :root[data-theme] .department-card .btn {font-size:10px!important;padding:7px 9px!important}
  :root[data-theme] .visitor-card {padding:17px}
  :root[data-theme] .visitor-card-actions>.btn {flex:0 1 auto}
  :root[data-theme] .visitor-actions {gap:8px}
  :root[data-theme] .visitor-actions .select-all-vis {font-size:10px}
  :root[data-theme] .visitor-actions #visCount {font-size:9px}
  :root[data-theme] .rooms-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  :root[data-theme] .room-card {padding:14px;min-height:154px}
  :root[data-theme] .room-card-actions {gap:6px;flex-wrap:wrap}
  :root[data-theme] .room-card-actions>.text-btn {font-size:10px}
  :root[data-theme] .room-number {font-size:22px}
  :root[data-theme] .room-occupant {overflow-wrap:anywhere;padding-right:9px}
  :root[data-theme] #goodsMetrics {gap:7px;grid-template-columns:repeat(3,minmax(0,1fr))}
  :root[data-theme] #goodsMetrics .card {padding:11px}
  :root[data-theme] #goodsMetrics .card>.muted {font-size:9px;line-height:1.5;min-height:28px}
  :root[data-theme] #goodsMetrics .metric {font-size:23px;margin-top:5px}
  :root[data-theme] .goods-updated {font-size:9px;line-height:1.7;margin:9px 0 15px}
  :root[data-theme] #goodsWork {padding:16px}
  :root[data-theme] #goodsWork>.toolbar:first-child h2 {font-size:16px;flex-basis:100%;margin-bottom:3px}
  :root[data-theme] #goodsSearch {gap:9px;padding-bottom:13px}
  :root[data-theme] #goodsSearch>label {flex:1 1 100%;max-width:none;font-size:10px}
  :root[data-theme] #goodsSearch>.btn {flex:0 0 auto}
  :root[data-theme] #goodsSearch .goods-owner-filters {flex:0 1 auto;width:auto;margin-left:auto;min-width:0;gap:5px}
  :root[data-theme] #goodsSearch .goods-owner-filters .btn {flex:0 0 auto;min-width:50px;padding:8px 10px}
  :root[data-theme] .goods-table-wrap {border:0;border-radius:0;overflow:visible;max-width:100%}
  :root[data-theme] .goods-table-wrap table,:root[data-theme] .goods-table-wrap tbody {display:block;min-width:0;background:transparent;width:100%}
  :root[data-theme] .goods-table-wrap thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  :root[data-theme] .goods-table-wrap tr {position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;margin-bottom:12px;padding:13px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
  :root[data-theme] .goods-table-wrap td {display:block;border:0;padding:0!important;min-width:0;font-size:11px}
  :root[data-theme] .goods-table-wrap td.goods-requisition-cell {grid-column:1;grid-row:1}
  :root[data-theme] .goods-table-wrap td.goods-item-cell {grid-column:1/-1;grid-row:2}
  :root[data-theme] .goods-table-wrap td.goods-department-cell {grid-column:1;grid-row:3;align-self:center;font-size:10px;color:var(--muted)}
  :root[data-theme] .goods-table-wrap td.goods-receipt-cell {grid-column:2;grid-row:3;max-width:155px;text-align:right;color:var(--muted);font-size:10px}
  :root[data-theme] .goods-table-wrap td.goods-state-cell {grid-column:1/-1;grid-row:4;padding-top:8px!important;border-top:1px solid var(--border);display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;min-width:0}
  :root[data-theme] .goods-table-wrap .goods-quantity-cell {grid-column:2;grid-row:1;font-size:13px;font-weight:650;align-self:start;color:var(--ink)}
  :root[data-theme] .goods-table-wrap .goods-quantity-cell::before {content:'× ';font-size:10px;color:var(--muted);font-weight:400}
  :root[data-theme] .goods-table-wrap.is-selectable .goods-quantity-cell {margin-right:26px}
  :root[data-theme] .goods-table-wrap td.goods-actions-cell {grid-column:1/-1;grid-row:5;padding-top:9px!important;border-top:1px solid var(--border)}
  :root[data-theme] .goods-table-wrap td:has(>[data-goods-select]) {position:absolute;top:12px;right:12px}
  :root[data-theme] .goods-table-wrap td:has(>.goods-item-summary) {padding-right:12px!important}
  :root[data-theme] .goods-table-wrap .goods-sub {font-size:9px}
  :root[data-theme] .goods-table-wrap .goods-thumb {width:38px;height:38px}
  :root[data-theme] .goods-table-wrap .goods-item-summary {font-size:12px;gap:10px}
  :root[data-theme] .goods-table-wrap .goods-item-summary strong {font-size:12px}
  :root[data-theme] .goods-row-actions {justify-content:space-between;gap:7px}
  :root[data-theme] .goods-table-wrap.is-selectable {max-height:65vh;overflow:auto;padding-right:3px}
  :root[data-theme] .goods-documents {gap:10px}
  :root[data-theme] .goods-document {flex-direction:row;flex-wrap:wrap;gap:10px;padding:13px}
  :root[data-theme] .dispatch-surface,:root[data-theme] .disposal-page {padding:17px}
  :root[data-theme] .dispatch-page-heading {align-items:flex-start;gap:12px}
  :root[data-theme] .dispatch-page-heading h2 {font-size:17px}
  :root[data-theme] .dispatch-page-heading p {font-size:10px}
  :root[data-theme] .dispatch-card-header {padding:13px;gap:10px}
  :root[data-theme] .dispatch-card-body {padding:13px}
  :root[data-theme] .dispatch-card-body.has-confirmations {grid-template-columns:minmax(0,1fr)}
  :root[data-theme] .dispatch-confirmation-details>summary {justify-content:flex-start}
  :root[data-theme] .dispatch-card-footer {padding:12px 13px}
  :root[data-theme] .dispatch-card-actions {gap:7px}
  :root[data-theme] .dispatch-card-actions .btn {flex:0 1 auto!important;width:auto!important}
  :root[data-theme] .dispatch-confirmations {gap:11px;padding:12px}
  :root[data-theme] .dispatch-item {padding:11px!important;gap:8px;border-radius:8px}
  :root[data-theme] .dispatch-items-table td {font-size:11px!important;padding:0!important}
  :root[data-theme] .dispatch-items-table td::before {font-size:9px!important}
  :root[data-theme] .disposal-filters {grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:11px}
  :root[data-theme] .disposal-filters>label:first-child {grid-column:1/-1}
  :root[data-theme] .disposal-filters :is(input,select) {font-size:16px;width:100%;min-width:0}
  :root[data-theme] .disposal-filters>.actions {grid-column:1/-1;gap:8px}
  :root[data-theme] .disposal-card {grid-template-columns:78px minmax(0,1fr);min-height:168px}
  :root[data-theme] .disposal-card-body {padding:12px}
  :root[data-theme] .disposal-card-cover {min-height:100%;height:auto}
  :root[data-theme] .disposal-card-facts {gap:9px;grid-template-columns:1fr}
  :root[data-theme] .disposal-card-facts>div {display:flex;justify-content:space-between;gap:9px}
  :root[data-theme] .disposal-card h3 {font-size:13px}
  :root[data-theme] .disposal-heading {flex-wrap:wrap;gap:7px}
  :root[data-theme] .barge-list {gap:13px}
  :root[data-theme] .barge-card {padding:16px}
  :root[data-theme] .barge-card-dates {flex-wrap:wrap}
  :root[data-theme] .barge-toolbar .visitor-search {min-width:0;flex:1 1 100%}
  :root[data-theme] .barge-toolbar-actions {flex-wrap:wrap;gap:8px}
  :root[data-theme] .register-page-panel {padding:16px!important}
  :root[data-theme] .register-page-panel :is(td,th) {padding:10px!important}
  :root[data-theme] .register-link-actions :is(a,button) {width:auto!important;flex:0 1 auto!important}
  :root[data-theme] .modal:not(.workspace-command)>div {padding:22px 18px;max-height:90dvh}
  :root[data-theme] .modal:not(.workspace-command) .form :is(input,select,textarea) {font-size:16px;min-height:43px}
  :root[data-theme] .modal:not(.workspace-command) .form :is(input[type=checkbox],input[type=radio]) {min-height:0}
}
@media screen and (max-width:359px) {
  :root[data-theme] .department-cards {grid-template-columns:minmax(0,1fr)}
  :root[data-theme] .collection-pagination-controls {justify-content:flex-start}
  :root[data-theme] .collection-page-buttons {gap:2px;flex-wrap:wrap}
  :root[data-theme] #goodsMetrics .card {padding:9px}
  :root[data-theme] #goodsMetrics .card>.muted {font-size:8px}
  :root[data-theme] .disposal-card {grid-template-columns:65px minmax(0,1fr)}
}
@media print {
  .collection-pagination,.collection-search,.collection-empty,.record-menu-button,.record-popover {display:none!important}
  [data-page-hidden] {display:revert!important}
  [data-collection-filtered] {display:none!important}
  .goods-table-wrap.is-selectable {max-height:none!important;overflow:visible!important}
  .goods-table-wrap td.goods-state-cell {display:table-cell!important}
  .goods-state-cell .goods-petit-saut,.directory-table th:last-child {display:none!important}
  .record-details>summary {display:none!important}
  .record-details:not([open])> :not(summary) {display:block!important}
}
