/* Mobile workflows only; desktop, accounting calculations and print stay unchanged. */
@media screen and (max-width:700px){
 .accounting-journal.aj-workspace[data-mobile-page]:is([data-mobile-page=voucher],[data-mobile-page=people],[data-mobile-page=accounts]) .aj-main{padding:12px 10px 24px;min-width:0}
 .accounting-journal.aj-workspace:is([data-mobile-page=voucher],[data-mobile-page=people],[data-mobile-page=accounts]) .aj-card{padding:14px 12px;border-radius:14px;margin-bottom:12px;min-width:0;box-shadow:none}
 .accounting-journal.aj-workspace:is([data-mobile-page=voucher],[data-mobile-page=people],[data-mobile-page=accounts]) .aj-card>header{display:block;margin-bottom:16px}
 .accounting-journal.aj-workspace:is([data-mobile-page=voucher],[data-mobile-page=people],[data-mobile-page=accounts]) .aj-card>header h2{font-size:18px;line-height:1.7}
 .accounting-journal.aj-workspace:is([data-mobile-page=voucher],[data-mobile-page=people],[data-mobile-page=accounts]) .aj-card>header p{font-size:12px;line-height:1.85;margin:6px 0;color:var(--aj-muted)}
 .accounting-journal.aj-workspace:is([data-mobile-page=voucher],[data-mobile-page=people],[data-mobile-page=accounts]) :is(input:not([type=checkbox]):not([type=color]),select,textarea){font-size:16px;min-height:48px;width:100%;max-width:100%;min-width:0;border-radius:10px;background:var(--aj-surface);color:var(--aj-ink)}
 .accounting-journal.aj-workspace:is([data-mobile-page=voucher],[data-mobile-page=people],[data-mobile-page=accounts]) :is(button,summary){min-height:44px;touch-action:manipulation;white-space:normal}
 .accounting-journal.aj-workspace :is(.aj-quick-grid,.aj-inline-form,.aj-person-extra>div){display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
 .accounting-journal.aj-workspace :is(.aj-quick-grid,.aj-inline-form) label{width:100%;min-width:0;gap:7px;line-height:1.8;font-size:13px}
 .accounting-journal.aj-workspace .aj-quick-grid>label:first-child{padding:12px;background:var(--aj-soft);border:1px solid var(--aj-line);border-radius:12px}
 .accounting-journal.aj-workspace .aj-entry-select{display:flex;gap:8px;min-width:0;width:100%}
 .accounting-journal.aj-workspace .aj-entry-select select{flex:1;width:0;min-width:0}
 .accounting-journal.aj-workspace .aj-entry-select button{flex:0 0 44px;width:44px;padding:8px}
 .accounting-journal.aj-workspace .aj-quick-entry{padding:0;border:0;background:transparent}
 .accounting-journal.aj-workspace .aj-quick-hint{font-size:12px;line-height:1.9;padding:12px;border-radius:10px}
 .accounting-journal.aj-workspace .aj-entry-footer{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:12px 0;margin-top:12px;position:static;background:var(--aj-surface);box-shadow:none}
 .accounting-journal.aj-workspace .aj-entry-footer button{width:100%;min-height:48px}
 .accounting-journal.aj-workspace .aj-entry-preferences{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:12px}
 .accounting-journal.aj-workspace .aj-entry-preferences label{display:flex;align-items:center;min-height:44px;gap:10px}
 .accounting-journal.aj-workspace :is(.aj-person-create,.aj-account-create,.aj-person-extra,.aj-advanced-entry,.aj-entry-options){border:1px solid var(--aj-line);border-radius:12px;background:var(--aj-surface);margin-block:12px;min-width:0}
 .accounting-journal.aj-workspace :is(.aj-person-create,.aj-account-create,.aj-person-extra,.aj-advanced-entry,.aj-entry-options)>summary{padding:12px;line-height:1.8;color:var(--aj-accent);font-weight:600}
 .accounting-journal.aj-workspace :is(.aj-person-create,.aj-account-create)>form{padding:12px;margin:0;border:0}
 .accounting-journal.aj-workspace .aj-person-extra>div{padding:12px}
 .accounting-journal.aj-workspace .aj-party-row>summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px 12px}
 .accounting-journal.aj-workspace .aj-party-row>summary>span{min-width:0;overflow-wrap:anywhere}
 .accounting-journal.aj-workspace .aj-party-name,.accounting-journal.aj-workspace .aj-party-net{grid-column:1/-1}
 .accounting-journal.aj-workspace .aj-party-net{padding:10px;background:var(--aj-soft);border-radius:10px}
 .accounting-journal.aj-workspace .aj-party-count{grid-column:1/-1;font-size:11px}
 .accounting-journal.aj-workspace :is(.aj-party-row-tools,.aj-account-row-tools){display:flex;flex-wrap:wrap;gap:8px;padding:10px;align-items:center}
 .accounting-journal.aj-workspace :is(.aj-party-row-tools,.aj-account-row-tools) button{flex:1 1 110px;min-height:44px}
 .accounting-journal.aj-workspace[data-mobile-page=accounts] .aj-account-group>.aj-table-wrap{overflow:visible;border:0}
 .accounting-journal.aj-workspace[data-mobile-page=accounts] .aj-account-group>.aj-table-wrap table{display:block;min-width:0;width:100%;border:0}
 .accounting-journal.aj-workspace[data-mobile-page=accounts] .aj-account-group>.aj-table-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .accounting-journal.aj-workspace[data-mobile-page=accounts] .aj-account-group>.aj-table-wrap tbody{display:grid;gap:12px}
 .accounting-journal.aj-workspace[data-mobile-page=accounts] .aj-account-group>.aj-table-wrap tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;border:1px solid var(--aj-line);border-radius:12px;background:var(--aj-surface)}
 .accounting-journal.aj-workspace[data-mobile-page=accounts] .aj-account-group>.aj-table-wrap td{display:flex;flex-direction:column;gap:4px;border:0;padding:8px;white-space:normal;overflow-wrap:anywhere;min-width:0}
 .accounting-journal.aj-workspace[data-mobile-page=accounts] .aj-account-group>.aj-table-wrap td::before{content:attr(data-mobile-label);font-size:11px;color:var(--aj-muted)}
 .accounting-journal.aj-workspace[data-mobile-page=accounts] .aj-account-group>.aj-table-wrap td:is(:nth-child(2),:last-child){grid-column:1/-1}
 .accounting-journal.aj-workspace[data-mobile-page=accounts] .aj-account-group>.aj-table-wrap td:nth-child(6){background:var(--aj-soft);border-radius:8px;font-weight:700}
}
