.page-title .operation-employee-button { margin-left: auto; }
.page-title .operation-employee-button + .primary-button { margin-left: 9px; }
.operation-employee-modal .modal-head { align-items: flex-start; }
.operation-employee-modal .modal-subtitle { margin: 6px 0 0; color: #7b8587; font-size: 12px; }
.operation-name-hint { color: #8b9596; font-size: 11px; font-weight: 400; line-height: 1.5; }
.existing-operation-steps { display: grid; gap: 8px; padding: 11px 12px; border: 1px solid #e1e7e4; border-radius: 7px; background: #fafcfb; }
.existing-operation-steps > strong { color: #667174; font-size: 12px; }
.existing-operation-steps > div { display: flex; flex-wrap: wrap; gap: 6px; }
.existing-operation-steps span { padding: 4px 7px; border-radius: 5px; color: #58705b; background: #eef6eb; font-size: 11px; }
.process-selection-grid .admin-no-processing { grid-column: 1 / -1; }
.process-selection-grid [data-admin-operation-step] { border-color: #b9dfae; background: #f8fcf6; }
.admin-process-group { grid-column: 1 / -1; display: grid; gap: 8px; padding: 11px; border: 1px solid #dce6df; border-radius: 7px; background: #f9fbfa; }
.admin-process-group header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-process-group header strong { color: #34423b; font-size: 12px; }
.admin-process-group header button { min-height: 29px; padding: 0 9px; border: 1px solid #b9d9b1; border-radius: 5px; color: #348b26; background: #f2f9ef; font-size: 10px; }
.admin-process-group > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.admin-process-group label { min-width: 0; }
.operation-employee-modal select { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid #d9e1dd; border-radius: 6px; background: #fff; }
.operation-employee-modal input { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid #d9e1dd; border-radius: 6px; background: #fff; color: #202623; }
.process-selection-field { text-align: left; }
.process-selection-title { justify-content: flex-start !important; gap: 8px; }
.process-selection-field > .field-hint { text-align: left; }
.operation-employee-toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 11px 16px; border: 1px solid #4c8f35; border-radius: 7px; color: #eaffdf; background: #173020; box-shadow: 0 8px 25px #0000001f; font-size: 13px; }
.operation-employee-toast.error { border-color: #be6a63; color: #fff4f2; background: #6e2925; }
.pending-review-banner { min-height: 92px; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 15px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid #e4a938; border-left: 5px solid #d98f14; border-radius: 7px; background: #fffaf0; box-shadow: 0 9px 24px #a76b1617; }
.pending-review-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #d98f14; font-size: 25px; font-weight: 900; }
.pending-review-copy { min-width: 0; display: grid; gap: 3px; }
.pending-review-copy span { color: #9c6817; font-size: 10px; font-weight: 900; }
.pending-review-copy strong { color: #3b2c13; font-size: 16px; }
.pending-review-copy p { margin: 0; overflow: hidden; color: #826d4b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pending-review-banner > button { min-width: 104px; min-height: 40px; padding: 0 15px; border: 1px solid #b8730b; border-radius: 6px; color: #fff; background: #c77e0f; font-size: 12px; font-weight: 800; }
.pending-review-banner > button:hover { background: #ad6908; }
@media (max-width: 760px) { .pending-review-banner { grid-template-columns: 42px 1fr; } .pending-review-mark { width: 38px; height: 38px; } .pending-review-banner > button { grid-column: 1 / -1; width: 100%; } }
.accept-overdue-banner { min-height: 94px; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 15px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid #e5968f; border-left: 5px solid #d23e35; border-radius: 7px; background: #fff5f4; box-shadow: 0 9px 24px #a8322a17; }
.accept-overdue-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #d23e35; font-size: 25px; font-weight: 900; }
.accept-overdue-copy { min-width: 0; display: grid; gap: 3px; }
.accept-overdue-copy span { color: #ac3029; font-size: 10px; font-weight: 900; }
.accept-overdue-copy strong { color: #48201d; font-size: 16px; }
.accept-overdue-copy p { margin: 0; overflow: hidden; color: #8b514d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.accept-overdue-banner > button { min-width: 104px; min-height: 40px; padding: 0 15px; border: 1px solid #b32f28; border-radius: 6px; color: #fff; background: #cf3e35; font-size: 12px; font-weight: 800; }
.accept-overdue-banner > button:hover { background: #b52f28; }
@media (max-width: 760px) { .accept-overdue-banner { grid-template-columns: 42px 1fr; } .accept-overdue-mark { width: 38px; height: 38px; } .accept-overdue-banner > button { grid-column: 1 / -1; width: 100%; } }
.order-review-section { border-color: #cfe3c8 !important; background: #fbfef9 !important; }
.order-review-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.order-review-head span { color: #5a9f43; font-size: 9px; font-weight: 800; }
.order-review-head h3 { margin: 3px 0 0; color: #203128; font-size: 16px; }
.order-review-head b { padding: 5px 8px; border: 1px solid #d4e9cc; border-radius: 6px; color: #4c9235; background: #eff9eb; font-size: 11px; }
.order-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.order-review-grid > div { min-width: 0; display: grid; gap: 4px; padding: 9px 10px; border: 1px solid #e1e9de; border-radius: 6px; background: #fff; }
.order-review-grid span, .order-review-note > span, .order-review-files > span { color: #849087; font-size: 10px; }
.order-review-grid strong { overflow-wrap: anywhere; color: #27342e; font-size: 12px; }
.order-review-note, .order-review-files { margin-top: 9px; padding: 10px; border: 1px solid #e1e9de; border-radius: 6px; background: #fff; }
.order-review-note p, .order-review-files p { margin: 5px 0 0; color: #4e5b54; font-size: 12px; line-height: 1.55; }
.order-review-files > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.order-review-files a, .order-review-files i { max-width: 100%; overflow: hidden; padding: 5px 7px; border-radius: 5px; color: #397c2d; background: #eff8eb; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.order-review-actions { display: grid; grid-template-columns: 1fr 1.45fr; gap: 8px; margin-top: 12px; }
.order-review-actions button { min-height: 40px; border: 1px solid #d7e2d3; border-radius: 6px; color: #6b756f; background: #fff; font-size: 12px; font-weight: 800; }
.order-review-actions [data-review-delete] { color: #b4524a; border-color: #eccfcb; background: #fffafa; }
.order-review-actions [data-review-approve] { color: #fff; border-color: #3b9730; background: #3f9f32; }
.order-review-actions [data-workflow-review-approve] { grid-column: 1 / -1; color: #fff; border-color: #3b9730; background: #3f9f32; }
.order-review-actions button:disabled { cursor: default; opacity: .6; }
.completion-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.completion-photo-card { min-width: 0; overflow: hidden; border: 1px solid #dfe8e2; border-radius: 7px; background: #f9fbfa; }
.completion-photo-card > a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #edf2ef; }
.completion-photo-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.completion-photo-card > div { display: grid; gap: 3px; padding: 9px 10px 10px; }
.completion-photo-card strong { overflow: hidden; color: #25312b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.completion-photo-card span, .completion-photo-card small { overflow: hidden; color: #7c8882; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.completion-photo-placeholder { min-height: 116px; display: grid !important; place-items: center; padding: 12px !important; color: #7c8882; background: #edf2ef; text-align: center; }
@media (max-width: 900px) { .completion-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-sidebar-password-button { width: calc(100% - 28px); min-height: 38px; height: 38px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: auto 14px 8px; border: 1px solid #354241; border-radius: 7px; color: #d7e1de; background: #142020; font-size: 12px; font-weight: 700; }
.admin-sidebar-password-button:hover { color: #fff; border-color: #647473; background: #1b2928; }
.admin-sidebar-password-button span { color: #7acb58; font-size: 8px; }
.side-bottom .logout-button { width: calc(100% - 28px); min-height: 38px; height: 38px; justify-content: center; gap: 8px; margin: 0 14px; padding: 0; border: 1px solid #354241; border-radius: 7px; color: #d7e1de; background: #142020; font-size: 12px; font-weight: 700; cursor: pointer; }
.logout-button:hover { color: #fff; border-color: #647473; background: #1b2928; }
.side-brand .admin-sidebar-brand-mark { display: block; padding: 0; overflow: hidden; background: transparent; box-shadow: none; }
.side-brand .admin-sidebar-brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.admin-material-template-button { margin-bottom: 7px; }
.admin-material-template-button span { font-size: 15px; }

.admin-material-template-backdrop { z-index: 1400; }
.admin-material-template-modal { width: min(920px, calc(100vw - 36px)); max-height: calc(100vh - 40px); overflow: hidden; border: 1px solid #dfe7e3; border-radius: 8px; background: #fff; box-shadow: 0 28px 80px #15231f38; }
.admin-material-template-modal > header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #e5ebe8; }
.admin-material-template-modal > header span { color: #4d9e36; font-size: 9px; font-weight: 800; }
.admin-material-template-modal > header h2 { margin: 3px 0; color: #1d2824; font-size: 21px; }
.admin-material-template-modal > header p { margin: 0; color: #7a8580; font-size: 11px; }
.admin-material-template-modal > header button { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #dfe6e2; border-radius: 7px; color: #67736e; background: #fff; font-size: 23px; }
.admin-material-template-layout { min-height: 430px; display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.admin-material-template-layout > aside { padding: 14px; border-right: 1px solid #e4ebe7; background: #f7faf8; overflow-y: auto; }
.admin-material-template-layout > aside > button { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #8ed578; border-radius: 7px; color: #338e1f; background: #f0faec; font-weight: 700; }
.admin-material-template-layout > aside > div { display: grid; gap: 7px; margin-top: 12px; }
.admin-material-template-layout > aside > div > button { min-height: 55px; display: grid; gap: 3px; padding: 9px 10px; border: 1px solid #e0e8e3; border-radius: 7px; text-align: left; color: #39443f; background: #fff; }
.admin-material-template-layout > aside > div > button.active { border-color: #7acb61; background: #eff9eb; box-shadow: 0 0 0 2px #65bf4620; }
.admin-material-template-layout > aside strong { font-size: 12px; }
.admin-material-template-layout > aside span, .admin-material-template-layout > aside p { margin: 0; color: #8a948f; font-size: 10px; }
.admin-material-template-layout > form { min-width: 0; display: flex; flex-direction: column; padding: 18px 20px; overflow-y: auto; }
.admin-material-template-name { display: grid; gap: 7px; color: #53605b; font-size: 12px; font-weight: 700; }
.admin-material-template-name input { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #dce5e1; border-radius: 7px; outline: 0; }
.admin-material-template-name input:focus, .admin-material-template-row input:focus { border-color: #72c957; box-shadow: 0 0 0 3px #5dbf3d1f; }
.admin-material-template-head, .admin-material-template-row { display: grid; grid-template-columns: minmax(125px, 1.4fr) minmax(110px, 1.2fr) 90px 75px 32px; gap: 7px; align-items: center; }
.admin-material-template-head { margin: 17px 0 6px; padding: 0 3px; color: #89938e; font-size: 10px; text-align: center; }
.admin-material-template-row + .admin-material-template-row { margin-top: 7px; }
.admin-material-template-row input { width: 100%; min-width: 0; height: 38px; padding: 0 9px; border: 1px solid #dce5e1; border-radius: 7px; outline: 0; color: #2d3833; }
.admin-material-template-row button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #efd3cf; border-radius: 7px; color: #ca564d; background: #fff8f7; font-size: 19px; }
.admin-material-template-tools { min-height: 44px; display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.admin-material-template-tools button { min-height: 34px; padding: 0 12px; border: 1px solid #c7e5bc; border-radius: 7px; color: #2d9e12; background: #f3faef; }
.admin-material-template-tools p { margin: 0; color: #c95047; font-size: 11px; }
.admin-material-template-modal footer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 9px; margin-top: auto; padding-top: 17px; border-top: 1px solid #e8edea; }
.admin-material-template-modal footer button { min-height: 40px; padding: 0 17px; border-radius: 7px; }
.admin-material-template-modal .danger-button { border: 1px solid #ebc7c3; color: #bf4d44; background: #fff6f5; }
@media (max-width: 720px) {
  .admin-material-template-layout { grid-template-columns: 1fr; }
  .admin-material-template-layout > aside { max-height: 150px; border-right: 0; border-bottom: 1px solid #e4ebe7; }
  .admin-material-template-head, .admin-material-template-row { min-width: 540px; }
  [data-material-template-rows] { overflow-x: auto; }
}

/* Unified online-presence attendance log. Keep terminal and event columns
   readable on narrow admin windows while retaining the full detail text. */
.presence-log-table-wrap { overflow-x: auto; margin-top: 12px; }
.presence-log-table-wrap table { width: 100%; min-width: 920px; border-collapse: collapse; }
.presence-log-table-wrap th, .presence-log-table-wrap td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e7eee7; white-space: nowrap; }
.presence-log-table-wrap td:last-child { white-space: normal; min-width: 220px; }
.presence-log-table-wrap td small { display: block; color: #7a897e; margin-top: 3px; }
.presence-terminal-badge { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: #eef9e9; color: #38952a; font-size: 12px; }
.presence-employee-button { display: inline; padding: 0; border: 0; border-bottom: 1px dashed #4c9e36; color: #287d20; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.presence-employee-button:hover, .presence-employee-button:focus-visible { border-bottom-style: solid; color: #176513; outline: 0; }
.presence-detail-backdrop { z-index: 1460; align-items: center; justify-content: center; padding: 20px; }
.presence-detail-modal { width: min(860px, calc(100vw - 36px)); max-height: min(760px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dfe7e3; border-radius: 10px; background: #fff; box-shadow: 0 28px 80px #15231f38; }
.presence-detail-modal > header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #e5ebe8; }
.presence-detail-modal > header span { color: #4d9e36; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.presence-detail-modal > header h2 { margin: 3px 0; color: #1d2824; font-size: 21px; }
.presence-detail-modal > header p { margin: 0; color: #7a8580; font-size: 11px; }
.presence-detail-modal > header button { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #dfe6e2; border-radius: 7px; color: #67736e; background: #fff; font-size: 23px; cursor: pointer; }
.presence-detail-body { min-height: 260px; padding: 18px 20px 22px; overflow-y: auto; background: #f8faf9; }
.presence-detail-summary { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.presence-detail-summary > div { min-width: 0; display: flex; align-items: baseline; gap: 6px; padding: 11px 13px; border: 1px solid #dfe8e2; border-radius: 8px; background: #fff; }
.presence-detail-summary > div:first-child strong { color: #319a26; font-size: 24px; }
.presence-detail-summary b { color: #3c8e2d; font-size: 12px; }
.presence-detail-summary span { color: #66746c; font-size: 11px; }
.presence-detail-table-wrap { overflow-x: auto; border: 1px solid #dfe8e2; border-radius: 8px; background: #fff; }
.presence-detail-table-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; }
.presence-detail-table-wrap th, .presence-detail-table-wrap td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e7eee7; white-space: nowrap; font-size: 12px; }
.presence-detail-table-wrap th { color: #718078; background: #f7faf8; font-size: 11px; }
.presence-detail-table-wrap td:last-child { min-width: 220px; white-space: normal; color: #526159; overflow-wrap: anywhere; }
.presence-detail-table-wrap tr:last-child td { border-bottom: 0; }
.presence-detail-empty { min-height: 220px; display: grid; place-items: center; color: #7c8882; font-size: 13px; }
@media (max-width: 680px) {
  .presence-detail-backdrop { padding: 10px; }
  .presence-detail-modal { width: 100%; max-height: calc(100vh - 20px); }
  .presence-detail-summary { grid-template-columns: 1fr; }
  .presence-detail-modal > header h2 { font-size: 18px; }
}

.admin-delivery-time-field,
.admin-dispatch-note-field { display: flex; flex-direction: column; gap: 6px; }
.admin-delivery-time-field input,
.admin-dispatch-note-field textarea { width: 100%; box-sizing: border-box; }
.admin-dispatch-note-field { margin-top: 14px; padding: 12px; border: 1px solid #dcebd7; border-radius: 10px; background: #f8fcf6; }
.admin-dispatch-note-field > span { color: #238b18; font-weight: 700; }
.admin-dispatch-note-field small { color: #72836e; font-size: 11px; }
.admin-order-dispatch-note { margin: 8px 0 14px; padding: 10px 12px; border-left: 3px solid #55b93b; border-radius: 6px; background: #f7fcf5; color: #334238; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.admin-password-backdrop { z-index: 90; }
.admin-password-modal { width: min(420px, calc(100vw - 32px)); overflow: hidden; border: 1px solid #dfe7e3; border-radius: 8px; background: #fff; box-shadow: 0 28px 80px #15231f38; }
.admin-password-modal header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; border-bottom: 1px solid #e7ece9; }
.admin-password-modal header span { color: #4d9e36; font-size: 10px; font-weight: 800; }
.admin-password-modal h2 { margin: 4px 0 0; color: #1d2824; font-size: 21px; }
.admin-password-modal header button { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #dfe6e2; border-radius: 7px; color: #67736e; background: #fff; font-size: 23px; }
.admin-password-modal form { display: grid; gap: 14px; padding: 20px; }
.admin-password-modal label { display: grid; gap: 7px; color: #53605b; font-size: 12px; font-weight: 700; }
.admin-password-modal input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #dce5e1; border-radius: 7px; outline: 0; color: #29332f; background: #fff; }
.admin-password-modal input:focus { border-color: #72c957; box-shadow: 0 0 0 3px #5dbf3d1f; }
.admin-password-modal form > p { min-height: 18px; margin: -2px 0 0; color: #c95047; font-size: 12px; }
.admin-password-modal form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.admin-password-modal form > div button { min-height: 42px; border-radius: 7px; }

.admin-order-search-panel { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(190px, .8fr) auto; align-items: end; gap: 10px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid #dde6e1; border-radius: 7px; background: #f8faf9; }
.admin-order-search-panel label { min-width: 0; display: grid; gap: 6px; color: #64716b; font-size: 10px; font-weight: 800; }
.admin-order-search-panel input { width: 100%; min-width: 0; height: 39px; padding: 0 11px; border: 1px solid #d7e2dc; border-radius: 6px; outline: 0; color: #26322d; background: #fff; font-size: 12px; }
.admin-order-search-panel input:focus { border-color: #68be4e; box-shadow: 0 0 0 3px #62b94718; }
.admin-order-search-panel button { min-width: 68px; height: 39px; padding: 0 13px; border: 1px solid #d6e0db; border-radius: 6px; color: #65716b; background: #fff; font-size: 12px; font-weight: 700; }
.admin-order-search-panel .admin-order-refresh-button { color: #fff; border-color: #4e9f3a; background: #4e9f3a; }
.admin-order-search-panel .admin-order-refresh-button:hover:not(:disabled) { border-color: #3e872e; background: #3e872e; }
.admin-order-search-panel .admin-order-refresh-button:disabled { cursor: default; opacity: .65; }
.admin-order-search-panel .admin-order-refresh-button--notice { border-color: #d59b24; background: #d59b24; }
.admin-order-search-panel .admin-order-refresh-button--notice:hover:not(:disabled) { border-color: #bf8512; background: #bf8512; }
.admin-order-price-field { align-self: start; }
.order-price-detail > strong { display: block; margin-top: 8px; color: #248b24; font-size: 20px; overflow-wrap: anywhere; }
.employee-order-history-button { min-height: 30px; margin-right: 6px; padding: 0 9px; border: 1px solid #bfdcb6; border-radius: 6px; color: #388b2c; background: #f4faef; font-size: 11px; font-weight: 700; white-space: nowrap; }
.employee-edit-button { min-height: 30px; margin-right: 6px; padding: 0 10px; border: 1px solid #cbd8e6; border-radius: 6px; color: #35698f; background: #f5f9fd; font-size: 11px; font-weight: 700; white-space: nowrap; }
.employee-edit-button:disabled { opacity: .55; }
.employee-search-field { min-width: 238px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #dfe6e2; border-radius: 7px; color: #6f7b75; background: #fff; font-size: 11px; }
.employee-search-field:focus-within { border-color: #9fda82; box-shadow: 0 0 0 3px #6ebc4520; }
.employee-search-field span { flex: 0 0 auto; color: #708078; font-weight: 700; }
.employee-search-field input { min-width: 0; width: 100%; height: 28px; border: 0; outline: 0; color: #25332c; background: transparent; font-size: 12px; }
.employee-search-field input::placeholder { color: #9aa49e; }
.employee-add-button { width: 132px; min-width: 132px; height: 42px; min-height: 42px; padding: 0 14px; gap: 7px; white-space: nowrap; }
.employee-add-button .employee-add-plus-icon { width: 17px; height: 17px; min-width: 17px; flex: 0 0 17px; display: inline-grid; place-items: center; line-height: 1; font-size: 19px; font-weight: 500; }
.employee-add-button svg.employee-add-plus-icon { stroke-width: 2.2; }
.employee-filter-button { border: 0; cursor: pointer; background: transparent; }
.employee-filter-button:hover, .employee-filter-button.active { color: #1e7815; background: #effbdf; }
.employee-filter-button b { margin-left: 3px; font-weight: 600; }
.employee-visible-count { margin-left: auto; white-space: nowrap; }
.employee-row-loading { opacity: .58; }
.employee-row-loading td { cursor: wait; }
.employee-page-title { align-items: center; gap: 8px; }
.employee-page-title .employee-sort-button { margin-left: auto; }
.employee-sort-button { min-height: 42px; margin-right: 0; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid #b9d9ae; border-radius: 7px; color: #378c2b; background: #f3faef; font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap; }
.employee-sort-button:hover { border-color: #78bf67; background: #ebf8e6; }
.employee-sort-backdrop { z-index: 1510; }
.employee-sort-modal { width: min(560px, calc(100vw - 34px)); max-height: calc(100vh - 36px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dce6e0; border-radius: 9px; background: #fff; box-shadow: 0 30px 90px #14221d40; }
.employee-sort-modal > header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #e4ebe7; }
.employee-sort-modal > header span { color: #4c9d36; font-size: 9px; font-weight: 900; }
.employee-sort-modal > header h2 { margin: 3px 0; color: #1d2923; font-size: 21px; }
.employee-sort-modal > header p { margin: 0; color: #78847e; font-size: 11px; }
.employee-sort-modal > header button { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #dce5e0; border-radius: 7px; color: #68756f; background: #fff; font-size: 23px; }
.employee-sort-list { min-height: 180px; max-height: min(580px, calc(100vh - 220px)); display: grid; align-content: start; gap: 8px; padding: 14px 20px; overflow-y: auto; }
.employee-sort-loading { min-height: 150px; display: grid; place-items: center; color: #7d8983; font-size: 12px; }
.employee-sort-loading.error { color: #c95047; }
.employee-sort-row { min-height: 58px; display: grid; grid-template-columns: 29px minmax(0, 1fr) 33px 33px; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #dce6e0; border-radius: 7px; background: #fff; }
.employee-sort-row:hover { border-color: #9fd48e; box-shadow: 0 5px 14px #4b8e3710; }
.employee-sort-row > b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 6px; color: #398e28; background: #edf8e8; font-size: 11px; }
.employee-sort-row > div { min-width: 0; display: grid; gap: 3px; }
.employee-sort-row strong { overflow: hidden; color: #2b3932; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.employee-sort-row small { overflow: hidden; color: #89958f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.employee-sort-row button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #d8e3dd; border-radius: 6px; color: #4b5b53; background: #f8faf9; font-size: 16px; font-weight: 800; }
.employee-sort-row button:hover:not(:disabled) { color: #318b21; border-color: #97d183; background: #f1faed; }
.employee-sort-row button:disabled { cursor: default; opacity: .34; }
.employee-sort-message { min-height: 18px; margin: 0 20px; color: #c95047; font-size: 11px; }
.employee-sort-modal > footer { display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; padding: 13px 20px 18px; }
.employee-sort-modal > footer button { min-height: 42px; border-radius: 7px; }
@media (max-width: 560px) { .employee-sort-modal > header { padding: 14px 16px; } .employee-sort-list { padding-left: 16px; padding-right: 16px; } .employee-sort-modal > footer { padding-left: 16px; padding-right: 16px; } }
.admin-dashboard-link-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; border: 1px solid #7bd600; border-radius: 8px; color: #16200f; background: #96f000; font-size: 12px; font-weight: 700; line-height: 1; box-shadow: 0 3px 10px #5daa0029; transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.admin-dashboard-link-button:hover { border-color: #66b900; color: #10180b; background: #a5f52a; box-shadow: 0 5px 14px #5daa0038; transform: translateY(-1px); }
.admin-dashboard-link-button:focus-visible { outline: 3px solid #8bd95a66; outline-offset: 2px; }
.admin-dashboard-manage-positions { margin-top: 0; }
.admin-dashboard-all-orders { margin: 16px 20px 18px; text-decoration: none; }
.employee-edit-backdrop { z-index: 1500; }
.employee-edit-modal { width: min(570px, calc(100vw - 34px)); max-height: calc(100vh - 36px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dce6e0; border-radius: 8px; background: #fff; box-shadow: 0 30px 90px #14221d40; }
.employee-edit-modal > header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #e4ebe7; }
.employee-edit-modal > header span { color: #4c9d36; font-size: 9px; font-weight: 900; }
.employee-edit-modal > header h2 { margin: 3px 0; color: #1d2923; font-size: 21px; }
.employee-edit-modal > header p { margin: 0; color: #78847e; font-size: 11px; }
.employee-edit-modal > header button { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #dce5e0; border-radius: 7px; color: #68756f; background: #fff; font-size: 23px; }
.employee-edit-modal form { display: grid; gap: 13px; padding: 18px 20px 20px; overflow-y: auto; }
.employee-edit-modal form > label { display: grid; gap: 6px; color: #53615a; font-size: 11px; font-weight: 800; }
.employee-edit-modal input, .employee-edit-modal select { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #d9e3de; border-radius: 7px; outline: 0; color: #29362f; background: #fff; }
.employee-edit-modal input:focus, .employee-edit-modal select:focus { border-color: #72c957; box-shadow: 0 0 0 3px #5dbf3d1f; }
.employee-edit-modal label small, .employee-edit-part-time small { color: #8a958f; font-size: 9px; font-weight: 500; }
.employee-edit-part-time { display: grid; gap: 9px; }
.employee-edit-part-time > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #53615a; font-size: 11px; }
.employee-edit-part-time [data-employee-edit-positions] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.employee-edit-part-time label { min-width: 0; min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #dce5e0; border-radius: 7px; color: #65716b; background: #f8faf9; font-size: 10px; cursor: pointer; }
.employee-edit-part-time label.selected { color: #328a24; border-color: #91ce7e; background: #eff9eb; }
.employee-edit-part-time input { width: 14px; min-height: 14px; padding: 0; accent-color: #45a432; }
.employee-edit-part-time span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-edit-modal [data-employee-edit-error] { min-height: 17px; margin: 0; color: #c95047; font-size: 11px; }
.employee-edit-modal footer { display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; }
.employee-edit-modal footer button { min-height: 42px; border-radius: 7px; }
@media (max-width: 560px) { .employee-edit-part-time [data-employee-edit-positions] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.employee-order-history-backdrop { z-index: 1450; }
.employee-order-history-modal { width: min(920px, calc(100vw - 36px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dfe7e3; border-radius: 8px; background: #fff; box-shadow: 0 28px 80px #15231f38; }
.employee-order-history-modal > header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #e5ebe8; }
.employee-order-history-modal > header span { color: #4d9e36; font-size: 9px; font-weight: 800; }
.employee-order-history-modal > header h2 { margin: 3px 0; color: #1d2824; font-size: 21px; }
.employee-order-history-modal > header p { margin: 0; color: #7a8580; font-size: 11px; }
.employee-order-history-modal > header button { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #dfe6e2; border-radius: 7px; color: #67736e; background: #fff; font-size: 23px; }
.employee-order-history-body { min-height: 300px; padding: 18px 20px 22px; overflow-y: auto; background: #f8faf9; }
.employee-order-history-loading, .employee-order-history-empty { min-height: 260px; display: grid; place-items: center; color: #7c8882; font-size: 13px; }
.employee-order-history-empty.error { color: #c95047; }
.employee-order-history-summary { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; padding: 11px 14px; border: 1px solid #dfe8e2; border-radius: 7px; background: #fff; }
.employee-order-history-summary strong { color: #319a26; font-size: 24px; }
.employee-order-history-summary span { color: #52605a; font-size: 12px; font-weight: 700; }
.employee-order-history-summary p { margin: 0 0 0 auto; color: #84908a; font-size: 11px; }
.employee-order-history-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.employee-order-history-list article { min-width: 0; display: grid; gap: 8px; padding: 13px 14px; border: 1px solid #dfe8e2; border-radius: 7px; background: #fff; }
.employee-order-history-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.employee-order-history-title strong { color: #25332c; font-size: 13px; }
.employee-order-history-title span { padding: 4px 6px; border-radius: 5px; color: #a86819; background: #fff5e4; font-size: 9px; font-weight: 800; }
.employee-order-history-title span.done { color: #36802d; background: #edf8e9; }
.employee-order-history-list h3 { margin: 0; overflow: hidden; color: #3f4d46; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.employee-order-history-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; }
.employee-order-history-meta span { min-width: 0; overflow-wrap: anywhere; color: #738079; font-size: 10px; line-height: 1.45; }
.employee-order-history-list small { color: #9aa39f; font-size: 9px; }
@media (max-width: 760px) { .admin-order-search-panel { grid-template-columns: 1fr; } .admin-order-search-panel button { width: 100%; } .employee-order-history-list { grid-template-columns: 1fr; } .employee-order-history-summary { align-items: flex-start; flex-wrap: wrap; } .employee-order-history-summary p { width: 100%; margin-left: 0; } }

.operation-sort-backdrop { z-index: 1470; }
.operation-sort-modal { width: min(660px, calc(100vw - 34px)); height: min(900px, calc(100vh - 36px)); min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dce6e0; border-radius: 8px; background: #fff; box-shadow: 0 30px 90px #14221d40; }
.operation-sort-modal > header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #e4ebe7; }
.operation-sort-modal > header span { color: #4c9d36; font-size: 9px; font-weight: 900; }
.operation-sort-modal > header h2 { margin: 3px 0; color: #1d2923; font-size: 21px; }
.operation-sort-modal > header p { margin: 0; color: #78847e; font-size: 11px; }
.operation-sort-modal > header button { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #dce5e0; border-radius: 7px; color: #68756f; background: #fff; font-size: 23px; }
.operation-sort-fixed { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 10px; margin: 14px 20px 8px; padding: 10px 12px; border: 1px solid #dfe8e2; border-radius: 7px; background: #f6f9f7; }
.operation-sort-fixed.tail { margin-top: 8px; margin-bottom: 4px; }
.operation-sort-fixed span { color: #849089; font-size: 10px; font-weight: 800; }
.operation-sort-fixed strong { color: #53615a; font-size: 11px; }
.operation-catalog-index { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 20px 5px; padding: 8px 10px; border: 1px solid #dfe8e2; border-radius: 7px; background: #fbfdfb; }
.operation-catalog-index strong { margin-right: 3px; color: #526158; font-size: 10px; }
.operation-catalog-index button { min-height: 28px; padding: 0 9px; border: 1px solid #b8dcae; border-radius: 999px; color: #397f28; background: #f1faed; font-size: 10px; font-weight: 800; cursor: pointer; }
.operation-catalog-index button:hover, .operation-catalog-index button.active { color: #fff; border-color: #4ba536; background: #4ba536; }
.operation-sort-list { flex: 1 1 auto; min-height: 0; display: grid; align-content: start; grid-auto-rows: max-content; gap: 7px; padding: 5px 20px; overflow-y: scroll; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-color: #78bb62 #edf3ef; scrollbar-width: auto; }
.operation-sort-list::-webkit-scrollbar { width: 10px; }
.operation-sort-list::-webkit-scrollbar-track { border-radius: 999px; background: #edf3ef; }
.operation-sort-list::-webkit-scrollbar-thumb { border: 2px solid #edf3ef; border-radius: 999px; background: #78bb62; }
.operation-sort-loading, .operation-sort-empty { min-height: 140px; display: grid; place-items: center; color: #7d8983; font-size: 12px; }
.operation-sort-empty.error { color: #c95047; }
.operation-sort-row { min-height: 58px; height: max-content; align-self: start; display: grid; grid-template-columns: 24px 28px minmax(0, 1fr) 34px 34px; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #dce6e0; border-radius: 7px; background: #fff; transition: border-color .15s, box-shadow .15s, opacity .15s; }
.operation-sort-row:hover { border-color: #9fd48e; box-shadow: 0 5px 14px #4b8e3710; }
.operation-sort-row.dragging { opacity: .46; border-color: #54b438; }
.operation-sort-grip { cursor: grab; color: #9ba69f; font-size: 18px; letter-spacing: -4px; user-select: none; }
.operation-sort-row > b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 6px; color: #398e28; background: #edf8e8; font-size: 11px; }
.operation-sort-row > div { min-width: 0; display: grid; gap: 3px; }
.operation-sort-row strong { overflow: hidden; color: #2b3932; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.operation-sort-row small { overflow: hidden; color: #89958f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.operation-sort-row button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #d8e3dd; border-radius: 6px; color: #4b5b53; background: #f8faf9; font-size: 16px; font-weight: 800; }
.operation-sort-row button:hover:not(:disabled) { color: #318b21; border-color: #97d183; background: #f1faed; }
.operation-sort-row button:disabled { cursor: default; opacity: .34; }
.operation-sort-message { min-height: 18px; margin: 5px 20px 0; color: #c95047; font-size: 11px; }
.operation-sort-modal > footer { display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; padding: 13px 20px 18px; }
.operation-sort-modal > footer button { min-height: 42px; border-radius: 7px; }
@media (max-width: 560px) { .operation-sort-modal > header { padding: 14px 16px; } .operation-sort-fixed { grid-template-columns: 1fr; gap: 4px; margin-left: 16px; margin-right: 16px; } .operation-sort-list { padding-left: 16px; padding-right: 16px; } .operation-sort-row { grid-template-columns: 18px 25px minmax(0, 1fr) 32px 32px; gap: 6px; padding-left: 7px; padding-right: 7px; } }
.operation-catalog-modal { width: min(860px, calc(100vw - 34px)); }
.operation-catalog-create { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 8px; padding: 14px 20px 7px; }
.operation-catalog-create input, .operation-catalog-group input { min-width: 0; height: 38px; padding: 0 10px; border: 1px solid #d8e3dd; border-radius: 6px; outline: 0; color: #2d3933; background: #fff; }
.operation-catalog-create input:focus, .operation-catalog-group input:focus { border-color: #6bc34f; box-shadow: 0 0 0 3px #5eb84218; }
.operation-catalog-create button { min-height: 38px; padding: 0 13px; border: 1px solid #84cc6e; border-radius: 6px; color: #fff; background: #459f32; font-size: 11px; font-weight: 800; }
.operation-catalog-group { display: block; padding: 9px 10px 10px; }
.operation-catalog-group.operation-catalog-created { border-color: #62bd48; box-shadow: 0 0 0 4px #65bf4924, 0 8px 22px #397f2520; animation: operation-catalog-created 1.1s ease-in-out 2; }
@keyframes operation-catalog-created { 0%, 100% { background: #fff; } 50% { background: #f0fbe9; } }
.operation-catalog-group > header { display: grid; grid-template-columns: 24px 28px minmax(140px, 1fr) repeat(5, 32px); align-items: center; gap: 7px; }
.operation-catalog-group > header > b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 6px; color: #398e28; background: #edf8e8; font-size: 11px; }
.operation-catalog-group button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid #d8e3dd; border-radius: 6px; color: #4b5b53; background: #f8faf9; font-size: 15px; font-weight: 800; }
.operation-catalog-group button.danger { color: #bd5148; border-color: #edcbc7; background: #fff7f6; }
.operation-catalog-steps { display: grid; gap: 6px; margin: 8px 0 0 59px; padding: 8px; border: 1px solid #e5ebe7; border-radius: 6px; background: #f8faf9; }
.operation-catalog-steps > div { display: grid; grid-template-columns: 38px minmax(120px, 1fr) 32px 32px; align-items: center; gap: 7px; }
.operation-catalog-steps span { color: #89948e; font-size: 9px; font-weight: 800; text-align: center; }
.operation-catalog-steps p { margin: 3px; color: #8b958f; font-size: 10px; }
.operation-catalog-group [data-operation-new-step] { display: grid; grid-template-columns: minmax(140px, 1fr) 58px 58px; gap: 7px; margin: 8px 0 0 59px; }
.operation-catalog-group [data-operation-new-step][hidden] { display: none; }
.operation-catalog-group [data-operation-new-step] button { width: auto; padding: 0 9px; font-size: 10px; }
@media (max-width: 720px) { .operation-catalog-create { grid-template-columns: 1fr; } .operation-catalog-group > header { grid-template-columns: 20px 26px minmax(120px, 1fr) repeat(2, 31px); } .operation-catalog-group [data-operation-move], .operation-catalog-group [data-operation-group-delete] { display: none; } .operation-catalog-steps, .operation-catalog-group [data-operation-new-step] { margin-left: 0; } }
.cooperation-record-list { display: grid; gap: 8px; }
.cooperation-record-list article { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 10px; border: 1px solid #dfe8e2; border-radius: 7px; background: #f9fbfa; }
.cooperation-record-list article > b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 6px; color: #368e27; background: #eaf7e5; font-size: 10px; }
.cooperation-record-list article > div { min-width: 0; display: grid; gap: 4px; }
.cooperation-record-list strong { color: #29362f; font-size: 11px; }
.cooperation-record-list p { margin: 0; color: #68756e; font-size: 10px; line-height: 1.45; }
.cooperation-record-list em { color: #318e25; font-style: normal; font-weight: 800; }
.cooperation-record-list small { color: #919b96; font-size: 9px; }
.attendance-range-archive-card { margin-top: 16px; overflow: hidden; }
.attendance-range-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #e3eae6; }
.attendance-range-head h2 { margin: 4px 0; color: #24312b; font-size: 19px; }
.attendance-range-head p { margin: 0; color: #7d8983; font-size: 11px; }
.attendance-range-head button { min-height: 36px; padding: 0 13px; border: 1px solid #c8dfc1; border-radius: 6px; color: #378d29; background: #f3faef; font-size: 11px; font-weight: 800; }
.attendance-range-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 20px 0; }
.attendance-range-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border: 1px solid #e0e8e3; border-radius: 7px; background: #f9fbfa; }
.attendance-range-summary span { color: #738079; font-size: 11px; }
.attendance-range-summary strong { color: #2f3d35; font-size: 20px; }
.attendance-range-toolbar { min-height: 65px; display: flex; align-items: end; gap: 12px; padding: 12px 20px; }
.attendance-range-toolbar label { display: grid; gap: 5px; color: #68756e; font-size: 10px; font-weight: 800; }
.attendance-range-toolbar select { min-width: 170px; height: 36px; padding: 0 9px; border: 1px solid #d8e2dc; border-radius: 6px; color: #34423b; background: #fff; }
.attendance-range-toolbar > span { margin: 0 0 9px auto; color: #87918c; font-size: 10px; }
.attendance-range-table-wrap { position: relative; overflow-x: auto; border-top: 1px solid #e4ebe7; }
.attendance-range-table-wrap table { width: 100%; min-width: 1050px; border-collapse: collapse; }
.attendance-range-table-wrap th { padding: 10px 12px; color: #7c8882; background: #f6f8f7; font-size: 10px; text-align: left; white-space: nowrap; }
.attendance-range-table-wrap td { padding: 11px 12px; border-top: 1px solid #e8eeea; color: #53615a; font-size: 10px; vertical-align: top; }
.attendance-range-table-wrap td:first-child { min-width: 145px; }
.attendance-range-table-wrap td strong, .attendance-range-table-wrap td small { display: block; }
.attendance-range-table-wrap td strong { color: #29372f; font-size: 11px; }
.attendance-range-table-wrap td small { margin-top: 3px; color: #89938e; font-size: 9px; }
.attendance-result { display: inline-flex; align-items: center; min-height: 24px; padding: 0 7px; border-radius: 5px; font-weight: 800; }
.attendance-result.on-duty { color: #2f8c28; background: #ecf8e9; }
.attendance-result.resting { color: #bd5147; background: #fff0ee; }
.attendance-result.failed { color: #b36b19; background: #fff5e5; }
.attendance-result.missing { color: #6e7973; background: #eef1ef; }
.attendance-range-empty { min-height: 130px; display: grid; place-items: center; color: #89938e; font-size: 12px; }
.attendance-range-empty.error { color: #c95047; }
@media (max-width: 760px) { .attendance-range-head { align-items: flex-start; } .attendance-range-summary { grid-template-columns: repeat(2, 1fr); } .attendance-range-toolbar { align-items: stretch; flex-direction: column; } .attendance-range-toolbar select { width: 100%; } .attendance-range-toolbar > span { margin: 0; } }
.admin-accept-setting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px 20px 8px; }
.admin-accept-setting-grid label, .admin-repeat-minutes { display: grid; gap: 7px; color: #52605a; font-size: 11px; font-weight: 800; }
.admin-accept-setting-grid input, .admin-repeat-minutes input { min-width: 0; height: 40px; padding: 0 11px; border: 1px solid #d7e1db; border-radius: 6px; color: #26342d; background: #fff; outline: 0; }
.admin-accept-setting-grid input:focus, .admin-repeat-minutes input:focus { border-color: #6abd50; box-shadow: 0 0 0 3px #64b94918; }
.admin-repeat-setting { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 8px 20px; padding: 10px 13px; border: 1px solid #dfe7e2; border-radius: 7px; background: #f8faf9; }
.admin-repeat-setting span { display: grid; gap: 3px; }
.admin-repeat-setting strong { color: #34423b; font-size: 11px; }
.admin-repeat-setting small { color: #87928c; font-size: 9px; }
.admin-repeat-setting input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: #48a632; }
.admin-repeat-minutes { margin: 10px 20px; }
.admin-repeat-minutes[hidden] { display: none; }
.admin-accept-setting-message { min-height: 18px; margin: 4px 20px 0; color: #378e2a; font-size: 10px; }
.admin-accept-setting-message.error { color: #c95047; }
@media (max-width: 640px) { .admin-accept-setting-grid { grid-template-columns: 1fr; } }
.admin-location-reader { display: flex; align-items: center; gap: 12px; margin: 0 20px 14px; padding: 11px 12px; border: 1px solid #dce7df; border-radius: 7px; background: #f8faf9; }
.admin-location-reader button { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 0 13px; border: 1px solid #92d27e; border-radius: 6px; color: #fff; background: #459f32; font-size: 11px; font-weight: 800; }
.admin-location-reader button:disabled { cursor: wait; opacity: .65; }
.admin-location-reader button span { font-size: 16px; }
.admin-location-reader p { margin: 0; color: #7c8882; font-size: 10px; line-height: 1.45; }
.admin-location-reader p.success { color: #348b28; }
.admin-location-reader p.error { color: #c95047; }
@media (max-width: 640px) { .admin-location-reader { align-items: stretch; flex-direction: column; } .admin-location-reader button { justify-content: center; } }

/* 管理后台登录页与设计、采购电脑端统一为品牌展示式登录。 */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(520px, 1.12fr) minmax(430px, .88fr);
  gap: 0;
  place-items: stretch;
  padding: 24px;
  background: #eef3ef;
}
.admin-login-showcase {
  position: relative;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 48px 58px 34px;
  border-radius: 28px;
  color: #f5fff3;
  background:
    linear-gradient(90deg, rgba(213, 255, 196, .055) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(213, 255, 196, .055) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(140deg, #0d211c 0%, #17372a 53%, #2d5d37 100%);
  box-shadow: 0 24px 60px rgba(23, 67, 39, .18);
}
.admin-login-showcase::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(224, 255, 212, .1);
  border-radius: 20px;
  pointer-events: none;
}
.admin-login-showcase::after {
  content: "";
  position: absolute;
  right: -70px;
  top: 16%;
  width: 310px;
  height: 1px;
  background: rgba(196, 249, 163, .28);
  transform: rotate(-33deg);
  box-shadow: 0 28px 0 rgba(196, 249, 163, .12), 0 56px 0 rgba(196, 249, 163, .07);
  pointer-events: none;
}
.admin-login-showcase > * { position: relative; z-index: 1; }
.admin-login-showcase-brand { display: flex; align-items: center; gap: 12px; }
.admin-login-showcase-mark {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  object-fit: cover;
  background: transparent;
  box-shadow: 0 10px 25px rgba(111, 214, 65, .18);
}
.admin-login-showcase-brand div:last-child { display: grid; gap: 3px; }
.admin-login-showcase-brand strong { font-size: 20px; letter-spacing: .01em; }
.admin-login-showcase-brand span { color: rgba(232, 255, 222, .66); font-size: 12px; }
.admin-login-showcase-copy { max-width: 610px; margin: auto 0 34px; }
.admin-login-eyebrow { color: #c9f5a9; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.admin-login-showcase-copy h1 { margin: 18px 0 18px; color: #f7fff4; font-size: clamp(42px, 4vw, 64px); line-height: 1.18; letter-spacing: -.045em; }
.admin-login-showcase-copy h1 em { color: #b8f37d; font-style: normal; }
.admin-login-showcase-copy p { max-width: 540px; margin: 0; color: rgba(238, 255, 234, .75); font-size: 16px; line-height: 1.85; }
.admin-login-preview { width: min(570px, 100%); padding: 12px 22px; border: 1px solid rgba(226, 255, 216, .18); border-radius: 18px; background: rgba(235, 255, 229, .1); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.admin-login-preview-head { display: flex; align-items: center; justify-content: space-between; min-height: 38px; color: rgba(242, 255, 236, .92); font-size: 13px; font-weight: 700; }
.admin-login-preview-head b { padding: 5px 8px; border: 1px solid rgba(196, 255, 163, .32); border-radius: 999px; color: #d8ffbe; background: rgba(163, 239, 103, .1); font-size: 10px; font-weight: 700; }
.admin-login-preview-line { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 50px; border-top: 1px solid rgba(235, 255, 229, .12); color: rgba(246, 255, 243, .88); font-size: 13px; }
.admin-login-preview-line i { width: 10px; height: 10px; border: 2px solid rgba(232, 255, 222, .45); border-radius: 50%; }
.admin-login-preview-line i.done { border-color: #e4ffcf; background: #e4ffcf; }
.admin-login-preview-line i.active { border-color: #c5f989; box-shadow: 0 0 0 5px rgba(197, 249, 137, .13); }
.admin-login-preview-line em { color: rgba(232, 255, 222, .56); font-size: 11px; font-style: normal; }
.admin-login-showcase-foot { display: flex; gap: 8px; margin-top: 24px; color: rgba(226, 255, 216, .48); font-size: 10px; letter-spacing: .12em; }
.admin-login-card { align-self: center; justify-self: center; width: min(420px, calc(100% - 46px)); padding: 40px 42px 34px; border: 1px solid rgba(219, 231, 220, .95); border-radius: 24px; background: rgba(255, 255, 255, .96); box-shadow: 0 26px 70px rgba(23, 45, 30, .14); }
.admin-login-card .brand { margin-bottom: 46px; color: #17251e; }
.admin-login-card .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
.admin-login-card .admin-login-brand-mark { display: block; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: hidden; }
.admin-login-card .admin-login-brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.admin-login-card .brand > span { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.admin-login-card .login-copy h1 { margin: 0 0 10px; color: #122119; font-size: 35px; letter-spacing: -.045em; }
.admin-login-card .login-copy p { margin: 0 0 32px; color: #78847e; font-size: 14px; line-height: 1.6; }
.admin-login-card .form-stack { gap: 17px; }
.admin-login-card .form-stack label { gap: 9px; margin: 0; color: #45524b; font-size: 13px; font-weight: 700; }
.admin-login-card .form-stack input { height: 52px; padding: 0 14px; border: 1px solid #dbe6dc; border-radius: 12px; color: #233029; background: #fbfdfb; font-size: 15px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.admin-login-password-wrap { position: relative; display: flex; align-items: center; }
.admin-login-card .admin-login-password-wrap input { width: 100%; padding-right: 48px; }
.admin-login-password-toggle { position: absolute; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #8b9890; background: transparent; cursor: pointer; }
.admin-login-password-toggle:hover, .admin-login-password-toggle:focus-visible { color: #398f2b; background: #eff8eb; outline: 0; }
.admin-login-password-toggle span { position: relative; width: 18px; height: 12px; display: block; border: 1.6px solid currentColor; border-radius: 70% 0 70% 0; transform: rotate(45deg); }
.admin-login-password-toggle span::after { content: ''; position: absolute; top: 3px; left: 5px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.admin-login-password-toggle.is-visible { color: #398f2b; }
.admin-login-card .form-stack input:focus { border-color: #7bcf5f; background: #fff; box-shadow: 0 0 0 4px rgba(88, 196, 56, .11); }
.admin-login-card .form-stack .primary-button { min-height: 52px; margin-top: 3px; border-radius: 12px; color: #10200f; background: linear-gradient(135deg, #b2f15b, #79d83e); box-shadow: 0 12px 23px rgba(100, 184, 51, .22); font-size: 15px; }
.admin-login-card .form-stack .primary-button:hover { background: linear-gradient(135deg, #c0f976, #85e44a); }
.admin-login-card .login-hint { margin-top: 22px; color: #98a39c; font-size: 12px; }
.admin-login-card .error-text { min-height: 18px; margin: -2px 0 0; color: #c95047; }
@media (max-width: 980px) {
  .login-page { grid-template-columns: 1fr 420px; padding: 16px; }
  .admin-login-showcase { padding-left: 38px; padding-right: 38px; }
  .admin-login-card { width: min(420px, calc(100% - 24px)); padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 760px) {
  html, body { min-width: 0; }
  .login-page { grid-template-columns: 1fr; gap: 0; padding: 14px; }
  .admin-login-showcase { min-height: 390px; padding: 30px 28px 24px; border-radius: 22px; }
  .admin-login-showcase::before { inset: 16px; border-radius: 16px; }
  .admin-login-showcase-copy { margin-top: auto; margin-bottom: 0; }
  .admin-login-showcase-copy h1 { margin: 14px 0 12px; font-size: 40px; }
  .admin-login-showcase-copy p { font-size: 13px; line-height: 1.65; }
  .admin-login-preview, .admin-login-showcase-foot { display: none; }
  .admin-login-card { position: relative; z-index: 2; width: min(100%, 460px); margin: -48px auto 18px; padding: 30px 26px 26px; border-radius: 20px; }
  .admin-login-card .brand { margin-bottom: 30px; }
  .admin-login-card .login-copy h1 { font-size: 30px; }
}
.topbar .search-box { position: relative; z-index: 20; pointer-events: auto; }
.topbar .search-box input { position: relative; z-index: 1; pointer-events: auto; }
.admin-global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 430px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #dfe7e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(24, 54, 32, .16);
  z-index: 50;
}
.admin-global-search-group { display: grid; gap: 3px; }
.admin-global-search-group + .admin-global-search-group { margin-top: 7px; padding-top: 7px; border-top: 1px solid #edf1ed; }
.admin-global-search-group > span { padding: 4px 8px 3px; color: #7e8b83; font-size: 11px; font-weight: 700; }
.admin-global-search-result { width: 100%; display: grid; gap: 3px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.admin-global-search-result:hover, .admin-global-search-result:focus-visible { outline: 0; background: #f1fae9; }
.admin-global-search-result strong { color: #1d2a22; font-size: 13px; font-weight: 700; }
.admin-global-search-result small { overflow: hidden; color: #7a8780; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.admin-global-search-empty, .admin-global-search-loading { padding: 18px 12px; color: #7c8982; font-size: 12px; text-align: center; }
@media (max-width: 620px) {
  .admin-global-search-results { right: -10px; width: min(360px, calc(100vw - 32px)); }
}
.sign-in-archive-table tbody tr[data-sign-in-date-summary] td { padding: 0; border-bottom: 1px solid #dce8da; background: #f7fbf4; }
.sign-in-date-summary-button { width: 100%; min-height: 58px; display: grid; grid-template-columns: 25px minmax(108px, .45fr) auto minmax(260px, 1fr); align-items: center; gap: 12px; padding: 0 16px; border: 0; color: #253229; background: transparent; text-align: left; cursor: pointer; }
.sign-in-date-summary-button:hover, .sign-in-date-summary-button:focus-visible { outline: 0; background: #eef8e8; }
.sign-in-date-summary-arrow { color: #4c9e2e; font-size: 18px; font-weight: 700; }
.sign-in-date-summary-button strong { color: #253229; font-size: 14px; }
.sign-in-date-summary-button b { padding: 5px 9px; border-radius: 999px; color: #3f8f1f; background: #e8f6df; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sign-in-date-summary-button small { overflow: hidden; color: #7a8780; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sign-in-archive-table tbody tr[data-sign-in-date-detail] td { background: #fff; }
.sign-in-archive-table tbody tr[data-sign-in-presence-detail] td { padding: 0 18px 14px 54px; background: #fff; border-top: 0; }
.presence-timeline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #e4eddf; border-radius: 10px; background: #f8fcf5; color: #617067; font-size: 11px; }
.presence-timeline.is-loading, .presence-timeline.is-empty, .presence-timeline.is-error { display: block; color: #87918c; }
.presence-timeline.is-error { color: #c95047; background: #fff7f6; border-color: #f0cbc7; }
.presence-event { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; color: #315229; background: #edf8e7; }
.presence-event.left_range, .presence-event.offline { color: #a33b32; background: #fff1ef; }
.presence-event b { color: inherit; font-size: 11px; }
.presence-event i { color: #8b978f; font-style: normal; }
.presence-event small { color: #708078; font-size: 10px; }
@media (max-width: 760px) {
  .sign-in-date-summary-button { grid-template-columns: 22px minmax(100px, auto) auto; gap: 8px; padding: 0 10px; }
  .sign-in-date-summary-button small { grid-column: 2 / -1; padding-bottom: 10px; }
  .sign-in-archive-table tbody tr[data-sign-in-presence-detail] td { padding-left: 12px; }
}

/* Employee management: filled controls with consistent visual hierarchy. */
.employee-add-button {
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  box-shadow: 0 7px 16px rgba(79, 150, 37, .18);
  font-weight: 700 !important;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.employee-add-operation-button {
  color: #fff !important;
  background: linear-gradient(135deg, #50b638, #2f9429) !important;
}
.employee-add-clerical-button {
  color: #15220d !important;
  background: linear-gradient(135deg, #a8f524, #83df00) !important;
}
.employee-add-button:hover,
.employee-add-button:focus-visible {
  outline: 0;
  filter: brightness(1.025);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(69, 139, 31, .24);
}
.employee-order-history-button,
.employee-edit-button,
tr[data-employee-row-ready] .small-button.delete-button {
  min-width: 64px;
  height: 31px;
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(33, 66, 43, .12);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.employee-order-history-button {
  border: 1px solid #3a9f2c;
  color: #fff;
  background: linear-gradient(135deg, #65c94b, #3ca32e);
}
.employee-edit-button {
  border: 1px solid #3979b3;
  color: #fff;
  background: linear-gradient(135deg, #589bd3, #3979b3);
}
tr[data-employee-row-ready] .small-button.delete-button {
  border-color: #d85852;
  color: #fff;
  background: linear-gradient(135deg, #ef716a, #d94f49);
}
.employee-order-history-button:hover,
.employee-order-history-button:focus-visible,
.employee-edit-button:hover,
.employee-edit-button:focus-visible,
tr[data-employee-row-ready] .small-button.delete-button:hover,
tr[data-employee-row-ready] .small-button.delete-button:focus-visible {
  outline: 0;
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 7px 13px rgba(33, 66, 43, .18);
}
.employee-edit-button:disabled,
tr[data-employee-row-ready] .small-button.delete-button:disabled {
  opacity: .52;
  transform: none;
  box-shadow: none;
}
tr[data-employee-row-ready] .status-pill.green {
  border: 1px solid #c4eaa9;
  color: #2c7d18;
  background: #e1f7d1;
}
tr[data-employee-row-ready] .status-pill.red {
  border: 1px solid #ffc8c3;
  color: #c93731;
  background: #ffe4e1;
}
.admin-phone-protection-toggle {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid #cfe6c6;
  border-radius: 8px;
  background: #f3faef;
  color: #2f861a !important;
}
.admin-phone-protection-toggle input { width: 18px !important; height: 18px !important; margin: 0; accent-color: #55bd31; }
.admin-phone-protection-toggle span { color: #2f861a; font-weight: 600; }
.admin-phone-protection-toggle small { margin-left: auto; color: #72836e; font-size: 12px; font-weight: 400; }
.admin-order-note-field { grid-column: 1 / -1; }
.admin-order-note-field textarea { width: 100%; min-height: 72px; padding: 11px 12px; border: 1px solid #dce7d9; border-radius: 9px; outline: 0; resize: vertical; color: #2e3831; background: #fff; font: inherit; line-height: 1.6; }
.admin-order-note-field textarea:focus { border-color: #7bd162; box-shadow: 0 0 0 3px rgba(92, 191, 61, .1); }
.admin-order-note-field small { color: #72836e; font-size: 11px; font-weight: 400; }
.admin-order-notes-list { display: grid; gap: 8px; }
.admin-order-notes-list article { padding: 10px 12px; border: 1px solid #e2ebe0; border-radius: 9px; background: #fbfdfb; }
.admin-order-notes-list article > div { display: flex; align-items: center; gap: 10px; }
.admin-order-notes-list strong { color: #2d9817; font-size: 11px; }
.admin-order-notes-list time { color: #929d94; font-size: 10px; }
.admin-order-notes-list p { margin: 7px 0 0; color: #4b584e; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.65; }
.admin-inline-notes { display: grid; gap: 7px; margin-top: 7px; }
.admin-inline-notes article { padding: 8px 10px; border: 1px solid #e2ebe0; border-radius: 8px; background: #fbfdfb; }
.admin-inline-notes article > div { display: flex; align-items: center; gap: 9px; }
.admin-inline-notes strong { color: #2d9817; font-size: 11px; }
.admin-inline-notes time { color: #929d94; font-size: 10px; }
.admin-inline-notes p { margin: 5px 0 0; color: #4b584e; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.55; }

/* Subsystem management: make the immutable hostname obvious and keep the
 * card action aligned with the existing metrics on narrow desktop windows. */
.subsystem-create-form .subdomain-input-wrap {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid #dce6df;
  border-radius: 8px;
  background: #fbfdfb;
  color: #718078;
  padding: 0 11px;
  gap: 3px;
  font-size: 13px;
}
.subsystem-create-form .subdomain-input-wrap:focus-within {
  border-color: #7bd162;
  box-shadow: 0 0 0 3px rgba(92, 191, 61, .1);
}
.subsystem-create-form .subdomain-input-wrap input {
  min-width: 0;
  flex: 1;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #23352b;
  padding: 0 2px;
}
.subsystem-create-hint {
  padding: 11px 12px;
  border: 1px solid #d8edca;
  border-radius: 8px;
  background: #f3faef;
  color: #4d7c43;
  font-size: 12px;
  line-height: 1.6;
}
.subsystem-card .system-info strong {
  color: #2f8b1e;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.subsystem-copy-button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #4e9f28;
  font-size: 11px;
  padding: 2px 0 2px 6px;
}
.subsystem-copy-button:hover { color: #236d14; text-decoration: underline; }
.subsystem-initial-password { align-items: center; gap: 5px; }
.subsystem-initial-password strong { color: #2c7f1d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }
.subsystem-initial-password .subsystem-copy-button { margin-left: 3px; }
.subsystem-enter-button {
  white-space: nowrap;
  color: #3c8e1e;
  border-color: #cfe4c8;
  text-decoration: none;
}
.subsystem-enter-button:hover { color: #246e14; background: #f3faef; }
.system-metrics .subsystem-card-actions {
  margin-left: auto;
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}
.subsystem-renew-button {
  white-space: nowrap;
  color: #fff;
  border-color: #56aa2f;
  background: #56aa2f;
}
.subsystem-renew-button:hover {
  color: #fff;
  border-color: #3c8d1d;
  background: #3c8d1d;
}
.subsystem-delete-button {
  white-space: nowrap;
  color: #b43a32;
  border-color: #efc9c5;
  background: #fff8f7;
}
.subsystem-delete-button:hover {
  color: #8e211b;
  border-color: #dda09a;
  background: #fff0ee;
}
.subsystem-renew-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid #dcebd5;
  border-radius: 9px;
  background: #f5fbf1;
}
.subsystem-renew-summary span { color: #718078; font-size: 12px; }
.subsystem-renew-summary strong { color: #2d8318; font-size: 17px; }
.subsystem-delete-warning {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #efc9c5;
  border-radius: 9px;
  color: #6f302b;
  background: #fff7f6;
}
.subsystem-delete-warning strong { color: #a52d25; font-size: 15px; }
.subsystem-delete-warning span { color: #273334; font-weight: 650; overflow-wrap: anywhere; }
.subsystem-delete-warning p { margin: 0; color: #7b5a56; font-size: 12px; line-height: 1.65; }
.subsystem-delete-confirm-name { color: #a52d25; }
.subsystem-delete-confirm-button {
  border-color: #bd3e35;
  background: #bd3e35;
  color: #fff;
}
.subsystem-delete-confirm-button:hover:not(:disabled) {
  border-color: #96271f;
  background: #96271f;
}
.subsystem-delete-confirm-button:disabled { opacity: .48; cursor: not-allowed; }

.subsystem-credentials-modal {
  width: min(560px, calc(100vw - 32px));
  padding: 26px 28px 24px;
  border: 1px solid #d9e9d5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 56, 22, .2);
}
.subsystem-credentials-modal header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid #edf3ea; }
.subsystem-credentials-modal header span { color: #4d9e32; font-size: 11px; letter-spacing: .12em; font-weight: 700; }
.subsystem-credentials-modal h2 { margin: 6px 0 4px; color: #19301d; font-size: 22px; }
.subsystem-credentials-modal header p { margin: 0; color: #748078; font-size: 13px; line-height: 1.55; }
.subsystem-credentials-modal header button { flex: 0 0 auto; border: 0; background: transparent; color: #657169; font-size: 26px; line-height: 1; cursor: pointer; }
.subsystem-credentials-warning { margin: 18px 0 12px; padding: 11px 13px; border-radius: 9px; color: #6b551b; background: #fff9e8; border: 1px solid #f0dfa5; font-size: 13px; }
.subsystem-credentials-modal dl { display: grid; gap: 10px; margin: 0; }
.subsystem-credentials-modal dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid #e1ebe0; border-radius: 10px; background: #f9fcf8; }
.subsystem-credentials-modal dt { color: #67736b; font-size: 13px; }
.subsystem-credentials-modal dd { display: flex; align-items: center; min-width: 0; gap: 10px; margin: 0; }
.subsystem-credentials-modal code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: #1c3220; font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.subsystem-credentials-modal dd button { flex: 0 0 auto; padding: 4px 9px; border: 1px solid #c6e1bd; border-radius: 6px; color: #398724; background: #f1faee; cursor: pointer; font-size: 12px; }
.subsystem-credentials-modal footer { display: flex; justify-content: flex-end; margin-top: 20px; }
.subsystem-credentials-modal footer .primary-button { min-width: 108px; }
@media (max-width: 720px) {
  .system-metrics .subsystem-card-actions {
    width: 100%;
    margin-left: 0;
  }
  .subsystem-card-actions .small-button { flex: 1; }
}

/* Keep the live order detail readable on desktop screens. The legacy drawer
 * was fixed at 460px, which clipped long process names and status text. */
@media (min-width: 801px) {
  main aside.drawer:not(.order-archive-drawer) {
    width: min(620px, 52vw);
    max-width: calc(100vw - 40px);
  }
  main aside.drawer:not(.order-archive-drawer) .flow-step {
    align-items: flex-start;
    min-height: 44px;
    line-height: 1.5;
  }
  main aside.drawer:not(.order-archive-drawer) .flow-step > span,
  main aside.drawer:not(.order-archive-drawer) .drawer-summary strong,
  main aside.drawer:not(.order-archive-drawer) .log-item strong {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  main aside.drawer:not(.order-archive-drawer) .drawer-material-row span,
  main aside.drawer:not(.order-archive-drawer) .drawer-material-row b,
  main aside.drawer:not(.order-archive-drawer) .drawer-material-row em {
    overflow-wrap: anywhere;
    white-space: normal;
  }
}
