*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#f6f7f4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,textarea,select{font:inherit}app-dashboard .workspace.workspace{height:100dvh;min-height:0;overflow:hidden}app-dashboard .main.main{height:100dvh;min-height:0;display:flex;flex-direction:column}app-dashboard .topbar.topbar{flex:0 0 4.2rem;box-sizing:border-box;padding-left:1rem}app-dashboard .page.page{flex:1 1 auto;min-height:0;width:100%;overflow:auto;box-sizing:border-box}app-dashboard .customer-directory-page.customer-directory-page{display:flex;flex-direction:column;overflow:hidden}app-dashboard .directory.directory{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}app-dashboard .directory-card.directory-card{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}app-dashboard .directory-heading.directory-heading{flex:0 0 auto}app-dashboard .customer-list.customer-list{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}app-dashboard .customer-pagination.customer-pagination{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.65rem 1rem;border-top:1px solid #edf0eb;color:#7b877e;font-size:.68rem}app-dashboard .customer-pagination.customer-pagination>div{display:flex;align-items:center;gap:.65rem}app-dashboard .customer-pagination.customer-pagination button{min-height:2rem;padding:0 .7rem;border:1px solid #dce4dd;border-radius:.4rem;background:#fff;color:#355a49;font:600 .68rem inherit;cursor:pointer}app-dashboard .customer-pagination.customer-pagination button:disabled{opacity:.45;cursor:not-allowed}app-dashboard .customer-pagination.customer-pagination strong{color:#4d5d52;font-size:.66rem;font-weight:600;white-space:nowrap}app-dashboard .topbar-actions.topbar-actions{display:flex;align-items:center;gap:1.1rem;white-space:nowrap}app-dashboard .topbar-profile.topbar-profile{display:flex;flex-direction:row;align-items:center;gap:.5rem;padding-left:.8rem;border-left:1px solid #e9ece7}app-dashboard .topbar-profile .avatar{width:2rem;height:2rem;flex:none}app-dashboard .topbar-profile strong,app-dashboard .topbar-profile small{display:block;white-space:nowrap}app-dashboard .topbar-profile strong{color:#30443a;font-size:.7rem}app-dashboard .topbar-profile small{margin-top:.12rem;color:#87938a;font-size:.6rem}app-dashboard .topbar-actions .logout{width:auto;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.55rem .9rem;border:1px solid #dce6de;border-radius:999px;background:#f6f9f6;color:#345a49;font-size:.68rem;white-space:nowrap}app-dashboard .topbar-actions .logout:hover{background:#eaf3ec}@media(max-width:620px){app-dashboard .workspace.workspace{height:100dvh;display:flex;flex-direction:column}app-dashboard .sidebar.sidebar{flex:0 0 auto}app-dashboard .main.main{height:auto;flex:1 1 auto}app-dashboard .topbar.topbar{min-height:3.6rem;height:auto;flex-basis:auto;padding:.55rem .7rem;gap:.35rem}app-dashboard .topbar-actions.topbar-actions{gap:.45rem}app-dashboard .today.today{max-width:4.4rem;font-size:.45rem;line-height:1.35;text-align:right}app-dashboard .topbar-profile.topbar-profile{gap:.3rem;padding-left:.4rem}app-dashboard .topbar-profile .avatar{width:1.65rem;height:1.65rem}app-dashboard .topbar-profile strong{font-size:.57rem}app-dashboard .topbar-profile small{font-size:.5rem}app-dashboard .topbar-actions .logout{padding:.4rem .55rem;font-size:.58rem}app-dashboard .page.page{padding:1rem .65rem}app-dashboard .customer-pagination.customer-pagination{padding:.55rem .6rem;font-size:.6rem}app-dashboard .customer-pagination.customer-pagination>div{gap:.35rem}app-dashboard .customer-pagination.customer-pagination button{padding:0 .45rem;font-size:.6rem}app-dashboard .customer-pagination.customer-pagination strong{font-size:.58rem}}app-dashboard .workspace.sidebar-collapsed .sidebar{display:none}app-dashboard .sidebar-toggle.sidebar-toggle{width:2.55rem;height:2.55rem;display:grid;place-items:center;flex:none;padding:0;border:1px solid #e1e8e1;border-radius:.55rem;background:#fff;color:#315a48;cursor:pointer}app-dashboard .sidebar-toggle.sidebar-toggle:hover{background:#f1f6f1}app-dashboard .hamburger-icon{width:1.1rem;display:grid;gap:.2rem}app-dashboard .hamburger-icon i{width:100%;height:2px;border-radius:2px;background:currentColor}app-dashboard .topbar-profile.topbar-profile{padding:.32rem .7rem .32rem .32rem;border:1px solid #e4ebe4;border-radius:999px;background:#f8faf7}app-dashboard .topbar-profile .avatar{width:1.9rem;height:1.9rem}app-dashboard .customer-option.customer-option{min-height:3.15rem;gap:.6rem;padding:.48rem .7rem}app-dashboard .customer-option .person-avatar{width:1.9rem;height:1.9rem}app-dashboard .customer-summary strong{font-size:.74rem}app-dashboard .customer-summary small{margin-top:.12rem;font-size:.62rem}app-dashboard .customer-balance strong{font-size:.76rem}app-dashboard .customer-balance small{font-size:.57rem}@media(max-width:620px){app-dashboard .topbar{justify-content:space-between}app-dashboard .sidebar-toggle.sidebar-toggle{width:2.25rem;height:2.25rem}app-dashboard .topbar-profile.topbar-profile{padding:.25rem .42rem .25rem .25rem}app-dashboard .customer-option.customer-option{min-height:3rem;padding:.42rem .45rem}}.directory-filters{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;padding:.75rem 1.25rem;border-bottom:1px solid #edf0eb;background:#fbfcfa}.directory-filters label{display:flex;align-items:center;gap:.45rem;color:#7b877e;font-size:.68rem}.directory-filters select{min-height:2.2rem;max-width:12rem;padding:.35rem .55rem;border:1px solid #dce4dd;border-radius:.42rem;background:#fff;color:#33473c;font:inherit;font-size:.7rem}@media(max-width:620px){.directory-filters{display:grid;grid-template-columns:1fr;gap:.45rem;padding:.75rem .9rem}.directory-filters label{justify-content:space-between}.directory-filters select{max-width:none;flex:1}}@media(max-width:620px){app-dashboard .sidebar.sidebar{position:fixed;z-index:35;inset:0 auto 0 0;width:min(15.5rem,82vw);height:100dvh;display:flex;flex-direction:column;box-shadow:0 1rem 3rem #13251e44}app-dashboard .main.main{padding-left:2.9rem}app-dashboard .sidebar-toggle.sidebar-toggle{position:fixed;z-index:40;top:50%;left:.45rem;transform:translateY(-50%);box-shadow:0 2px 12px #173f3826}app-dashboard .topbar.topbar{justify-content:flex-end;padding:.55rem .55rem .55rem .35rem}}.mobile-sidebar-backdrop{display:none}app-dashboard .sidebar-toggle.sidebar-toggle:focus-visible{outline:3px solid #e7bd75;outline-offset:2px}@media(max-width:620px){.mobile-sidebar-backdrop{display:none!important}app-dashboard .sidebar.sidebar{width:min(17rem,100vw - 4.25rem)}}.pdf-export-controls{display:flex;align-items:center;gap:.65rem;margin-left:auto}.pdf-detail-option{display:flex;align-items:center;gap:.45rem;color:#52675a;font-size:.68rem;cursor:pointer}.pdf-detail-option input{width:1rem;height:1rem;margin:0;accent-color:#1c6847}.pdf-detail-option span,.pdf-detail-option small{display:block}.pdf-detail-option small{margin-top:.15rem;color:#87938a;font-size:.58rem}@media(max-width:620px){.pdf-export-controls{width:100%;flex-wrap:wrap;margin-left:0}.pdf-detail-option{flex:1 1 100%}.pdf-export-controls .pdf-button{width:auto;flex:1}}.customer-book-heading{align-items:center}.customer-totals{display:grid;grid-template-columns:repeat(2,minmax(9rem,1fr));gap:.55rem}.customer-total{display:grid;gap:.32rem;min-width:9rem;padding:.65rem .8rem;border:1px solid #e4eae3;border-radius:.5rem;background:#fff}.customer-total span{color:#77847b;font-size:.63rem;font-weight:600}.customer-total strong{color:#526258;font-size:.95rem;font-weight:700;white-space:nowrap}.receivable-total strong{color:#bd3f3a}.payable-total strong{color:#16834a}@media(max-width:900px){.customer-book-heading{align-items:flex-start;flex-direction:column}.customer-totals{width:100%}.customer-total{min-width:0}}@media(max-width:620px){.customer-totals{gap:.4rem}.customer-total{padding:.55rem .6rem}.customer-total span{font-size:.58rem}.customer-total strong{font-size:.85rem}}.bill-breakdown-actions{display:flex;align-items:center;justify-content:flex-end;gap:.8rem}.bill-pdf-download{min-height:2rem;padding:.4rem .65rem;border:1px solid #d7e4d9;border-radius:.4rem;background:#fff;color:#1d6843;font:600 .65rem Arial,sans-serif;cursor:pointer;white-space:nowrap}.bill-pdf-download:hover:not(:disabled){background:#edf6ef}.bill-pdf-download:disabled{opacity:.55;cursor:wait}@media(max-width:620px){.bill-breakdown-actions{align-items:flex-end;flex-direction:column-reverse;gap:.4rem}.bill-pdf-download{max-width:100%}}.entry-controls,.bill-management-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.entry-edit-button,.entry-delete-button,.bill-edit-button{padding:.15rem 0 0;border:0;background:transparent;color:#286a50;font:600 .65rem Arial,sans-serif;cursor:pointer}.entry-delete-button{color:#aa4d48}.entry-edit-button:hover,.entry-delete-button:hover:not(:disabled),.bill-edit-button:hover{text-decoration:underline}.entry-delete-button:disabled{opacity:.55;cursor:wait}.bill-management-actions{justify-content:flex-end}@media(max-width:620px){.bill-management-actions{justify-content:flex-start}.entry-controls{gap:.35rem .6rem}}html,body{width:100%;overflow-x:hidden}button,input,textarea,select{max-width:100%}@media(max-width:620px){app-dashboard .workspace.workspace{overflow:hidden}app-dashboard .sidebar.sidebar,app-dashboard .workspace.sidebar-collapsed .sidebar.sidebar{display:none!important}app-dashboard .mobile-sidebar-backdrop{display:none!important}app-dashboard .sidebar-toggle.sidebar-toggle{display:none!important}app-dashboard .mobile-bottom-nav{position:fixed;z-index:25;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;padding:.35rem .55rem calc(.35rem + env(safe-area-inset-bottom));border-top:1px solid #e4e9e4;background:#fff;box-shadow:0 -6px 20px #1e302a0d}app-dashboard .mobile-bottom-nav button{min-width:0;min-height:3.35rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.18rem;padding:.25rem .2rem;border:0;border-radius:.55rem;background:transparent;color:#78847d;font:600 .64rem inherit}app-dashboard .mobile-bottom-nav button>span{font-size:1.05rem;line-height:1}app-dashboard .mobile-bottom-nav button.active{background:#eef4ef;color:#245b46}app-dashboard .mobile-bottom-nav button.new-customer-nav.active{background:#e9eaff;color:#4c4bb0}app-dashboard .mobile-bottom-nav button>small{overflow:hidden;max-width:100%;font-size:.62rem;text-overflow:ellipsis;white-space:nowrap}app-dashboard .main.main{padding-left:0}app-dashboard .topbar.topbar{justify-content:flex-end}app-dashboard .topbar-actions.topbar-actions{margin-left:auto}app-dashboard .topbar.topbar{justify-content:space-between;padding:calc(.5rem + env(safe-area-inset-top)) .75rem .5rem}app-dashboard .sidebar-toggle.sidebar-toggle{position:static;transform:none;width:2.6rem;height:2.6rem;box-shadow:none}app-dashboard .topbar-actions.topbar-actions{gap:.45rem}app-dashboard .topbar-profile .profile-copy{display:none}app-dashboard .topbar-profile.topbar-profile{padding:.2rem;border:0;background:transparent}app-dashboard .topbar-actions .logout{min-height:2.5rem;padding:.45rem .65rem;font-size:.68rem}app-dashboard .page.page{padding:1rem .8rem calc(5rem + env(safe-area-inset-bottom))}app-dashboard .customer-directory-page.customer-directory-page{overflow:auto}app-dashboard .directory.directory,app-dashboard .directory-card.directory-card{overflow:hidden}app-dashboard .customer-list.customer-list{overflow-y:auto;overscroll-behavior:contain}app-dashboard .customer-pagination.customer-pagination{position:static;display:grid;grid-template-columns:1fr;justify-items:stretch;gap:.45rem;background:#fff}app-dashboard .customer-pagination.customer-pagination>span{text-align:center}app-dashboard .customer-pagination.customer-pagination>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.35rem}app-dashboard .customer-pagination.customer-pagination button{min-height:2.65rem}app-dashboard .customer-pagination.customer-pagination strong{text-align:center;white-space:normal}app-dashboard .modal-backdrop{align-items:end;padding:0}app-dashboard .transaction-modal{width:100%;max-height:94dvh;padding:1rem .9rem calc(1rem + env(safe-area-inset-bottom));border-radius:1rem 1rem 0 0}app-dashboard .modal-actions{position:sticky;bottom:calc(-1rem - env(safe-area-inset-bottom));padding:.75rem 0 calc(.25rem + env(safe-area-inset-bottom));background:#fff}app-dashboard .field input,app-dashboard .field textarea,app-dashboard .field select,app-daily-summary input,app-daily-summary select{font-size:16px}app-dashboard .form-intro{padding-bottom:.85rem}app-dashboard .form-intro .required-note{position:static;display:inline-block;margin-top:.7rem}app-dashboard .form-actions{display:grid;grid-template-columns:1fr 1fr}app-dashboard .form-actions button{min-height:2.8rem}}@media(max-width:380px){app-dashboard .page.page{padding-right:.55rem;padding-left:.55rem}app-dashboard .topbar-profile .avatar{display:none}app-dashboard .customer-pagination.customer-pagination{gap:.3rem;padding:.45rem .35rem}app-dashboard .customer-pagination.customer-pagination strong{font-size:.53rem}app-dashboard .customer-pagination.customer-pagination>div{grid-template-columns:minmax(4.25rem,auto) minmax(0,1fr) minmax(4.25rem,auto);gap:.2rem}app-dashboard .customer-pagination.customer-pagination button{padding:0 .35rem;font-size:.58rem}app-dashboard .customer-option.customer-option{grid-template-columns:2rem minmax(0,1fr)}app-dashboard .customer-option .id-chip{grid-column:2;justify-self:start}}@media(max-width:620px){app-dashboard .customer-book-heading.customer-book-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(8.5rem,1.1fr);align-items:center;gap:.45rem;margin-bottom:.65rem}app-dashboard .customer-book-heading h1{font-size:1.55rem;line-height:1.05}app-dashboard .customer-totals.customer-totals{width:auto;grid-template-columns:1fr;gap:.22rem}app-dashboard .customer-total.customer-total{display:flex;align-items:center;justify-content:space-between;gap:.3rem;min-width:0;padding:.3rem .38rem;border-radius:.42rem}app-dashboard .customer-total span{font-size:.47rem;line-height:1.1;white-space:nowrap}app-dashboard .customer-total strong{font-size:.62rem;line-height:1.1}}
