@media screen {
  .cww-page {--cww-ink:#233b4a;--cww-muted:#61717d;--cww-line:#dfe7eb;--cww-green:#236e61;color:var(--cww-ink);gap:18px}
  .cww-page :is(h1,h2,p,dl) {margin:0}
  .cww-page .page-heading {margin-bottom:0}
  .cww-page>a:first-child {justify-self:start;margin:0!important;padding:0 2px;min-height:44px}
  .cww-page>.company-warehouse-context:empty,.cww-page>.company-warehouse-result:empty {display:none}
  .modal:has(.company-warehouse-editor) .modal-header>.btn-close {min-width:44px;min-height:44px}
  .cww-place-selection {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:14px;padding:16px;border:1px solid #dfe7eb;border-radius:12px;background:#f7faf9}
  .cww-new-place {display:contents}
  .cww-new-place>.btn {min-height:44px;white-space:normal;max-width:100%}
  .cww-new-place-editor {grid-column:1/-1;display:grid;gap:14px;padding-top:16px;border-top:1px solid #dfe7eb;min-width:0}
  .cww-new-place-editor[hidden] {display:none!important}
  .cww-new-place-editor .card-action-row {gap:8px}
  .cww-new-place-editor .btn {min-height:44px}
  .cww-page .cww-actions {display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
  .cww-page .cww-actions>.btn {width:auto;flex:none;margin:0;min-height:44px}
  .cww-action-menu {position:relative;min-width:0;max-width:100%}
  .cww-action-menu>summary {display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 14px;border:1px solid var(--cww-line,#dfe7eb);border-radius:8px;color:var(--cww-ink,#233b4a);font-size:13px;font-weight:600;cursor:pointer;list-style:none;background:#fff}
  .cww-action-menu>summary::-webkit-details-marker {display:none}
  .cww-action-menu>summary:after {content:'⌄';font-size:16px;font-weight:400}
  .cww-action-menu[open]>summary {background:#edf4f2;color:#236e61}
  .cww-action-menu-items {display:grid;gap:6px;padding:10px;margin-top:8px;border:1px solid var(--cww-line,#dfe7eb);border-radius:10px;background:#f6f9fa;min-width:220px;max-width:100%}
  .cww-action-menu-items>.btn {min-height:44px;margin:0;text-align:left;justify-content:flex-start;white-space:normal}
  .cww-filter-form {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;background:#fff;border:1px solid var(--cww-line);border-radius:14px;padding:18px}
  .cww-filter-form .field-group {margin:0;min-width:0}
  .cww-filter-main {grid-column:1/-1;display:grid;grid-template-columns:minmax(230px,1.7fr) minmax(160px,1fr) minmax(170px,1fr) auto;gap:12px;align-items:end}
  .cww-filter-main label,.cww-filter-extra label {font-size:12px;color:var(--cww-muted);font-weight:600}
  .cww-filter-main .btn {min-height:44px;white-space:nowrap}
  .cww-filter-extra {grid-column:1;border-top:1px solid #edf1f3;padding-top:4px;min-width:0}
  .cww-filter-extra>summary {cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;list-style:none}
  .cww-filter-extra>summary:before {content:'+';font-size:18px;color:var(--cww-green)}
  .cww-filter-extra[open]>summary:before {content:'−'}
  .cww-filter-extra>summary::-webkit-details-marker {display:none}
  .cww-filter-extra .company-warehouse-filter-grid,.cww-filter-extra .company-warehouse-journal-filter-grid {grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
  .cww-filter-footer {grid-column:2;grid-row:2;display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
  .cww-filter-extra[open] {grid-column:1/-1}
  .cww-filter-form:has(.cww-filter-extra[open]) .cww-filter-footer {grid-column:1/-1;grid-row:auto}
  .cww-filter-note {color:var(--cww-muted);font-size:12px}
  .cww-page .company-warehouse-summary {gap:0;border:1px solid var(--cww-line);background:#fff;border-radius:12px;overflow:hidden}
  .cww-page .company-warehouse-summary>div {border:0;border-radius:0;background:none;padding:10px 18px;gap:2px;border-right:1px solid #e8edef}
  .cww-page .company-warehouse-summary>div:last-child {border-right:0}
  .cww-page .company-warehouse-summary strong {font-size:23px;font-weight:650}
  .cww-page .company-warehouse-summary span {font-size:12px;color:var(--cww-muted)}
  .cww-results-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--cww-muted)}
  .cww-results-heading strong {color:var(--cww-ink);font-weight:600}
  .cww-page :is(.company-warehouse-list,.company-warehouse-journal-list) {gap:0;background:#fff;border:1px solid var(--cww-line);border-radius:14px;overflow:hidden}
  .cww-page .cww-stock {display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(240px,1.15fr) minmax(130px,.7fr) 220px;gap:16px 18px;padding:18px 20px;border:0;border-bottom:1px solid #e5ecef;border-radius:0;background:none;align-items:start}
  .cww-stock:last-child,.cww-movement:last-child {border-bottom:0!important}
  .cww-page .cww-stock h2,.cww-page .cww-movement h2 {font-size:15px;line-height:1.5;font-weight:650}
  .cww-stock-identity {display:grid;gap:4px;min-width:0}
  .cww-stock .cww-article {font-size:12px;color:var(--cww-muted)}
  .cww-stock .cww-place {font-size:13px;color:var(--cww-ink)}
  .cww-page .cww-stock-amounts {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .cww-stock-amounts>div {gap:5px}
  .cww-stock-amounts dt,.cww-stock-costs dt {font-size:12px;color:var(--cww-muted);font-weight:400;line-height:1.5}
  .cww-stock-amounts dd {font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
  .cww-stock-amounts .cww-free dd {color:var(--cww-green)}
  .cww-stock-costs {display:grid;gap:7px;margin:0}
  .cww-stock-costs dd {font-size:13px;font-weight:600;margin:2px 0 0;overflow-wrap:anywhere}
  .cww-page .cww-stock>.cww-actions {display:grid;grid-template-columns:100px minmax(0,1fr);gap:6px;padding-top:2px;align-items:start}
  .cww-stock>.cww-actions>.btn-primary {grid-column:1/-1;width:100%}
  .cww-stock>.cww-actions>.btn,.cww-stock>.cww-actions>.cww-action-menu>summary {font-size:12px}
  .cww-page .cww-movement {display:grid;grid-template-columns:135px minmax(200px,1fr) minmax(130px,.45fr) auto;align-items:start;gap:18px;padding:19px 20px;border:0;border-bottom:1px solid #e5ecef;border-radius:0}
  .cww-movement-date {display:grid;gap:6px;min-width:0;font-size:12px;color:var(--cww-muted)}
  .cww-kind {font-weight:600;color:var(--cww-ink);font-size:13px;line-height:1.5}
  .cww-movement-identity {min-width:0;display:grid;gap:4px}
  .cww-movement-path {font-size:13px;line-height:1.5!important}
  .cww-movement-project {font-size:12px;color:var(--cww-muted);line-height:1.5!important}
  .cww-movement-quantity {display:grid;gap:5px;min-width:0}
  .cww-movement-quantity strong {font-size:16px;font-weight:650;overflow-wrap:anywhere}
  .cww-movement-quantity>span {font-size:12px;color:var(--cww-muted)}
  .cww-direction-in strong {color:#236e61}
  .cww-direction-out strong {color:#925332}
  .cww-movement>.cww-actions {justify-content:end}
  .cww-movement>.cww-actions>.btn {font-size:12px}
  .cww-snapshot {font-size:12px;color:var(--cww-muted);line-height:1.6}
  .cww-page :is(.form-control,.form-select) {min-height:44px;font-size:14px}
  .cww-page :is(button,a,summary,input,select):focus-visible {outline:3px solid #96c8bd;outline-offset:2px}
  .cww-page [hidden] {display:none!important}
  @media(max-width:1199px) {
    .cww-filter-main {grid-template-columns:minmax(0,1fr) minmax(150px,.8fr) minmax(160px,.8fr)}
    .cww-filter-main>.btn {grid-column:1/-1;justify-self:start}
    .cww-page .cww-stock {grid-template-columns:minmax(170px,1fr) minmax(250px,1.3fr)}
    .cww-page .cww-stock>.cww-actions {grid-column:1/-1;display:flex;gap:8px}
    .cww-stock>.cww-actions>.btn-primary {width:auto}
    .cww-stock-costs {grid-column:1/-1;display:flex;gap:24px}
    .cww-page .cww-movement {grid-template-columns:110px minmax(180px,1fr) minmax(130px,.5fr)}
    .cww-movement>.cww-actions {grid-column:2/-1;justify-content:start}
  }
  @media(max-width:767px) {
    .cww-place-selection {grid-template-columns:minmax(0,1fr);padding:14px}
    .cww-new-place>.btn {justify-self:start}
    .cww-page {gap:14px}
    .cww-filter-form {grid-template-columns:minmax(0,1fr);padding:14px;gap:8px}
    .cww-filter-footer {grid-column:1/-1;grid-row:auto}
    .cww-filter-main {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .cww-filter-main>.field-group:first-child {grid-column:1/-1}
    .cww-filter-main>.btn {width:100%;justify-self:stretch}
    .cww-filter-extra .company-warehouse-filter-grid,.cww-filter-extra .company-warehouse-journal-filter-grid {grid-template-columns:minmax(0,1fr)}
    .cww-page .company-warehouse-summary>div {padding:12px 14px;border-bottom:1px solid #e8edef}
    .cww-page .company-warehouse-summary>div:nth-last-child(-n+2) {border-bottom:0}
    .cww-page .company-warehouse-summary>div:nth-child(2n) {border-right:0}
    .cww-page .cww-stock {grid-template-columns:minmax(0,1fr);padding:17px 15px;gap:15px}
    .cww-page .cww-stock-amounts {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
    .cww-stock-amounts dd {font-size:15px}
    .cww-stock-costs {display:flex;flex-wrap:wrap;gap:8px 22px}
    .cww-page .cww-stock>.cww-actions {display:grid;grid-template-columns:minmax(0,1fr) auto}
    .cww-stock>.cww-actions>.btn:first-child {grid-column:1/-1;width:100%}
    .cww-stock>.cww-actions>.btn {width:100%}
    .cww-action-menu-items {min-width:0}
    .cww-stock>.cww-actions:has(.cww-action-menu[open])>.cww-action-menu {grid-column:1/-1}
    .cww-page .cww-movement {grid-template-columns:minmax(0,1fr) auto;padding:16px 15px;gap:12px}
    .cww-movement-date {grid-column:1/-1;display:flex;justify-content:space-between;gap:12px}
    .cww-movement-quantity {text-align:right;max-width:120px}
    .cww-movement-quantity strong {font-size:15px}
    .cww-movement>.cww-actions {grid-column:1/-1;justify-content:start}
    .cww-movement>.cww-actions>.btn {width:auto}
    .cww-page .list-pagination {display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}
    .cww-page .list-pagination .btn {width:auto}
  }
}
