/* Responsive layout for the CPA worksheet. Desktop keeps its current layout. */
@media(max-width:820px){
  html body section#page-dashboard.page{min-width:0!important;width:100%!important;box-sizing:border-box!important}
  html body section#page-dashboard.page *,html body section#page-dashboard.page *::before,html body section#page-dashboard.page *::after{box-sizing:border-box}
  html body section#page-dashboard.page .dash-premium-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
  html body section#page-dashboard.page .dash-workspace{min-width:0!important;width:100%!important;overflow:visible!important;border-radius:16px!important}
  html body section#page-dashboard.page .dash-hero-head{padding:18px 14px!important;gap:18px!important;align-items:stretch!important}
  html body section#page-dashboard.page .dash-title-block{grid-template-columns:40px minmax(0,1fr)!important;gap:10px!important}
  html body section#page-dashboard.page .dash-icon{width:40px!important;height:40px!important;border-radius:12px!important}
  html body section#page-dashboard.page .dash-title-block h3{font-size:23px!important;line-height:1.2!important}
  html body section#page-dashboard.page .dash-title-block p{font-size:12px!important;line-height:1.5!important}
  html body section#page-dashboard.page .dash-main-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;margin:0!important;align-items:end!important}
  html body section#page-dashboard.page .sheet-control-wrap,html body section#page-dashboard.page .sheet-date-wrap{grid-column:1/-1!important;order:0!important;min-width:0!important;width:100%!important;max-width:none!important}
  html body section#page-dashboard.page .sheet-control-wrap{order:0!important}
  html body section#page-dashboard.page .sheet-date-wrap{order:1!important}
  html body section#page-dashboard.page .sheet-select,html body section#page-dashboard.page #sheetDate{width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:44px!important;font-size:16px!important}
  html body section#page-dashboard.page #sheetAdd{order:2!important;grid-column:1/-1!important;min-width:0!important;justify-self:stretch!important}
  html body section#page-dashboard.page #sheetRename{order:3!important;grid-column:1!important}
  html body section#page-dashboard.page #sheetDel{order:3!important;grid-column:2!important}
  html body section#page-dashboard.page #sheetFinish{order:4!important;grid-column:1/-1!important;width:100%!important;min-width:0!important;min-height:44px!important;height:44px!important;padding:10px 12px!important;border-radius:10px!important;font-size:13px!important}
  html body section#page-dashboard.page .premium-tabs{padding:14px 12px 8px!important;gap:8px!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;scrollbar-width:none!important}
  html body section#page-dashboard.page .premium-tabs::-webkit-scrollbar{display:none}
  html body section#page-dashboard.page .premium-tabs .btn{flex:0 0 auto!important;min-width:112px!important;max-width:180px!important;height:42px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  html body section#page-dashboard.page .premium-table-wrap{margin:10px 12px 0!important;width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;min-width:0!important;overflow:visible!important;border:0!important;background:transparent!important}
  html body section#page-dashboard.page table.premium-table,html body section#page-dashboard.page table.premium-table>tbody{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;border:0!important;background:transparent!important;table-layout:fixed!important}
  html body section#page-dashboard.page table.premium-table>thead{display:none!important}
  html body section#page-dashboard.page table.premium-table>tbody{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  html body section#page-dashboard.page table.premium-table>tbody>tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 10px!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;padding:12px!important;border:1px solid #2d2d33!important;border-radius:13px!important;background:var(--pc-mobile-card,#111113)!important;box-shadow:none!important}
  html body section#page-dashboard.page table.premium-table>tbody>tr>td{position:static!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto 44px!important;grid-column:auto!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;gap:6px!important;border:0!important;background:transparent!important;text-align:left!important;white-space:normal!important;overflow:visible!important}
  html body section#page-dashboard.page table.premium-table>tbody>tr>td::before{color:#a1a1aa!important;font-size:10px!important;line-height:1.2!important;font-weight:600!important;letter-spacing:.025em!important;text-transform:none!important}
  html body section#page-dashboard.page table.premium-table>tbody>tr>td:first-child{display:flex!important;grid-column:1!important;grid-row:1!important;gap:6px!important;align-items:center!important;justify-content:flex-start!important;font-size:13px!important;font-weight:700!important;color:inherit!important}
  html body section#page-dashboard.page table.premium-table>tbody>tr>td:first-child::before{font-size:13px!important;color:inherit!important}
  html body section#page-dashboard.page table.premium-table>tbody>tr>td:nth-child(2){grid-column:1!important;grid-row:2!important}
  html body section#page-dashboard.page table.premium-table>tbody>tr>td:nth-child(3){grid-column:2!important;grid-row:2!important}
  html body section#page-dashboard.page table.premium-table>tbody>tr>td:nth-child(4){grid-column:1!important;grid-row:3!important}
  html body section#page-dashboard.page table.premium-table>tbody>tr>td:nth-child(5){grid-column:2!important;grid-row:3!important}
  html body section#page-dashboard.page table.premium-table>tbody>tr>td.profit{display:flex!important;grid-column:1/-1!important;grid-row:4!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:40px!important;padding-top:10px!important;border-top:1px solid #2d2d33!important;border-radius:0!important;font-size:16px!important;font-weight:700!important}
  html body section#page-dashboard.page table.premium-table>tbody>tr>td.row-action-cell{display:flex!important;grid-column:2!important;grid-row:1!important;justify-content:flex-end!important;align-items:center!important;width:100%!important;min-width:0!important;height:36px!important;min-height:36px!important}
  html body section#page-dashboard.page table.premium-table>tbody>tr>td.row-action-cell::before{content:none!important;display:none!important}
  html body section#page-dashboard.page table.premium-table .row-trash-btn{position:relative!important;inset:auto!important;transform:none!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;margin:0!important;border-radius:9px!important}
  html body section#page-dashboard.page table.premium-table .cell-input{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;padding:8px 10px!important;border-radius:9px!important;font-size:16px!important;line-height:1.3!important;text-align:left!important}
  html body section#page-dashboard.page .table-actions-line{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;padding:14px 12px!important}
  html body section#page-dashboard.page .table-actions-line .btn{min-height:44px!important}
  html body section#page-dashboard.page .dash-bottom-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:0 12px 14px!important}
  html body section#page-dashboard.page .metric-tile{min-width:0!important;min-height:110px!important;padding:12px!important;border-radius:12px!important;gap:6px!important}
  html body section#page-dashboard.page .metric-tile strong{font-size:18px!important;overflow-wrap:anywhere!important}
  html body section#page-dashboard.page .metric-tile span{font-size:11px!important}
  html body section#page-dashboard.page .metric-tile i{width:30px!important;height:30px!important}
  html body section#page-dashboard.page .operation-summary{position:static!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;width:100%!important;min-width:0!important}
  html body section#page-dashboard.page .summary-card{padding:16px!important;min-width:0!important;border-radius:16px!important}
  html body section#page-dashboard.page .summary-list span{font-size:12px!important;gap:8px!important}
  html body section#page-dashboard.page .summary-list strong{font-size:13px!important;white-space:nowrap!important}
  html body section#page-dashboard.page .expense-row{grid-template-columns:minmax(0,1fr) minmax(90px,110px)!important;gap:10px!important}
  html body section#page-dashboard.page .expense-row input,html body section#page-dashboard.page .salary-box input{font-size:16px!important;width:100%!important;min-width:0!important}
  html[data-color-scheme="light"] body section#page-dashboard.page{--pc-mobile-card:#fff}
  html[data-color-scheme="light"] body section#page-dashboard.page table.premium-table>tbody>tr{border-color:#dedee3!important}
  html[data-color-scheme="light"] body section#page-dashboard.page table.premium-table>tbody>tr>td::before{color:#62626d!important}
}
