.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#edf4fd,#fff)}
.auth-card{width:min(430px,100%);background:#fff;border:1px solid #e0e8f4;border-radius:18px;padding:36px;box-shadow:0 14px 40px #18385e12}
.auth-card h1{font-size:25px;margin:12px 0}.auth-card>p{color:#75859a;line-height:1.8}.auth-card form>.btn{width:100%;margin-top:12px}
.server-status{padding:12px 24px;background:#eef5ff;border-bottom:1px solid #d9e6f8;color:#35577f;font-size:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.server-status .actions{margin-left:auto}.server-status.pending{background:#fff5df;color:#8b6417}.btn:disabled{opacity:.45;cursor:not-allowed}.top-right{flex-wrap:wrap}
@media(max-width:700px){.auth-card{padding:25px}.server-status{padding:12px 16px}.server-status .actions{margin-left:0}.top-right .account-name{display:none}}
/* PDA: keep the receiving flow readable on narrow scanner screens. */
@media(max-width:700px){
  body{font-size:15px}
  .content{padding:16px 12px 24px;min-width:0}
  .page-heading{flex-wrap:wrap}
  .page-heading h1{font-size:22px}
  .page-heading p{font-size:13px;max-width:none}
  .page-heading>.actions{width:100%;flex-direction:row;flex-wrap:wrap}
  .page-heading .btn,.task-entry-bar .btn{font-size:14px;min-height:44px}
  .task-context-fields{grid-template-columns:minmax(0,1fr)}
  .task-context-fields label,.form-field label{font-size:14px}
  .form-field input,.form-field select{font-size:16px;min-height:46px}
  .task-overview{grid-template-columns:repeat(3,minmax(0,1fr))}
  .task-overview>div{padding:0 8px}
  .task-overview span{font-size:12px}
  .task-overview strong{font-size:21px}
  .pda-layout,.pda-main,.pda-step{min-width:0}
  .pda-step-title{font-size:16px;flex-wrap:wrap}
  .pda-step-title>i{width:28px;height:28px;font-size:13px}
  .pda-step-title .badge{font-size:11px}
  .pda-help,.candidate-hint,.pda-quantity-note{font-size:13px}
  .pda-main input,.pda-main select{font-size:16px;min-height:48px}
  .pda-main .scan-input-row{flex-wrap:wrap}
  .pda-main .scan-input-row input{flex:1 1 100%;width:100%}
  .pda-main .scan-input-row .btn{flex:1;font-size:14px;min-height:44px}
  .batch-scan-row{display:block}
  .batch-scan-row .btn{width:100%;margin-top:10px;font-size:14px;min-height:44px}
  .batch-candidate{min-height:88px}
  .candidate-main>b,.candidate-main>span{font-size:14px}
  .candidate-main>small,.candidate-qty small{font-size:11px}
  .candidate-qty b{font-size:20px}
  .pda-quantity-line .form-field{flex-basis:auto}
  .pda-quantity-note small{font-size:12px}
  .pda-main .scan-submit{font-size:16px;min-height:50px;white-space:normal}
  .task-entry-bar{font-size:13px}
  .task-entry-bar .actions{width:100%;margin:0;flex-wrap:wrap}
  .server-status{font-size:13px}
  .server-status .actions{width:100%;max-width:100%;flex-wrap:wrap;gap:6px}
  .server-status .btn{font-size:13px;min-height:40px}
  .task-entry-bar .actions .btn{flex:1}
  .pda-aside-body,.pda-aside dd{font-size:13px}
  .modal-footer{flex-wrap:wrap}
  .modal-footer .btn{min-height:44px;font-size:14px}
  .table-wrap{max-width:100%}
}
/* Keep the active receiving work above reports and advanced filters on PDA. */
.pda-mobile-tools{display:none}
@media(max-width:700px){
  .task-receiving-view .page-heading{margin-bottom:12px}
  .pda-mobile-tools{display:flex;align-items:end;gap:8px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:12px}
  .pda-mobile-tools label{flex:1;min-width:0;color:#536179;font-size:13px}
  .pda-mobile-tools select{display:block;width:100%;min-width:0;min-height:44px;margin-top:7px;border:1px solid #dfe6ef;border-radius:6px;background:#fff;color:#34445b;font-size:16px;padding:8px}
  .pda-mobile-tools .btn{flex:0 0 100px;min-height:44px;white-space:normal;font-size:13px}
  .task-receiving-view .task-overview,.task-receiving-view .task-context,.task-receiving-view .pda-aside,.task-receiving-view .task-table-panel{display:none}
  .task-receiving-view.extras-open .task-overview{display:grid}
  .task-receiving-view.extras-open .task-context,.task-receiving-view.extras-open .pda-aside,.task-receiving-view.extras-open .task-table-panel{display:block}
  .task-receiving-view .pda-layout{margin-bottom:12px}
}
@media(max-width:700px){
  .stage-pallet #pda-batch-step,.stage-pallet #pda-store-step,
  .stage-batch #pda-store-step,.stage-location #pda-batch-step,
  .stage-done #pda-batch-step,.stage-done #pda-store-step{display:none}
}
/* Healthy connections use one compact row on handheld devices. Warnings stay expanded. */
.mobile-online,.account-toggle{display:none}
@media(max-width:700px){
  .server-status.healthy{position:relative;z-index:20;min-height:48px;padding:4px 12px;gap:8px;flex-wrap:nowrap}
  .server-status.healthy .status-note{display:none}
  .server-status.healthy .mobile-online{display:inline-flex;align-items:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#246844;font-weight:600}
  .server-status.healthy .mobile-online::before{content:'';display:inline-block;flex:none;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#2ba66a}
  .server-status.healthy .account-toggle{display:inline-flex;flex:none;margin-left:auto;min-height:40px;font-size:13px}
  .server-status.healthy .actions{display:none}
  .server-status.healthy.menu-open .actions{display:flex;position:absolute;right:12px;top:calc(100% - 2px);z-index:2;width:170px;max-width:calc(100vw - 24px);margin:0;padding:8px;background:#fff;border:1px solid #d9e6f8;border-radius:9px;box-shadow:0 10px 24px #18385e22;flex-direction:column}
  .server-status.healthy.menu-open .actions .btn{width:100%}
}
