
#page {
  background: #f5f5f0;
  color: #182b23;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
#page view, #page input, #page textarea, #page button { box-sizing: border-box; }
#page text { box-sizing: border-box; }
#page button::after { border: 0; }
#page button { margin: 0; line-height: 1.4; }
#page .shell { padding: 14px 15px calc(24px + env(safe-area-inset-bottom)); }
#page .heading { font-size: 23px; letter-spacing: -0.5px; line-height: 1.15; font-weight: 750; }
#page .title { font-size: 17px; line-height: 1.3; font-weight: 700; }
#page .muted { color: #5e6e64; font-size: 12.5px; }
#page .lead { margin-top: 6px; }
#page .section { margin-top: 16px; }
#page .section-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 9px; }
#page .panel { background: #fff; border: 0.5px solid #dfe6dd; border-radius: 11px; padding: 13px; }
#page .line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#page .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
#page .primary, #page .secondary, #page .ghost {
  display:flex; align-items:center; justify-content:center; min-height: 42px;
  padding: 8px 11px; border-radius: 7.5px; font-size: 14px; font-weight: 650;
}
#page button.primary, #page button.secondary, #page button.ghost { width: auto; min-width: 0; }
#page .primary { color: #fff; background: #1b593f; }
#page .secondary { color: #164931; background: #e4eee5; }
#page .ghost { color: #245640; background: transparent; border: 0.5px solid #cbd9cf; }
#page .full, #page button.full, #page .grid > button { width: 100%; min-width: 0; }
#page .error { color: #9b332d; font-size: 13px; margin: 8px 0; }
#page .pill { white-space: nowrap; background: #e4eee5; color: #195237; border-radius: 15px; padding: 4px 8.5px; font-size: 11.5px; }
#page .field { display: block; margin-top: 12px; }
#page .field-label { color: #33463b; font-weight: 600; font-size: 13px; margin-bottom: 3.5px; display: block; }
#page .input {
  min-height: 38px; border-radius: 6px; border: 0.5px solid #d7e0d7;
  background: #fbfcfa; width: 100%; padding: 7px 9px; font-size: 14px; color: #182b23;
}
#page .input::placeholder { color: #66776c; }
#page .textarea { height: 65px; }
#page .selector { display: flex; align-items: center; justify-content: space-between; }
#page .chevron { color: #5b7062; margin-left: 5px; }
#page .segment { display: flex; gap: 4px; background: #e7ece5; border-radius: 7.5px; padding: 3.5px; }
#page .segment button { flex: 1; min-height: 32.5px; background: transparent; font-size: 13px; color: #45574c; padding: 6px; border-radius: 5.5px; }
#page .segment .active { background: #fff; font-weight: 660; color: #1b593f; }
#page .emphasis { font-weight: 700; }
#page .number { font-variant-numeric: tabular-nums; }
#page .notice { background: #eef0e6; color: #4e5f51; border-radius: 6px; padding: 6.5px 8.5px; margin-top: 9px; font-size: 12px; }
#page .sticky { margin-top: 13px; }
#page .empty { padding: 13px 0; color: #5d6b63; }


.route-home .welcome { gap: 5px; }
.route-home .switch-account { flex: 0 0 auto; min-height: 30.5px; padding: 4px 7px; font-size: 11.5px; white-space: nowrap; }
.route-home .share-scope { margin-bottom: 8px; }
.route-home .monthly-tasks { margin: 8px 0 7px; }
.route-home .task-grid { margin-top: 7px; }
.route-home .task-item { min-width: 0; padding: 6.5px 8px; border-radius: 6px; background: #eef4ee; }
.route-home .task-item .muted { font-size: 12px; }
.route-home .task-value { display: block; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.route-home .sales-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 7px; }
.route-home .sales-main { background: #173b2e; color: #fff; border-radius: 11px; padding: 11px; min-width: 0; }
.route-home .sales-label { color: #c6decd; display: block; font-size: 12px; }
.route-home .sales-total { font-size: 21.5px; font-weight: 750; margin: 1.5px 0 8.5px; word-break: break-all; }
.route-home .sales-foot { display: flex; justify-content: space-between; gap: 6px; border-top: 0.5px solid #4c6a5d; padding-top: 6.5px; }
.route-home .sales-value { display: block; font-size: 13px; font-weight: 650; }
.route-home .day-sales { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 11px 9px; }
.route-home .day-total { font-weight: 750; word-break: break-all; font-size: 16px; }
.route-home .process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.route-home .process-grid .muted { display: block; font-size: 11px; }
.route-home .process-value { font-weight: 700; font-size: 16.5px; }
.route-home .order-row { padding: 8px 0; border-top: 0.5px solid #edf0e9; }
.route-home .order-right { text-align: right; }
.route-home .overlay { position: fixed; inset: 0; background: rgba(15, 34, 26, .44); display: flex; align-items: flex-end; z-index: 10; }
.route-home .order-sheet { width: 100%; max-height: 83vh; overflow: auto; border-radius: 12px 12px 0 0; padding-bottom: calc(15px + env(safe-area-inset-bottom)); }
.route-home .small-close { min-height: 29px; font-size: 11.5px; }
.route-home .range-panel { margin:8px 0; padding:10px; }
.route-home .range-panel .selector { font-size:12.5px; padding:6px 7px; }
.route-home .text-button { min-height:27px; font-size:11.5px; padding:4px 7.5px; }
.route-home button.logout-button { flex-shrink:0; min-height:29px; padding:4px 7.5px; font-size:12px; }
.route-home button.not-submitted { background:#ae3d36; color:#fff; }
.route-home .submission-links { padding:0 11px; }
.route-home button.submission-link {
  display:flex; align-items:center; justify-content:space-between; width:100%; min-height:43px;
  padding:8.5px 0; background:transparent; color:#182b23; font-size:14px; font-weight:650;
}
.route-home .submission-link + .submission-link { border-top:0.5px solid #e7eee5; }
.route-home .home-test-entries button { flex:1; margin:0; }


.route-sale .line-panel { margin-top: 7px; }
.route-sale .text-button { min-height: 27.5px; padding: 3px 5.5px; font-size: 11.5px; white-space: nowrap; }
.route-sale .attachment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route-sale .attachment-grid > .field { min-width: 0; }
.route-sale .attachment-grid button.attachment {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  border: 0.5px dashed #8ca393; background: #f1f6ef; color: #315b43; width: 100%;
  min-width: 0; max-width: 100%; margin: 0;
  min-height: 56px; padding: 4.5px; font-size: 11.5px; border-radius: 6px; white-space: normal;
}
.route-sale .attachment-image { display: block; width: 100%; max-width: 100%; height: 55px; border-radius: 3.5px; }
.route-sale .proof-tile { display:flex; align-items:stretch; gap:2px; margin-bottom:4px; }
.route-sale .proof-preview { flex:1; min-width:0; margin:0; padding:3px; font-size:11px; background:#f1f6ef; color:#315b43; border-radius:4px; }
.route-sale .proof-remove { flex:none; margin:0; padding:2px 4px; font-size:11px; background:none; color:#805044; }
.route-sale .overlay { position: fixed; inset: 0; background: rgba(15,34,26,.45); display:flex; align-items:flex-end; z-index:10; }
.route-sale .catalog-sheet { width:100%; border-radius:12px 12px 0 0; padding-bottom:calc(15px + env(safe-area-inset-bottom)); }
.route-sale .catalog-results { height:45vh; margin-top:7.5px; }
.route-sale .catalog-row { padding:8px 0; border-bottom:0.5px solid #e9eee7; }
.route-sale .saved-line { border-top:0.5px solid #e7eee5; margin-top:8px; padding-top:8px; }
.route-sale .proof-canvas { position:fixed; left:-1000px; top:0; width:1px; height:1px; pointer-events:none; }


.route-report .date-pick { color: #1b593f; font-weight: 650; padding: 5px 0 5px 8px; }
.route-report .report-sales, .route-report .completion { border-top: 0.5px solid #e3eae2; margin-top: 12px; padding-top: 9.5px; }


.route-meetings .speaker { border-top: 0.5px solid #dfe6dd; margin-top: 12px; padding-top: 10px; }
.route-meetings .report-block {
  padding: 8px 10px;
  margin-top: 7px;
  border-left: 2.5px solid currentColor;
  border-radius: 4px;
}
.route-meetings .report-transcript { background: #edf5fc; color: #244d72; }
.route-meetings .report-evaluation { background: #fff5e3; color: #754711; }
.route-meetings .report-suggestion { background: #edf7ef; color: #275538; }
.route-meetings .report-label { font-weight: 700; }
.route-meetings .report-text { display: block; line-height: 1.6; margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.route-meetings .break-text { overflow-wrap:anywhere; }
.route-meetings .upload-slots { display:flex; flex-direction:column; gap:9px; }
.route-meetings button.upload-slot {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  width:100%; min-height:58px; padding:11px 13px; margin:0;
  border:1.5px solid transparent; border-radius:9px;
  text-align:left; color:#fff; font-size:17px; font-weight:700;
}
.route-meetings button.upload-slot-open, .route-meetings button.upload-slot-open[disabled] { background:#a6262a; color:#fff; }
.route-meetings button.upload-slot-done, .route-meetings button.upload-slot-done[disabled] { background:#1b593f; color:#fff; }
.route-meetings button.upload-slot-unknown, .route-meetings button.upload-slot-unknown[disabled] { background:#edf0ed; color:#46554c; }
.route-meetings button.upload-slot-selected { border-color:#fff; box-shadow:0 0 0 2px #223d30; }
.route-meetings .upload-slot-status {
  flex-shrink:0; padding:3px 6px; border:0.5px solid currentColor;
  border-radius:5px; font-size:12.5px; font-weight:600;
}


.route-submissions .entry-list { padding:0 11px; }
.route-submissions .entry { padding:9px 0; min-height:50px; }
.route-submissions .entry + .entry { border-top:0.5px solid #e7eee5; }
.route-submissions .entry-main { flex:1; min-width:0; overflow-wrap:anywhere; }
.route-submissions .entry .chevron { margin-left:1px; }
.route-submissions .selector { font-size:13px; }


.route-today-submissions button.refresh-button { flex-shrink:0; min-height:30px; padding:4px 8px; font-size:12px; }
.route-today-submissions .summary { padding:9px 10px; }
.route-today-submissions .summary-value { color:#195237; font-size:17px; font-weight:700; margin-top:2.5px; }
.route-today-submissions .store-group { padding:10px 11px 4px; }
.route-today-submissions .store-title { padding:0 0 7.5px; }
.route-today-submissions .report-grid { display:grid; grid-template-columns:minmax(0,1fr) 1fr 1fr; gap:5px; align-items:center; }
.route-today-submissions .column-labels { font-size:12px; color:#5e6e64; padding-bottom:4.5px; }
.route-today-submissions .staff-row { padding:6.5px 0; border-top:0.5px solid #e7eee5; }
.route-today-submissions .staff-name { font-weight:650; overflow-wrap:anywhere; }
.route-today-submissions .status { justify-self:start; white-space:nowrap; font-size:11.5px; color:#195237; background:#e4eee5; padding:2.5px 6.5px; border-radius:9px; }
.route-today-submissions .pending-name, .route-today-submissions .pending-status { color:#a33129; }
.route-today-submissions .pending-status { background:#fae8e5; }


.route-analysis .filters { padding: 9px; }
.route-analysis .analysis-hero { background: #173b2e; color: #f7fff6; border-radius: 11px; padding: 12px; }
.route-analysis .analysis-label { color: #c6decd; font-size: 13px; }
.route-analysis .analysis-sum { font-weight: 750; font-size: 25px; margin: 1.5px 0 9px; }
.route-analysis .analysis-hero .line { font-size: 11.5px; gap: 4px; }
.route-analysis .rank-row + .rank-row { margin-top: 9px; }
.route-analysis .bar-label { font-size: 12.5px; }
.route-analysis .track { background: #e9eee7; height: 5px; border-radius: 5px; overflow: hidden; margin-top: 4.5px; }
.route-analysis .bar { height: 100%; border-radius: 5px; background: #3e8360; }
.route-analysis .goal-detail { margin-top: 3px; font-size: 11px; }
.route-analysis .progress-name { min-width: 0; }
.route-analysis .progress-store { margin-left: 5px; font-size: 11px; }
.route-analysis .progress-row .number { flex-shrink: 0; }
.route-analysis .progress-complete { color: #1b593f; }
.route-analysis .bar.bar-complete { background: #1b593f; }
.route-analysis .process-metrics { gap: 10px 6px; }
.route-analysis .metric { display: block; font-weight: 690; font-size: 15px; }
.route-analysis .rank-link { min-height:28px; }
.route-analysis .rank-link .muted { color:#1b593f; white-space:nowrap; }


.route-rankings .ranking { padding:2px 11.5px; }
.route-rankings .rank-row { display:flex; align-items:center; gap:8.5px; min-height:44px; padding:7px 0; border-bottom:0.5px solid #ecf0ea; }
.route-rankings .rank-row:last-child { border-bottom:0; }
.route-rankings .position { width:25px; text-align:center; color:#65776b; font-weight:650; font-variant-numeric:tabular-nums; }
.route-rankings .position.top { border-radius:6px; background:#e9efe6; color:#195237; padding:3.5px 0; }
.route-rankings .rank-name { flex:1; min-width:0; overflow-wrap:anywhere; }
.route-rankings .rank-name text { display:block; }
.route-rankings .rank-value { white-space:nowrap; font-weight:690; }


.route-admin .admin-intro {
  border-radius:12px;
  padding:17px 15px 15px;
  background:linear-gradient(125deg, #16372c, #245744);
  color:#fff;
}
.route-admin .admin-identity { color:#cedfd2; font-size:12.5px; margin-top:6.5px; }
.route-admin .admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7.5px; }
.route-admin button.pane-button { width:100%; min-height:76.5px; display:block; text-align:left; color:#182b23; padding:11px 10px; }
.route-admin .pane-title { display:flex; justify-content:space-between; align-items:center; font-size:14.5px; font-weight:710; }
.route-admin .pane-button .muted { margin-top:4px; font-size:11.5px; }
.route-admin .admin-back, .route-admin .admin-small { min-height:30px; padding:4.5px 7.5px; font-size:12px; white-space:nowrap; }
.route-admin .admin-list { max-height:215px; margin-top:6px; }
.route-admin .admin-row { padding:7.5px 0; border-top:0.5px solid #e9eee7; }
.route-admin .import-box { border-radius:8px; background:#f0f5ed; padding:10px; }
.route-admin .import-box .primary, .route-admin .import-box .secondary { font-size:12.5px; padding:6px; min-height:36px; }
.route-admin .import-list { max-height:172.5px; margin-top:6px; }
.route-admin .search-row { display:flex; align-items:center; gap:6px; }
.route-admin .search-row .input { flex:1; min-width:0; }
.route-admin .search-row .admin-small { min-height:38px; }
.route-admin .category-list { margin-top:12px; }
.route-admin .category-heading { flex-wrap:wrap; gap:5px; margin-bottom:7px; }
.route-admin .category-name { min-width:0; overflow-wrap:anywhere; }
.route-admin .category-actions { display:grid; grid-template-columns:repeat(4, auto); flex-shrink:0; gap:3.5px; }
.route-admin .category-actions .admin-small { padding:4px 4.5px; }
.route-admin button.category-remove { color:#9b332d; }
.route-admin .model-label { overflow-wrap:anywhere; }
