/* SERVICE workspace, designed at 1920 x 1080 with responsive fallbacks. */
body .o-service-page { --service-ink: #203653; --service-muted: #7b889a; --service-line: #e1e7ef; --service-accent: #315c9b; }
body .o-service-page .o-service-header {
  position: relative; inset: auto; z-index: auto; min-height: 58px; padding: 0 2px 12px;
  margin: 0 0 16px; border: 0; border-bottom: 1px solid var(--service-line); background: transparent;
}
body .o-service-page .o-service-header h4 { color: var(--service-ink); font-size: 22px; font-weight: 800; line-height: 30px; letter-spacing: -.6px; }
body .o-service-page .o-service-header .breadcrumb { color: var(--service-muted); font-size: 11px; }
body .o-service-page .o-service-panel {
  overflow: hidden; margin-bottom: 14px !important; border: 1px solid var(--service-line) !important;
  border-radius: 6px !important; background: #fff; box-shadow: 0 2px 6px #20365305 !important;
}
body .o-service-page .o-service-panel > .card-header { min-height: 38px; padding: 5px 12px !important; border-bottom: 1px solid #edf0f5 !important; }
body .o-service-page .o-service-panel-title { color: var(--service-ink); font-size: 14px; font-weight: 700; line-height: 26px; }
body .o-service-page .o-service-panel-title::before { width: 3px; height: 13px; background: #5c80b2; }
body .o-service-page .service-panel-description { margin: 2px 0 0; color: var(--service-muted); font-size: 12px; line-height: 18px; }
body .o-service-page .o-service-panel > .card-body { padding: 8px 12px !important; }
body .o-service-page:not(.maintenance-page) :is(.btn, button):not(.service-cell-action):not(.nav-link):not(.btn-close) {
  height: 32px !important; min-height: 32px !important; padding: 5px 12px !important;
  border-radius: 4px !important; line-height: 20px !important; font-size: 12px !important;
}
body .o-service-page .service-primary,
body .o-service-page .sr-create-button { border: 1px solid #315c9b !important; background: #315c9b !important; color: #fff; }
body .o-service-page .service-primary:hover,
body .o-service-page .sr-create-button:hover { background: #264b81 !important; }
body .o-service-page :is(.form-control, .form-select) { height: 32px !important; min-height: 32px !important; border: 1px solid #ced7e2; border-radius: 4px !important; padding: 5px 9px; line-height: 20px; }
body .o-service-page textarea.form-control { height: auto !important; min-height: 70px !important; resize: vertical; }
body .o-service-page :is(.form-control, .form-select):focus { border-color: #6c91c5; box-shadow: 0 0 0 2px #315c9b10 !important; }
/* DatePicker owns one visible outer border, regardless of the class passed to its component. */
body .o-service-page .mx-datepicker,
body .o-service-page .hk-search-box .mx-datepicker.form-control {
  width: 100% !important; height: 32px !important; min-height: 32px !important;
  padding: 0 !important; border: 1px solid #ced7e2 !important; border-radius: 4px !important;
  background: #fff !important; box-sizing: border-box;
}
body .o-service-page .mx-datepicker .mx-input-wrapper { width: 100%; height: 100%; }
body .o-service-page .mx-datepicker .mx-input {
  width: 100%; height: 30px !important; min-height: 30px !important; border: 0 !important;
  padding: 4px 30px 4px 9px !important; border-radius: 3px !important; background: transparent !important;
  line-height: 20px !important; box-shadow: none !important;
}
body .o-service-page .mx-datepicker:focus-within { border-color: #6c91c5 !important; box-shadow: 0 0 0 2px #315c9b10 !important; }
body .o-service-page .input-group > .mx-datepicker { flex: 1 1 0; width: 0 !important; min-width: 0; }
body .o-service-page .input-group-text { height: 32px; border-color: #ced7e2; background: #f8fafc; }
/* Compact inline labels and controls across all three SERVICE screens. */
body .o-service-page .service-filter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 12px; }
body .o-service-page .service-filter-field { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; }
body .o-service-page .service-filter-field--wide { grid-column: span 2; }
body .o-service-page .service-filter-field > label,
body .o-service-page .sr-filter-field > label { display: block; padding: 0; margin: 0; color: #62738a; text-align: right !important; white-space: nowrap; font-size: 11px; font-weight: 600; line-height: 16px; }
body .o-service-page .service-filter-control { min-width: 0; }
body .o-service-page .service-filter-control > div { width: 100%; padding: 0; }
body .o-service-page .service-filter-dates { display: flex; align-items: center; gap: 8px; }
body .o-service-page .service-filter-dates > div { flex: 1 1 0; width: 0; padding: 0; }
body .o-service-page .service-filter-dates > div + div::before { content: none; }
body .o-service-page .service-filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding-top: 6px; margin-top: 6px; border-top: 1px solid #edf0f5; }
body .o-service-page .service-filter-hint { margin-right: auto; color: #8a96a6; font-size: 11px; }
body .o-service-page .service-result-count { display: inline-block; margin-left: 10px; color: #8290a2; font-size: 11px; font-weight: 400; }
body .o-service-page .service-results-panel > .card-header > div { display: flex; align-items: center; }
body .o-service-page .service-grid-body { display: flex; flex-direction: column; min-height: 0; }
body .o-service-page .service-grid { flex: 1 1 auto; min-height: 300px; width: 100%; height: 500px; }
body .o-service-page .service-grid.ag-theme-quartz {
  --ag-font-family: NotoSansKR, 'Malgun Gothic', sans-serif; --ag-font-size: 12px;
  --ag-header-background-color: #f5f7fa; --ag-header-foreground-color: #52637b;
  --ag-border-color: #e1e7ef; --ag-row-border-color: #edf1f6; --ag-foreground-color: #34475f;
  --ag-odd-row-background-color: #fff; --ag-row-hover-color: #f3f7fd;
  --ag-selected-row-background-color: #eef4fc; --ag-wrapper-border-radius: 4px;
  --ag-cell-horizontal-padding: 12px; --ag-grid-size: 5px;
}
body .o-service-page .service-grid .ag-root-wrapper { border: 1px solid #e1e7ef; border-radius: 4px; }
body .o-service-page .service-grid .ag-header-cell-label { font-size: 11px; font-weight: 700; }
body .o-service-page .service-grid :is(.ag-cell, .ag-root) { font-size: 12px !important; }
body .o-service-page .service-cell-center { text-align: center; }
body .o-service-page .service-cell-number { text-align: right; font-variant-numeric: tabular-nums; }
body .o-service-page .service-cell-action {
  display: inline-flex; align-items: center; justify-content: center; max-width: 100%;
  height: 24px !important; min-height: 24px !important; padding: 0 9px !important; border: 1px solid #b9cbe2;
  border-radius: 3px !important; background: #fff; color: #315c9b; font-size: 11px !important;
  line-height: 22px !important; text-decoration: none; cursor: pointer; vertical-align: middle;
}
body .o-service-page .service-cell-action:hover { border-color: #315c9b; background: #f0f5fc; }
body .o-service-page .service-cell-link { display: block; height: 35px !important; min-height: 0 !important; padding: 0 !important; overflow: hidden; border: 0; background: transparent; font-size: 12px !important; font-weight: 600; line-height: 35px !important; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
body .o-service-page .service-cell-link:hover { border: 0; background: transparent; text-decoration: underline; }
body .o-service-page .service-status { display: inline-block; padding: 0 8px; border-radius: 3px !important; background: #f0f3f7; color: #62738a; font-size: 10px; font-weight: 600; line-height: 22px; }
body .o-service-page .service-status-R { background: #edf3fd; color: #315c9b; }
body .o-service-page :is(.service-status-C, .service-status-F) { background: #eaf5ef; color: #33815b; }
body .o-service-page :is(.service-status-N, .service-status-I) { background: #eef2fc; color: #5268ad; }
body .o-service-page :is(.service-status-Y, .service-status-S) { background: #fff2ee; color: #b97555; }
body .o-service-page .service-muted { color: #8995a5; font-size: 11px; }
body .o-service-page .service-grid-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding-top: 6px; color: #8995a5; font-size: 11px; }
body .o-service-page .service-grid-footer .service-result-count { margin: 0; }
body .o-service-page .service-page-size { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
body .o-service-page .service-page-size select { width: 82px; }
body .o-service-page .pagination { gap: 4px; }
body .o-service-page .page-link { border: 0; border-radius: 4px !important; background: #f4f6f9; color: #64748b; font-size: 11px; }
body .o-service-page .page-item.active .page-link { background: #315c9b; color: #fff; }
/* Registration: inline labels, compact sections and short row gaps. */
body .o-service-page .service-registration > form > .card-body { padding: 0 !important; }
body .o-service-page .service-form-section { display: block; padding: 10px 12px; border-bottom: 1px solid #edf0f5; }
body .o-service-page .service-form-section:last-child { border-bottom: 0; }
body .o-service-page .service-form-section-heading h6 { margin: 0 0 8px; color: #203653; font-size: 14px; font-weight: 700; }
body .o-service-page .service-form-section-heading p { display: none; max-width: 150px; margin: 0; color: #8a96a6; font-size: 11px; line-height: 18px; }
body .o-service-page .service-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; }
body .o-service-page .service-form-field { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; }
body .o-service-page .service-form-field--wide { grid-column: span 1; }
body .o-service-page .service-form-field--full { grid-column: 1 / -1; }
body .o-service-page .service-form-field > label { display: block; margin: 0; text-align: right; white-space: nowrap; color: #62738a; font-size: 11px; font-weight: 600; line-height: 16px; }
body .o-service-page .service-form-control { min-width: 0; }
body .o-service-page .service-form-control:has(> .btn-group) { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
body .o-service-page .service-form-control .btn-group { margin: 0 !important; }
body .o-service-page .service-form-field--full textarea { min-height: 44px !important; }
body .o-service-page .service-department-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; color: #34475f; font-size: 13px; font-weight: 700; line-height: 24px; }
body .o-service-page .service-department-description { color: #8a96a6; font-size: 10px; font-weight: 400; }
body .o-service-page .service-department-heading > a { margin-left: auto; text-decoration: none; }
body .o-service-page .service-department-add { color: #315c9b; font-size: 11px; font-weight: 500; }
body .o-service-page .service-department-column + .service-department-column { padding-left: 24px; border-left: 1px solid #edf0f5; }
/* SR: compact task navigation, full-height request list and a calm detail surface. */
body .o-service-page .sr-list-workspace { --bs-gutter-x: 14px; }
body .o-service-page .sr-project-select { padding: 16px 18px; background: #fff; }
body .o-service-page .sr-task-list { padding: 12px !important; background: #f8fafc; }
body .o-service-page .sr-task-item { min-height: 58px; margin-bottom: 8px; padding: 10px !important; border: 1px solid #e6ebf2 !important; border-radius: 4px; }
body .o-service-page .sr-task-item.border-info { border-color: #b5c9e7 !important; background: #eff4fc; box-shadow: inset 2px 0 #6084b8; }
body .o-service-page .sr-task-actions { gap: 4px; }
body .o-service-page .sr-task-actions .btn { padding: 5px 8px !important; font-size: 10px !important; }
body .o-service-page .sr-content-card > .hk-search-box { margin: 0 !important; padding: 8px 12px !important; border: 0 !important; border-bottom: 1px solid #edf0f5 !important; border-radius: 0 !important; background: #fafbfd; }
body .o-service-page .o-service-search-title { display: none; }
body .o-service-page .sr-filter-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.8fr .8fr auto; gap: 8px; align-items: center; }
body .o-service-page .sr-filter-field { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; }
body .o-service-page .sr-filter-action { grid-column: auto; }
body .o-service-page .sr-filter-action .sr-search-button { width: 32px; padding: 0 !important; }
body .o-service-page .sr-content-card { display: flex; flex-direction: column; }
body .o-service-page .sr-detail-panel { padding: 0; overflow: hidden; border-radius: 6px; }
body .o-service-page .sr-detail-header { padding: 14px 18px; }
body .o-service-page .sr-detail-heading > i { border-radius: 4px; background: #edf3fb; color: #315c9b; }
/* Request details show customer and worker information together. */
:is(#scope-o-sr-list, #scope-o-sr-create) .sr-conversation-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
:is(#scope-o-sr-list, #scope-o-sr-create) .sr-conversation-section { min-width: 0; border: 1px solid #dfe6ee; background: #fff; }
:is(#scope-o-sr-list, #scope-o-sr-create) .sr-conversation-heading { margin: 0; padding: 10px 12px; border-bottom: 1px solid #dfe6ee; background: #eef5ff; color: #2563b9; font-size: 14px; font-weight: 700; }
:is(#scope-o-sr-list, #scope-o-sr-create) .sr-worker-card > .sr-conversation-heading { background: #edf9f4; color: #27805d; }
:is(#scope-o-sr-list, #scope-o-sr-create) .sr-conversation-section > .card-body { padding: 12px; overflow-wrap: anywhere; }
:is(#scope-o-sr-list, #scope-o-sr-create) .sr-conversation-section .daily-task-card { margin-bottom: 0; }
:is(#scope-o-sr-list, #scope-o-sr-create) .sr-conversation-section img { max-width: 100%; height: auto; }
@media (max-width: 991.98px) {
  :is(#scope-o-sr-list, #scope-o-sr-create) .sr-conversation-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1200px) and (min-height: 800px) {
  body :is(#scope-e-business-list, #scope-o-sr-list).o-service-page .pc-content { padding: 14px 20px !important; }
  body #scope-e-business-cre.o-service-page .pc-content { max-width: 1680px; max-height: 900px; overflow-y: auto; margin: 0 auto; padding: 14px 20px !important; }
}
@media (max-width: 1499px) {
  body .o-service-page .service-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body .o-service-page .sr-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .o-service-page .sr-filter-action { grid-column: 1 / -1; }
  body .o-service-page .service-form-section { padding: 10px 12px; }
}
@media (max-width: 991.98px) {
  body .o-service-page .service-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .o-service-page .service-form-section { display: block; padding: 10px 12px; }
  body .o-service-page .service-form-section-heading { margin-bottom: 6px; }
  body .o-service-page .service-form-section-heading p { max-width: none; }
  body .o-service-page .service-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .o-service-page .service-grid-footer { flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
  body .o-service-page :is(.service-filter-grid, .service-form-grid, .sr-filter-grid) { grid-template-columns: minmax(0, 1fr); }
  body .o-service-page .service-filter-field--wide { grid-column: span 1; }
  body .o-service-page .service-filter-hint { display: none; }
  body .o-service-page .service-department-column + .service-department-column { margin-top: 16px; padding-left: 6px; border-left: 0; }
}

body .o-service-page .service-range-separator { color: #8a96a6; flex: 0 0 auto; }
@media (min-width: 1200px) and (min-height: 800px) {
 body .o-service-page .sr-list-workspace:has(> .mb-2:not([style*="display: none"])) > :is(.col-xxl-3, .col-xxl-9) > .o-service-panel { height: 520px; }
}
body .o-service-page .sr-filter-field > label { text-align: right !important; }
body .o-service-page .table thead :is(th, td) {
  background: #f5f7fa !important; --bs-table-bg: #f5f7fa;
  --bs-table-bg-type: transparent; --bs-table-bg-state: transparent;
  color: #62738a; box-shadow: none; font-size: 11px; font-weight: 600;
}
body .o-service-page .service-empty-row { color: #94a0af; text-align: center; font-size: 11px; height: 54px; }
/* Lists retain their own height at every window size; the page needs no fixed height. */

  body :is(#scope-e-business-list, #scope-o-sr-list).o-service-page .pc-content { display: block; height: auto; min-height: 0; }
  body .o-service-page .service-grid { flex: 0 0 auto; height: 420px; min-height: 320px; }
  body .o-service-page .sr-list-workspace { overflow: visible; }
  body .o-service-page .sr-task-list { flex: 0 1 auto; height: 420px; }
/* Task names must shrink before counts or the settings button can overflow. */
body .o-service-page .sr-task-item { gap: 6px; min-width: 0; }
body .o-service-page .sr-task-item .sr-task-icon {
  flex: 0 0 24px; width: 24px; margin: 0 !important; text-align: center;
}
body .o-service-page .sr-task-item .sr-task-icon i { font-size: 24px !important; }
body .o-service-page .sr-task-copy {
  display: flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0;
}
body .o-service-page .sr-task-name {
  flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; color: #203653; font-size: 13px; font-weight: 700;
}
body .o-service-page .sr-task-count {
  flex: 0 0 auto; padding: 1px 4px; border-radius: 2px;
  color: #52637b; background: #e8eef6; font-size: 10px;
  font-weight: 600; line-height: 16px; white-space: nowrap;
}
body .o-service-page .sr-task-item .sr-task-settings {
  flex: 0 0 26px; width: 26px; min-width: 26px;
  height: 26px !important; min-height: 26px !important;
  margin: 0 !important; padding: 0 !important;
}
body .o-service-page .sr-task-item .sr-task-settings i { font-size: 22px !important; }
