.customer-task-workbench-view {
  --ct-ink: #172536;
  --ct-muted: #667587;
  --ct-line: #d5dde6;
  --ct-navy: #173f66;
  --ct-blue: #245f94;
  --ct-blue-soft: #eaf1f7;
  --ct-gold: #9a7638;
  --ct-gold-soft: #f6f0e4;
  --ct-red: #b64747;
  --ct-red-soft: #faeaea;
  --ct-green: #2d6b55;
  --ct-green-soft: #eaf4ef;
  color: var(--ct-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  height: calc(100vh - 104px);
  min-height: 560px;
  background: #edf1f5;
  overflow: hidden;
}

.customer-task-workbench-head {
  min-height: 70px;
  padding: 13px 18px 12px;
  border-bottom: 1px solid #cbd5df;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.customer-task-workbench-head h2 { margin: 2px 0 0; font-size: 20px; line-height: 1.3; letter-spacing: 0; }
.customer-task-workbench-tools { display: flex; align-items: center; gap: 8px; }
.customer-task-search-box input {
  width: min(340px, 32vw);
  height: 36px;
  padding: 0 12px;
  border: 1px solid #b9c6d2;
  border-radius: 5px;
  background: #f9fbfc;
  color: var(--ct-ink);
  font-size: 12px;
  outline: 0;
}
.customer-task-search-box input:focus { border-color: #5f87ab; box-shadow: 0 0 0 3px rgba(57, 105, 147, .1); background: #fff; }
.customer-task-refresh-button {
  width: 36px;
  height: 36px;
  border: 1px solid #aebdca;
  border-radius: 5px;
  background: #fff;
  color: var(--ct-blue);
  font-size: 18px;
  cursor: pointer;
}
.customer-task-refresh-button:hover { background: #edf3f8; }

.customer-task-filter-bar {
  min-height: 54px;
  padding: 8px 18px;
  border-bottom: 1px solid #cad4df;
  background: #f7f9fb;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}
.customer-task-filter-bar button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #c5d0da;
  border-radius: 5px;
  background: #fff;
  color: #526273;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.customer-task-filter-bar button b { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #edf1f5; color: #5e6c7a; font-size: 10px; line-height: 20px; text-align: center; }
.customer-task-filter-bar button.active { border-color: #315f88; background: #e7eff6; color: #173f66; font-weight: 650; box-shadow: inset 0 -2px 0 #315f88; }
.customer-task-filter-bar button.active b { background: #173f66; color: #fff; }
.customer-task-filter-bar button.danger:not(.active) { border-color: #e0baba; color: #a54141; }
.customer-task-filter-bar button.danger:not(.active) b { background: #f8e7e7; color: #a54141; }

.customer-task-workbench-layout {
  height: calc(100% - 125px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 280px) minmax(310px, 340px) minmax(0, 1fr);
}
.customer-task-inbox { min-height: 0; border-right: 1px solid #c8d2dc; background: #f7f9fb; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.customer-task-list-meta { min-height: 42px; padding: 0 14px; border-bottom: 1px solid var(--ct-line); background: #fff; display: flex; align-items: center; justify-content: space-between; }
.customer-task-list-meta strong { font-size: 12px; }
.customer-task-list-meta span { color: var(--ct-muted); font-size: 11px; }
.customer-task-list { min-height: 0; overflow-y: auto; }

.customer-task-list-row {
  width: 100%;
  min-height: 120px;
  padding: 12px 13px 11px 10px;
  border: 0;
  border-bottom: 1px solid var(--ct-line);
  background: #fff;
  color: var(--ct-ink);
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 10px;
}
.customer-task-list-row:hover { background: #f1f5f8; }
.customer-task-list-row.active { background: #e8f0f7; box-shadow: inset 3px 0 0 var(--ct-blue); }
.customer-task-list-marker { position: relative; width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: #aeb9c4; }
.customer-task-unread-dot { position: absolute; top: -7px; right: -7px; width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; background: #d94a4a; box-shadow: 0 2px 5px rgba(129,31,31,.3); }
.customer-task-list-row.unread .customer-task-list-marker { background: #aeb9c4; box-shadow: none; }
.customer-task-list-content { min-width: 0; display: grid; align-content: start; gap: 5px; }
.customer-task-list-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.customer-task-list-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.customer-task-list-top time { flex: 0 0 auto; color: #8c98a5; font-size: 10px; }
.customer-task-list-subject { color: #27384a; font-size: 13px; font-weight: 650; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-task-list-reference { color: var(--ct-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-task-list-preview { color: #657b8f; font-size: 11px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-task-list-reply-preview { color: #3c6f82; }
.customer-task-list-foot { margin-top: 2px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.customer-task-list-status,
.customer-task-list-due {
  min-height: 20px;
  padding: 1px 6px;
  border: 1px solid #cbd7e1;
  border-radius: 4px;
  background: #edf3f8;
  color: #315f86;
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
  white-space: nowrap;
}
.customer-task-list-status.status-answered { border-color: #c4ddd2; background: var(--ct-green-soft); color: var(--ct-green); }
.customer-task-list-status.status-completed { border-color: #d5dbe1; background: #f0f2f4; color: #6c7782; }
.customer-task-list-due { border-color: #e1d4b8; background: var(--ct-gold-soft); color: #7b6133; }
.customer-task-list-due.due-overdue { border-color: #e6bebe; background: var(--ct-red-soft); color: #a33f3f; }
.customer-task-list-due.due-none { border-color: #d5dbe1; background: #f3f5f6; color: #7c8792; }
.customer-task-list-foot > b { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #697686; font-size: 10px; font-weight: 500; }

.customer-task-context-panel { min-width: 0; min-height: 0; border-right: 1px solid #c8d2dc; background: #f3f6f9; overflow-y: auto; }
.customer-task-context-head { min-height: 82px; box-sizing: border-box; padding: 17px 16px 13px; border-bottom: 1px solid #d5dee7; background: #f8fafc; display: flex; align-items: flex-start; }
.customer-task-context-head span { display: block; color: var(--ct-gold); font-size: 10px; font-weight: 700; }
.customer-task-context-head h3 { margin: 4px 0 0; color: #20394f; font-size: 16px; line-height: 1.3; }
.customer-task-context-content { padding: 15px 16px 22px; }
.customer-task-context-order-no { display: block; padding-bottom: 13px; border-bottom: 1px solid #d5dee7; color: #173b5e; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.customer-task-context-order-link { width: fit-content; max-width: 100%; color: #1d5687; text-decoration: none; cursor: pointer; }
.customer-task-context-order-link span { display: inline-block; margin-left: 6px; color: var(--ct-gold); font-size: 13px; transition: transform 160ms ease; }
.customer-task-context-order-link:hover { color: #174e7e; text-decoration: underline; text-decoration-color: #b59458; text-underline-offset: 3px; }
.customer-task-context-order-link:hover span { transform: translate(2px, -2px); }
.customer-task-context-factories { padding: 12px 0 13px; border-bottom: 1px solid #d5dee7; }
.customer-task-context-factories h4 { margin: 0 0 8px; color: #6b7e90; font-size: 10px; font-weight: 700; }
.customer-task-context-factories > p { margin: 0; color: #7c8995; font-size: 11px; }
.customer-task-context-factory { padding: 8px 0; border-top: 1px solid #e0e7ed; }
.customer-task-context-factory:first-of-type { border-top: 0; }
.customer-task-context-factory strong, .customer-task-context-factory span, .customer-task-context-factory small { display: block; overflow-wrap: anywhere; }
.customer-task-context-factory strong { color: #214d75; font-size: 13px; }
.customer-task-context-factory span { margin-top: 3px; color: #516d87; font-size: 11px; line-height: 1.45; }
.customer-task-context-factory small { margin-top: 3px; color: #718092; font-size: 10px; line-height: 1.45; }
.customer-task-context-factory.target { margin: 4px 0; padding: 10px 11px; border: 1px solid #b8cfe0; border-radius: 6px; background: #edf5fa; box-shadow: inset 3px 0 0 #3d759e, 0 3px 9px rgba(28, 68, 99, .06); }
.customer-task-context-factory strong em { display: inline-flex; min-height: 19px; margin-left: 8px; padding: 0 7px; border: 1px solid #abc6da; border-radius: 10px; align-items: center; vertical-align: 1px; background: #fff; color: #2b638d; font-size: 9px; font-style: normal; font-weight: 700; }
.customer-task-context-factories details { margin-top: 5px; }
.customer-task-context-factories summary { color: var(--ct-blue); font-size: 10px; font-weight: 650; cursor: pointer; }
.customer-task-context-route { min-height: 70px; padding: 13px 0; border-bottom: 1px solid #d5dee7; display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; gap: 6px; }
.customer-task-context-route div:last-child { text-align: right; }
.customer-task-context-route span { display: block; color: #7b8997; font-size: 10px; }
.customer-task-context-route strong { display: block; margin-top: 4px; color: #28435d; font-size: 13px; overflow-wrap: anywhere; }
.customer-task-context-route i { color: #5a7d9d; font-size: 18px; font-style: normal; text-align: center; }
.customer-task-context-preorder-link { width: fit-content; max-width: 100%; border: 0; background: transparent; font-family: inherit; font-weight: 750; text-align: left; cursor: pointer; }
.customer-task-context-preorder-link span { display: inline-block; margin-left: 6px; color: var(--ct-gold); font-size: 13px; transition: transform 160ms ease; }
.customer-task-context-preorder-link:hover { color: #174e7e; text-decoration: underline; text-decoration-color: #b59458; text-underline-offset: 3px; }
.customer-task-context-preorder-link:hover span { transform: translate(2px, -2px); }
.customer-task-preorder-scope { margin-top: 13px; padding: 10px 0; border-bottom: 1px solid #d5dee7; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.customer-task-preorder-scope div { min-width: 0; }
.customer-task-preorder-scope span { display: block; color: #7a8998; font-size: 9px; }
.customer-task-preorder-scope strong { display: block; margin-top: 4px; color: #244d71; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.customer-task-preorder-dates { padding: 12px 0; border-bottom: 1px solid #d5dee7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 14px; }
.customer-task-preorder-dates span { display: block; color: #7d8b98; font-size: 9px; }
.customer-task-preorder-dates strong { display: block; margin-top: 3px; color: #2b4863; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.customer-task-context-schedule { padding: 12px 0 2px; border-bottom: 1px solid #d5dee7; }
.customer-task-context-schedule h4 { margin: 0 0 8px; color: #6b7e90; font-size: 10px; font-weight: 700; }
.customer-task-context-schedule.empty { padding-bottom: 12px; }
.customer-task-context-schedule.empty p { margin: 0; color: #7c8995; font-size: 10px; }
.customer-task-context-leg { padding: 8px 0 10px; border-top: 1px solid #e0e7ed; }
.customer-task-context-leg:first-of-type { border-top: 0; }
.customer-task-context-leg > strong { display: block; margin-bottom: 4px; color: #89692f; font-size: 10px; }
.customer-task-context-leg-route { display: block; color: #60788d; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.customer-task-context-leg-route i { padding: 0 3px; color: #5a7d9d; font-style: normal; }
.customer-task-context-leg > b { display: block; margin-top: 4px; color: #244c71; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.customer-task-context-leg > div { margin-top: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.customer-task-context-leg > div span { color: #7b8997; font-size: 9px; }
.customer-task-context-leg > div em { display: block; margin-top: 2px; color: #3c566f; font-size: 10px; font-style: normal; font-weight: 650; }
.customer-task-context-data { margin: 0; }
.customer-task-context-data div { padding: 12px 0; border-bottom: 1px solid #d5dee7; }
.customer-task-context-data dt { color: #7b8997; font-size: 10px; }
.customer-task-context-data dd { margin: 5px 0 0; color: #29445d; font-size: 13px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.customer-task-context-data .wide dd { white-space: normal; overflow-wrap: anywhere; word-break: normal; line-height: 1.55; }
.customer-task-context-empty, .customer-task-context-fallback { padding: 36px 18px; color: #718092; text-align: center; }
.customer-task-context-empty > span { width: 38px; height: 38px; margin: 0 auto 12px; border: 1px solid #b9c7d3; border-radius: 50%; display: grid; place-items: center; color: var(--ct-blue); font-size: 14px; font-weight: 700; }
.customer-task-context-empty strong, .customer-task-context-fallback strong { display: block; color: #30485f; font-size: 12px; }
.customer-task-context-empty p, .customer-task-context-fallback p { margin: 8px auto 0; color: #7a8997; font-size: 11px; line-height: 1.6; }
.customer-task-context-fallback { text-align: left; }
.customer-task-context-fallback span { display: block; margin-top: 5px; color: #58718a; font-size: 11px; }
.customer-task-preorder-order-number { min-height: 46px; margin: 11px 0 0; padding: 8px 10px; border: 1px solid #d3dfe8; border-radius: 5px; background: #fbfdfe; box-shadow: inset 0 1px 0 #fff; }
.customer-task-preorder-order-number > span { display: block; margin: 0; color: #7a8998; font-size: 9px; font-weight: 700; }
.customer-task-preorder-order-number strong { display: block; min-height: 17px; margin-top: 4px; color: #244f78; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.customer-task-preorder-order-number strong.empty { color: transparent; }
.customer-task-preorder-order-number a { color: inherit; text-decoration: none; }
.customer-task-preorder-order-number a:hover { text-decoration: underline; text-decoration-color: #b58a43; text-underline-offset: 3px; }
.customer-task-preorder-order-number a span { display: inline; margin-left: 3px; color: #a57935; font-size: 11px; }
.customer-task-context-fallback.customer-task-preorder-unavailable small { display: block; margin-top: 9px; color: #8795a2; font-size: 10px; line-height: 1.55; }
.customer-task-preorder-history-notice { margin: 11px 0 0; padding: 9px 10px; border: 1px solid #d7e1e9; border-left: 3px solid #90a7b8; border-radius: 5px; background: #f7fafc; box-shadow: inset 0 1px 0 rgba(255,255,255,.88); }
.customer-task-preorder-history-notice.converted { border-left-color: #4088b6; background: #f1f8fc; }
.customer-task-preorder-history-notice.deleted { border-left-color: #a88c63; background: #fcfaf6; }
.customer-task-preorder-history-notice strong, .customer-task-preorder-history-notice span { display: block; }
.customer-task-preorder-history-notice strong { color: #526d82; font-size: 11px; font-weight: 700; }
.customer-task-preorder-history-notice span { margin-top: 4px; color: #718494; font-size: 10px; line-height: 1.55; }
.customer-task-preorder-history-notice a { margin-right: 5px; color: #226795; font-weight: 700; text-decoration: none; }
.customer-task-preorder-history-notice a:hover { text-decoration: underline; }

.customer-task-detail { min-width: 0; min-height: 0; background: #fff; display: grid; grid-template-rows: auto auto minmax(180px, 1fr) auto; overflow: hidden; }
.customer-task-detail-head { min-height: 84px; padding: 15px 18px; border-bottom: 1px solid var(--ct-line); background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.customer-task-detail-head > div:first-child { min-width: 0; }
.customer-task-detail-head span { color: #758698; font-size: 10px; font-weight: 700; }
.customer-task-detail-head h3 { margin: 3px 0 0; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; letter-spacing: 0; }
.customer-task-detail-head p { margin: 5px 0 0; color: var(--ct-muted); font-size: 11px; }
.customer-task-detail-head-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.customer-task-detail-head-actions button { min-height: 34px; padding: 0 11px; border: 1px solid #aab9c6; border-radius: 5px; background: #fff; color: #3f5366; font-size: 11px; cursor: pointer; }
.customer-task-detail-status { min-height: 26px; padding: 3px 9px; border: 1px solid #b9cedf; border-radius: 4px; background: var(--ct-blue-soft); color: #275c88; font-size: 11px; font-style: normal; line-height: 18px; }
.customer-task-detail-status.status-completed { border-color: #d1d8de; background: #f0f2f4; color: #6e7984; }

.customer-task-deadline { min-height: 54px; padding: 9px 18px; border-bottom: 1px solid var(--ct-line); border-left: 4px solid #9aaebe; background: #f2f5f7; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.customer-task-deadline span { display: block; color: #718092; font-size: 10px; }
.customer-task-deadline strong { display: block; margin-top: 2px; font-size: 12px; }
.customer-task-deadline em { color: #5e6c7a; font-size: 11px; font-style: normal; font-weight: 650; }
.customer-task-deadline.deadline-today,
.customer-task-deadline.deadline-soon { border-left-color: var(--ct-gold); background: var(--ct-gold-soft); }
.customer-task-deadline.deadline-overdue { border-left-color: var(--ct-red); background: var(--ct-red-soft); }
.customer-task-deadline.deadline-overdue em { color: var(--ct-red); }
.customer-task-deadline.deadline-completed { border-left-color: var(--ct-green); background: var(--ct-green-soft); }

.customer-task-reference-summary { min-height: 42px; padding: 0 18px; border-bottom: 1px solid var(--ct-line); background: #f8fafb; display: flex; align-items: center; gap: 10px; }
.customer-task-reference-summary > span { flex: 0 0 auto; color: #728092; font-size: 10px; }
.customer-task-reference-link { min-width: 0; color: var(--ct-blue); font-size: 11px; font-weight: 650; line-height: 1.4; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-task-reference-link.muted { color: #647486; font-weight: 500; cursor: default; }

.customer-task-message-area { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.customer-task-message-thread { min-height: 0; padding: 16px 18px 20px; overflow-y: auto; background: #f5f7f9; }
.customer-task-message { width: fit-content; max-width: 78%; margin: 0 0 14px; }
.customer-task-message.client { margin-right: auto; }
.customer-task-message.employee { margin-left: auto; }
.customer-task-message.internal { max-width: 100%; margin: 10px 4% 14px; padding: 10px 12px; border-left: 3px solid var(--ct-gold); border-top: 1px solid #e1d6bd; border-right: 1px solid #e1d6bd; border-bottom: 1px solid #e1d6bd; border-radius: 4px; background: var(--ct-gold-soft); }
.customer-task-message header { width: fit-content; max-width: 100%; margin: 0 2px 6px; display: grid; gap: 2px; }
.customer-task-message header > div { display: flex; align-items: baseline; gap: 7px; }
.customer-task-message.client header { justify-items: start; margin-right: auto; }
.customer-task-message.employee header { justify-items: end; margin-left: auto; }
.customer-task-message header strong { color: #34495e; font-size: 10px; }
.customer-task-message header span { color: #758391; font-size: 9px; }
.customer-task-message header time { color: #8c98a3; font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.customer-task-message > p { width: fit-content; max-width: 100%; box-sizing: border-box; margin: 0; padding: 10px 12px; border: 1px solid #cfd8e1; border-radius: 6px; background: #fff; color: #26384a; font-size: 12px; line-height: 1.65; box-shadow: 0 3px 9px rgba(28, 48, 69, .05); overflow-wrap: anywhere; }
.customer-task-message.client > p { margin-right: auto; }
.customer-task-message.employee > p { margin-left: auto; }
.customer-task-message.employee > p { border-color: #b8ccdd; background: #e8f0f7; }
.customer-task-message.internal > p { padding: 0; border: 0; background: transparent; box-shadow: none; color: #5c4e35; }
.customer-task-message-attachments { margin: 6px 2px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.customer-task-message-attachments a { max-width: 100%; padding: 4px 7px; border: 1px solid #c7d5e2; border-radius: 4px; background: #fff; color: #245d8e; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.customer-task-composer { border-top: 1px solid #cbd5de; background: #fff; }
.customer-task-composer-tabs { min-height: 38px; padding: 0 18px; border-bottom: 1px solid #dce2e7; display: flex; gap: 16px; }
.customer-task-composer-tabs button { min-width: 82px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #687687; font-size: 11px; font-weight: 650; cursor: pointer; }
.customer-task-composer-tabs button.internal { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.customer-task-composer-tabs button.internal b { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; box-sizing: border-box; display: inline-grid; place-items: center; background: #c64c4c; color: #fff; font-size: 9px; font-weight: 750; line-height: 1; }
.customer-task-composer-tabs button.active { border-bottom-color: var(--ct-blue); color: var(--ct-blue); }
.customer-task-composer-tabs button.internal.active { border-bottom-color: var(--ct-gold); color: #7f622f; }
.customer-task-composer form { padding: 10px 18px 12px; }
.customer-task-composer-context { margin-bottom: 7px; color: #536b81; font-size: 10px; }
.customer-task-composer-context.internal { color: #816735; }
.customer-task-composer textarea { width: 100%; min-height: 74px; box-sizing: border-box; padding: 9px 10px; border: 1px solid #b9c5d0; border-radius: 5px; color: var(--ct-ink); font: inherit; font-size: 12px; line-height: 1.55; resize: vertical; outline: 0; }
.customer-task-composer textarea:focus { border-color: #5a83a8; box-shadow: 0 0 0 3px rgba(55, 105, 148, .1); }
.customer-task-composer-attachment { min-width: 0; display: grid; grid-template-columns: auto auto minmax(86px, 1fr) auto; align-items: center; gap: 7px; margin-top: 8px; color: #657789; font-size: 10px; }
.customer-task-attachment-label { display: inline-flex; align-items: center; gap: 5px; color: #405f78; font-weight: 700; white-space: nowrap; }
.customer-task-attachment-label i { width: 18px; height: 18px; border: 1px solid #bdcfde; border-radius: 50%; display: grid; place-items: center; background: #eef5fa; color: #29608b; font-size: 14px; font-style: normal; font-weight: 500; line-height: 1; }
.customer-task-attachment-picker { position: relative; display: inline-flex; min-height: 26px; padding: 0 10px; border: 1px solid #a9c1d4; border-radius: 999px; align-items: center; justify-content: center; background: #fff; box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(31, 71, 101, .08); color: #265a83; font-size: 10px; font-weight: 700; cursor: pointer; transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; white-space: nowrap; }
.customer-task-attachment-picker:hover { border-color: #6d98b9; box-shadow: inset 0 1px 0 #fff, 0 3px 7px rgba(31, 71, 101, .13); transform: translateY(-1px); }
.customer-task-attachment-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.customer-task-attachment-name { min-width: 0; color: #778795; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-task-attachment-name.has-file { color: #245f8d; font-weight: 700; }
.customer-task-composer-attachment small { color: #8b97a2; font-size: 9px; line-height: 1.35; white-space: nowrap; }
.customer-task-composer footer { min-height: 36px; margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.customer-task-composer footer span { color: #8d4c4c; font-size: 10px; }
.customer-task-composer footer button { min-width: 104px; min-height: 34px; padding: 0 13px; border: 1px solid #17456f; border-radius: 5px; background: var(--ct-blue); color: #fff; font-size: 11px; font-weight: 650; cursor: pointer; }
.customer-task-composer footer button:disabled { opacity: .55; cursor: wait; }

.customer-task-workbench-loading,
.customer-task-workbench-error,
.customer-task-list-empty,
.customer-task-detail-empty { margin: auto; padding: 34px 20px; color: var(--ct-muted); text-align: center; }
.customer-task-workbench-loading { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 11px; }
.customer-task-workbench-loading i { width: 15px; height: 15px; border: 2px solid #cbd5de; border-top-color: var(--ct-blue); border-radius: 50%; animation: customer-task-workbench-spin .8s linear infinite; }
.customer-task-workbench-error strong,
.customer-task-list-empty strong,
.customer-task-detail-empty strong { display: block; color: var(--ct-ink); font-size: 12px; }
.customer-task-workbench-error p,
.customer-task-detail-empty p { margin: 7px auto 0; max-width: 420px; font-size: 11px; line-height: 1.6; }
.customer-task-workbench-error button { margin-top: 12px; min-height: 32px; padding: 0 12px; border: 1px solid #a8b8c5; border-radius: 4px; background: #fff; color: var(--ct-blue); cursor: pointer; }
.customer-task-list-empty span,
.customer-task-detail-empty > span { width: 38px; height: 38px; margin: 0 auto 12px; border: 1px solid #b9c7d3; border-radius: 50%; display: grid; place-items: center; color: var(--ct-blue); font-size: 14px; font-weight: 700; }
.customer-task-message-empty { padding: 30px; color: #7d8995; text-align: center; font-size: 11px; }
.customer-task-routing-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: fit-content;
  max-width: 78%;
  margin: -5px 0 16px;
  padding: 9px 12px;
  border: 1px solid #ead7a6;
  border-left: 3px solid #c79531;
  border-radius: 6px;
  background: #fffaf0;
  color: #687587;
  box-shadow: 0 3px 9px rgba(36, 63, 88, .07);
  font-size: 12px;
  line-height: 1.6;
}
.customer-task-routing-warning strong { flex: 0 0 auto; color: #9a6a16; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes customer-task-workbench-spin { to { transform: rotate(360deg); } }

@media (max-width: 1040px) {
  .customer-task-workbench-layout { grid-template-columns: 250px 300px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .customer-task-workbench-view { height: auto; min-height: calc(100vh - 70px); overflow: visible; }
  .customer-task-workbench-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .customer-task-workbench-tools, .customer-task-search-box, .customer-task-search-box input { width: 100%; }
  .customer-task-workbench-layout { height: auto; display: block; }
  .customer-task-inbox { max-height: 46vh; border-right: 0; border-bottom: 1px solid #c8d2dc; }
  .customer-task-context-panel { min-height: 260px; border-right: 0; border-bottom: 1px solid #c8d2dc; }
  .customer-task-detail { min-height: 70vh; display: block; }
  .customer-task-message-area { min-height: 420px; }
  .customer-task-message-thread { min-height: 360px; max-height: 55vh; }
  .customer-task-detail-head { align-items: flex-start; }
  .customer-task-detail-head-actions { flex-direction: column; align-items: stretch; }
}

/* Global employee entry: the task center stays available without becoming another navigation page. */
.customer-task-drawer-scrim {
  position: fixed;
  z-index: 929;
  inset: 0;
  background: rgba(21, 35, 49, .16);
  backdrop-filter: blur(1px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease, visibility 500ms ease;
  visibility: hidden;
}
body.customer-task-drawer-open .customer-task-drawer-scrim { opacity: 1; pointer-events: auto; visibility: visible; }

.employee-customer-task-drawer.customer-task-workbench-view {
  position: fixed;
  z-index: 930;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(1480px, calc(100vw - 46px));
  height: 100vh;
  min-height: 0;
  border-left: 1px solid #b9c8d6;
  border-radius: 10px 0 0 10px;
  box-shadow: -20px 0 44px rgba(20, 39, 57, .21);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(calc(100% + 10px));
  transition: transform 560ms cubic-bezier(.16, 1, .3, 1), opacity 360ms ease, visibility 560ms;
  visibility: hidden;
}
.employee-customer-task-drawer.customer-task-workbench-view.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}
.employee-customer-task-drawer .customer-task-workbench-head {
  min-height: 74px;
  padding-right: 20px;
  border-bottom-color: #bfcdda;
  box-shadow: inset 0 -2px 0 #c2964d;
}
.customer-task-drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid #aebdca;
  border-radius: 5px;
  background: #fff;
  color: #416075;
  font-size: 24px;
  font-weight: 300;
  line-height: 30px;
  cursor: pointer;
}
.customer-task-drawer-close:hover { border-color: #7994aa; background: #eef3f7; color: #173f66; }
.customer-task-quick-open {
  position: fixed;
  z-index: 900;
  top: 34%;
  right: 0;
  width: 62px;
  min-height: 184px;
  box-sizing: border-box;
  padding: 14px 7px 16px 9px;
  border: 2px solid #9a783d;
  border-right: 0;
  border-left-width: 4px;
  border-radius: 32px 0 0 32px;
  background: linear-gradient(180deg, #285f8d 0%, #194b76 48%, #123d65 100%);
  box-shadow: -8px 12px 24px rgba(17, 43, 68, .28), inset 0 2px 0 rgba(255,255,255,.24), inset 0 -4px 0 rgba(7,31,53,.28), inset 4px 0 0 rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 13px;
  isolation: isolate;
  overflow: visible;
  text-shadow: 0 2px 3px rgba(5,25,43,.36);
  transition: transform 360ms cubic-bezier(.22,.72,.24,1), opacity 220ms ease, box-shadow 240ms ease, filter 240ms ease;
}
.customer-task-quick-open::before { content: ""; position: absolute; z-index: -1; inset: 6px 0 7px 7px; border: 1px solid rgba(255,255,255,.24); border-right: 0; border-radius: 25px 0 0 25px; box-shadow: inset 2px 0 0 rgba(255,255,255,.08); pointer-events: none; }
.customer-task-quick-open:hover { border-color: #c29a52; background: linear-gradient(180deg, #3474a7 0%, #205b8d 48%, #16466f 100%); box-shadow: -11px 15px 30px rgba(17,43,68,.34), inset 0 2px 0 rgba(255,255,255,.3), inset 0 -4px 0 rgba(7,31,53,.24), inset 4px 0 0 rgba(255,255,255,.11); transform: translateX(-4px); filter: saturate(1.05); }
.customer-task-quick-open:active { transform: translate(-2px, 2px); box-shadow: -4px 7px 15px rgba(17,43,68,.25), inset 0 3px 7px rgba(5,27,47,.22); }
.customer-task-quick-open > span { width: 34px; height: 34px; box-sizing: border-box; border: 2px solid rgba(242,219,174,.86); border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #fffdf7 0%, #e9dbc0 100%); color: #174d78; box-shadow: inset 0 2px 0 #fff, 0 4px 8px rgba(6,29,49,.30); font-size: 17px; font-weight: 800; line-height: 1; text-shadow: none; }
.customer-task-quick-open > small { color: #fff8e9; font-size: 13px; font-weight: 800; line-height: 1.25; writing-mode: vertical-rl; letter-spacing: 0; }
.customer-task-quick-open > b { position: absolute; top: -9px; left: -10px; min-width: 26px; height: 26px; padding: 0 6px; border: 2px solid #fff; border-radius: 13px; background: #c9323b; color: #fff; font-size: 13px; font-weight: 900; line-height: 22px; text-align: center; box-sizing: border-box; box-shadow: 0 4px 10px rgba(133,30,38,.3), inset 0 1px 0 rgba(255,255,255,.22); }
.customer-task-quick-open.has-pending > span { border-color: #f0c96e; color: #174d78; background: linear-gradient(180deg, #fffdf5 0%, #ead8b6 100%); box-shadow: inset 0 2px 0 #fff, 0 4px 9px rgba(6,29,49,.32), 0 0 0 2px rgba(194,154,82,.14); }
body.customer-task-drawer-open .customer-task-quick-open { opacity: 0; pointer-events: none; transform: translateX(100%); }

/* The floating task entry is navigation, not an action inside an editor.
   Keep it out of the modal's hit area; closing the editor restores it without
   changing task state, notification acknowledgement or the dialog stack. */
body:has(> .edit-backdrop:not(.hidden):not([hidden])) .customer-task-quick-open {
  visibility: hidden;
  pointer-events: none;
}

.site-notification-notice {
  position: fixed;
  /* Notifications stay above the workbench and task drawer, but must never
     cover modal actions such as the pre-order Save button (modal: 3200). */
  z-index: 3150;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 32px));
  min-height: 92px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 46px 15px 14px;
  border: 1px solid #9bb9ce;
  border-left: 5px solid #236b9d;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #edf5fa 100%);
  box-shadow: inset 0 1px 0 #fff, 0 16px 38px rgba(19, 57, 84, .22);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(.22,.72,.24,1);
}
.site-notification-notice[hidden] { display: none; }
.site-notification-notice.show { opacity: 1; transform: translateY(0); }
.site-notification-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #85a9c2; border-radius: 50%; background: linear-gradient(180deg, #3b82b5 0%, #1f5f8e 100%); color: #fff; font-size: 15px; font-weight: 850; box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 5px 10px rgba(24,80,120,.22); }
.site-notification-copy { min-width: 0; }
.site-notification-copy em { display: block; color: #64839a; font-size: 9px; font-style: normal; font-weight: 850; }
.site-notification-copy strong { display: flex; align-items: center; gap: 7px; margin-top: 2px; color: #173f61; font-size: 15px; line-height: 1.4; }
.site-notification-copy strong b { min-width: 23px; height: 21px; padding: 0 6px; border-radius: 11px; background: #b74747; color: #fff; font-size: 10px; line-height: 21px; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.site-notification-copy p { margin: 3px 0 0; color: #60788b; font-size: 11px; line-height: 1.45; }
.site-notification-open { min-width: 76px; height: 34px; border: 1px solid #5e8cab; border-radius: 18px; background: linear-gradient(180deg, #fff 0%, #e2eef5 100%); color: #205b83; font-size: 11px; font-weight: 800; cursor: pointer; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #9cb7c9, 0 5px 10px rgba(26,77,112,.12); }
.site-notification-open:hover { transform: translateY(-1px); border-color: #39779f; background: linear-gradient(180deg, #fff 0%, #d8eaf4 100%); }
.site-notification-close { position: absolute; top: 8px; right: 8px; width: 27px; height: 27px; border: 0; border-radius: 50%; background: transparent; color: #6c8394; font-size: 20px; line-height: 25px; cursor: pointer; }
.site-notification-close:hover { background: #e2edf4; color: #174f77; }

@media (max-width: 760px) {
  .employee-customer-task-drawer.customer-task-workbench-view {
    width: 100%;
    border: 0;
    border-radius: 0;
    transform: translateX(100%);
  }
  .employee-customer-task-drawer.customer-task-workbench-view.open { transform: translateX(0); }
  .employee-customer-task-drawer .customer-task-workbench-head { min-height: 70px; align-items: center; flex-direction: row; gap: 10px; }
  .employee-customer-task-drawer .customer-task-workbench-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }
  .employee-customer-task-drawer .customer-task-search-box { min-width: 0; }
  .employee-customer-task-drawer .customer-task-search-box input { width: 100%; }
  .employee-customer-task-drawer .customer-task-workbench-layout { height: calc(100% - 140px); display: grid; grid-template-columns: 210px 260px minmax(360px, 1fr); overflow-x: auto; }
  .employee-customer-task-drawer .customer-task-inbox { max-height: none; border-right: 1px solid #c8d2dc; border-bottom: 0; }
  .employee-customer-task-drawer .customer-task-detail { min-height: 0; display: grid; }
  .employee-customer-task-drawer .customer-task-message-area { min-height: 0; }
  .employee-customer-task-drawer .customer-task-message-thread { min-height: 0; max-height: none; }
  .customer-task-quick-open { top: auto; bottom: 112px; width: 58px; min-height: 158px; border-radius: 29px 0 0 29px; }
  .site-notification-notice { right: 14px; bottom: 22px; width: calc(100vw - 28px); grid-template-columns: 40px minmax(0, 1fr); padding-right: 42px; }
  .site-notification-open { grid-column: 1 / -1; width: 100%; }
}

/* Employee task drawer visual system: shared proportions with the customer workspace. */
.employee-customer-task-drawer.customer-task-workbench-view {
  --ct-paper: #f7f9fc;
  --ct-elevated: #ffffff;
  --ct-border-soft: #d7e1ea;
  --ct-navy-deep: #183f66;
  --ct-navy-mid: #245f94;
  --ct-gold-line: #bd9250;
  background: var(--ct-paper);
  box-shadow: -24px 0 58px rgba(15, 38, 59, .24), 0 0 0 1px rgba(255,255,255,.78);
}
.employee-customer-task-drawer .customer-task-workbench-head {
  min-height: 82px;
  padding: 16px 20px 15px 22px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 -2px 0 var(--ct-gold-line);
  background: var(--ct-navy-deep);
  color: #fff;
}
.employee-customer-task-drawer .customer-task-workbench-layout { height: calc(100% - 140px); }
.employee-customer-task-drawer .customer-task-workbench-head .eyebrow { color: #b9d0e2; font-size: 10px; font-weight: 700; }
.employee-customer-task-drawer .customer-task-workbench-head h2 { color: #fff; font-size: 21px; font-weight: 720; }
.employee-customer-task-drawer .customer-task-workbench-tools { gap: 9px; }
.employee-customer-task-drawer .customer-task-search-box input {
  width: min(320px, 28vw);
  height: 38px;
  padding: 0 15px;
  border-color: rgba(212, 227, 239, .48);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
  color: #fff;
}
.employee-customer-task-drawer .customer-task-search-box input::placeholder { color: #c4d4e1; }
.employee-customer-task-drawer .customer-task-search-box input:focus { border-color: #e0be7d; background: rgba(255,255,255,.15); box-shadow: 0 0 0 3px rgba(224,190,125,.18); }
.employee-customer-task-drawer .customer-task-refresh-button,
.employee-customer-task-drawer .customer-task-drawer-close {
  width: auto;
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border-color: rgba(222, 235, 244, .48);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.employee-customer-task-drawer .customer-task-refresh-button:hover,
.employee-customer-task-drawer .customer-task-drawer-close:hover { border-color: #e0bd7b; background: rgba(255,255,255,.2); color: #fff; }
.employee-customer-task-drawer .customer-task-drawer-close { font-size: 21px; line-height: 34px; }

.employee-customer-task-drawer .customer-task-filter-bar {
  min-height: 58px;
  padding: 10px 16px;
  border-bottom-color: #d9e2ea;
  background: #f7f9fc;
  gap: 8px;
}
.employee-customer-task-drawer .customer-task-filter-bar button {
  min-height: 34px;
  padding: 0 12px 0 14px;
  border-color: #cfdae4;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(28, 57, 80, .06);
  color: #5b6d7d;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.employee-customer-task-drawer .customer-task-filter-bar button:hover { border-color: #8daac1; background: #f8fbfd; transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 4px 9px rgba(28, 57, 80, .11); }
.employee-customer-task-drawer .customer-task-filter-bar button b { min-width: 22px; height: 22px; border-radius: 999px; line-height: 22px; }
.employee-customer-task-drawer .customer-task-filter-bar button.active { border-color: #356d9b; background: #eaf3f9; color: #174f80; box-shadow: inset 0 1px 0 #fff, 0 3px 0 #356d9b, 0 6px 12px rgba(31, 91, 137, .14); }
.employee-customer-task-drawer .customer-task-filter-bar button.active b { background: #1e5888; }

.employee-customer-task-drawer .customer-task-inbox { background: #f4f7fa; }
.employee-customer-task-drawer .customer-task-list-meta { min-height: 46px; padding: 0 16px; border-bottom-color: #dbe3ea; background: #fff; }
.employee-customer-task-drawer .customer-task-list-meta strong { color: #26435c; font-size: 12px; }
.employee-customer-task-drawer .customer-task-list-meta span { display: inline-flex; min-height: 22px; padding: 0 8px; border: 1px solid #d6e0e8; border-radius: 999px; align-items: center; background: #f4f7fa; color: #687b8d; font-size: 10px; }
.employee-customer-task-drawer .customer-task-list-row {
  min-height: 104px;
  padding: 13px 14px 12px 12px;
  border-bottom-color: #dfe7ee;
  background: rgba(255,255,255,.94);
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.employee-customer-task-drawer .customer-task-list-row:hover { background: #f7fbfe; box-shadow: inset 3px 0 0 #a9c6dc; }
.employee-customer-task-drawer .customer-task-list-row.active { background: #eaf4fb; box-shadow: inset 4px 0 0 #2c6b9c, 0 4px 12px rgba(32, 78, 111, .08); }
.employee-customer-task-drawer .customer-task-list-marker { position: relative; width: 30px; height: 30px; margin-top: 1px; border: 1px solid #c8d9e7; border-radius: 50%; background: #e4eff7; display: grid; place-items: center; color: #2b638e; }
.employee-customer-task-drawer .customer-task-list-marker::after { content: "问"; font-size: 12px; font-weight: 750; }
.employee-customer-task-drawer .customer-task-list-row.unread .customer-task-list-marker { background: #e4eff7; border-color: #c8d9e7; box-shadow: none; color: #2b638e; }
.employee-customer-task-drawer .customer-task-unread-dot { top: -5px; right: -5px; width: 16px; height: 16px; border-width: 2px; }
.employee-customer-task-drawer .customer-task-list-top strong { font-size: 12px; }
.employee-customer-task-drawer .customer-task-list-subject { font-size: 13px; }
.employee-customer-task-drawer .customer-task-list-status,
.employee-customer-task-drawer .customer-task-list-due { border-radius: 999px; padding: 1px 8px; }

.employee-customer-task-drawer .customer-task-context-panel { background: #f4f7fa; }
.employee-customer-task-drawer .customer-task-context-head { min-height: 82px; padding: 17px 18px 13px; border-bottom-color: #d7e1e9; background: #f9fbfd; }
.employee-customer-task-drawer .customer-task-context-content { padding: 20px 20px 30px; }
.employee-customer-task-drawer .customer-task-context-order-no { padding-bottom: 16px; color: #173f63; font-size: 19px; font-weight: 750; }
.employee-customer-task-drawer .customer-task-context-factories { padding: 15px 0 16px; }
.employee-customer-task-drawer .customer-task-context-factories h4,
.employee-customer-task-drawer .customer-task-context-schedule h4 { margin-bottom: 10px; color: #61788e; font-size: 11px; letter-spacing: 0; }
.employee-customer-task-drawer .customer-task-context-factory,
.employee-customer-task-drawer .customer-task-context-leg { padding-top: 11px; padding-bottom: 12px; }
.employee-customer-task-drawer .customer-task-context-factory strong { color: #204f79; font-size: 14px; }
.employee-customer-task-drawer .customer-task-context-factory span { font-size: 12px; line-height: 1.55; }
.employee-customer-task-drawer .customer-task-context-factory small { font-size: 11px; line-height: 1.55; }
.employee-customer-task-drawer .customer-task-context-route,
.employee-customer-task-drawer .customer-task-context-schedule { border-color: #d8e2ea; }
.employee-customer-task-drawer .customer-task-context-route { min-height: 82px; margin-top: 1px; padding: 16px 0; }
.employee-customer-task-drawer .customer-task-context-route span { font-size: 11px; }
.employee-customer-task-drawer .customer-task-context-route strong { margin-top: 5px; color: #183f61; font-size: 15px; line-height: 1.35; }
.employee-customer-task-drawer .customer-task-context-route i { color: #a77c39; font-size: 20px; }
.employee-customer-task-drawer .customer-task-context-schedule { padding: 16px 0 4px; }
.employee-customer-task-drawer .customer-task-context-leg-route { color: #48677f; font-size: 11px; }
.employee-customer-task-drawer .customer-task-context-leg > b { color: #1f4d74; font-size: 13px; }
.employee-customer-task-drawer .customer-task-context-leg > div span { font-size: 10px; }
.employee-customer-task-drawer .customer-task-context-leg > div em { font-size: 11px; }
.employee-customer-task-drawer .customer-task-context-data div { padding: 15px 0; }
.employee-customer-task-drawer .customer-task-context-data dt { font-size: 11px; }
.employee-customer-task-drawer .customer-task-context-data dd { margin-top: 6px; color: #1d405f; font-size: 14px; }
.employee-customer-task-drawer .customer-task-context-data { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
.employee-customer-task-drawer .customer-task-context-data div:last-child { grid-column: 1 / -1; }

.employee-customer-task-drawer .customer-task-detail { grid-template-rows: auto auto minmax(0, 1fr) auto; background: #fbfcfd; }
.employee-customer-task-drawer .customer-task-detail-head { min-height: 88px; padding: 16px 20px; border-bottom-color: #d9e3eb; background: #fff; }
.employee-customer-task-drawer .customer-task-detail-head h3 { margin-top: 0; color: #203a54; font-size: 18px; }
.employee-customer-task-drawer .customer-task-detail-head-actions { gap: 9px; }
.employee-customer-task-drawer .customer-task-detail-status,
.employee-customer-task-drawer .customer-task-detail-head-actions button {
  min-height: 30px;
  padding: 2px 12px;
  border-radius: 999px;
  box-sizing: border-box;
}
.employee-customer-task-drawer .customer-task-detail-head-actions button { border-color: #b9cad8; background: #fff; color: #36556d; box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(30, 59, 81, .07); }
.employee-customer-task-drawer .customer-task-detail-head-actions button:hover { border-color: #7f9fb8; background: #f6fafc; }
.employee-customer-task-drawer .customer-task-deadline { min-height: 58px; padding: 10px 20px; border-left-width: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,.62); }
.employee-customer-task-drawer .customer-task-message-thread { padding: 18px 20px 22px; background: #f5f8fb; }
.employee-customer-task-drawer .customer-task-message > p { border-radius: 8px; box-shadow: 0 4px 12px rgba(26, 50, 70, .07); }
.employee-customer-task-drawer .customer-task-message.employee > p { background: #e8f2f9; }
.employee-customer-task-drawer .customer-task-message.internal { border-radius: 8px; box-shadow: 0 3px 8px rgba(88, 72, 40, .05); }

.employee-customer-task-drawer .customer-task-composer { border-top-color: #cad7e2; background: #fff; box-shadow: 0 -8px 20px rgba(30, 55, 76, .04); }
.employee-customer-task-drawer .customer-task-composer-tabs { min-height: 46px; padding: 6px 18px; gap: 8px; border-bottom: 0; align-items: center; }
.employee-customer-task-drawer .customer-task-composer-tabs button { min-width: 94px; min-height: 31px; padding: 0 12px; border: 1px solid transparent; border-radius: 999px; background: #f1f5f8; color: #627485; }
.employee-customer-task-drawer .customer-task-composer-tabs button.active { border-color: #97b5cc; background: #eaf3fa; color: #1d5687; box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(31, 83, 124, .08); }
.employee-customer-task-drawer .customer-task-composer-tabs button.internal.active { border-color: #dbc99f; background: #fbf5e8; color: #7e6230; }
.employee-customer-task-drawer .customer-task-composer-tabs button.internal b { min-width: 17px; height: 17px; background: #c84d4d; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 3px rgba(132, 48, 48, .2); }
.employee-customer-task-drawer .customer-task-composer form { padding: 8px 18px 14px; }
.employee-customer-task-drawer .customer-task-composer-context { margin: 0 0 8px; color: #647789; }
.employee-customer-task-drawer .customer-task-composer textarea {
  min-height: 88px;
  padding: 11px 13px;
  border-color: #c8d7e3;
  border-radius: 8px;
  background: #fbfdfe;
  box-shadow: inset 0 1px 2px rgba(22, 47, 68, .04), 0 2px 5px rgba(29, 56, 78, .04);
}
.employee-customer-task-drawer .customer-task-composer textarea:hover { border-color: #9db9ce; background: #fff; }
.employee-customer-task-drawer .customer-task-composer textarea:focus { border-color: #4f82a8; box-shadow: 0 0 0 3px rgba(51, 109, 154, .12), inset 0 1px 2px rgba(22, 47, 68, .03); }
.employee-customer-task-drawer .customer-task-composer.internal-mode textarea { border-color: #d9c596; background: #fffcf6; }
.employee-customer-task-drawer .customer-task-composer.internal-mode textarea:focus { border-color: #af8540; box-shadow: 0 0 0 3px rgba(177, 133, 54, .14), inset 0 1px 2px rgba(82, 55, 13, .03); }
.employee-customer-task-drawer .customer-task-composer.internal-mode .customer-task-composer-attachment { border-color: #e0d1ad; background: linear-gradient(180deg, #fffdf8 0%, #fbf6ea 100%); }
.employee-customer-task-drawer .customer-task-composer-attachment { min-height: 40px; margin-top: 10px; padding: 4px 10px; border: 1px solid #d6e1e9; border-radius: 8px; background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%); box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(32, 67, 94, .05); }
.employee-customer-task-drawer .customer-task-attachment-label { color: #294d68; }
.employee-customer-task-drawer .customer-task-attachment-label i { border-color: #b8d0e1; background: #e8f3fa; color: #23618e; }
.employee-customer-task-drawer .customer-task-attachment-picker { min-height: 28px; border-color: #9dbbd1; background: #fff; color: #1f5884; }
.employee-customer-task-drawer .customer-task-attachment-name { padding-left: 2px; }
.employee-customer-task-drawer .customer-task-composer-attachment small { color: #7d8f9d; }
.employee-customer-task-drawer .customer-task-composer footer { margin-top: 10px; }
.employee-customer-task-drawer .customer-task-composer footer button {
  min-width: 112px;
  min-height: 38px;
  border-color: #174d7a;
  border-radius: 999px;
  background: #245f94;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 3px 0 #174d7a, 0 7px 13px rgba(28, 84, 128, .18);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.employee-customer-task-drawer .customer-task-composer footer button:hover { background: #2d6ea7; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 0 #174d7a, 0 9px 15px rgba(28, 84, 128, .21); }
.employee-customer-task-drawer .customer-task-composer footer button:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 0 #174d7a; }
.employee-customer-task-drawer .customer-task-composer.internal-mode footer button { border-color: #765b2e; background: #9a7435; box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 3px 0 #765b2e, 0 7px 13px rgba(100, 71, 25, .16); }
.employee-customer-task-drawer .customer-task-composer.internal-mode footer button:hover { background: #ad8541; box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 4px 0 #765b2e, 0 9px 15px rgba(100, 71, 25, .19); }
.employee-customer-task-drawer .customer-task-note-view { padding: 10px 18px 16px; }
.employee-customer-task-drawer .customer-task-note-view-head { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.employee-customer-task-drawer .customer-task-note-view-head > div { min-width: 0; }
.employee-customer-task-drawer .customer-task-note-view-head strong { display: block; color: #735a2d; font-size: 11px; }
.employee-customer-task-drawer .customer-task-note-view-head span { display: block; margin-top: 2px; color: #93866f; font-size: 9px; }
.employee-customer-task-drawer .customer-task-note-view-head button { min-width: 76px; min-height: 30px; padding: 0 14px; border: 1px solid #c7ab72; border-radius: 999px; background: #fffaf0; color: #765b2e; font-size: 11px; font-weight: 700; cursor: pointer; box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(102, 76, 33, .08); }
.employee-customer-task-drawer .customer-task-note-view-head button:hover { border-color: #a6813d; background: #fff7e7; transform: translateY(-1px); }
.employee-customer-task-drawer .customer-task-note-view > p { min-height: 82px; margin: 8px 0 0; padding: 12px 14px; border: 1px solid #dfcfaa; border-radius: 8px; box-sizing: border-box; background: #fffcf5; color: #514735; font-size: 12px; line-height: 1.65; box-shadow: inset 0 1px 2px rgba(74, 53, 18, .03); overflow-wrap: anywhere; }
.employee-customer-task-drawer .customer-task-note-form { padding-top: 10px; }

/* Final customer/employee parity layer. Employee-only controls keep their behavior. */
.employee-customer-task-drawer .customer-task-filter-bar {
  padding: 9px 14px 11px;
  gap: 7px;
  background: linear-gradient(180deg, #f9fbfd 0%, #edf3f7 100%);
  box-shadow: inset 0 -1px 0 #d0dce5, inset 0 1px 0 #fff;
}
.employee-customer-task-drawer .customer-task-filter-bar button {
  min-height: 36px;
  border-color: #c8d6e1;
  background: linear-gradient(180deg, #fff 0%, #f0f5f8 100%);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #c1ced8, 0 5px 10px rgba(27, 59, 84, .08);
}
.employee-customer-task-drawer .customer-task-filter-bar button:hover {
  border-color: #91aec3;
  background: linear-gradient(180deg, #fff 0%, #e8f1f6 100%);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #aebfcb, 0 7px 12px rgba(27, 67, 97, .12);
}
.employee-customer-task-drawer .customer-task-filter-bar button.active {
  border-color: #1c5684;
  background: linear-gradient(180deg, #3378ab 0%, #225f91 52%, #194e79 100%);
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.24), inset 0 -3px 0 rgba(7,37,61,.22), 0 3px 0 #123f65, 0 7px 13px rgba(24,73,109,.18);
  text-shadow: 0 1px 2px rgba(5,28,47,.28);
}
.employee-customer-task-drawer .customer-task-filter-bar button.active b {
  background: rgba(255,255,255,.94);
  color: #1d5787;
  box-shadow: inset 0 1px 2px rgba(28,73,105,.12);
}
.employee-customer-task-drawer .customer-task-filter-bar button.danger:not(.active) {
  background: linear-gradient(180deg, #fff 0%, #fbf0f0 100%);
}

.employee-customer-task-drawer .customer-task-list {
  padding: 8px 7px 14px;
  background: linear-gradient(180deg, #edf3f7 0%, #f5f8fa 100%);
}
.employee-customer-task-drawer .customer-task-list-row {
  width: 100%;
  min-height: 102px;
  margin: 0 0 7px;
  box-sizing: border-box;
  border: 1px solid #d5e0e8;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(27,58,82,.07);
}
.employee-customer-task-drawer .customer-task-list-row:hover {
  border-color: #a9c0d1;
  background: linear-gradient(180deg, #fff 0%, #edf5fa 100%);
  box-shadow: inset 3px 0 0 #8eb3cc, inset 0 1px 0 #fff, 0 5px 11px rgba(27,67,96,.11);
  transform: translateY(-1px);
}
.employee-customer-task-drawer .customer-task-list-row.active {
  border-color: #a9c5da;
  background: linear-gradient(180deg, #edf7fc 0%, #deedf6 100%);
  box-shadow: inset 4px 0 0 #2d70a0, inset 0 1px 0 rgba(255,255,255,.9), 0 5px 12px rgba(31,82,119,.13);
}
.employee-customer-task-drawer .customer-task-list-row.replied:not(.active) {
  border-color: #cdded5;
  box-shadow: inset 3px 0 0 #94b8a5, inset 0 1px 0 #fff, 0 3px 8px rgba(37,79,58,.07);
}
.employee-customer-task-drawer .customer-task-list-reply-preview { color: #3a745d; }

.employee-customer-task-drawer .customer-task-context-panel {
  background: #f3f7fa;
}
.employee-customer-task-drawer .customer-task-context-head {
  background: linear-gradient(180deg, #fff 0%, #f6f9fb 100%);
  box-shadow: inset 0 -2px 0 #d8e4ec;
}
.employee-customer-task-drawer .customer-task-context-content {
  padding: 1px 16px 24px;
}
.employee-customer-task-drawer .customer-task-context-order-no {
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  margin: 15px 0 0;
  padding: 11px 12px 12px 14px;
  border: 1px solid #c8d8e5;
  border-left: 4px solid #b58a43;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff 0%, #f2f7fa 100%);
  color: #17466f;
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(27,63,92,.08);
  font-size: 17px;
  line-height: 1.35;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.employee-customer-task-drawer .customer-task-context-order-no::before {
  display: block;
  margin-bottom: 4px;
  color: #8b6b34;
  content: attr(data-reference-label);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}
.employee-customer-task-drawer .customer-task-context-order-link:hover,
.employee-customer-task-drawer .customer-task-context-preorder-link:hover {
  border-color: #9dbbd1;
  border-left-color: #9e7533;
  background: linear-gradient(180deg, #fff 0%, #eaf3f8 100%);
  box-shadow: inset 0 1px 0 #fff, 0 5px 11px rgba(27,70,103,.12);
  text-decoration: none;
  transform: translateY(-1px);
}
.employee-customer-task-drawer .customer-task-context-factories {
  margin: 16px -16px 0;
  padding: 12px 16px 13px;
  border-top: 1px solid #d5e1ea;
  border-bottom: 1px solid #d5e1ea;
  background: linear-gradient(180deg, #f9fbfd 0%, #f3f7fa 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(28,62,89,.035);
}
.employee-customer-task-drawer .customer-task-context-factories h4 {
  min-height: 22px;
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #526d84;
  font-size: 10px;
  font-weight: 750;
}
.employee-customer-task-drawer .customer-task-context-factories h4::before {
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: #b78a40;
  box-shadow: 0 1px 2px rgba(93,67,25,.18);
  content: "";
}
.employee-customer-task-drawer .customer-task-context-factory {
  min-height: 48px;
  box-sizing: border-box;
  padding: 9px 10px;
  border-top: 1px solid #dce6ed;
  background: rgba(255,255,255,.62);
}
.employee-customer-task-drawer .customer-task-context-factory:first-of-type { border-top: 0; }
.employee-customer-task-drawer .customer-task-context-route {
  min-height: 82px;
  margin: 0 -16px;
  padding: 15px 16px 16px;
  border-top: 0;
  border-bottom: 1px solid #cddde8;
  grid-template-columns: minmax(0,1fr) 30px minmax(0,1fr);
  background: linear-gradient(180deg, #eef5fa 0%, #e7f0f6 100%);
  box-shadow: inset 0 2px 4px rgba(31,72,103,.055), inset 0 1px 0 #fff;
}
.employee-customer-task-drawer .customer-task-context-route i {
  width: 30px;
  height: 30px;
  border: 1px solid #b9ccdb;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #39749f;
  box-shadow: 0 2px 5px rgba(29,71,103,.10), inset 0 1px 0 #fff;
  font-size: 15px;
}
.employee-customer-task-drawer .customer-task-context-schedule,
.employee-customer-task-drawer .customer-task-preorder-dates {
  margin: 0 -16px;
  padding: 14px 16px 13px;
  border-top: 0;
  border-bottom: 1px solid #d5e1ea;
  background: #fff;
}
.employee-customer-task-drawer .customer-task-context-leg {
  padding: 10px 0 11px 11px;
  border-top: 1px solid #e0e8ee;
  border-left: 3px solid #8db2cc;
}
.employee-customer-task-drawer .customer-task-context-data {
  margin: 0 -16px;
  padding: 14px 16px 17px;
  gap: 0 14px;
  background: linear-gradient(180deg, #f7fafc 0%, #f1f6f9 100%);
}
.employee-customer-task-drawer .customer-task-context-data div {
  min-width: 0;
  padding: 10px 11px 11px;
  border: 1px solid #d5e1e9;
  border-radius: 5px;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(29,64,91,.05);
}
.employee-customer-task-drawer .customer-task-context-data div:last-child {
  margin-top: 12px;
  border-color: #c8d9e5;
  border-left: 3px solid #b58a43;
}

.employee-customer-task-drawer .customer-task-detail-head {
  background: linear-gradient(180deg, #fff 0%, #f9fbfc 100%);
  box-shadow: inset 0 -2px 0 #dbe6ed;
}
.employee-customer-task-drawer .customer-task-detail-head-actions button {
  border-color: #7895a9;
  background: linear-gradient(180deg, #fff 0%, #eaf1f5 100%);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #a4b6c3, 0 5px 9px rgba(30,62,87,.10);
  font-weight: 750;
}
.employee-customer-task-drawer .customer-task-deadline {
  background: linear-gradient(180deg, #f5f8fa 0%, #edf3f6 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #d2dee7;
}
.employee-customer-task-drawer .customer-task-message-thread {
  background: linear-gradient(180deg, #f6f9fb 0%, #f2f6f9 100%);
}
.employee-customer-task-drawer .customer-task-message { margin-bottom: 17px; }
.employee-customer-task-drawer .customer-task-message header { margin-bottom: 7px; }
.employee-customer-task-drawer .customer-task-message > p {
  position: relative;
  padding: 12px 14px;
  border-radius: 9px;
  color: #20384e;
  font-size: 12px;
  line-height: 1.7;
}
.employee-customer-task-drawer .customer-task-message.client > p {
  border: 1px solid #aecadf;
  border-left: 3px solid #397ba8;
  background: linear-gradient(180deg, #eef7fc 0%, #dfedf6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 5px 14px rgba(35,91,130,.14), 0 1px 2px rgba(27,57,82,.08);
}
.employee-customer-task-drawer .customer-task-message.employee > p {
  border: 1px solid #d1dce5;
  border-right: 3px solid #b48a43;
  background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
  box-shadow: inset 0 1px 0 #fff, 0 5px 14px rgba(27,57,82,.11), 0 1px 2px rgba(27,57,82,.08);
}
.employee-customer-task-drawer .customer-task-message > p::before {
  position: absolute;
  top: 12px;
  width: 8px;
  height: 13px;
  filter: drop-shadow(0 2px 1px rgba(28,58,81,.08));
  content: "";
}
.employee-customer-task-drawer .customer-task-message.client > p::before {
  left: -8px;
  background: #397ba8;
  clip-path: polygon(100% 0, 100% 100%, 0 48%);
}
.employee-customer-task-drawer .customer-task-message.employee > p::before {
  right: -8px;
  background: #b48a43;
  clip-path: polygon(0 0, 100% 48%, 0 100%);
}
.employee-customer-task-drawer .customer-task-message.internal > p::before { display: none; }

.employee-customer-task-drawer .customer-task-read-receipt {
  width: fit-content;
  margin: 6px 3px 0 auto;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0;
  box-shadow: 0 2px 5px rgba(31, 48, 64, .05);
}

.employee-customer-task-drawer .customer-task-read-receipt i {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
}

.employee-customer-task-drawer .customer-task-read-receipt.unread {
  border-color: #d8bd86;
  background: #fff8e9;
  color: #8a6425;
}

.employee-customer-task-drawer .customer-task-read-receipt.read {
  border-color: #a8cfc7;
  background: #edf8f5;
  color: #33736a;
}

.employee-customer-task-drawer .customer-task-composer {
  border-top: 1px solid #cbdbe7;
  background: linear-gradient(180deg, #fbfdfe 0%, #f3f7fa 100%);
  box-shadow: inset 0 3px 0 #d8e7f1, 0 -5px 14px rgba(31,64,90,.045);
}
.employee-customer-task-drawer .customer-task-composer-tabs button {
  border-color: #c8d6e1;
  background: linear-gradient(180deg, #fff 0%, #edf3f7 100%);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #c0ccd5, 0 5px 9px rgba(30,62,87,.08);
  font-weight: 750;
}
.employee-customer-task-drawer .customer-task-composer-tabs button.active {
  border-color: #3978a4;
  background: linear-gradient(180deg, #eef7fc 0%, #dfedf6 100%);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #8fb0c7, 0 5px 10px rgba(34,87,126,.12);
}
.employee-customer-task-drawer .customer-task-composer-tabs button.internal.active {
  border-color: #b99a61;
  background: linear-gradient(180deg, #fffdf7 0%, #f2eadb 100%);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #c5b28c, 0 5px 10px rgba(94,72,32,.10);
}
.employee-customer-task-drawer .customer-task-composer textarea {
  min-height: 96px;
  padding: 13px 14px;
  border-color: #9fb7c9;
  background: linear-gradient(180deg, #fff 0%, #fbfdfe 100%);
  box-shadow: inset 0 2px 5px rgba(27,58,84,.07), inset 0 1px 0 #fff, 0 3px 8px rgba(27,64,92,.07);
  color: #213d55;
  font-size: 13px;
  line-height: 1.65;
}
.employee-customer-task-drawer .customer-task-composer textarea:hover {
  border-color: #789bb4;
  box-shadow: inset 0 2px 5px rgba(27,58,84,.075), inset 0 1px 0 #fff, 0 4px 10px rgba(27,72,105,.10);
}
.employee-customer-task-drawer .customer-task-composer textarea:focus {
  border-color: #3978a4;
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(25,57,82,.045), 0 0 0 3px rgba(57,120,164,.14), 0 5px 12px rgba(27,72,105,.12);
}
.employee-customer-task-drawer .customer-task-composer-attachment {
  border-color: #c8d8e4;
  background: linear-gradient(180deg, #fff 0%, #f2f7fa 100%);
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(27,64,92,.07);
}
.employee-customer-task-drawer .customer-task-composer footer button {
  min-width: 104px;
  background: linear-gradient(180deg, #3477aa 0%, #225f91 52%, #194f7c 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -3px 0 rgba(7,38,63,.24), 0 3px 0 #123f65, 0 7px 12px rgba(21,68,103,.17);
  text-shadow: 0 1px 2px rgba(4,27,46,.32);
}
.employee-customer-task-drawer .customer-task-composer.completed {
  background: linear-gradient(180deg, #f3f5f7 0%, #eceff2 100%);
  box-shadow: inset 0 3px 0 #d8dee3, 0 -4px 12px rgba(40,55,68,.035);
}
.employee-customer-task-drawer .customer-task-composer.completed textarea:disabled {
  border-color: #c6cdd3;
  background: linear-gradient(180deg, #eef1f3 0%, #e7ebee 100%);
  color: #8a949c;
  box-shadow: inset 0 2px 5px rgba(51,65,76,.08), inset 0 1px 0 rgba(255,255,255,.72);
  cursor: not-allowed;
  opacity: 1;
}
.employee-customer-task-drawer .customer-task-composer.completed textarea:disabled::placeholder { color: #929ca4; opacity: 1; }
.employee-customer-task-drawer .customer-task-composer.completed .customer-task-composer-attachment {
  border-color: #d0d6db;
  background: linear-gradient(180deg, #f0f2f4 0%, #e8ecef 100%);
  color: #8b949b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.employee-customer-task-drawer .customer-task-composer.completed .customer-task-attachment-picker {
  border-color: #c1c9cf;
  background: #e3e7ea;
  color: #8a939a;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.employee-customer-task-drawer .customer-task-composer.completed footer button:disabled {
  border-color: #aeb7be;
  background: linear-gradient(180deg, #d9dee2 0%, #c7cdd2 100%);
  color: #7b858d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 0 #abb3b9;
  text-shadow: none;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

/* Exact customer drawer typography and control dimensions. */
.employee-customer-task-drawer.customer-task-workbench-view {
  width: min(1480px, calc(100vw - 40px));
}
.employee-customer-task-drawer .customer-task-context-head {
  min-height: 72px;
  margin: 0 14px;
  padding: 16px 2px 12px;
  border-bottom-color: #cfdde8;
  background: transparent;
  box-shadow: none;
}
.employee-customer-task-drawer .customer-task-context-head span {
  color: #9a7130;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.employee-customer-task-drawer .customer-task-context-head h3 {
  margin-top: 4px;
  color: #183b5d;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}
.employee-customer-task-drawer .customer-task-context-content {
  margin: 0 14px;
  padding: 1px 0 18px;
}
.employee-customer-task-drawer .customer-task-context-factory strong {
  color: #1b4c78;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}
.employee-customer-task-drawer .customer-task-context-factory span {
  color: #637689;
  font-size: 11px;
  line-height: 1.5;
}
.employee-customer-task-drawer .customer-task-context-factory small {
  color: #718092;
  font-size: 10px;
  line-height: 1.45;
}
.employee-customer-task-drawer .customer-task-context-route {
  min-height: 72px;
  box-sizing: border-box;
}
.employee-customer-task-drawer .customer-task-context-route span {
  color: #6e8294;
  font-size: 9px;
  font-weight: 650;
}
.employee-customer-task-drawer .customer-task-context-route strong {
  margin-top: 6px;
  color: #173f63;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}
.employee-customer-task-drawer .customer-task-context-schedule h4 {
  margin-bottom: 10px;
  color: #526d84;
  font-size: 11px;
  font-weight: 750;
}
.employee-customer-task-drawer .customer-task-context-leg-route {
  color: #61778b;
  font-size: 11px;
  line-height: 1.45;
}
.employee-customer-task-drawer .customer-task-context-leg > strong {
  font-size: 11px;
}
.employee-customer-task-drawer .customer-task-context-leg > b {
  margin-top: 4px;
  color: #17466f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.employee-customer-task-drawer .customer-task-context-leg > div span {
  color: #7c8996;
  font-size: 10px;
}
.employee-customer-task-drawer .customer-task-context-leg > div em {
  margin-top: 2px;
  color: #3d566d;
  font-size: 11px;
  font-weight: 650;
}
.employee-customer-task-drawer .customer-task-context-data dt {
  color: #748695;
  font-size: 9px;
  font-weight: 650;
}
.employee-customer-task-drawer .customer-task-context-data dd {
  margin-top: 5px;
  color: #1c405f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}
.employee-customer-task-drawer .customer-task-context-data div:last-child dd {
  color: #173f63;
  font-size: 12px;
  font-weight: 800;
}
.employee-customer-task-drawer .customer-task-composer form {
  padding: 15px 17px 17px;
  background: linear-gradient(180deg, #fbfdfe 0%, #f3f7fa 100%);
}
.employee-customer-task-drawer #customerTaskComposerForm {
  position: relative;
  min-height: 228px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  grid-template-areas:
    "textarea textarea"
    "attachment footer";
  gap: 11px 10px;
}
.employee-customer-task-drawer #customerTaskComposerForm > .customer-task-composer-context { display: none; }
.employee-customer-task-drawer #customerTaskComposerForm > textarea { grid-area: textarea; }
.employee-customer-task-drawer #customerTaskComposerForm > .customer-task-composer-attachment {
  grid-area: attachment;
  min-height: 40px;
  margin-top: 0;
}
.employee-customer-task-drawer #customerTaskComposerForm > footer {
  grid-area: footer;
  min-height: 40px;
  margin-top: 0;
  justify-content: flex-end;
}
.employee-customer-task-drawer #customerTaskComposerForm > footer > span:not(:empty) {
  position: absolute;
  right: 131px;
  bottom: 2px;
  max-width: calc(100% - 148px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-customer-task-drawer .customer-task-message-attachments {
  width: min(360px, 100%);
  margin: 9px 2px 0;
  display: grid;
  gap: 7px;
}
.employee-customer-task-drawer .customer-task-message.client .customer-task-message-attachments { margin-right: auto; }
.employee-customer-task-drawer .customer-task-message.employee .customer-task-message-attachments { margin-left: auto; }
.employee-customer-task-drawer .customer-task-message-attachments .customer-task-attachment-card {
  width: 100%;
  min-width: 220px;
  min-height: 58px;
  box-sizing: border-box;
  padding: 8px 9px;
  border: 1px solid #afc7d9;
  border-left: 3px solid #397ba8;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff 0%, #edf5fa 100%);
  box-shadow: inset 0 1px 0 #fff, 0 4px 11px rgba(28,70,101,.12);
  color: #1f4f75;
  text-decoration: none;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 24px;
  align-items: center;
  gap: 9px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.employee-customer-task-drawer .customer-task-message-attachments .customer-task-attachment-card:hover {
  border-color: #6f9ab9;
  background: linear-gradient(180deg, #fff 0%, #e5f0f7 100%);
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(28,75,110,.17);
  transform: translateY(-1px);
}
.employee-customer-task-drawer .customer-task-attachment-kind {
  width: 38px;
  height: 38px;
  border: 1px solid #9dbbd1;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #edf6fb 0%, #d9eaf4 100%);
  color: #235f8c;
  box-shadow: inset 0 1px 0 #fff;
  font-size: 10px;
  font-weight: 800;
}
.employee-customer-task-drawer .customer-task-attachment-meta { min-width: 0; display: grid; gap: 3px; }
.employee-customer-task-drawer .customer-task-attachment-meta strong {
  min-width: 0;
  color: #173f63;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.employee-customer-task-drawer .customer-task-attachment-meta small { color: #718497; font-size: 9px; line-height: 1.3; }
.employee-customer-task-drawer .customer-task-attachment-download {
  width: 24px;
  height: 24px;
  border: 1px solid #b8cbd9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #2c6c9a;
  box-shadow: 0 2px 5px rgba(28,68,98,.10);
  font-size: 13px;
  font-weight: 800;
}

.employee-customer-task-drawer .customer-task-composer-attachment {
  grid-template-columns: auto minmax(86px, 1fr) auto;
  gap: 8px;
}
.employee-customer-task-drawer .customer-task-attachment-picker {
  width: 123px;
  min-width: 123px;
  box-sizing: border-box;
  min-height: 34px;
  padding: 0 12px 0 8px;
  border-color: #8fadc3;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #e8f1f6 100%);
  color: #245f8c;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #a8bdcc, 0 5px 9px rgba(27,68,99,.10);
  font-size: 11px;
  font-weight: 750;
  gap: 6px;
}
.employee-customer-task-drawer .customer-task-attachment-picker:hover {
  border-color: #5f8cac;
  background: linear-gradient(180deg, #fff 0%, #dfedf5 100%);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #8faabd, 0 7px 12px rgba(27,68,99,.14);
}
.employee-customer-task-drawer .customer-task-attachment-picker > i {
  width: 19px;
  height: 19px;
  border: 1px solid #a6c0d3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #245f8c;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}
.employee-customer-task-drawer .customer-task-composer.completed .customer-task-attachment-picker > i {
  border-color: #c3cbd1;
  background: #edf0f2;
  color: #8a939a;
}
.employee-customer-task-drawer .customer-task-composer.completed form {
  background: linear-gradient(180deg, #f3f5f7 0%, #eceff2 100%);
}
.employee-customer-task-drawer .customer-task-composer textarea {
  height: 140px;
  min-height: 140px;
  padding: 13px 14px;
  font-size: 13px;
  line-height: 1.65;
  resize: none;
}
.employee-customer-task-drawer .customer-task-composer footer button {
  width: 104px;
  min-width: 104px;
  min-height: 38px;
  padding: 1px 6px;
  border-radius: 20px;
  font-size: 13px;
}
.employee-customer-task-drawer .customer-task-detail-head-actions button {
  min-width: 112px;
  min-height: 37px;
  padding: 0 16px;
  border-radius: 19px;
  font-size: 11px;
  font-weight: 750;
}
.employee-customer-task-drawer .customer-task-detail-head-actions [data-customer-task-reopen] {
  border-color: #9b814f;
  background: linear-gradient(180deg, #fffdf7 0%, #f2eadb 100%);
  color: #745a2b;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #b9a47b, 0 5px 9px rgba(92,70,31,.10);
}

/* Company task flow: same drawer, separate responsibility and reminder language. */
.employee-customer-task-drawer .customer-task-source-tabs {
  min-height: 48px;
  padding: 7px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #d5e0e8;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.employee-customer-task-drawer .customer-task-source-tabs button {
  min-width: 126px;
  min-height: 34px;
  padding: 0 12px 0 15px;
  border: 1px solid #ccd8e2;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #edf3f7 100%);
  color: #536a7d;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #c4d0d9, 0 5px 10px rgba(27,58,82,.08);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.employee-customer-task-drawer .customer-task-source-tabs button b {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 11px;
  background: #e4ebf0;
  color: #617485;
  font-size: 10px;
  line-height: 22px;
  text-align: center;
}
.employee-customer-task-drawer .customer-task-source-tabs button.active {
  border-color: #1d5684;
  background: linear-gradient(180deg, #3378ab 0%, #225f91 54%, #194e79 100%);
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.24), inset 0 -3px 0 rgba(7,37,61,.22), 0 3px 0 #123f65, 0 7px 13px rgba(24,73,109,.18);
  text-shadow: 0 1px 2px rgba(5,28,47,.24);
}
.employee-customer-task-drawer .customer-task-source-tabs button.active b { background: #fff; color: #1d5787; text-shadow: none; }
.employee-customer-task-drawer .customer-task-source-tabs button { position: relative; }
.employee-customer-task-drawer .customer-task-source-tabs button > i {
  position: absolute;
  top: -8px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #c9323b;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 4px 9px rgba(133,30,38,.28), inset 0 1px 0 rgba(255,255,255,.2);
}
.employee-customer-task-drawer .customer-task-source-tabs button.active > i { border-color: #fff; }
.employee-customer-task-drawer .customer-task-filter-bar button.has-attention b,
.employee-customer-task-drawer .customer-task-source-tabs button.has-attention b {
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  border-radius: 13px;
  background: #c9323b;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 25px;
  box-shadow: 0 3px 8px rgba(133,30,38,.24), inset 0 1px 0 rgba(255,255,255,.22);
}
.employee-customer-task-drawer .customer-task-filter-bar button.active.has-attention b,
.employee-customer-task-drawer .customer-task-source-tabs button.active.has-attention b {
  background: #d52f3a;
  color: #fff;
  box-shadow: 0 3px 9px rgba(84,16,22,.32), inset 0 1px 0 rgba(255,255,255,.25);
}

.employee-customer-task-drawer .customer-task-workbench-layout { height: calc(100% - 188px); }
.employee-customer-task-drawer .customer-task-inbox { grid-template-rows: auto minmax(0, 1fr) auto; }
.customer-task-inbox-footer { padding: 10px 11px 12px; border-top: 1px solid #d5e0e8; background: #f8fafc; }
.customer-task-inbox-footer:not(:has(button:not([hidden]))) { display: none; }
.customer-task-inbox-footer button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #1f5c8b;
  border-radius: 22px;
  background: linear-gradient(180deg, #3479ad 0%, #225f91 55%, #194d78 100%);
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -3px 0 rgba(7,37,61,.24), 0 3px 0 #123f65, 0 8px 14px rgba(24,72,108,.18);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(4,27,46,.3);
}
.customer-task-inbox-footer button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.employee-customer-task-drawer.company-task-source .customer-task-workbench-layout { grid-template-columns: minmax(280px, 310px) minmax(0, 1fr); }
.employee-customer-task-drawer.company-task-source .customer-task-context-panel { display: none; }
.employee-customer-task-drawer.air-tracking-source .customer-task-workbench-layout { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); }
.employee-customer-task-drawer.air-tracking-source .customer-task-context-panel { display: none; }
.employee-customer-task-drawer.air-tracking-source .customer-task-detail { display: flex; flex-direction: column; }
.air-tracking-thread-status { display: inline-flex; align-items: center; color: #9b6431; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.air-tracking-thread-status.completed { color: #587768; }
.air-tracking-conversation { flex: 1 1 auto; min-height: 0; padding: 20px 26px; display: grid; align-content: start; gap: 14px; overflow-y: auto; }
.air-tracking-conversation-message { border: 1px solid #cadbe6; border-left: 3px solid #4d8fb8; border-radius: 5px; background: #fff; box-shadow: 0 4px 12px rgba(34,76,106,.07); }
.air-tracking-conversation-message > header { padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e1e9ee; }
.air-tracking-conversation-message > header strong { color: #1f567b; font-size: 12px; }
.air-tracking-conversation-message > header time { color: #75899a; font-size: 11px; white-space: nowrap; }
.air-tracking-conversation-change { padding: 12px 16px; display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 3px 12px; border-bottom: 1px solid #edf1f4; }
.air-tracking-conversation-change:last-child { border-bottom: 0; }
.air-tracking-conversation-change > span { grid-row: span 2; align-self: center; color: #456981; font-size: 12px; font-weight: 800; }
.air-tracking-conversation-change p { margin: 0; color: #59748a; font-size: 13px; line-height: 1.5; }
.air-tracking-conversation-change p strong { color: #173f60; font-size: 14px; }
.air-tracking-conversation-change p i { padding: 0 8px; color: #a38a5b; font-style: normal; }
.air-tracking-conversation-change small { color: #74899a; font-size: 11px; }
.employee-customer-task-drawer.air-tracking-source .employee-notice-inbox-actions { margin: 0 26px 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.employee-customer-task-drawer.air-tracking-source .employee-notice-inbox-actions button { min-width: 96px; min-height: 36px; padding: 7px 16px; border: 1px solid #a8c7db; border-bottom-color: #7ba4bd; border-radius: 5px; background: linear-gradient(#fff,#e9f2f8); color: #2b6287; box-shadow: inset 0 1px #fff,0 2px 0 #9cb8ca,0 5px 12px rgba(32,80,111,.1); font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .16s ease, filter .16s ease; }
.employee-customer-task-drawer.air-tracking-source .employee-notice-inbox-actions button.primary { border-color: #3990bf; border-bottom-color: #1d6e9e; background: linear-gradient(#78c0e6,#3193c6); color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.4),0 2px 0 #1d6e9e,0 6px 14px rgba(35,115,161,.18); }
.employee-customer-task-drawer.air-tracking-source .employee-notice-inbox-actions button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.04); }
.employee-customer-task-drawer.air-tracking-source .employee-notice-inbox-actions button:disabled { filter: grayscale(.65); opacity: .6; cursor: wait; box-shadow: none; }
@media (max-width: 760px) {
  .employee-customer-task-drawer.air-tracking-source.customer-task-workbench-view { overflow-y: auto; }
  .employee-customer-task-drawer.air-tracking-source .customer-task-workbench-layout { display: block; height: auto; }
  .employee-customer-task-drawer.air-tracking-source .customer-task-detail { overflow: visible; }
  .air-tracking-conversation { padding: 14px; overflow: visible; }
  .air-tracking-conversation-change { grid-template-columns: 34px minmax(0,1fr); gap: 3px 8px; }
  .air-tracking-conversation-change p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; font-size: 12px; }
  .air-tracking-conversation-change p strong { font-size: 12px; white-space: nowrap; }
  .air-tracking-conversation-change p i { padding: 0 2px; }
  .employee-customer-task-drawer.air-tracking-source .employee-notice-inbox-actions { margin: 0 14px 20px; }
}
.employee-customer-task-drawer .company-task-row .customer-task-list-marker { border-color: #d7c59f; background: #f8f1e4; color: #8a692f; }
.employee-customer-task-drawer .company-task-row .customer-task-list-marker::after { content: "事"; }
.employee-customer-task-drawer .customer-task-list-reference:has(.company-task-relation) { display: flex; align-items: center; gap: 7px; }
.employee-customer-task-drawer .customer-task-list-reference > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-task-relation {
  display: inline-flex;
  min-height: 23px;
  padding: 1px 9px;
  box-sizing: border-box;
  border: 1px solid #c4d5e1;
  border-radius: 12px;
  align-items: center;
  background: #edf5fa;
  color: #28638e;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 18px;
  white-space: nowrap;
}
.company-task-relation.relation-dispatched { border-color: #d9c79f; background: #fbf5e9; color: #80622d; }
.company-task-relation.relation-self { border-color: #c7d9cf; background: #edf6f1; color: #356d57; }

.company-task-create-panel { min-height: 0; overflow-y: auto; background: linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%); }
.company-task-editor-head { min-height: 102px; padding: 24px 30px 19px; box-sizing: border-box; border-bottom: 1px solid #d2dee7; background: #fff; box-shadow: inset 0 -2px 0 #dbe6ed; }
.company-task-editor-head span { color: #9a7638; font-size: 10px; font-weight: 800; }
.company-task-editor-head h3 { margin: 5px 0 0; color: #193e60; font-size: 22px; }
.company-task-editor-head p { margin: 6px 0 0; color: #718292; font-size: 11px; }
.internal-inquiry-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.internal-inquiry-header-recipient { min-width: 206px; padding: 10px 12px; box-sizing: border-box; border: 1px solid #a9cdbd; border-radius: 8px; background: linear-gradient(180deg, #fbfffd 0%, #e9f4ef 100%); box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(33, 91, 69, .10); display: flex; align-items: center; gap: 9px; }
.internal-inquiry-header-recipient.missing { border-color: #d7c2a9; background: linear-gradient(180deg, #fffdfa 0%, #f8f0e8 100%); }
.internal-inquiry-header-recipient > i { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: #2f6d57; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 7px rgba(33,91,69,.18); color: #fff; display: grid; place-items: center; font-size: 12px; font-style: normal; font-weight: 900; }
.internal-inquiry-header-recipient.missing > i { background: #98734b; }
.internal-inquiry-header-recipient > div { min-width: 0; flex: 1; }
.internal-inquiry-header-recipient span, .internal-inquiry-header-recipient strong { display: block; }
.internal-inquiry-header-recipient span { color: #638073; font-size: 9px; font-weight: 750; }
.internal-inquiry-header-recipient strong { margin-top: 3px; overflow: hidden; color: #214f3d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.internal-inquiry-header-recipient em { padding: 3px 7px; border: 1px solid #b6d3c6; border-radius: 11px; background: #fff; color: #33705a; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.internal-inquiry-header-recipient.missing em { border-color: #d9c5ac; color: #98734b; }
.company-task-editor-form { width: min(920px, calc(100% - 56px)); margin: 26px auto 40px; padding: 26px 28px 30px; box-sizing: border-box; border: 1px solid #d0dce5; border-radius: 8px; background: #fff; box-shadow: inset 0 1px 0 #fff, 0 12px 30px rgba(25,58,83,.09); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 21px 24px; }
.company-task-field { min-width: 0; }
.company-task-field-wide { grid-column: 1 / -1; }
.company-task-field > span { display: block; margin-bottom: 8px; color: #496176; font-size: 11px; font-weight: 800; }
.company-task-field > span b { color: #b64848; }
.company-task-field input,
.company-task-field select,
.company-task-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #a9bdcc;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff 0%, #f9fbfc 100%);
  color: #213d55;
  box-shadow: inset 0 2px 5px rgba(27,58,84,.06), 0 3px 8px rgba(27,64,92,.055);
  font-family: inherit;
  font-size: 13px;
  outline: 0;
}
.company-task-field input,
.company-task-field select { height: 43px; padding: 0 13px; }
.company-task-field textarea { min-height: 138px; padding: 13px 14px; line-height: 1.65; resize: vertical; }
.company-task-field input:focus,
.company-task-field select:focus,
.company-task-field textarea:focus { border-color: #3978a4; background: #fff; box-shadow: 0 0 0 3px rgba(57,120,164,.14), 0 5px 12px rgba(27,72,105,.1); }
.company-task-field > small { display: block; margin-top: 6px; color: #82909d; font-size: 10px; }
.company-task-reminder-controls { padding: 15px; border: 1px solid #d3dfe8; border-radius: 7px; background: linear-gradient(180deg, #fbfdfe 0%, #f2f6f9 100%); box-shadow: inset 0 1px 0 #fff; }
.company-task-reminder-presets,
.company-task-reminder-delay-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.company-task-reminder-presets button,
.company-task-reminder-delay-buttons button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #b9cad7;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #eaf1f5 100%);
  color: #3d5e77;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #b8c6d0, 0 5px 9px rgba(30,62,87,.08);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.company-task-reminder-presets button:hover:not(:disabled),
.company-task-reminder-delay-buttons button:hover { transform: translateY(-1px); border-color: #779bb5; }
.company-task-reminder-presets button.active { border-color: #2e6e9d; background: linear-gradient(180deg, #eaf5fc 0%, #d9e9f4 100%); color: #195a89; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #8faec3, 0 6px 10px rgba(31,86,126,.13); }
.company-task-reminder-presets button.asap { border-color: #9ec6de; background: linear-gradient(180deg, #f6fcff 0%, #dceef9 100%); color: #1f5e8e; }
.company-task-reminder-presets button.asap.active { border-color: #2e6e9d; background: linear-gradient(180deg, #e7f4fc 0%, #d1e6f4 100%); color: #195a89; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #8faec3, 0 6px 10px rgba(31,86,126,.13); }
.company-task-reminder-presets button:disabled { color: #a5afb7; background: #eef1f3; box-shadow: none; cursor: not-allowed; }
.company-task-datetime { width: min(330px, 100%); margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) 36px; position: relative; cursor: pointer; }
.company-task-datetime > span { grid-column: 1 / -1; margin-bottom: 6px; color: #6d7f8f; font-size: 10px; font-weight: 750; }
.company-task-datetime > input { grid-column: 1 / -1; padding-right: 42px; cursor: pointer; }
.company-task-datetime > .shared-date-time-input-control { grid-column: 1 / -1; width: min(286px, 100%); }
.company-task-datetime > .shared-date-time-input-control ~ i { display: none; }
.company-task-datetime > i { position: absolute; right: 9px; bottom: 8px; width: 25px; height: 25px; border: 1px solid #bed0dc; border-radius: 5px; display: grid; place-items: center; background: #edf5fa; color: #27648f; font-size: 10px; font-style: normal; font-weight: 800; pointer-events: none; }
.company-task-reminder-hint { margin: 9px 0 0; color: #5f7486; font-size: 10px; }
.company-task-editor-actions { grid-column: 1 / -1; min-height: 46px; padding-top: 18px; border-top: 1px solid #e0e7ed; display: flex; align-items: center; justify-content: flex-end; gap: 11px; }
.company-task-editor-actions > span { margin-right: auto; color: #ae4545; font-size: 11px; }
.company-task-primary-button,
.company-task-cancel-button,
.company-task-delete-button {
  min-width: 112px;
  min-height: 39px;
  padding: 0 18px;
  border: 1px solid #1f5c8b;
  border-radius: 20px;
  background: linear-gradient(180deg, #3479ad 0%, #225f91 55%, #194d78 100%);
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -3px 0 rgba(7,37,61,.24), 0 3px 0 #123f65, 0 7px 12px rgba(21,68,103,.17);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.company-task-cancel-button { border-color: #b9c8d3; background: linear-gradient(180deg, #fff 0%, #edf2f5 100%); color: #526879; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #bcc9d2, 0 5px 9px rgba(30,62,87,.07); }
.company-task-delete-button { min-width: 96px; border-color: #c9a2a2; background: linear-gradient(180deg, #fff 0%, #f7eaea 100%); color: #9b3d3d; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #d4b3b3, 0 5px 9px rgba(116,39,39,.08); text-shadow: none; }
.company-task-primary-button:disabled { border-color: #b5c0c8; background: #cdd5da; color: #7e8a93; box-shadow: none; cursor: not-allowed; }

.company-task-detail-head .company-task-relation { min-height: 27px; padding: 1px 11px; border-radius: 14px; }
.company-task-timeline { padding: 24px 32px 30px 43px !important; background: linear-gradient(180deg, #f7fafc 0%, #f1f5f8 100%) !important; }
.company-task-progress-item,
.company-task-timeline-event { position: relative; width: min(760px, calc(100% - 20px)); margin: 0 0 20px; box-sizing: border-box; }
.company-task-progress-item::before,
.company-task-timeline-event::before { position: absolute; top: 9px; bottom: -29px; left: -21px; width: 1px; background: #c6d5e0; content: ""; }
.company-task-progress-item:last-child::before,
.company-task-timeline-event:last-child::before { display: none; }
.company-task-progress-item > i,
.company-task-timeline-event > i { position: absolute; top: 6px; left: -25px; width: 9px; height: 9px; border: 2px solid #f5f8fa; border-radius: 50%; background: #3b78a3; box-shadow: 0 0 0 1px #91aec2; }
.company-task-progress-item { padding: 15px 17px 14px; border: 1px solid #ccdae4; border-left: 3px solid #3b78a3; border-radius: 8px; background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); box-shadow: inset 0 1px 0 #fff, 0 5px 14px rgba(27,57,82,.09); }
.company-task-progress-item header { margin: 0 0 9px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.company-task-progress-item header strong { color: #245576; font-size: 11px; }
.company-task-progress-item header time { color: #8795a1; font-size: 10px; }
.company-task-progress-item > p { margin: 0; color: #243c51; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.company-task-progress-item footer { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e0e7ed; display: flex; align-items: center; gap: 10px; }
.company-task-progress-item footer span { color: #86939f; font-size: 9px; }
.company-task-progress-item footer strong { color: #81642f; font-size: 11px; }
.company-task-timeline-event { min-height: 28px; padding: 4px 12px 4px 0; color: #718393; display: flex; align-items: center; gap: 8px; font-size: 10px; }
.company-task-timeline-event > i { top: 8px; background: #b38a45; }
.company-task-timeline-event p { margin: 0; color: #4d6375; }
.company-task-timeline-event time { margin-left: auto; color: #93a0aa; }
.company-task-progress-composer { border-top: 1px solid #cad8e2; background: #fff; box-shadow: 0 -7px 18px rgba(30,55,76,.045); }
.company-task-progress-composer form { padding: 16px 20px 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); gap: 16px 18px; }
.company-task-progress-composer textarea { min-height: 126px; resize: none; }
.company-task-progress-composer .company-task-reminder-controls { min-height: 126px; box-sizing: border-box; }
.company-task-progress-composer form > footer { grid-column: 1 / -1; min-height: 42px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.company-task-progress-composer form > footer span { margin-right: auto; color: #ae4545; font-size: 11px; }
.company-task-completed-panel { min-height: 128px; padding: 28px 30px; box-sizing: border-box; border-top: 1px solid #d4dde4; background: linear-gradient(180deg, #f2f5f7 0%, #e9edef 100%); color: #75828c; }
.company-task-completed-panel strong { display: block; color: #536675; font-size: 13px; }
.company-task-completed-panel span { display: block; margin-top: 7px; font-size: 11px; }

.company-task-schedule-modal,
.company-task-reminder-modal { position: fixed; z-index: 1600; inset: 0; padding: 24px; box-sizing: border-box; background: rgba(17,34,50,.42); backdrop-filter: blur(3px); display: grid; place-items: center; }
.company-task-schedule-modal.hidden,
.company-task-reminder-modal.hidden { display: none; }
.company-task-schedule-card,
.company-task-reminder-card { width: min(620px, calc(100vw - 36px)); border: 1px solid #aebfcd; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 26px 70px rgba(8,28,45,.32), inset 0 1px 0 #fff; }
.company-task-schedule-card > header,
.company-task-reminder-card > header { padding: 22px 25px 19px; border-bottom: 3px solid #b68b45; background: #183f66; color: #fff; }
.company-task-schedule-card > header span,
.company-task-reminder-card > header span { color: #d9bd85; font-size: 10px; font-weight: 800; }
.company-task-schedule-card > header h3,
.company-task-reminder-card > header h2 { margin: 5px 0 0; color: #fff; font-size: 21px; }
.company-task-schedule-card > header p,
.company-task-reminder-card > header p { margin: 6px 0 0; color: #c8d8e4; font-size: 11px; }
.company-task-schedule-card > section { padding: 22px 24px; background: #f7fafc; }
.company-task-schedule-card > footer,
.company-task-reminder-card > footer { padding: 15px 24px 18px; border-top: 1px solid #d8e2e9; background: #fff; display: flex; justify-content: flex-end; gap: 10px; }
.company-task-schedule-card > footer > button:first-child { min-width: 100px; min-height: 39px; border: 1px solid #b7c5d0; border-radius: 20px; background: #f3f6f8; color: #586d7d; font-weight: 750; cursor: pointer; }

.company-task-reminder-modal { z-index: 1700; background: rgba(10,28,43,.62); backdrop-filter: blur(5px); }
.company-task-reminder-card { width: min(680px, calc(100vw - 36px)); }
.company-task-reminder-summary { padding: 20px 25px 17px; border-bottom: 1px solid #d9e3ea; background: #fff; }
.company-task-reminder-subject-label { display: block; margin: 11px 0 3px; color: #9a6b1f; font-size: 9px; font-weight: 800; }
.company-task-reminder-summary h3 { margin: 0 0 13px; color: #1d3f5d; font-size: 18px; line-height: 1.45; overflow-wrap: anywhere; }
.company-task-reminder-summary dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.company-task-reminder-summary dl div { padding: 10px 12px; border: 1px solid #d8e2e9; border-radius: 6px; background: #f6f9fb; }
.company-task-reminder-summary dt { color: #7e8d99; font-size: 9px; }
.company-task-reminder-summary dd { margin: 4px 0 0; color: #294b66; font-size: 12px; font-weight: 800; }
.company-task-reminder-context { padding: 14px 25px 4px; background: #f7fafc; }
.company-task-reminder-context-loading,
.company-task-reminder-context-empty { padding: 14px 16px; border: 1px dashed #c8d6e0; border-radius: 7px; background: rgba(255,255,255,.72); color: #718494; font-size: 11px; text-align: center; }
.company-task-reminder-context-item { position: relative; padding: 13px 15px 12px; border: 1px solid #cfdae3; border-radius: 8px; background: #fff; box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(23,53,78,.07); }
.company-task-reminder-context-item + .company-task-reminder-context-item { margin-top: 9px; }
.company-task-reminder-context-item.latest { border-color: #9dbbd0; border-left: 3px solid #2c719e; background: linear-gradient(180deg, #fff 0%, #f0f7fb 100%); box-shadow: inset 0 1px 0 #fff, 0 6px 15px rgba(31,84,120,.11); }
.company-task-reminder-context-item.original { background: linear-gradient(180deg, #fff 0%, #f8fafb 100%); }
.company-task-reminder-context-item header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.company-task-reminder-context-item header strong { color: #2a5473; font-size: 11px; }
.company-task-reminder-context-item.original header strong { color: #748695; }
.company-task-reminder-context-item header time { color: #8c9aa5; font-size: 9px; white-space: nowrap; }
.company-task-reminder-context-item p { max-height: 170px; margin: 8px 0 0; overflow: auto; color: #273f52; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.company-task-reminder-context-item p.collapsed { display: -webkit-box; max-height: 3.3em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.company-task-reminder-context-item > button { margin: 7px 0 0; padding: 0; border: 0; background: transparent; color: #2c6f9b; font-size: 10px; font-weight: 750; cursor: pointer; }
.company-task-reminder-reschedule { padding: 20px 25px 22px; background: linear-gradient(180deg, #f7fafc 0%, #eef4f7 100%); }
.company-task-reminder-reschedule > strong { display: block; margin-bottom: 12px; color: #39566d; font-size: 12px; }
.company-task-reminder-reschedule > label { width: min(330px, 100%); margin-top: 16px; display: block; cursor: pointer; }
.company-task-reminder-reschedule > label span { display: block; margin-bottom: 6px; color: #6b7f8f; font-size: 10px; font-weight: 750; }
.company-task-reminder-reschedule > label > input,
.company-task-reminder-reschedule .shared-time-input-date { width: 100%; height: 42px; padding: 0 12px; box-sizing: border-box; border: 1px solid #9fb7c9; border-radius: 7px; background: #fff; color: #213d55; box-shadow: inset 0 2px 5px rgba(27,58,84,.07), 0 3px 8px rgba(27,64,92,.06); outline: 0; cursor: pointer; }
.company-task-reminder-reschedule > label > .shared-date-time-input-control { width: min(286px, 100%); }
.company-task-reminder-reschedule > label > input:focus,
.company-task-reminder-reschedule .shared-time-input-date:focus { border-color: #3978a4; box-shadow: 0 0 0 3px rgba(57,120,164,.14); }
.company-task-reminder-reschedule > p { margin: 10px 0 0; color: #9a5b35; font-size: 10px; font-weight: 700; }
.company-task-reminder-card > footer > button { min-width: 132px; min-height: 39px; padding: 0 18px; border: 1px solid #aebfcb; border-radius: 20px; background: linear-gradient(180deg, #fff 0%, #edf3f6 100%); color: #3f5d73; box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(27,57,80,.1); font-weight: 800; cursor: pointer; }
.company-task-reminder-card > footer > button.company-task-primary-button { border-color: #2c668e; background: linear-gradient(180deg, #347eae 0%, #175985 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 #10466a, 0 7px 13px rgba(19,69,103,.18); }
.company-task-reminder-card > footer > button:disabled { border-color: #d2dbe1; background: #edf1f3; color: #9ba7af; box-shadow: none; cursor: not-allowed; }

/* Company and personal due reminders use the same non-blocking language as
   exact-time order reminders while retaining the richer task context. */
.company-task-reminder-modal.company-task-reminder-toast-mode {
  inset: auto 24px auto auto;
  top: 76px;
  z-index: 3190;
  width: min(500px, calc(100vw - 32px));
  padding: 0;
  display: block;
  place-items: initial;
  overflow: visible;
  background: transparent;
  backdrop-filter: none;
  opacity: 0;
  transform: translate3d(22px, -8px, 0) scale(.985);
  transition: opacity .2s ease, transform .24s cubic-bezier(.2, .75, .25, 1);
  pointer-events: none;
}
.company-task-reminder-modal.company-task-reminder-toast-mode.hidden { display: none; }
.company-task-reminder-modal.company-task-reminder-toast-mode.is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.company-task-reminder-toast-mode .company-task-time-reminder-card {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  max-height: calc(100dvh - 96px);
  overflow-x: hidden;
  overflow-y: auto;
  border-color: rgba(125,157,181,.76);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(24,55,80,.25), 0 8px 20px rgba(24,55,80,.14), inset 0 1px 0 #fff;
  pointer-events: auto;
  scrollbar-width: thin;
}
.company-task-reminder-close {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #7590a5;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.company-task-reminder-close:hover { background: #e8f1f7; color: #285e84; }
.company-task-time-reminder-card > .company-task-time-reminder-head {
  min-height: 66px;
  padding: 11px 44px 11px 15px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #cbdce8;
  background: linear-gradient(112deg,#fff 0%,#edf6fb 66%,#e4f0f7 100%);
  color: #183f61;
}
.company-task-time-reminder-head > div { min-width: 0; display: grid; gap: 1px; }
.company-task-time-reminder-head > div > span { color: #6a879d; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.company-task-time-reminder-card > .company-task-time-reminder-head h2 { margin: 0; color: #183f61; font-size: 16px; font-weight: 900; }
.company-task-time-reminder-head > b { padding: 4px 8px; border: 1px solid #dfc586; border-radius: 999px; background: #fff8e7; color: #8b6220; font-size: 10px; font-weight: 900; white-space: nowrap; }
.company-task-reminder-clock {
  width: 36px;
  height: 36px;
  position: relative;
  display: block;
  box-sizing: border-box;
  border: 1px solid #b99453;
  border-radius: 50%;
  background: linear-gradient(#fffdf7,#f2e2bd);
  box-shadow: inset 0 1px 0 #fff,0 4px 10px rgba(106,74,25,.14);
}
.company-task-reminder-clock::before,
.company-task-reminder-clock::after { content: ""; position: absolute; left: 17px; top: 8px; width: 2px; height: 10px; border-radius: 2px; background: #805b22; transform-origin: 1px 10px; }
.company-task-reminder-clock::after { height: 8px; transform: rotate(118deg); transform-origin: 1px 8px; }
.company-task-reminder-clock i { position: absolute; z-index: 1; left: 15px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: #805b22; }
.company-task-reminder-toast-mode .company-task-reminder-summary { padding: 15px 17px 13px; }
.company-task-reminder-toast-mode .company-task-reminder-summary h3 { margin-bottom: 10px; font-size: 17px; }
.company-task-reminder-toast-mode .company-task-reminder-summary dl { gap: 9px; }
.company-task-reminder-toast-mode .company-task-reminder-summary dl div { padding: 8px 10px; }
.company-task-reminder-toast-mode .company-task-reminder-context { max-height: 220px; padding: 11px 17px; overflow-y: auto; }
.company-task-reminder-toast-mode .company-task-reminder-context-item { padding: 10px 12px; }
.company-task-reminder-toast-mode .company-task-reminder-context-item p { max-height: 105px; }
.company-task-reminder-quick-actions {
  padding: 11px 13px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  border-top: 1px solid #d5e2eb;
  background: linear-gradient(180deg,#f9fbfd 0%,#eef5f9 100%);
}
.company-task-reminder-quick-actions button,
.company-task-reminder-more > summary {
  min-height: 34px;
  padding: 0 9px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 1px solid #a9c0d1;
  border-radius: 6px;
  background: linear-gradient(180deg,#fff 0%,#edf5fa 100%);
  color: #315f83;
  box-shadow: inset 0 1px 0 #fff,0 2px 5px rgba(46,94,132,.09);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}
.company-task-reminder-more { position: relative; }
.company-task-reminder-more > summary { list-style: none; }
.company-task-reminder-more > summary::-webkit-details-marker { display: none; }
.company-task-reminder-more > summary::after { margin-left: 5px; content: "⌄"; }
.company-task-reminder-more[open] > summary { border-color: #5e8dac; background: #e6f1f7; }
.company-task-reminder-more > div {
  position: absolute;
  z-index: 4;
  bottom: calc(100% + 6px);
  right: 0;
  width: 132px;
  padding: 7px;
  display: grid;
  gap: 6px;
  border: 1px solid #9eb7ca;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22,55,80,.2);
}
.company-task-reminder-more > div button { width: 100%; }
.company-task-reminder-toast-mode .company-task-reminder-reschedule {
  padding: 12px 17px 14px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 8px 12px;
  border-top: 1px solid #d5e2eb;
}
.company-task-reminder-toast-mode .company-task-reminder-reschedule.hidden { display: none; }
.company-task-reminder-toast-mode .company-task-reminder-reschedule > label { width: 100%; margin: 0; }
.company-task-reminder-toast-mode .company-task-reminder-reschedule > p { grid-column: 1/-1; margin: 0; }
.company-task-reminder-toast-mode .company-task-reminder-reschedule > button { min-height: 42px; padding: 0 15px; border: 1px solid #2f7ba9; border-radius: 7px; background: linear-gradient(#4d9aca,#2e78a5); color: #fff; font-size: 11px; font-weight: 850; box-shadow: inset 0 1px 0 rgba(255,255,255,.32),0 3px 7px rgba(38,100,142,.2); cursor: pointer; }
.company-task-reminder-toast-mode .company-task-reminder-reschedule > button:disabled { border-color: #ccd7de; background: #e8edf0; color: #98a5ae; box-shadow: none; cursor: not-allowed; }
.company-task-reminder-toast-mode .company-task-reminder-card > footer { padding: 11px 13px 14px; }
.company-task-reminder-toast-mode .company-task-reminder-card > footer > button { min-width: 138px; min-height: 36px; }
.company-task-reminder-toast-mode button:focus-visible,
.company-task-reminder-toast-mode summary:focus-visible { outline: 3px solid rgba(60,139,190,.24); outline-offset: 2px; }
@media (max-width: 900px) {
  .employee-customer-task-drawer .customer-task-workbench-layout { height: calc(100% - 188px); }
  .employee-customer-task-drawer.company-task-source .customer-task-workbench-layout { grid-template-columns: 240px minmax(560px, 1fr); overflow-x: auto; }
  .company-task-editor-form { grid-template-columns: 1fr; }
  .company-task-editor-form > * { grid-column: 1; }
  .internal-inquiry-editor-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .internal-inquiry-header-recipient { width: 100%; }
  .company-task-progress-composer form { grid-template-columns: 1fr; }
  .company-task-progress-composer form > footer { grid-column: 1; }
  .company-task-reminder-modal { padding: 12px; }
  .company-task-reminder-card { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
  .company-task-reminder-card > footer { flex-wrap: wrap; }
  .company-task-reminder-card > footer > button { flex: 1 1 180px; }
  .company-task-reminder-modal.company-task-reminder-toast-mode { top: 12px; right: 12px; width: calc(100vw - 24px); padding: 0; }
  .company-task-reminder-toast-mode .company-task-time-reminder-card { width: 100%; max-height: calc(100dvh - 24px); }
  .company-task-reminder-quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .company-task-reminder-toast-mode .company-task-reminder-reschedule { grid-template-columns: 1fr; }
  .company-task-reminder-toast-mode .company-task-reminder-reschedule > p { grid-column: 1; }
  .company-task-reminder-toast-mode .company-task-reminder-card > footer > button { flex: 1 1 130px; }
}

/* Keep the work log visible on ordinary laptop-height screens. */
.company-task-progress-composer form { padding: 11px 16px 13px; gap: 9px 15px; }
.company-task-progress-composer .company-task-field > span { margin-bottom: 5px; }
.company-task-progress-composer textarea { min-height: 98px; height: 98px; }
.company-task-progress-composer .company-task-reminder-controls { min-height: 0; padding: 9px 10px; }
.company-task-progress-composer .company-task-reminder-presets { gap: 6px; }
.company-task-progress-composer .company-task-reminder-presets button { min-height: 29px; padding: 0 10px; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #b8c6d0, 0 3px 6px rgba(30,62,87,.06); }
.company-task-progress-composer .company-task-datetime { margin-top: 8px; }
.company-task-progress-composer .company-task-datetime > span { margin-bottom: 4px; }
.company-task-progress-composer .company-task-datetime > input { height: 37px; }
.company-task-progress-composer .company-task-datetime > i { bottom: 6px; }
.company-task-progress-composer .company-task-reminder-hint { margin-top: 5px; }
.company-task-progress-composer form > footer { min-height: 36px; }
.company-task-progress-composer form > footer .company-task-primary-button { min-height: 36px; }

/* Internal inquiries: order-bound questions that always flow to the order operator. */
.employee-customer-task-drawer .customer-task-source-tabs button { min-width: 118px; }
.employee-customer-task-drawer .internal-inquiry-row .customer-task-list-marker {
  width: 21px;
  height: 21px;
  margin: 1px 0 0 -5px;
  border: 1px solid #a8cabb;
  background: linear-gradient(180deg, #f3fbf7 0%, #dcefe6 100%);
  color: #2f765b;
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(36,91,69,.1);
  display: grid;
  place-items: center;
}
.employee-customer-task-drawer .internal-inquiry-row { grid-template-columns: 18px minmax(0, 1fr); }
.employee-customer-task-drawer .internal-inquiry-row .customer-task-list-marker::after { content: "问"; font-size: 10px; font-weight: 900; }
.employee-customer-task-drawer .internal-inquiry-row.unread .customer-task-list-marker { border-color: #cb7d7d; box-shadow: 0 0 0 3px #f7e3e3, 0 3px 7px rgba(92,40,40,.1); }
.internal-inquiry-relation { border-color: #b7d7c8; background: #edf7f2; color: #316f58; }
.internal-inquiry-relation.relation-asked { border-color: #d9c99f; background: #fbf6e9; color: #80642f; }

.internal-inquiry-editor-form { position: relative; }
.internal-inquiry-order-field { position: relative; z-index: 4; }
.internal-inquiry-order-search { display: grid; grid-template-columns: minmax(0, 1fr) 42px; }
.internal-inquiry-order-search input { grid-area: 1 / 1 / 2 / 3; padding-right: 48px; }
.internal-inquiry-order-search button {
  grid-area: 1 / 2;
  z-index: 1;
  margin: 7px;
  border: 1px solid #bad0df;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff 0%, #eaf2f7 100%);
  color: #2b638c;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.internal-inquiry-order-search.selected input { border-color: #6eaa91; background: #f5fbf8; color: #245c47; font-weight: 800; }
.internal-inquiry-order-options {
  position: absolute;
  z-index: 8;
  top: 76px;
  left: 0;
  right: 0;
  max-height: 280px;
  padding: 5px;
  overflow-y: auto;
  border: 1px solid #aebfcd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 15px 35px rgba(20,48,70,.2);
}
.internal-inquiry-order-options[hidden] { display: none; }
.internal-inquiry-order-options button {
  width: 100%;
  min-height: 58px;
  padding: 8px 11px;
  border: 0;
  border-bottom: 1px solid #e1e8ed;
  background: #fff;
  color: #29465e;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.internal-inquiry-order-options button:last-child { border-bottom: 0; }
.internal-inquiry-order-options button:hover:not(:disabled) { background: #edf5fa; }
.internal-inquiry-order-options button:disabled { background: #f4f5f6; color: #929da5; cursor: not-allowed; }
.internal-inquiry-order-options button span, .internal-inquiry-order-options button small { display: block; }
.internal-inquiry-order-options button strong { font-size: 13px; }
.internal-inquiry-order-options button small { margin-top: 3px; color: #778895; font-size: 10px; }
.internal-inquiry-order-options button em { flex: 0 0 auto; color: #3d735d; font-size: 10px; font-style: normal; font-weight: 800; }
.internal-inquiry-order-options mark,
.cp-entity-suggestions mark {
  display: inline;
  padding: 1px 3px;
  border-radius: 4px;
  background: #ffe56f;
  color: #153d5d;
  font-weight: 800;
}
.internal-inquiry-order-empty { padding: 17px; color: #7a8995; font-size: 11px; text-align: center; }
.internal-inquiry-operator-card > div {
  min-height: 72px;
  padding: 12px 14px;
  box-sizing: border-box;
  border: 1px solid #bdcbd5;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f0f4f7 100%);
  box-shadow: inset 0 1px 0 #fff, 0 4px 11px rgba(27,58,82,.08);
  display: flex;
  align-items: center;
  gap: 11px;
}
.internal-inquiry-operator-card.ready > div { border-color: #a9cdbd; background: linear-gradient(180deg, #fbfffd 0%, #e9f4ef 100%); }
.internal-inquiry-operator-card i { width: 36px; height: 36px; border-radius: 50%; background: #2f6d57; color: #fff; display: grid; place-items: center; font-size: 13px; font-style: normal; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 7px rgba(33,91,69,.2); }
.internal-inquiry-operator-card p { min-width: 0; margin: 0; flex: 1; }
.internal-inquiry-operator-card p small, .internal-inquiry-operator-card p strong { display: block; }
.internal-inquiry-operator-card p small { color: #72858f; font-size: 9px; }
.internal-inquiry-operator-card p strong { margin-top: 3px; overflow: hidden; color: #214f3d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.internal-inquiry-operator-card em { padding: 3px 8px; border: 1px solid #b6d3c6; border-radius: 11px; background: #fff; color: #33705a; font-size: 9px; font-style: normal; font-weight: 800; }

.internal-inquiry-detail-head p i { margin: 0 6px; color: #a17b3b; font-style: normal; }
.internal-inquiry-responsibility {
  min-height: 69px;
  padding: 11px 20px;
  box-sizing: border-box;
  border-bottom: 1px solid #ccd9e2;
  border-left: 4px solid #bc8e44;
  background: linear-gradient(90deg, #fff8e9 0%, #fffdf8 68%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.internal-inquiry-responsibility.action { border-left-color: #bd4949; background: linear-gradient(90deg, #fff0f0 0%, #fffafa 68%, #fff 100%); }
.internal-inquiry-responsibility span, .internal-inquiry-responsibility small { display: block; }
.internal-inquiry-responsibility span { color: #7c8a95; font-size: 9px; }
.internal-inquiry-responsibility strong { display: inline-block; margin-top: 2px; color: #23465f; font-size: 14px; }
.internal-inquiry-responsibility small { margin-top: 3px; color: #6a7b88; font-size: 10px; }
.internal-inquiry-responsibility em { flex: 0 0 auto; color: #986d2e; font-size: 11px; font-style: normal; font-weight: 800; }
.internal-inquiry-responsibility.action em { color: #a43f3f; }
.internal-inquiry-timeline {
  padding: 23px 22px 26px !important;
  background: #f3f6f8 !important;
  display: flex;
  flex-direction: column;
}
.internal-inquiry-message { width: min(78%, 720px); margin: 0 0 20px; }
.internal-inquiry-message.operator { margin-left: auto; }
.internal-inquiry-message header { margin-bottom: 7px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.internal-inquiry-message header div { min-width: 0; }
.internal-inquiry-message header strong, .internal-inquiry-message header span { display: block; }
.internal-inquiry-message header strong { color: #294e69; font-size: 11px; }
.internal-inquiry-message header span, .internal-inquiry-message header time { color: #8a97a1; font-size: 9px; }
.internal-inquiry-message > p {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #c8d7e1;
  border-radius: 9px 9px 9px 3px;
  background: linear-gradient(180deg, #fff 0%, #f9fbfc 100%);
  color: #263f53;
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(22,54,78,.09);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.internal-inquiry-message.operator > p { border-color: #aecdbf; border-radius: 9px 9px 3px 9px; background: linear-gradient(180deg, #f8fffb 0%, #eaf5f0 100%); }
.internal-inquiry-message footer { margin-top: 5px; color: #87949e; font-size: 9px; }
.internal-inquiry-message.operator footer { text-align: right; }
.internal-inquiry-resolution-guide {
  width: min(560px, calc(100% - 52px));
  margin: auto auto 4px;
  padding-top: 28px;
  color: #82909a;
  font-size: 11px;
  font-style: normal;
  line-height: 1.8;
  text-align: center;
}
.internal-inquiry-resolution-guide span { display: block; }
.internal-inquiry-resolution-guide strong { color: #526e80; font-weight: 800; }
.internal-inquiry-action-panel { border-top: 1px solid #cad7e0; background: #fff; box-shadow: 0 -6px 17px rgba(27,55,76,.05); }
.internal-inquiry-action-panel form { padding: 13px 18px 15px; }
.internal-inquiry-action-panel.conversation { background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%); }
.internal-inquiry-action-panel.conversation form { padding: 14px 18px 15px; }
.internal-inquiry-action-panel.conversation textarea { min-height: 82px; height: 82px; border-color: #b5cbd9; background: linear-gradient(180deg, #fff 0%, #f7fbfd 100%); box-shadow: inset 0 1px 3px rgba(38,77,105,.05), 0 3px 9px rgba(32,66,88,.05); }
.internal-inquiry-action-panel.conversation textarea:focus { border-color: #4282ad; box-shadow: 0 0 0 3px rgba(51,122,169,.12), inset 0 1px 3px rgba(38,77,105,.04); }
.internal-inquiry-action-panel.follow-up form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .75fr); gap: 14px 16px; }
.internal-inquiry-action-panel textarea { min-height: 96px; height: 96px; resize: none; }
.internal-inquiry-action-panel .company-task-reminder-controls { min-height: 96px; padding: 9px 10px; box-sizing: border-box; }
.internal-inquiry-action-panel .company-task-reminder-presets { gap: 5px; }
.internal-inquiry-action-panel .company-task-reminder-presets button { min-height: 28px; padding: 0 9px; }
.internal-inquiry-action-panel .company-task-datetime { margin-top: 7px; }
.internal-inquiry-action-panel form > footer { min-height: 39px; margin-top: 10px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.internal-inquiry-action-panel.follow-up form > footer { grid-column: 1 / -1; margin-top: 0; }
.internal-inquiry-action-panel form > footer > span { margin-right: auto; color: #ae4545; font-size: 10px; }
.internal-inquiry-confirm-panel, .internal-inquiry-waiting-panel { min-height: 92px; padding: 17px 20px; box-sizing: border-box; border-top: 1px solid #ccd8e1; background: #fff; display: flex; align-items: center; gap: 11px; }
.internal-inquiry-confirm-panel > div, .internal-inquiry-waiting-panel > div { min-width: 0; margin-right: auto; }
.internal-inquiry-confirm-panel strong, .internal-inquiry-confirm-panel span, .internal-inquiry-waiting-panel strong, .internal-inquiry-waiting-panel span { display: block; }
.internal-inquiry-confirm-panel strong, .internal-inquiry-waiting-panel strong { color: #284b64; font-size: 13px; }
.internal-inquiry-confirm-panel span, .internal-inquiry-waiting-panel span { margin-top: 5px; color: #74838f; font-size: 10px; }
.internal-inquiry-waiting-panel { background: linear-gradient(180deg, #f6f8fa 0%, #edf1f4 100%); }
.internal-inquiry-waiting-panel > i { width: 34px; height: 34px; border: 1px solid #b9cfc5; border-radius: 50%; background: #edf7f2; color: #36735c; display: grid; place-items: center; font-style: normal; font-weight: 900; }
.internal-inquiry-reminder-card > header { border-bottom-color: #68a487; }
.internal-inquiry-reminder-card > footer .company-task-primary-button { min-width: 150px; }

.order-internal-inquiry-button {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #9ebcac;
  border-radius: 50%;
  background: linear-gradient(180deg, #f8fffb 0%, #e0f0e8 100%);
  color: #2f7358;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(32,84,63,.12);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.order-internal-inquiry-button:hover { transform: translateY(-1px); border-color: #5c947b; filter: brightness(1.02); }
.internal-inquiry-detail-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.internal-inquiry-detail-link[hidden] { display: none; }

.finance-inquiry-cell { width: 54px; min-width: 54px; text-align: center; }
.finance-inquiry-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #7da78f;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #e1f0e8 100%);
  color: #245f48;
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(30, 77, 58, .16);
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.finance-inquiry-button:hover { transform: translateY(-1px); border-color: #3f7f63; box-shadow: inset 0 1px 0 #fff, 0 5px 12px rgba(30, 77, 58, .2); }

/* The order number is deliberately larger than a finance-table cell.  Keep
   the same inquiry shortcut treatment while scaling only this header entry. */
.order-detail-inquiry-button.finance-inquiry-button {
  width: 34px;
  height: 34px;
  font-size: 15px;
}

.factory-fee-list-table [data-factory-fee-column="inquiry"],
.factory-fee-list-table td.finance-inquiry-cell {
  position: sticky;
  right: 220px;
}
.factory-fee-list-table [data-factory-fee-column="inquiry"] {
  z-index: 9;
  background: #386da3;
  color: #fff;
  box-shadow: -8px 0 14px -13px rgba(31, 66, 94, .8);
}
.factory-fee-list-table td.finance-inquiry-cell {
  z-index: 4;
  background: #fff;
  box-shadow: -8px 0 14px -13px rgba(31, 66, 94, .55);
}
.factory-fee-main-row:hover td.finance-inquiry-cell,
.factory-fee-child-row:hover td.finance-inquiry-cell { background: #f4f9fd; }
.factory-fee-main-row.selected td.finance-inquiry-cell { background: #edf7ff; }
.factory-fee-main-row.search-hit td.finance-inquiry-cell { background: #fffaf0; }
.customer-task-bill-invoices { padding-top: 12px; border-top: 1px solid #d3dde5; }
.customer-task-bill-invoices h4 { margin: 0 0 8px; color: #667b8c; font-size: 10px; }
.customer-task-bill-invoice-card { padding: 11px; border: 1px solid #c9d8e2; border-radius: 7px; background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%); box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(28, 59, 82, .06); }
.customer-task-bill-invoice-card + .customer-task-bill-invoice-card { margin-top: 9px; }
.customer-task-bill-invoice-card > header { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-bottom: 8px; border-bottom: 1px solid #dbe5eb; }
.customer-task-bill-invoice-card > header strong { min-width: 0; color: #244d6d; font-size: 11px; overflow-wrap: anywhere; }
.customer-task-bill-invoice-card > header em { flex: 0 0 auto; color: #967234; font-size: 9px; font-style: normal; font-weight: 800; }
.customer-task-bill-invoice-card dl { margin: 0; }
.customer-task-bill-invoice-card dl > div { padding: 8px 0 0; }
.customer-task-bill-invoice-card dt { color: #758797; font-size: 9px; }
.customer-task-bill-invoice-card dd { margin: 3px 0 0; color: #294b64; font-size: 11px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.customer-task-bill-invoice-card .customer-task-bill-invoice-title dd { color: #1e4f78; font-size: 12px; font-weight: 800; }
.customer-task-bill-account-details { margin-top: 10px; padding-top: 9px; border-top: 1px solid #dbe5eb; }
.customer-task-bill-account-details summary { color: #245f87; font-size: 10px; font-weight: 800; cursor: pointer; }
.customer-task-bill-account-details p { max-height: 220px; margin: 9px 0 0; padding: 10px; overflow: auto; border: 1px solid #d5e0e7; border-radius: 6px; background: #f8fbfd; color: #38576d; font-size: 10px; line-height: 1.55; white-space: pre-line; }
.customer-task-bill-invoices details { margin-top: 9px; }
.customer-task-bill-invoices summary { color: #245f87; font-size: 10px; font-weight: 750; cursor: pointer; }
.internal-inquiry-origin-card > div {
  min-height: 68px;
  padding: 11px 13px;
  box-sizing: border-box;
  border: 1px solid #b8cad7;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #edf3f7 100%);
  box-shadow: inset 0 1px 0 #fff, 0 5px 13px rgba(31, 62, 84, .08);
  display: flex;
  align-items: center;
  gap: 11px;
}
.internal-inquiry-origin-card i { width: 38px; height: 38px; border-radius: 50%; background: #285d86; color: #fff; display: grid; place-items: center; font-size: 13px; font-style: normal; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 4px 9px rgba(26,74,108,.2); }
.internal-inquiry-origin-card p { min-width: 0; margin: 0; flex: 1; }
.internal-inquiry-origin-card p strong, .internal-inquiry-origin-card p small { display: block; }
.internal-inquiry-origin-card p strong { color: #1e4668; font-size: 14px; overflow-wrap: anywhere; }
.internal-inquiry-origin-card p small { margin-top: 4px; color: #6c7f8e; font-size: 10px; }
.internal-inquiry-origin-card em { padding: 4px 9px; border: 1px solid #b5c8d6; border-radius: 12px; background: #fff; color: #356381; font-size: 9px; font-style: normal; font-weight: 800; }
.customer-task-bill-context { display: grid; gap: 13px; }
.customer-task-bill-origin { min-height: 46px; padding: 10px 12px; box-sizing: border-box; border: 1px solid #b9cbd8; border-left: 4px solid #c4933d; border-radius: 7px; background: linear-gradient(180deg, #fff 0%, #f3f7fa 100%); box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(28,59,82,.07); display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; }
.customer-task-bill-origin span { grid-column: 1 / -1; color: #8a6b34; font-size: 9px; font-weight: 800; }
.customer-task-bill-origin strong { margin-top: 3px; color: #1f4b6d; font-size: 13px; }
.customer-task-bill-origin em { padding: 3px 8px; border: 1px solid #c3d2dd; border-radius: 12px; background: #fff; color: #577186; font-size: 9px; font-style: normal; font-weight: 750; }
.customer-task-bill-hero { padding: 15px; border: 1px solid #c4d2dc; border-radius: 8px; background: linear-gradient(180deg, #fff 0%, #edf3f7 100%); box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(28,59,82,.08); }
.customer-task-bill-hero span, .customer-task-bill-hero strong, .customer-task-bill-hero small { display: block; }
.customer-task-bill-hero span { color: #987230; font-size: 10px; font-weight: 800; }
.customer-task-bill-hero strong { margin-top: 5px; color: #1e4667; font-size: 17px; overflow-wrap: anywhere; }
.customer-task-bill-hero small { margin-top: 6px; color: #6d7f8e; font-size: 10px; }
.customer-task-bill-summary { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.customer-task-bill-summary div { min-width: 0; padding: 10px 11px; border: 1px solid #d0dbe3; border-radius: 7px; background: #fff; box-shadow: 0 3px 9px rgba(29,58,78,.05); }
.customer-task-bill-summary .wide { grid-column: 1 / -1; }
.customer-task-bill-summary .amount { border-color: #c5d5e0; background: linear-gradient(180deg, #fff 0%, #f2f7fa 100%); }
.customer-task-bill-summary .amount dd { color: #174e76; font-size: 14px; }
.customer-task-bill-summary dt { color: #7b8995; font-size: 9px; }
.customer-task-bill-summary dd { margin: 4px 0 0; color: #284960; font-size: 12px; font-weight: 750; line-height: 1.45; overflow-wrap: anywhere; }
.customer-task-bill-orders, .customer-task-bill-lines { padding-top: 12px; border-top: 1px solid #d3dde5; }
.customer-task-bill-orders h4, .customer-task-bill-lines h4 { margin: 0 0 8px; color: #667b8c; font-size: 10px; }
.customer-task-bill-orders span, .customer-task-bill-orders a { margin: 0 5px 5px 0; padding: 4px 7px; border: 1px solid #c7d5df; border-radius: 5px; display: inline-block; background: #fff; color: #285273; font-size: 10px; font-weight: 750; }
.customer-task-bill-lines article { padding: 9px 0; border-top: 1px solid #dce4ea; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.customer-task-bill-lines article:first-of-type { border-top: 0; }
.customer-task-bill-lines article strong, .customer-task-bill-lines article span, .customer-task-bill-lines article b, .customer-task-bill-lines article em { display: block; }
.customer-task-bill-lines article strong { color: #254b69; font-size: 12px; }
.customer-task-bill-lines article span { margin-top: 3px; color: #788894; font-size: 9px; }
.customer-task-bill-lines article b { color: #264d69; font-size: 11px; text-align: right; }
.customer-task-bill-lines article em { margin-top: 4px; color: #3f755e; font-size: 9px; font-style: normal; font-weight: 800; text-align: right; }
.customer-task-bill-lines summary { color: #245f87; font-size: 10px; font-weight: 750; cursor: pointer; }
.customer-task-bill-lines details p { margin: 7px 0 0; color: #667b8c; font-size: 10px; line-height: 1.45; }

@media (max-width: 1100px) {
  .employee-customer-task-drawer .customer-task-source-tabs { overflow-x: auto; }
  .employee-customer-task-drawer .customer-task-source-tabs button { min-width: 108px; }
  .employee-customer-task-drawer.internal-inquiry-source .customer-task-workbench-layout { grid-template-columns: 230px 280px minmax(470px, 1fr); overflow-x: auto; }
  .internal-inquiry-editor-form { grid-template-columns: 1fr; }
  .internal-inquiry-editor-form > * { grid-column: 1; }
  .internal-inquiry-action-panel.follow-up form { grid-template-columns: 1fr; }
  .internal-inquiry-action-panel.follow-up form > footer { grid-column: 1; }
}

.employee-customer-task-drawer .customer-task-preorder-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}
.employee-customer-task-drawer .customer-task-preorder-status {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 10px;
  border: 1px solid #abc9dc;
  border-radius: 16px;
  background: linear-gradient(#fff, #e4f1f8);
  box-shadow: inset 0 1px #fff, 0 3px 6px rgba(27, 57, 82, .1);
  color: #285b80;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.employee-customer-task-drawer .customer-task-preorder-status::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .75;
}
.employee-customer-task-drawer .customer-task-preorder-status.attention {
  border-color: #e5bdb5;
  background: linear-gradient(#fff, #fbece9);
  color: #9c483c;
}
.employee-customer-task-drawer .customer-task-preorder-factory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.employee-customer-task-drawer .customer-task-preorder-factory-head strong { flex: 1 1 auto; min-width: 0; }
.employee-customer-task-drawer .customer-task-preorder-factory-attention {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid #ebc2ba;
  border-radius: 10px;
  background: #fff1ee;
  color: #a45247;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
