/* Journal and movement-schedule forms. */
.panel-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto}
.small-primary{padding:6px 12px;font-size:12px;min-height:0}
.small-primary .icon{width:15px;height:15px}
.row-actions{white-space:nowrap;text-align:right}
.row-actions .small-button+.small-button{margin-left:6px}
.editor-form{display:flex;flex-direction:column;gap:12px}
.editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px}
.editor-grid label,.editor-opening>span,.editor-static>span{display:grid;gap:5px;font-size:12px;font-weight:500;color:#3d4757}
.editor-grid .span-3{grid-column:1/-1}
.editor-form input,.editor-form select{font-size:13px;padding:7px 9px;border:1px solid var(--border);border-radius:var(--radius);background:#fff;min-width:0;width:100%}
.editor-form input.num{text-align:right;font-variant-numeric:tabular-nums}
.editor-static{display:grid;gap:5px}
.editor-static strong{font-size:13px;padding:8px 0}
.editor-opening{display:grid;gap:5px}
.editor-opening>div{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.editor-hint{margin:0;font-size:12px;color:var(--muted)}
.editor-lines{width:100%;border-collapse:collapse;font-size:13px}
.editor-lines th{font-size:11px;font-weight:600;color:#576174;text-align:left;padding:6px;border-bottom:1px solid var(--border)}
.editor-lines th.num{text-align:right}
.editor-lines td{padding:5px 6px;border-bottom:1px solid #edf0f3;vertical-align:top}
.editor-lines td:first-child{min-width:200px}
.editor-lines td:nth-child(3),.editor-lines td:nth-child(4){width:120px}
.schedule-lines td:nth-child(2){width:140px}
.schedule-lines td:nth-child(5){width:170px}
.schedule-lines td:nth-child(5)>*+*{margin-top:5px}
.editor-lines tfoot td{border-bottom:0;font-weight:600;padding-top:9px}
.editor-lines tfoot .text-button{padding:0;font-size:13px}
.editor-effect{min-width:170px;font-size:12px}
.editor-effect span{display:block;color:#3d4757}
.editor-effect small{display:block;color:var(--muted);font-variant-numeric:tabular-nums}
.editor-warn,.editor-warn dd{color:#9a5b0b}
.editor-ok,.editor-ok dd{color:var(--teal)}
.editor-ok .icon{width:14px;height:14px}
.editor-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;background:#f7f8f9;border-radius:var(--radius);padding:10px 12px}
.editor-summary dt{font-size:11px;color:var(--muted)}
.editor-summary dd{margin:2px 0 0;font-weight:600;font-variant-numeric:tabular-nums}
.editor-changes{padding-left:18px;font-size:13px}
.editor-changes li+li{margin-top:6px}
.editor-form .dialog-actions{align-items:center}
.editor-form .spacer{flex:1}
.danger-button{color:#a12a2a;border-color:#e8c4c4}
.danger-button:hover{background:#fdf0f0}
@media(max-width:700px){
  .editor-grid,.editor-summary{grid-template-columns:1fr}
  .editor-lines td:first-child{min-width:160px}
}
/* Cash-flow form. */
.panel-toolbar{display:flex;justify-content:flex-end;margin-bottom:12px}
.cash-form h3{font-size:14px;margin:6px 0 0}
.cash-check{display:flex;align-items:center;gap:8px;font-size:13px}
.cash-check input{width:auto!important}
.editor-opening-pair{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.cash-add{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:500;color:#3d4757}
.cash-add select{width:auto;max-width:360px}
.cash-bridge td:nth-child(2){width:110px}
.cash-bridge td small{display:block;margin-top:3px;font-size:11px}
.cash-summary-bar{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(min-width:701px) and (min-height:700px){.cash-summary-bar{position:sticky;bottom:0;box-shadow:0 -6px 12px #ffffffd0}}
@media(max-width:700px){.cash-summary-bar{grid-template-columns:1fr 1fr}}
