/* Owner acceptance: shared period/filter controls and compact money views. */
.period-navigator{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0 16px}
.period-modes,.period-arrows{display:flex;align-items:center;gap:8px}
.period-arrows>span{min-width:190px;text-align:center;text-transform:capitalize;font-size:16px}
.period-arrows>button{border:1px solid var(--border,#dce2eb);border-radius:10px;background:var(--panel,#fff);width:40px;height:40px;font-size:25px;cursor:pointer}
.multi-select{position:relative;min-width:150px;max-width:240px;text-align:left}
.multi-select>summary{display:flex;flex-direction:column;gap:5px;cursor:pointer;list-style:none;font-size:12px;color:var(--muted,#657187)}
.multi-select>summary>b{display:block;background:var(--panel,#fff);border:1px solid var(--border,#dce2eb);border-radius:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:10px 28px 10px 10px;font-size:14px;font-weight:400;color:var(--text,#172033)}
.multi-select[open]{z-index:40}
.multi-select-menu{position:absolute;top:100%;left:0;width:min(320px,calc(100vw - 40px));background:var(--panel,#fff);border:1px solid var(--border,#dce2eb);box-shadow:0 10px 26px #17203320;border-radius:12px;padding:12px;z-index:40}
.multi-select-menu>input{width:100%;min-width:0}
.multi-select-actions{display:flex;justify-content:space-between;gap:8px;margin:8px 0}
.multi-select-actions button{padding:8px 0;background:transparent;border:0;color:var(--accent,#335dc0);font-size:12px;cursor:pointer}
.multi-select-options{max-height:260px;overflow:auto}
.multi-select-options label{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;min-height:40px;font-size:13px;cursor:pointer;overflow-wrap:anywhere}
.multi-select-options label[hidden]{display:none!important}
.multi-select-options input{width:18px!important;min-width:18px!important;height:18px}
.multi-select-options span{min-width:0}
.multi-select-menu>.button{width:100%;margin-top:8px}
.operation-filter,.dds-filter{overflow:visible;align-items:end}
.dds-advanced-filters{margin:8px 0 16px}
.dds-advanced-filters>summary{cursor:pointer;padding:10px 0}
.dds-report-wrap{max-width:100%;overflow-x:auto}
.dds-report-table{table-layout:fixed!important;width:100%!important;min-width:calc(280px + 150px * (var(--dds-columns) + 1))!important;max-width:none!important}
.dds-report-table tr>*{width:auto!important;min-width:150px!important;max-width:none;padding:10px 12px!important}
.dds-report-table tr>*:first-child{position:sticky!important;left:0;z-index:2;width:280px!important;min-width:280px!important;max-width:280px;background:var(--panel,#fff);white-space:normal}
.dds-report-table thead th:first-child{z-index:3}
.dds-report-table .dds-section-row>*,.dds-report-table .dds-net-row>*,.dds-report-table .dds-transfer-row>*{font-weight:650}
.dds-report-table .dds-group-row>*,.dds-report-table .dds-article-row>*,.dds-report-table .dds-group-row strong,.dds-report-table .dds-article-row strong,.dds-report-table .dds-group-row button,.dds-report-table .dds-article-row button{font-weight:400!important}
.dds-report-table .dds-article-row th small{display:none}
.dds-report-table .dds-cell-button{width:100%;min-height:36px}
.dds-one-month .dds-report-table tr>*:last-child{display:none}
.dds-one-month .dds-report-table{min-width:470px!important}
.dds-one-month .dds-report-table tr>*:nth-child(2){width:auto!important;min-width:190px!important;max-width:none}
.operation-date-cards,.dds-mobile{display:none}
.party-merge-panel{padding:16px;margin:16px 0;border:1px solid var(--border,#dce2eb);border-radius:12px}
.party-merge-panel fieldset{border:0;padding:0;display:grid;gap:8px}
.party-merge-panel label{display:flex;align-items:center;gap:8px}
.party-merge-panel input[type=radio]{width:18px;height:18px}
.party-merge-select{width:18px!important;height:18px}
@media(max-width:700px){
  .cashflow-page{display:flex;flex-direction:column}
  .cashflow-page .page-intro{order:0;display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;margin:0 0 8px}
  .cashflow-page .page-intro>div:first-child:empty,.cashflow-page .page-intro p{display:none}
  .cashflow-page .hero-actions{display:flex;gap:6px;flex-wrap:wrap}
  .cashflow-page .hero-actions .button{width:auto;min-height:34px;padding:7px 9px;font-size:11px}
  .cashflow-page .period-navigator{order:1;margin:4px 0 10px}
  .cashflow-page .dds-view-tabs{order:2;display:flex!important;flex-wrap:wrap!important;gap:5px;overflow:visible!important;margin:0 0 8px}
  .cashflow-page .dds-view-tabs button{min-height:32px;padding:5px 7px;font-size:11px}
  .cashflow-page .dds-advanced-filters{order:3;margin:0 0 8px}
  .cashflow-page .dds-mobile{order:4;margin-bottom:12px}
  .cashflow-page>.alert{order:5;font-size:11px}
  .cashflow-page .chart-toggle-shell{display:none}
  .operations-page .page-intro p{display:none}
  .operations-page .hero-actions{gap:6px}
  .operations-page .hero-actions .button{padding:8px 10px;font-size:12px;min-height:36px}
  .content-page,.content-page.wide,.cashflow-page{min-width:0!important;max-width:100%}
  .operation-date-cards,.dds-mobile{display:block}
  .desktop-operations,.dds-report-wrap{display:none!important}
  .operation-date-card{border:1px solid var(--border,#e3e7ef);border-radius:14px;background:var(--panel,#fff);margin:0 0 14px;overflow:hidden}
  .operation-date-card h3{font-size:13px;font-weight:600;color:var(--muted,#657187);padding:12px 14px;margin:0;background:#f6f8fb}
  .operation-compact-row{display:flex;align-items:center;gap:6px;border-top:1px solid var(--border,#edf0f5);padding-right:8px;min-width:0}
  .operation-compact-open{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;width:100%;min-width:0;text-align:left;padding:11px 12px;border:0;background:transparent;cursor:pointer;color:inherit}
  .operation-compact-title{font-size:13px;line-height:1.35;font-weight:600;min-width:0;overflow-wrap:anywhere}
  .operation-compact-amount{font-size:13px;font-weight:600;text-align:right;white-space:nowrap}
  .operation-compact-party,.operation-compact-account,.operation-compact-comment{grid-column:1/-1;min-width:0;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
  .operation-compact-account,.operation-compact-comment{color:var(--muted,#748092)}
  .operation-compact-comment{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .operation-compact-select{width:18px!important;height:18px;min-width:18px}
  .operations-table-panel{background:transparent;border:0;box-shadow:none;min-width:0}
  .operation-filter,.dds-filter{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .operation-filter label,.dds-filter label,.multi-select{min-width:0!important;width:100%;max-width:none}
  .operation-filter input,.dds-filter input{max-width:100%;min-width:0!important}
  .multi-select:nth-child(even) .multi-select-menu{left:auto;right:0}
  .multi-select[open] .multi-select-menu{position:fixed;left:12px!important;right:12px!important;top:100px;width:auto;max-height:calc(100dvh - 180px);overflow:auto}
  .period-navigator{gap:10px}
  .period-modes{width:100%;justify-content:center}
  .period-arrows{width:100%;justify-content:space-between}
  .period-arrows>span{min-width:0;font-size:16px}
  .cashflow-page .period-modes{display:none}
  .cashflow-page .dds-view-tabs{overflow:auto;max-width:100%;display:flex;flex-wrap:nowrap}
  .cashflow-page .dds-flow-switch,.cashflow-page .chart-panel,.cashflow-page .cashflow-chart{display:none}
  .dds-mobile-section{margin:12px 0;background:var(--panel,#fff);border:1px solid var(--border,#e3e7ef);border-radius:14px;overflow:hidden}
  .dds-mobile-line{display:flex;justify-content:space-between;align-items:start;gap:10px;width:100%;min-width:0;min-height:44px;padding:12px;text-align:left;background:transparent;border:0;color:inherit;font-size:13px;line-height:1.4}
  .dds-mobile-line>span:first-child{min-width:0;overflow-wrap:anywhere}
  .dds-mobile-line>span:last-child{max-width:48%;text-align:right;font-variant-numeric:tabular-nums;flex-shrink:0}
  .dds-mobile-line small{display:block;color:var(--muted,#748092);font-size:11px}
  .dds-mobile-total{font-weight:650;background:#f6f8fb}
  .dds-mobile-group>.dds-mobile-line{font-weight:400}
  .dds-mobile-article{font-weight:400;padding-left:20px}
  .dds-mobile-balance{font-size:12px;border-top:1px solid var(--border,#e3e7ef);padding:14px 12px}
  .dds-mobile-section>p{font-size:11px;padding:0 12px 10px;margin:0}
  .operations-table-panel,.dds-mobile{margin-bottom:calc(76px + env(safe-area-inset-bottom))}
  .operation-bulk-toolbar,.operation-selection-summary{flex-wrap:wrap;max-width:100%}
}
