/* The simple phone layout is used on every screen, with the same local ledger. */
:root{font-size:16px;color:#213b31;background:#f4f6f2}
body{max-width:640px;margin:0 auto;background:#f4f6f2;min-height:100dvh}
.sidebar,.breadcrumb,.top-avatar,.notification,.footer,.eyebrow,.desktop-table{display:none!important}
.shell{margin-left:0}.topbar{height:76px;padding:18px 20px;background:transparent;border:0}
.mobile-brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:700}
.mobile-brand .brand-mark{height:36px;width:36px;border-radius:11px;font-size:23px}
.top-actions{gap:8px}.demo-tag{font-size:11px;padding:6px 8px}
main{padding:13px 20px calc(104px + env(safe-area-inset-bottom));min-height:calc(100dvh - 76px)}
.page-heading{align-items:center;margin-bottom:22px;gap:12px}.page-heading h1{font-size:27px;letter-spacing:0}
.page-heading p{font-size:13px;line-height:1.6;margin-top:7px;color:#7e8a7b}
.heading-actions .button,.button{font-size:14px;min-height:44px;padding:10px 15px;border-radius:10px}
.button svg{width:18px;height:18px}.button.primary{background:#174b3e}
.simple-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:23px 20px;background:#174b3e;border-radius:16px;margin-bottom:22px;color:#fff}
.simple-summary>div{min-width:0}.simple-summary>div+div{border-left:1px solid #ffffff26;padding-left:18px}
.simple-summary span{font-size:12px;color:#c5d5c8;display:block;margin-bottom:13px}
.simple-summary strong{font-variant-numeric:tabular-nums;display:block;font-size:26px;font-weight:600;letter-spacing:-.5px;overflow-wrap:anywhere}
.table-panel{border-radius:15px;box-shadow:none}.table-toolbar{padding:13px 15px;flex-direction:column;align-items:stretch;gap:14px}
.tabs{display:flex;flex-wrap:nowrap;gap:4px;width:100%}.tab{flex:1;min-width:0;font-size:13px;min-height:44px;padding:10px 5px;color:#7c8972}
.tab span{font-size:11px;margin-left:5px}.tab.active{border-radius:9px;background:#edf3e7;color:#315c36}
.search{max-width:none;width:100%;min-width:0}.search input{font-size:16px;min-height:44px;padding:12px 10px 12px 34px;border-radius:9px}
.search svg{left:11px;top:14px;width:16px;height:16px}
.mobile-bills{display:block}.list-card{padding:20px 17px}.list-top{align-items:flex-start;gap:12px}
.list-top .cell-main{min-width:0;overflow-wrap:anywhere;font-size:16px;line-height:1.5}
.cell-sub{font-size:12px;line-height:1.6;margin-top:5px;overflow-wrap:anywhere;color:#89937f}
.list-top .amount-text{font-size:18px;flex-shrink:0;line-height:1.5}.simple-bill-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:17px 0}
.simple-bill-meta>span:last-child{font-size:13px;color:#7a8971;font-variant-numeric:tabular-nums}
.badge{font-size:11px;padding:6px 8px}.list-bottom{font-size:12px;color:#89947e;gap:10px}
.list-bottom>span:first-child{min-width:0;overflow-wrap:anywhere}.card-action{gap:8px;flex-shrink:0}
.card-action .button{min-width:64px;font-size:13px;padding:8px 12px;min-height:44px}
.table-footer{font-size:11px;padding:15px;gap:12px;flex-wrap:wrap;line-height:1.6}.table-footer span{white-space:normal}
.empty{padding:46px 16px}.empty h3{font-size:17px}.empty p{font-size:13px;line-height:1.8}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:640px;z-index:15;background:#fffffff5;border-top:1px solid #e6ebdf;display:grid;grid-template-columns:repeat(3,1fr);padding:10px 10px calc(10px + env(safe-area-inset-bottom));backdrop-filter:blur(18px)}
.bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:48px;font-size:12px;color:#8b9681;position:relative}
.bottom-nav a.active{color:#174b3e;font-weight:650}.bottom-nav a.active:before{content:none}.bottom-nav svg{width:23px;height:23px}
dialog{width:calc(100% - 24px);max-width:540px;max-height:90dvh;padding:22px 20px;border-radius:19px;margin:auto;inset:0}
.modal-header{margin-bottom:20px}.modal-header h2{font-size:22px}.icon-button{width:44px;height:44px}
.form-grid{grid-template-columns:1fr;gap:18px}.field.wide{grid-column:auto}.field>span{font-size:14px;margin-bottom:9px;color:#53694b}
.field input,.field select,.field textarea{font-size:16px;min-height:49px;padding:12px;border-radius:10px}
.field small{font-size:12px;line-height:1.7}.field textarea{min-height:90px}.form-more{border-top:1px solid #e8ece2;margin-top:22px;padding-top:4px}
.form-more>summary,.simple-settings>summary{font-size:14px;color:#5c7652;cursor:pointer;min-height:48px;padding:14px 0}
.form-more[open]>summary{margin-bottom:8px}.form-actions{gap:10px;margin-top:23px}
dialog .form-actions{position:sticky;bottom:-22px;background:#fff;padding:15px 0 22px;margin-bottom:-20px;z-index:1}
.form-actions .button{flex:1;font-size:15px;min-height:48px}.form-actions .danger{flex:0;padding-left:12px;padding-right:12px}
.form-error{font-size:13px;line-height:1.8}.detail-total{padding:20px}.detail-total small{font-size:13px}
.detail-total strong{font-size:28px}.detail-grid{gap:20px 14px}.detail-grid dt{font-size:12px}.detail-grid dd{font-size:14px;line-height:1.7}
.panel-subtitle,.payment-item small{font-size:12px}.payment-item{font-size:14px;line-height:1.8}.notes-text{font-size:14px;line-height:1.8}
.connection-grid{grid-template-columns:1fr;gap:13px}.connection-card{padding:18px}.connection-head{margin-bottom:16px;gap:12px;align-items:center}
.connection-head>div{min-width:0}.connection-head h3{font-size:17px}.connection-head small{font-size:13px;overflow-wrap:anywhere;line-height:1.6}
.carrier-logo{width:43px;height:43px;flex-shrink:0}.connection-actions{margin-top:0;gap:10px}
.connection-actions .button{font-size:14px;flex:1}.connection-actions .button:first-child{flex:0;min-width:80px}
.simple-settings{border:1px solid #e5eadf;background:white;border-radius:13px;padding:3px 17px 4px;margin-top:15px}
.simple-settings[open]{padding-bottom:18px}.simple-settings p{font-size:13px;line-height:1.8;color:#819175;margin:0 0 14px}
.settings-buttons{gap:8px}.settings-buttons .button{font-size:13px;flex:1;min-width:80px}.check-field{font-size:13px}
.shipment-customer{display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;margin:17px 0;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.shipment-customer span{color:#8a967f}.shipment-buttons{display:flex;gap:8px}.shipment-buttons .button{flex:1;font-size:13px;padding:9px 8px}
.data-warning{font-size:13px}.toast{bottom:calc(88px + env(safe-area-inset-bottom));font-size:14px;max-width:calc(100% - 32px);width:max-content}
.field .channel-picker{display:flex;gap:8px;align-items:center;margin:0}.channel-picker select{flex:1;min-width:0}.channel-picker .button{flex-shrink:0;min-height:49px;font-size:13px;padding:10px}
.record-tags{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:12px;color:#748569;line-height:1.8;margin:12px 0;overflow-wrap:anywhere}.record-tags span{min-width:0;max-width:100%}
.channel-row{display:flex;align-items:center;gap:7px;margin-bottom:12px}.channel-row input{width:100%;min-width:0;min-height:49px;border:1px solid #dfe6d8;border-radius:10px;padding:12px;font-size:16px;color:#3a5133;background:#fcfdf9}.channel-row .icon-button{flex-shrink:0;color:#b57566}.channel-help{font-size:12px;color:#89957f;line-height:1.8;margin:15px 0}.simple-settings p{overflow-wrap:anywhere}
@media(max-width:540px){dialog{width:100%;max-width:100%;margin:auto 0 0;inset:auto 0 0;border-radius:19px 19px 0 0;padding-bottom:calc(22px + env(safe-area-inset-bottom))}}
@media(max-width:360px){main{padding-left:15px;padding-right:15px}.topbar{padding-left:15px;padding-right:15px}.page-heading h1{font-size:24px}.page-heading p{font-size:12px}.heading-actions .button{font-size:13px;padding:10px 12px}.simple-summary{padding:21px 16px}.simple-summary strong{font-size:23px}.simple-summary>div+div{padding-left:12px}.list-top .amount-text{font-size:16px}.list-top .cell-main{font-size:15px}.tab{font-size:12px}.tab span{margin-left:3px}.simple-bill-meta>span:last-child{font-size:12px}}
