/* 绿色随身工作台，2026-09-30。
 * 借鉴工具型钱包 App 的信息层级：顶部快捷入口 → 收入卡 → 今日任务。
 * 此文件只在 /mobile/ 最后加载，既不改变电脑端，也不参与金额计算。
 */
.cs-mobile {
  --green:#009b68; --deep:#007c53; --bg:#f5f6f8; --ink:#192b27;
  --muted:#7e8985; --line:#edf0ee; --mint:#e9f8f1;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
  color:var(--ink); background:var(--bg); -webkit-font-smoothing:antialiased;
}
.cs-mobile .app {max-width:620px; margin:0 auto; padding-bottom:calc(88px + env(safe-area-inset-bottom)); box-shadow:none}
.cs-mobile main {max-width:620px}
.cs-mobile .page {padding:12px 16px 26px}
.cs-mobile .app>header {min-height:74px; padding:calc(10px + env(safe-area-inset-top)) 18px 10px; background:#fff; gap:10px; border:0; box-shadow:none}
.cs-mobile .app>header>div:first-child {flex:1;min-width:0}
.cs-mobile .app>header #greeting {font-size:12px;color:#75817c; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}
.cs-mobile .app>header #page-title {font-size:23px;line-height:1.35;letter-spacing:0;font-weight:750;margin-top:3px}
.cs-mobile .app>header .live {font-size:10px;background:#f0f7f3;color:#6a8578;padding:5px 8px;white-space:nowrap}
.cs-mobile .app>header #oa-notification-trigger {flex:none;min-width:44px;font-size:10px;padding:7px;background:#f5f8f6;border:0;border-radius:12px;color:#507363;box-shadow:none}
.cs-mobile .app>header #oa-notification-trigger>span {display:block;line-height:19px;font-size:18px;color:inherit}
.cs-mobile .app[data-screen=home]>header {background:#009b68;color:white}
.cs-mobile .app[data-screen=home]>header #greeting {color:#d6f2e6}
.cs-mobile .app[data-screen=home]>header .live {display:none}
.cs-mobile .app[data-screen=home]>header #oa-notification-trigger {background:#ffffff14;color:white}

/* 快捷区仅保留一套真实业务按钮，原岗位权限继续控制其是否可见。 */
.mg-launchpad {margin:-12px -16px 0;padding:4px 16px 28px;background:linear-gradient(180deg,#009b68 0%,#05a66f 100%);border-radius:0 0 24px 24px}
.cs-mobile .mg-home-search {display:flex;align-items:center;gap:8px;background:#fff;border-radius:12px;height:44px;padding:0 5px 0 13px;box-shadow:0 3px 12px #006a4312}
.mg-home-search>span {color:#82968b;display:flex}
.mg-home-search svg {width:18px;height:18px}
.cs-mobile .mg-home-search input {min-width:0;flex:1;border:0!important;box-shadow:none!important;background:transparent!important;padding:0;margin:0;border-radius:0;min-height:40px!important;font-size:14px!important;color:#253b30}
.cs-mobile .mg-home-search input::placeholder {color:#83938c}
.cs-mobile .mg-home-search button {border:0;background:#eaf7f0;color:#007f50;border-radius:8px;padding:0 12px;min-height:34px;font-size:13px;font-weight:600}
.cs-mobile .mg-launchpad .quick-grid {display:flex;justify-content:space-around;gap:4px;margin:12px 0 0}
.cs-mobile .mg-launchpad .quick-grid button {flex:1;min-width:0;background:none;border:0;box-shadow:none;text-align:center;border-radius:12px;padding:5px 0;min-height:68px;color:#fff}
.cs-mobile .mg-launchpad .quick-grid button:nth-child(n) span {display:grid;place-items:center;float:none;margin:0 auto 7px;width:34px;height:34px;border-radius:0;background:none;color:#fff}
.cs-mobile .mg-launchpad .quick-grid svg {width:30px;height:30px;stroke-width:1.8}
.cs-mobile .mg-launchpad .quick-grid b {font-size:13px;font-weight:650;letter-spacing:.2px}
.cs-mobile .mg-launchpad .quick-grid small {display:none}
.cs-mobile .mg-launchpad .quick-grid button:active {background:#ffffff1c;transform:scale(.97)}

/* 白色收入卡与绿色快捷区轻微叠放；数字为原接口按本人计算的真实提成。 */
#mobile-workbench {position:relative;margin-top:-18px}
.cs-mobile .mw-income {background:#fff;border:1px solid #eef3ef;border-radius:18px;color:#1a3326;padding:12px 18px 11px;box-shadow:0 4px 18px #153c2610;overflow:visible}
.mw-income:after {display:none}
.mw-income-top {gap:8px}
.mw-income-top>div {display:flex;align-items:center;gap:3px;min-width:0;font-size:13px;color:#53685d}
.cs-mobile #mg-income-visibility {display:grid;place-items:center;width:36px;min-height:32px;border:0;background:none;color:#8a9c91;padding:7px;border-radius:8px}
#mg-income-visibility svg {width:17px;height:17px}
#mg-income-visibility[aria-pressed=true] {background:#f0f6f2;color:#007b53}
.mw-income-top a {font-size:12px;color:#72867a;min-height:32px;gap:5px}
.mw-income-top a span {font-size:20px}
.mw-income>strong {font-size:33px;line-height:1.15;font-weight:750;letter-spacing:-1px;color:#163a29;margin:1px 0 8px}
.mw-income-bottom {font-size:11px;color:#829087;border-top:1px solid #f0f3f1;padding-top:8px}
.mw-income-bottom b {color:#008854;font-size:16px;letter-spacing:-.3px;margin-left:6px;font-weight:650}
.mw-income>small {font-size:10px;color:#96a198;margin-top:6px}
.mw-stats {margin:10px 0 19px;border:0;border-radius:16px;padding:10px 0;background:#fff}
.mw-stats span {font-size:11px;color:#859087}
.mw-stats b {font-size:21px;color:#273d31;margin-top:2px;font-weight:700}
.mw-stats small {font-size:10px;color:#92a195}
.mw-stats>div {border-color:#f0f3f0}

/* 工作卡片：操作集中于卡片底部，进度条展示原有真实入库数量。 */
.cs-mobile h2 {font-size:18px;font-weight:750;color:#20372b;letter-spacing:0}
.mw-section-heading {margin:0 2px 13px;scroll-margin-top:100px}
.mw-section-heading p {font-size:11px;margin-top:5px;color:#909b94}
.cs-mobile #mw-sound {min-height:36px;padding:6px 9px;background:transparent;border:1px solid #dce7df;border-radius:20px;color:#5c7f69;font-size:10px}
.mw-mode {background:#e9eeeb;padding:4px;border-radius:12px;gap:4px}
.cs-mobile .mw-mode button {min-height:40px;font-size:13px;font-weight:650;border-radius:9px;color:#829187}
.mw-mode button.active {color:#008b5b;box-shadow:0 2px 5px #15351e08;background:white}
.mw-mode small {font-size:10px;border-radius:5px;background:#e8f6ef;color:#02865c}
.mw-mode button:last-child {flex-basis:34px;font-size:22px}
.mw-tabs {margin:7px 2px 10px;gap:21px}
.mw-tabs button {font-size:12px;color:#8b9990;padding:8px 0}
.mw-tabs button.active {color:#008759;border-bottom:2px solid #009b68}
.mw-tabs>span {font-size:10px;color:#9aa79e}
#mw-task-list {gap:12px}
.mw-task {border:0;border-radius:16px;padding:17px;background:#fff;box-shadow:0 3px 10px #1b3c2403}
.mw-task-top {font-size:11px;color:#9ca69e}
.mw-task-tag {background:#e8f7ef;color:#078957;border-radius:5px;padding:3px 7px;font-size:10px;font-weight:650}
.mw-task h3 {font-size:17px;line-height:1.5;margin:12px 0 8px;color:#20342a;letter-spacing:0}
.mw-specs {gap:6px}
.mw-specs span {border:0;background:#f3f5f4;color:#7a8a80;font-size:11px;border-radius:5px;padding:4px 7px}
.mw-requirements {color:#849086;font-size:12px;margin:10px 0;line-height:1.75}
.mw-progress-label {margin:14px 0 8px;color:#8a988e}
.mw-progress-label b {color:#008656;font-size:15px}
.mw-progress-label strong {color:#028357}
.mw-task progress,.mw-task progress::-webkit-progress-bar {background:#edf5ef}
.mw-task progress::-webkit-progress-value {background:#08b67a}
.mw-task progress::-moz-progress-bar {background:#08b67a}
.cs-mobile .mw-complete {background:#009b68;color:#fff;border-radius:10px;font-size:13px;margin-top:15px;min-height:46px;justify-content:center;box-shadow:0 4px 8px #04966212}
.mw-check-outline {border-color:#ffffff80;border-radius:6px;width:21px;height:21px}
.mw-check-outline svg {opacity:1;width:14px;height:14px}
.mw-complete>span:last-child {margin-left:auto;font-size:20px;color:#d1f2e1}
.mw-task-history {border-color:#eff3ef}
.mw-task-history summary {color:#548565}
.mw-task.is-complete .mw-task-tag {background:#edf3ef;color:#809485}
.cs-mobile .mg-all-tasks {display:flex;justify-content:center;align-items:center;gap:8px;border:0;border-radius:12px;min-height:44px;background:white;color:#648071;font-size:12px}
.mg-all-tasks span {font-size:18px}
.mw-empty {border:0;background:#fff;padding:26px 18px;border-radius:16px}
.mw-empty>span {background:#eef8f1;color:#5eac80;width:45px;height:45px;border-radius:14px}
.mw-empty b {color:#587465;font-weight:600;font-size:14px}
.mw-empty p {color:#9aa69e;font-size:11px}
.mw-loading {margin:0;min-height:174px;display:grid;place-items:center;border-radius:18px}
.mg-recent-heading {margin-top:25px}
.cs-mobile .section-head button {color:#7a9685;min-height:44px;font-size:12px}

/* 库存与单据：串号可换行、点击目标足够大，不用缩小整页。 */
.cs-mobile .search-row {gap:8px}
.cs-mobile .search-row input {background:#fff;min-width:0;box-shadow:none;border:1px solid #e6eee8;border-radius:12px;min-height:46px}
.cs-mobile .search-row button {background:#009b68;color:#fff;min-width:58px;padding:0 15px;border-radius:12px;font-size:13px}
.cs-mobile .chips {padding:13px 0 8px;gap:7px}
.cs-mobile .chips button {border:0;background:#fff;border-radius:8px;font-size:12px;min-height:38px;color:#839086;padding:7px 12px}
.cs-mobile .chips button.active {background:#dff4e9;color:#008653;box-shadow:inset 0 0 0 1px #c1e7d4}
.mg-result-bar {display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;color:#91a094;font-size:11px}
.cs-mobile #inventory-clear {border:0;background:none;color:#168b61;min-height:36px;font-size:11px;padding:4px 0 4px 12px}
#inventory-list {margin-top:3px}
#inventory-list[aria-busy=true] {opacity:.5;pointer-events:none}
.cs-mobile :is(.device-card,.order-card) {border:1px solid #eef1ee;border-radius:16px;box-shadow:none;padding:16px}
.cs-mobile .card-top h3 {color:#223e2d;font-size:15px;font-weight:700}
.cs-mobile .code {font-size:12px;color:#7f9185;overflow-wrap:anywhere;letter-spacing:.2px}
.cs-mobile .tag {font-size:10px;max-width:100%;color:#088757;background:#ebf8f0;border-radius:5px;padding:4px 7px}
.mw-device-cost {font-size:11px;color:#97a59b;line-height:1.8}
.cs-mobile .card-bottom {border-color:#f0f3f0;margin-top:10px;padding-top:12px}
.cs-mobile .card-actions :is(button,a) {color:#418762;border:0;background:#f0f7f2;border-radius:8px;min-height:44px;font-size:12px;padding:10px 12px}
.cs-mobile .card-actions .mw-sell {background:#009b68;color:#fff}
.mw-more summary {color:#9aa69e;font-size:11px;padding:10px 0;min-height:38px}
.mw-shipping-intro {background:#e9f5ee;color:#377052;border-radius:14px}
.mw-shipping-intro p {color:#829c8a;font-size:11px;line-height:1.8}
.cs-mobile .segment {background:#e9eeeb;border-radius:12px}
.cs-mobile .segment button {font-size:13px;min-height:40px}
.cs-mobile .segment button.active {color:#008654;box-shadow:0 2px 5px #28452f06}
/* 共用的 OA 面板在手机上也收进白色卡片，只改外观，不删审核入口。 */
.cs-mobile :is(#receipt-panel,#oa-panel,#supplier-refunds) {background:#fff;border:1px solid #edf1ee;border-radius:16px;padding:16px;margin-top:18px;min-width:0}
.cs-mobile :is(#receipt-panel,#oa-panel,#supplier-refunds) h2 {font-size:15px;line-height:1.6;margin:0 0 12px;color:#31503b}
.cs-mobile :is(#receipt-panel,#oa-panel,#supplier-refunds) h3 {font-size:13px;color:#51765f}
.cs-mobile :is(#receipt-panel,#oa-panel,#supplier-refunds) p {font-size:11px;line-height:1.8;color:#829689}
.cs-mobile :is(#receipt-panel,#oa-panel,#supplier-refunds) .table-wrap {max-width:100%;overflow-x:auto}
.cs-mobile :is(#receipt-panel,#oa-panel) button {border-radius:10px;font-size:12px}
.cs-mobile #oa-suppliers {font-size:11px;line-height:1.8;color:#6c8575}
.cs-mobile #oa-suppliers th,.cs-mobile #oa-suppliers td {padding:10px 6px;white-space:nowrap}
.cs-mobile #receipt-summary {font-size:12px;line-height:1.8;color:#6c8575}

/* 底部导航改为整齐的五等分；不使用挡住内容的悬浮大按钮。 */
.cs-mobile nav {max-width:620px;left:50%;right:auto;width:100%;transform:translateX(-50%);height:calc(70px + env(safe-area-inset-bottom));padding:7px 8px env(safe-area-inset-bottom);background:#fffffff5;border-top:1px solid #ecf0ed;box-shadow:0 -4px 15px #19482b03}
.cs-mobile nav button {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;font-weight:500;color:#99a49d;border-radius:12px;min-height:54px}
.cs-mobile nav button.active {color:#009b68;font-weight:700}
.cs-mobile nav button span {height:26px;width:42px;border-radius:9px}
.cs-mobile nav button.active span {background:#e7f7ee}
.cs-mobile nav svg {width:22px;height:22px}
.cs-mobile .scan-nav i {width:27px;height:26px;background:transparent;color:inherit;border:0;border-radius:0;box-shadow:none;margin:0}
.cs-mobile .scan-nav svg {width:25px;height:25px}

/* 表单作为底部抽屉；键盘出现时可滚动，费用等低频字段继续折叠。 */
.cs-mobile input:not([type=checkbox]):not([type=radio]),.cs-mobile select,.cs-mobile textarea {border-color:#e3eae5;background:#f9fbfa;border-radius:10px;font-size:16px;min-height:48px;color:#274030}
.cs-mobile :is(input,select,textarea):focus {border-color:#39b181;box-shadow:0 0 0 3px #e8f6ee}
.cs-mobile .primary {background:#009b68;border-radius:11px;box-shadow:0 4px 10px #009b6816;color:#fff;font-weight:650;min-height:48px}
.cs-mobile button:not(:disabled):active {filter:brightness(.95)}
.cs-mobile button:disabled {opacity:.55;cursor:wait}
.cs-mobile :is(button,a,input,select,textarea,summary):focus-visible {outline:2px solid #40bc8c;outline-offset:3px}
.cs-mobile dialog {position:fixed;inset:auto 0 0;border:0;border-radius:22px 22px 0 0;width:min(100vw,620px);max-width:100vw;max-height:92dvh;margin:0 auto;box-shadow:0 -12px 60px #17382820;overscroll-behavior:contain}
.cs-mobile dialog::backdrop {background:#153a2966;backdrop-filter:blur(3px)}
.cs-mobile dialog form {padding:0 20px calc(24px + env(safe-area-inset-bottom));max-height:none}
.cs-mobile dialog .dialog-head {position:sticky;top:0;z-index:2;background:#fff;padding:23px 0 16px;margin:0 0 15px;border-bottom:1px solid #f0f3f0;align-items:flex-start}
.cs-mobile .dialog-head b {color:#1d3828;font-size:20px;letter-spacing:0}
.cs-mobile .dialog-head span {color:#8f9e93;font-size:11px;max-width:250px}
.cs-mobile .dialog-head button {width:36px;height:36px;min-height:36px;background:#f2f6f3;border-radius:11px;color:#85998c}
.cs-mobile dialog label {font-size:12px;color:#6b8071;margin:17px 0}
.cs-mobile dialog .two {gap:12px}
.cs-mobile dialog .two>* {min-width:0}
.cs-mobile dialog small {color:#8e9f93;font-size:11px;line-height:1.7}
.mw-context {color:#508567;background:#edf8f1;border-color:#d8eddf}
.mw-intake-extra {border-color:#e5ece7;border-radius:12px;padding:12px}
.mw-intake-extra summary {color:#638371;min-height:32px;font-size:12px}
.mw-intake-extra summary small {font-size:10px;color:#9daf9f;margin-left:8px}
.cs-mobile .dialog-feedback {padding:13px;margin:12px 0;background:#fff1e9;color:#9b5430;border:1px solid #f4d9c6;border-radius:10px;line-height:1.7;font-size:13px}
.cs-mobile .toast {background:#1f4534;border-radius:14px;bottom:calc(88px + env(safe-area-inset-bottom));font-size:13px;max-width:90vw;text-align:center}
.cs-mobile #mw-success {background:#116447;border-radius:15px;box-shadow:0 8px 30px #0b57362b}

/* 登录和“我的”也使用同一套颜色，保持完整而非只改首页。 */
.cs-mobile .login-view {max-width:620px;margin:auto;background:radial-gradient(ellipse at 50% 0%,#d7f4e5 0%,transparent 55%),#f6f9f7;padding:calc(50px + env(safe-area-inset-top)) 24px 30px;justify-content:center}
.cs-mobile .login-brand {margin:0 auto 32px;gap:10px}
.cs-mobile .login-brand img {width:50px;height:50px;border-radius:14px}
.cs-mobile .login-brand b {font-size:24px;color:#16422d;font-weight:750}
.cs-mobile .login-brand span {font-size:11px;color:#80a18e;letter-spacing:.6px}
.cs-mobile .login-card {background:#fff;border:1px solid #eff4ef;border-radius:22px;padding:26px 22px 20px;box-shadow:0 12px 45px #174d2c08}
.mg-eyebrow {display:block;color:#00a16a;font-size:11px;letter-spacing:2px;margin-bottom:7px}
.cs-mobile .login-card h1 {font-size:23px;color:#203c2b;letter-spacing:-.4px}
.cs-mobile .login-card>p {font-size:12px;color:#9aa79e;margin:8px 0 24px}
.cs-mobile .login-card label {color:#69816f;font-size:12px}
.cs-mobile #login-form .remember-login {font-size:11px;gap:8px;color:#899c8d}
.mg-login-note {display:flex;align-items:center;justify-content:center;gap:5px;padding-top:13px;border-top:1px solid #f2f5f2;color:#99ada0;font-size:10px}
.mg-login-note svg {width:14px;height:14px;color:#6aa783}
.cs-mobile .login-view>small {font-size:10px;color:#a6b5a9;margin-top:24px}
.cs-mobile .profile {background:linear-gradient(125deg,#009b68,#08b87c);border-radius:18px;padding:24px 20px;box-shadow:0 6px 20px #009b6810}
.cs-mobile .settings {border:0;border-radius:16px;margin-top:16px}
.cs-mobile .settings>div,.cs-mobile .settings>button {padding:18px 16px;gap:20px;border-color:#f1f4f1;font-size:13px;color:#5b7663;min-height:58px}
.cs-mobile .settings b {text-align:right;font-size:12px;overflow-wrap:anywhere}
.cs-mobile .settings .green {color:#009b68}
.cs-mobile .logout {border:0;border-radius:12px;font-size:13px;color:#c77165;padding:16px;background:white}
.cs-mobile .version {font-size:11px;color:#acb7af;margin-top:24px}
.cs-mobile .scanner {border-color:#b9e7ce;background:linear-gradient(155deg,#edf9f0,#fff);height:230px;border-radius:20px}
.cs-mobile .scanner>span {color:#07a66d}
.cs-mobile .scanner small {font-size:11px;text-align:center;padding:0 16px}
.cs-mobile #mobile-business-overview {border:0;border-radius:16px;padding:17px;margin-top:24px}
.cs-mobile #mobile-business-overview .hero {background:#009b68}

/* 窄屏、放大文字与减少动效：留出底部安全区域，不以隐藏横向溢出掩盖问题。 */
@media(max-width:360px){
  .cs-mobile .page{padding-left:12px;padding-right:12px}
  .mg-launchpad{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}
  .cs-mobile .app>header{padding-left:14px;padding-right:14px}
  .cs-mobile .mg-home-search input{font-size:13px!important}
  .cs-mobile .mg-launchpad .quick-grid b{font-size:12px}
  .mw-income{padding-left:15px;padding-right:15px}
  .mw-tabs{gap:15px}.mw-tabs>span{font-size:9px}
  .cs-mobile .card-top{gap:6px}
}
@media(prefers-reduced-motion:no-preference){
  .cs-mobile button{transition:background-color .15s,color .15s,transform .15s}
  .cs-mobile dialog[open]{animation:mg-sheet .18s ease-out}
  @keyframes mg-sheet{from{transform:translateY(18px);opacity:.5}to{transform:translateY(0);opacity:1}}
}
