/* Scoped mobile-only administrator app. Desktop stays untouched. */
#driveosAdminMobile,.dam-bottom-nav{display:none}
@media(max-width:767px){
body.driveos-admin-mobile{background:#080a09;color:#f6f7f5}
body.driveos-admin-mobile #sidebar{display:none!important}
body.driveos-admin-mobile #main{padding-bottom:calc(104px + env(safe-area-inset-bottom))!important}
body.driveos-admin-mobile .dam-bottom-nav{display:grid;position:fixed;z-index:900;bottom:0;left:0;right:0;grid-template-columns:repeat(5,minmax(0,1fr));background:#101412;border-top:1px solid #2c342e;padding:9px 4px calc(9px + env(safe-area-inset-bottom));box-shadow:0 -12px 30px #0007}
.dam-bottom-nav button{background:none;border:0;color:#a1aaa2;font-size:11px;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.dam-bottom-nav button span{font-size:22px;line-height:1}
.dam-bottom-nav button[aria-current=page]{color:#b8f43a;font-weight:700}
body.driveos-admin-mobile #page-accounts[data-accounts-view=receivables] #driveosAdminMobile{display:block}
body.driveos-admin-mobile #page-accounts[data-accounts-view=receivables] .accounts-split-grid{display:none!important}
body.driveos-admin-mobile #page-accounts[data-accounts-view=receivables]>.page-header{display:none!important}
#driveosAdminMobile{padding:8px 0 22px}
.dam-header h2{margin:0;font-size:25px}.dam-header p{color:#a4ada5;font-size:13px;margin:5px 0 18px}
.dam-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:18px}
.dam-summary>div{background:#151a16;border:1px solid #303b30;border-radius:15px;padding:12px 8px;min-width:0}
.dam-summary small{display:block;font-size:11px;color:#9eaa9f;margin-bottom:7px}
.dam-summary strong{font-size:clamp(13px,3.8vw,19px);overflow-wrap:anywhere;color:#b8f43a}
.dam-search{box-sizing:border-box;width:100%;height:50px;background:#151a16;border:1px solid #333e35;border-radius:14px;color:white;padding:0 15px;font-size:15px}
.dam-filters{display:flex;gap:8px;overflow-x:auto;padding:15px 0 18px}
.dam-filters button{white-space:nowrap;border:1px solid #354035;border-radius:22px;padding:10px 13px;background:#151a16;color:#c4cfc5}
.dam-filters button[aria-pressed=true]{background:#b8f43a;color:#101810;border-color:#b8f43a;font-weight:700}
.dam-list{display:grid;gap:12px}
.dam-card{background:#141815;border:1px solid #303730;border-radius:18px;padding:16px}
.dam-card-top,.dam-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dam-card-top strong{font-size:19px}.dam-card p{color:#aab5ab;font-size:13px;margin:12px 0 18px}
.dam-card-top>strong{color:#d7ff8a!important;font-weight:800}
.dam-card .dam-route{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin:12px 0 18px}
.dam-card .dam-route span{display:block;width:100%;overflow-wrap:anywhere;line-height:1.45}
.dam-card .dam-route strong{color:#dce5db;font-weight:700}
.dam-card-bottom span{font-size:12px;color:#aab5ab}.dam-card-bottom strong{font-size:19px;color:#50d9a4}
.dam-status{background:#263026;border-radius:30px;padding:6px 10px;color:#b8f43a;font-size:12px}
.dam-status.overdue{color:#ff8585;background:#342020}.dam-status.paid{color:#50d9a4}
.dam-edit{width:100%;margin-top:14px;border:1px solid #566552;background:#202820;border-radius:12px;color:#f0f5ee;font-size:14px;font-weight:600;padding:12px}
.dam-edit:focus-visible{outline:2px solid #b8f43a;outline-offset:2px}
.dam-receive{width:100%;margin-top:16px;border:1px solid #3d5633;background:#20301b;border-radius:12px;color:#c4ff86;font-size:15px;font-weight:700;padding:13px}
.dam-settled{display:block;color:#50d9a4;margin-top:14px;font-size:12px}
/* The admin mobile shell is dark, but the canonical edit dialog is light.
   Preserve the existing field values by giving native inputs visible text. */
body.driveos-admin-mobile #modal .field input:not([type=checkbox]):not([type=radio]):not([type=file]),
body.driveos-admin-mobile #modal .field select,
body.driveos-admin-mobile #modal .field textarea{color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;background:#fff!important;caret-color:#0f172a!important;color-scheme:light}
body.driveos-admin-mobile #modal .field input::placeholder,
body.driveos-admin-mobile #modal .field textarea::placeholder{color:#64748b!important;-webkit-text-fill-color:#64748b!important}
body.driveos-admin-mobile #modal .field input:disabled,
body.driveos-admin-mobile #modal .field input[readonly],
body.driveos-admin-mobile #modal .field select:disabled{background:#f1f5f9!important;color:#475569!important;-webkit-text-fill-color:#475569!important;opacity:1}
body.driveos-admin-mobile #modal .field select option{color:#0f172a;background:#fff}
.dam-empty{padding:30px;text-align:center;color:#aab5ab}
}

/* Receivables route rows and readable load identifier */
.dam-card .dam-route{display:block;margin:12px 0 18px;color:#aab5ab;font-size:13px}
.dam-card .dam-route-line{display:block;line-height:1.5;overflow-wrap:anywhere;margin:0 0 7px}
.dam-card .dam-route-line strong{color:#e5ede3;font-weight:700}
.dam-card .dam-card-top>strong{color:#d7ff8a!important;font-weight:800}

/* Shared mobile navigation behavior: administrator and driver shells. */
@media(max-width:767px){
 body.driveos-admin-mobile .dam-bottom-nav{
  box-sizing:border-box;background:#101412;border:1px solid #2c342e;border-bottom:0;
  border-radius:18px 18px 0 0;padding:8px 4px calc(8px + env(safe-area-inset-bottom));
 }
 body.driveos-admin-mobile .dam-bottom-nav button{
  min-width:0;min-height:56px;font-size:11px;touch-action:manipulation;
 }
 body.driveos-admin-mobile .dam-bottom-nav button:focus-visible{
  outline:2px solid #b8f43a;outline-offset:-3px;border-radius:12px;
 }
 body.driveos-admin-mobile .dam-bottom-nav button[aria-current=page]{color:#b8f43a}
}
