:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --ink: #1b2430;
  --muted: #66788a;
  --line: #d7e1ee;
  --brand: #0b6cff;
  --brand-2: #00a86b;
  --warn: #f5a524;
  --danger: #e5484d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at 20% 10%, #e9f1ff 0%, var(--bg) 40%), var(--bg);
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef4ff;
}

.login-card {
  width: min(460px, 100%);
  border: 1px solid #cddbf0;
  border-radius: 14px;
  background: #fff;
  padding: 24px 20px 28px;
  box-shadow: 0 10px 30px rgba(28, 55, 90, 0.04);
}

.login-card h1 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
  color: #0f1f33;
}

.login-card p {
  margin: 0 0 14px;
  color: #465c73;
  font-size: 13px;
}

.login-card .field {
  margin-bottom: 12px;
}

.login-card input {
  width: 100%;
  border-color: #cddbf0;
  border-radius: 10px;
  padding: 10px 12px;
}

.login-submit {
  width: 100%;
  min-height: 41px;
  margin-top: 2px;
  font-size: 15px;
}

.login-message {
  min-height: 20px;
  margin-top: 12px;
  color: #0b6b41;
  font-size: 13px;
}

.login-message.error {
  color: #b42318;
}

.sidebar {
  background: linear-gradient(180deg, #152238 0%, #0e1727 100%);
  color: #dce9ff;
  padding: 20px;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
}

.brand p {
  margin: 6px 0 18px;
  color: #98b3d9;
  font-size: 13px;
}

.sidebar-panel {
  border: 1px solid #314968;
  border-radius: 12px;
  background: #182842;
  padding: 12px;
  margin-bottom: 12px;
  text-align: left;
}

.sidebar-action-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.sidebar-panel label {
  display: block;
  margin-bottom: 8px;
  color: #c7d8ef;
  font-size: 13px;
}

.sidebar-panel select {
  width: 100%;
}

.role-meta {
  margin-top: 10px;
  color: #c7d8ef;
  font-size: 12px;
  line-height: 1.6;
}

.nav-btn {
  width: 100%;
  margin-bottom: 11px;
  border: 1px solid #355171;
  background: #182842;
  color: #f3f7ff;
  padding: 0 14px;
  min-height: 43px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  font-size: 16px;
  font-weight: 400;
  line-height: 43px;
}

.nav-btn.active,
.nav-btn:hover {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}

.sidebar.create-mode .nav-btn,
.sidebar.create-mode .nav-btn:hover {
  background: #182842;
  border-color: #355171;
  color: #f3f7ff;
}

.main {
  padding: 20px;
}

.topbar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.topbar h2 {
  margin: 0;
  font-size: 22px;
}

.topbar p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.role-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.backend-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: #f7fbff;
  color: #3b5874;
  font-size: 12px;
}

.backend-status.ok {
  background: #eaf8f0;
  border-color: #bde5cb;
  color: #0b6b41;
}

.current-user {
  color: #1f3b57;
  font-size: 13px;
}

.view {
  margin-top: 14px;
}

.hidden {
  display: none !important;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  text-align: left;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.section-head h3 {
  margin: 0;
}

.grid-2,
.grid-3,
.grid-1 {
  display: grid;
  gap: 10px;
}

.grid-1 {
  grid-template-columns: 1fr;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.date-clear-row {
  display: grid;
  grid-template-columns: minmax(155px, 1fr) 58px;
  gap: 8px;
  align-items: center;
}

.date-clear-row input {
  min-width: 0;
}

.execution-grid,
.execution-cost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.execution-grid input,
.execution-cost-grid input,
.date-clear-row input {
  width: 100%;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  color: #526579;
}

.field.full-span {
  grid-column: 1 / -1;
}

.field-title {
  display: block;
  margin-bottom: 4px;
}

.compact-head {
  align-items: center;
  margin-bottom: 8px;
}

.part-items-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-top: 4px;
}

.part-items-head,
.part-item-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(180px, 1.2fr) minmax(110px, 0.7fr) 126px;
  gap: 8px;
  align-items: center;
}

.part-items-head {
  padding: 7px 12px;
  background: #f3f8ff;
  color: #526579;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.part-item-row {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}

.part-item-row > * {
  min-width: 0;
}

.part-item-row input,
.part-item-row select {
  min-height: 38px;
}

.part-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.additional-issue-field {
  grid-column: span 2;
}

.additional-issue-field select + select {
  margin-top: 8px;
}

.part-detail-list {
  display: grid;
  gap: 8px;
}

.part-detail-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1fr) minmax(120px, 0.7fr);
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
  line-height: 1.5;
}

.part-detail-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  line-height: 1.4;
}

textarea {
  min-height: 60px;
  resize: vertical;
}

small,
.muted {
  color: var(--muted);
  font-size: 12px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
}

.btn.secondary {
  background: #eef3fb;
  border-color: var(--line);
  color: #18324f;
}

.btn.danger-soft {
  background: #fff3f3;
  border-color: #f0c7c9;
  color: #b63a40;
}

.full-btn {
  width: 100%;
  margin-bottom: 10px;
}

.sidebar-action-panel .full-btn {
  margin-bottom: 11px;
  min-height: 43px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 400;
  line-height: 43px;
  text-align: left;
  background: #182842;
  border-color: #355171;
  color: #f3f7ff;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.sidebar-action-panel .btn.primary {
  background: #182842;
  border-color: #355171;
  color: #f3f7ff;
  box-shadow: none;
}

.sidebar-action-panel .btn.primary:hover,
.sidebar-action-panel .btn.primary.active {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}

.row-actions,
.filters-row,
.ticket-tags,
.ticket-actions,
.upload-actions,
.summary-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
}

.metric-card.active {
  border-color: #0b6cff;
  background: #eef5ff;
}

.metric-card-label {
  color: var(--muted);
  font-size: 12px;
}

.metric-card-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
}

.layout-2,
.layout-2-narrow,
.workspace-grid {
  display: grid;
  gap: 12px;
}

.layout-2 {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.layout-2-narrow {
  grid-template-columns: minmax(0, 1.45fr) 340px;
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.15fr) 420px;
}

.ticket-list,
.task-list,
.analytics-list,
.account-list,
.summary-list,
.file-list {
  display: grid;
  gap: 10px;
}

.ticket-card,
.task-card,
.analytics-card,
.account-card,
.summary-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.ticket-card header,
.task-card header,
.analytics-card header,
.account-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.ticket-card h4,
.task-card h4,
.analytics-card h4,
.account-card h4 {
  margin: 0;
}

.ticket-summary {
  margin: 8px 0;
  line-height: 1.55;
  color: #2d4055;
}

.sla-text {
  font-size: 12px;
  line-height: 1.5;
}

.sla-text.warn {
  color: #995d00;
}

.sla-text.danger {
  color: #b42318;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.afs-table {
  min-width: 1220px;
}

.task-table {
  min-width: 980px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 8px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

.table th {
  color: #3b5874;
  background: #f7fbff;
}

.table td .row-actions {
  margin-top: 4px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.tag.blue {
  background: #dceaff;
  color: #12457f;
}

.tag.green {
  background: #d8f7ea;
  color: #0c6642;
}

.tag.orange {
  background: #fff1d6;
  color: #995d00;
}

.tag.red {
  background: #ffe3e6;
  color: #b42318;
}

.tag.gray {
  background: #edf1f7;
  color: #556577;
}

.notice {
  padding: 10px;
  border-radius: 10px;
  background: #eef5ff;
  border: 1px solid #cadfff;
  color: #204b85;
  font-size: 13px;
}

.notice.subtle {
  background: #f7fbff;
  border-color: #d7e6fb;
  color: #365372;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 39, 0.45);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 16px;
}

.modal-card {
  width: min(760px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.modal-wide {
  width: min(1080px, 96vw);
}

.modal-xwide {
  width: min(1400px, 96vw);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-header h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.clean-modal {
  border: 0;
  outline: 0;
  padding: 0;
  box-shadow: none;
  background: rgba(31, 42, 56, 0.38);
  backdrop-filter: none;
}

.clean-modal::backdrop {
  background: rgba(31, 42, 56, 0.38);
}

.clean-modal-card {
  border: 0;
  outline: 0;
  box-shadow: none;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  background-clip: padding-box;
}

.password-modal-card {
  width: min(520px, 92vw);
  padding: 34px 16px 24px;
}

.password-modal-card .modal-header {
  align-items: flex-start;
  padding: 0;
  border-bottom: 0;
  margin-bottom: 16px;
}

.password-modal-card .modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #071c36;
}

.password-modal-card .modal-header .muted {
  margin-top: 18px;
  color: #4c6077;
}

.password-form-fields {
  display: grid;
  gap: 12px;
}

.password-modal-card .field input {
  min-height: 43px;
  border-radius: 8px;
  border-color: #cddbec;
  background: #fff;
  font-size: 14px;
}

.password-modal-card .row-actions {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 28px;
}

.password-modal-card .btn {
  min-height: 40px;
  border-radius: 9px;
  padding: 0 14px;
}

.ticket-modal-card {
  padding: 18px;
}

.ticket-modal-card #ticketDialogBody {
  max-height: calc(92vh - 92px);
  overflow: auto;
  border-radius: 12px;
}

.wecom-modal-card {
  width: min(520px, 92vw);
  padding: 34px 16px 24px;
}

.wecom-modal-card .modal-header {
  align-items: flex-start;
  padding: 0;
  border-bottom: 0;
  margin-bottom: 16px;
}

.wecom-modal-card .modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #071c36;
}

.wecom-modal-card .modal-header .muted {
  margin-top: 18px;
  color: #4c6077;
}

.wecom-modal-card .row-actions {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 28px;
}

.wecom-modal-card .btn {
  min-height: 40px;
  border-radius: 9px;
  padding: 0 14px;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.create-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.create-section h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #0d2745;
}

.create-page-shell {
  display: grid;
  gap: 12px;
}

.create-page-form {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
}

.create-page-form .create-submit-row {
  grid-column: 1 / -1;
}

.create-page-form .create-section {
  margin-bottom: 0;
}

.create-submit-row {
  justify-content: flex-start;
  padding: 8px 0 2px;
}

.create-basic-grid,
.create-risk-grid,
.issue-attachment-grid {
  display: grid;
  gap: 10px 12px;
}

.create-basic-grid,
.create-risk-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.part-items-head,
.part-item-row {
  grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.85fr) minmax(220px, 1fr) minmax(120px, 0.45fr) 126px;
}

.issue-attachment-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: start;
}

.issue-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 8px 12px;
}

.issue-section > h4 {
  grid-column: 1;
}

.issue-section .issue-attachment-grid {
  display: contents;
}

.issue-section .attachment-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.attachment-panel {
  display: grid;
  gap: 8px;
}

#uploadList.file-list,
.inline-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

#uploadList .file-item,
.inline-file-list .file-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 240px;
  min-height: 34px;
  padding: 4px 6px 4px 10px;
  border: 1px solid #d5e2f3;
  border-radius: 9px;
  background: #f8fbff;
}

#uploadList .file-item span,
.inline-file-list .file-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#uploadList .file-item .btn,
.inline-file-list .file-item .btn {
  min-height: 28px;
  padding: 0 10px;
  flex: 0 0 auto;
}

.create-section .section-head h4,
.create-section .upload-head h4 {
  margin-bottom: 4px;
}

.upload-head {
  justify-content: flex-start;
  align-items: center;
  margin-top: 0;
}

.paste-zone {
  cursor: pointer;
}

.compact-paste-zone {
  padding: 9px 10px;
  font-size: 12px;
}

.action-subsection {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.compact-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.paste-zone.focus {
  border-color: #0b6cff;
  background: #f4f9ff;
}

.upload-trigger {
  position: relative;
  overflow: hidden;
}

.create-page-form input,
.create-page-form textarea,
.create-page-form select,
.create-page-form .btn {
  font-size: 14px;
}

.create-page-form .field label {
  font-size: 12px;
}

.create-page-form small,
.create-page-form .muted {
  font-size: 12px;
}

.create-page-form textarea[name="issueDescription"] {
  min-height: 116px;
}

.key-value {
  display: grid;
  gap: 8px;
}

.key-value .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-item {
  border-left: 3px solid #d7e1ee;
  padding-left: 10px;
  color: #2d4055;
}

.timeline-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .main {
    padding: 12px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-2,
  .grid-3,
  .grid-1,
  .ticket-info-grid,
  .create-page-form,
  .create-basic-grid,
  .create-risk-grid,
  .issue-attachment-grid,
  .part-items-head,
  .part-item-row,
  .part-detail-row,
  .metric-grid,
  .layout-2,
  .layout-2-narrow,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .part-items-head {
    display: none;
  }

  .create-page-form .part-items-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .issue-section {
    grid-template-columns: 1fr;
  }

  .issue-section .issue-attachment-grid {
    display: grid;
  }

  .issue-section > h4,
  .issue-section .attachment-panel {
    grid-column: 1;
    grid-row: auto;
  }
}

.todo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.todo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.todo-toolbar-title {
  min-width: 0;
}

.todo-toolbar-title h3 {
  margin: 0;
  font-size: 16px;
}

.todo-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.todo-card:hover {
  border-color: #8bb7ff;
  background: linear-gradient(180deg, #f2f8ff 0%, #deebff 100%);
  box-shadow: 0 3px 10px rgba(11, 108, 255, 0.06);
  transform: translateY(-1px);
}

.todo-card.active {
  border-color: var(--brand);
  background: linear-gradient(180deg, #e7f0ff 0%, #cfe0ff 100%);
  box-shadow: 0 4px 12px rgba(11, 108, 255, 0.08);
  transform: translateY(-1px);
}

.todo-card.active .todo-name,
.todo-card.active .todo-count {
  color: #0b4da8;
}

.todo-name {
  color: #4b5f73;
  font-size: 13px;
}

.todo-count {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  color: #17324d;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1420px;
}

.data-table.compact {
  min-width: 1360px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.data-table td,
.data-table td .muted {
  color: #33465a;
  font-size: 13px;
  line-height: 1.5;
}

.data-table td .pill {
  line-height: 1.2;
}

.data-table th {
  background: #f7fbff;
  color: #3b5874;
  font-weight: 600;
}

.data-table .col-ticket-id {
  width: 160px;
}

.data-table .col-platform-order {
  width: 220px;
}

.data-table .col-aftersales-info {
  width: 430px;
}

.data-table .col-owner {
  width: 160px;
}

.data-table .col-state {
  width: 110px;
}

.data-table .col-deadline {
  width: 140px;
}

.data-table .col-remaining {
  width: 120px;
}

.data-table .col-resolution {
  width: 170px;
}

.data-table .col-actions {
  width: 92px;
}

.data-table .col-ticket-id,
.data-table .col-platform-order,
.data-table .col-resolution {
  white-space: nowrap;
}

.resolution-detail {
  white-space: nowrap;
}

.data-table [data-open-ticket] {
  white-space: nowrap;
  padding: 8px 10px;
  min-width: 84px;
}

.ticket-row-overdue {
  background: #fff8f8;
}

.ticket-row-overdue td:first-child {
  box-shadow: inset 3px 0 0 #e5484d;
}

.strong {
  font-weight: 700;
  color: #16324d;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1;
  border: 1px solid transparent;
}

.pill-blue {
  background: #dceaff;
  color: #12457f;
}

.pill-green {
  background: #d8f7ea;
  color: #0c6642;
}

.pill-warn {
  background: #fff1d6;
  color: #995d00;
}

.pill-danger {
  background: #ffe3e6;
  color: #b42318;
}

.pill-slate {
  background: #edf1f7;
  color: #556577;
}

.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.72fr);
  gap: 12px;
  align-items: start;
}

.ticket-main,
.ticket-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.action-intro h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.action-intro p {
  margin: 0 0 10px;
}

.action-intro .muted {
  line-height: 1.6;
}

.review-checklist {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.review-checklist div {
  border: 1px dashed #cfdceb;
  background: #f8fbff;
  border-radius: 10px;
  padding: 9px 10px;
  color: #31475d;
  font-size: 13px;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.review-summary-item {
  border: 1px solid var(--line);
  background: #fbfdff;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.review-summary-item span {
  color: var(--muted);
  font-size: 12px;
}

.review-summary-item b {
  color: #223548;
  font-size: 14px;
  line-height: 1.5;
}

.round-history {
  margin-top: 12px;
}

.round-history h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.round-history-list {
  display: grid;
  gap: 8px;
}

.round-history-item {
  border: 1px solid var(--line);
  background: #fbfdff;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.round-history-head {
  color: #223548;
  font-size: 13px;
  font-weight: 600;
}

.round-history-note {
  color: #44576a;
  font-size: 13px;
  line-height: 1.5;
}

.ticket-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f5f9ff;
  border: 1px solid #dbe7f5;
  color: #27435f;
  font-size: 12px;
}

.ticket-info-card {
  padding: 16px 18px;
}

.ticket-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 9px;
}

.ticket-info-section {
  margin-top: 13px;
}

.ticket-info-section > label {
  display: block;
  margin-bottom: 5px;
  color: #526579;
  font-size: 12px;
  font-weight: 600;
}

.ticket-main .card {
  align-self: start;
}

.detail-box {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  font-size: 14px;
  line-height: 1.65;
  color: #223548;
  word-break: break-word;
}

.inline-info-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 6px;
  min-height: 20px;
  padding: 2px 0;
}

.detail-inline-label {
  color: #526579;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.detail-inline-value {
  color: #223548;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
  flex: 1;
}

.detail-text-block {
  font-size: 13px;
  line-height: 1.65;
  color: #223548;
  padding: 2px 0;
  word-break: break-word;
}

.inline-text-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 1px 0;
}

.inline-text-row .detail-inline-label {
  margin-top: 1px;
}

.inline-text-row .detail-inline-value {
  flex: 1;
  line-height: 1.75;
}

.nested-section + .nested-section {
  margin-top: 12px;
}

.nested-section h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #223548;
}

.inline-cost-total {
  font-size: 12px;
  font-weight: 500;
  color: #4f6478;
}

.history-stack {
  display: grid;
  gap: 8px;
}

.history-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  padding: 8px 10px;
}

.history-item-head {
  font-size: 13px;
  font-weight: 700;
  color: #223548;
  margin-bottom: 5px;
}

.history-item-grid {
  display: grid;
  gap: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: #314457;
}

.cost-history {
  display: grid;
  gap: 6px;
}

.cost-history-row {
  display: grid;
  grid-template-columns: 76px repeat(6, minmax(96px, 1fr));
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  font-size: 13px;
  line-height: 1.45;
}

.cost-history-round {
  font-size: 13px;
  font-weight: 700;
  color: #223548;
}

.cost-history-total {
  margin-top: 2px;
  display: grid;
  grid-template-columns: 76px repeat(5, minmax(96px, 1fr));
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #223548;
}

.attachment-group {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.attachment-group h4 {
  margin: 0;
  font-size: 14px;
}

.attachment-group .file-list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.file-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  padding: 6px 8px;
}

.file-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.attachment-group .row-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}

.attachment-group .row-actions .btn {
  padding: 4px 8px;
  font-size: 12px;
}

.attachment-download-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-download-strip .btn {
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  border-left: 2px solid #d7e1ee;
  padding: 0 0 8px 14px;
}

.timeline-dot {
  position: absolute;
  left: -6px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline-content {
  display: grid;
  gap: 4px;
}

.timeline-meta {
  color: var(--muted);
  font-size: 12px;
}

.timeline-action {
  font-size: 13px;
  font-weight: 700;
  color: #223548;
}

.timeline-note {
  font-size: 13px;
  line-height: 1.55;
  color: #314457;
}

.metric-list {
  display: grid;
  gap: 8px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.metric-row:last-child {
  border-bottom: 0;
}

.chart-list {
  display: grid;
  gap: 10px;
}

.chart-row {
  display: grid;
  gap: 6px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: #314457;
}

.chart-head b {
  color: #223548;
}

.chart-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #edf3fb;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7fb1ff 0%, #0b6cff 100%);
}

.trend-chart {
  display: grid;
  gap: 10px;
}

.trend-chart-svg {
  width: 100%;
  height: 140px;
}

.trend-axis {
  stroke: #d7e3f1;
  stroke-width: 1;
}

.trend-grid-line {
  stroke: #edf3fb;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.trend-axis-label {
  font-size: 10px;
  fill: #7a8da2;
}

.trend-line {
  fill: none;
  stroke: #0b6cff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-dot {
  fill: #0b6cff;
}

.trend-last-label-bg {
  fill: #0b6cff;
  opacity: 0.1;
  stroke: #0b6cff;
  stroke-width: 1;
}

.trend-last-label {
  font-size: 11px;
  fill: #0b6cff;
  font-weight: 700;
}

.trend-chart-labels {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}

.trend-label-item {
  padding: 8px 10px;
  border: 1px solid #e6eef9;
  border-radius: 10px;
  background: #fbfdff;
  display: grid;
  gap: 4px;
}

.trend-label-item span {
  font-size: 11px;
  color: #6b7d90;
}

.trend-label-item b {
  font-size: 14px;
  color: #19324a;
}

.donut-chart-wrap {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  align-items: center;
}

.donut-chart {
  position: relative;
  width: 132px;
  height: 132px;
}

.donut-chart-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut-center span {
  font-size: 11px;
  color: #6b7d90;
}

.donut-center b {
  font-size: 20px;
  color: #18324f;
}

.donut-legend {
  display: grid;
  gap: 8px;
}

.donut-legend-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.donut-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.donut-legend-item b {
  color: #18324f;
}

.funnel-chart {
  display: grid;
  gap: 10px;
}

.funnel-row {
  display: grid;
  gap: 6px;
}

.funnel-label {
  font-size: 12px;
  color: #5f7388;
}

.funnel-stage {
  min-height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  color: #fff;
  font-weight: 700;
}

.funnel-stage-1 { background: linear-gradient(90deg, #9dc5ff 0%, #6aa5ff 100%); }
.funnel-stage-2 { background: linear-gradient(90deg, #84bbff 0%, #4a96ff 100%); }
.funnel-stage-3 { background: linear-gradient(90deg, #68adff 0%, #2d82ff 100%); }
.funnel-stage-4 { background: linear-gradient(90deg, #509eff 0%, #136fff 100%); }
.funnel-stage-5 { background: linear-gradient(90deg, #3a88f5 0%, #0f5fe0 100%); }
.funnel-stage-6 { background: linear-gradient(90deg, #2c74dd 0%, #0a4dc0 100%); }

.grouped-bar-chart {
  display: grid;
  gap: 10px;
}

.grouped-bar-row {
  display: grid;
  gap: 6px;
}

.grouped-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.grouped-bar-head span {
  color: #5f7388;
}

.grouped-bar-head b {
  color: #18324f;
}

.grouped-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #edf3fb;
}

.grouped-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8dc0ff 0%, #0b6cff 100%);
}

.analytics-hero {
  background: #ffffff;
  border-color: #d7e4f1;
  box-shadow: 0 6px 16px rgba(17, 43, 82, 0.04);
  padding: 16px 18px;
}

.analytics-dashboard {
  display: grid;
  gap: 14px;
}

.analytics-dashboard-v2 {
  gap: 18px;
  padding: 4px 2px 10px;
}


.analytics-overview {
  margin-bottom: 0;
}

.analytics-hero-head h3 {
  margin-bottom: 4px;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: #16324f;
}

.analytics-hero-head p {
  max-width: 720px;
  line-height: 1.6;
  font-size: 12px;
  color: #667b90;
}

.analytics-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.analytics-hero-grid-compact {
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
}

.analytics-dashboard-v2 .analytics-hero {
  border-radius: 18px;
  padding: 18px 20px;
}

.analytics-dashboard-v2 .analytics-hero-head {
  align-items: flex-start;
}

.analytics-dashboard-v2 .analytics-hero-head p {
  margin-top: 2px;
  max-width: 760px;
}

.analytics-dashboard-v2 .analytics-hero-grid-compact {
  gap: 12px;
}


.analytics-trend-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.analytics-trend-card {
  margin-bottom: 0;
  padding: 14px 16px;
  background: #ffffff;
  border-color: #d7e4f1;
  box-shadow: 0 6px 16px rgba(17, 43, 82, 0.04);
}

.analytics-dashboard-v2 .analytics-trend-band {
  gap: 14px;
}

.analytics-dashboard-v2 .analytics-trend-card {
  border-radius: 18px;
  padding: 16px 18px;
}


.analytics-trend-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.analytics-trend-head h4 {
  margin: 0;
  font-size: 14px;
  color: #17324f;
}

.analytics-trend-head span {
  font-size: 11px;
  color: #6a7f95;
  border: 1px solid #d7e4f1;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f7fbff;
}

.analytics-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.analytics-panel {
  padding: 16px 18px;
  border-color: #d7e4f1;
  box-shadow: 0 6px 16px rgba(17, 43, 82, 0.04);
  min-height: 100%;
  background: #ffffff;
}

.analytics-dashboard-v2 .analytics-panel-grid {
  gap: 16px;
}

.analytics-dashboard-v2 .analytics-panel {
  border-radius: 18px;
  padding: 18px 20px 20px;
  border: 1px solid #dbe7f4;
  box-shadow: 0 10px 24px rgba(17, 43, 82, 0.06);
  position: relative;
  overflow: hidden;
}


.analytics-dashboard-v2 .analytics-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(180deg, #0b6cff 0%, #45c0ff 100%);
  opacity: 0;
}


.analytics-panel .section-head {
  margin-bottom: 10px;
}

.analytics-panel .section-head p {
  margin: 5px 0 0;
  line-height: 1.55;
  font-size: 12px;
  max-width: 520px;
}

.analytics-panel-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.analytics-dashboard-v2 .analytics-panel .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.analytics-dashboard-v2 .analytics-panel .section-head h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.analytics-dashboard-v2 .analytics-panel .section-head p {
  margin: 4px 0 0;
  max-width: 480px;
  color: #63778d;
}

.analytics-dashboard-v2 .analytics-panel-body {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}


.analytics-metric-column {
  display: grid;
  gap: 8px;
}

.analytics-chart-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.analytics-chart-column .analytics-subsection,
.analytics-panel > .analytics-subsection {
  background: #ffffff;
  border: 1px solid #e3ecf6;
  border-radius: 12px;
  padding: 10px 12px;
}

.analytics-subsection {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.analytics-subsection.first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.analytics-subsection h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #223548;
  letter-spacing: 0.01em;
}

.analytics-panel-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef5ff 0%, #e6f0ff 100%);
  border: 1px solid #d4e4fb;
  color: #0b58bf;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.analytics-panel > .analytics-subsection.first,
.analytics-chart-column .analytics-subsection.first {
  margin-top: 0;
}

.role-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.accounts-summary-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 4px 0 14px;
  padding: 0 2px;
}

.accounts-summary-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 28px;
  font-size: 16px;
  color: #3c5065;
}

.accounts-summary-item span {
  font-weight: 600;
}

.accounts-summary-item b {
  font-size: 17px;
  line-height: 1;
  color: #223548;
  font-weight: 700;
  letter-spacing: 0;
}

.accounts-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.accounts-form {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.accounts-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.accounts-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accounts-form .form-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.accounts-form .form-field input,
.accounts-form .form-field select {
  width: 100%;
}

.inline-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.inline-control input {
  flex: 1;
  min-width: 0;
}

.inline-control .btn {
  flex: 0 0 auto;
  min-width: 92px;
}

.accounts-form .form-actions {
  margin-top: 14px;
}

.accounts-role-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.accounts-role-groups {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.accounts-role-group {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.accounts-role-group-head {
  min-height: 40px;
  padding-right: 10px;
  border-right: 1px solid #e9eef5;
}

.accounts-role-group-actions {
  display: grid;
  grid-template-columns: repeat(7, 142px);
  gap: 8px;
  align-content: start;
  justify-content: start;
}

.accounts-role-actions-grid {
  display: grid;
  grid-template-columns: repeat(7, 142px);
  gap: 8px;
  width: max-content;
}

.module-chip {
  min-height: 52px;
  background: #eef5ff;
  font-weight: 700;
}

.action-chip {
  justify-content: flex-start;
  width: 142px;
  min-height: 56px;
  align-items: flex-start;
  padding-top: 10px;
}

.action-chip span,
.module-chip span {
  display: block;
  line-height: 1.35;
  word-break: break-word;
  white-space: normal;
}

.table-role-select {
  width: 100%;
  min-width: 160px;
  padding: 8px 32px 8px 12px;
  border-radius: 10px;
  border: 1px solid #cfdced;
  background: #fff;
  color: #16324f;
  font-size: 14px;
}

.accounts-form-span-2 {
  grid-column: span 2;
}

.submission-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.submission-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.submission-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.submission-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}

.submission-main {
  display: grid;
  gap: 8px;
  color: #16324f;
  line-height: 1.45;
}

.submission-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.submission-actions {
  display: grid;
  align-content: start;
  gap: 10px;
}

.submission-actions select {
  width: 100%;
}

@media (max-width: 900px) {
  .submission-card {
    grid-template-columns: 1fr;
  }

  .submission-info-grid {
    grid-template-columns: 1fr;
  }
}

.accounts-matrix-builder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.accounts-matrix-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.accounts-matrix-section h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.section-head.compact {
  margin-bottom: 10px;
}

.section-head.compact h3 {
  font-size: 15px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.checkbox-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.checkbox-chip input,
.checkbox-inline input {
  margin: 0;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 4px;
  color: var(--text);
}

@media (max-width: 960px) {
  .accounts-summary-inline,
  .accounts-split,
  .accounts-form-grid,
  .accounts-form-grid-3,
  .accounts-matrix-builder {
    grid-template-columns: 1fr;
  }

  .accounts-role-group {
    grid-template-columns: 1fr;
  }

  .accounts-form-span-2 {
    grid-column: auto;
  }
}

.stat-card {
  margin-bottom: 0;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-color: #dce7f4;
}

.analytics-kpi-card {
  min-height: 96px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.analytics-dashboard-v2 .analytics-kpi-card {
  min-height: 90px;
  border-radius: 14px;
  border: 1px solid #dce7f4;
  background: #fbfdff;
  box-shadow: none;
}

.analytics-dashboard-v2 .analytics-kpi-card .stat-title {
  color: #667b90;
}

.analytics-dashboard-v2 .analytics-kpi-card .stat-value {
  color: #16324f !important;
  font-size: 24px;
  letter-spacing: -0.02em;
}


.stat-title {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.stat-value {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-card.warn .stat-value {
  color: #995d00;
}

.stat-card.danger .stat-value {
  color: #b42318;
}

.stat-card.info .stat-value {
  color: #12457f;
}

.metric-list {
  display: grid;
  gap: 8px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #e7eef8;
  border-radius: 12px;
  background: #fbfdff;
}

.metric-row:last-child {
  margin-bottom: 0;
}

.metric-row span {
  color: #5f7388;
  font-size: 12px;
  line-height: 1.4;
}

.metric-row b {
  color: #17324f;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}

.analytics-dashboard-v2 .metric-row {
  padding: 12px 13px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e3edf8;
}

.analytics-dashboard-v2 .metric-row span {
  font-size: 12px;
  color: #667b90;
}

.analytics-dashboard-v2 .metric-row b {
  font-size: 18px;
  color: #12304d;
}


.chart-head {
  font-size: 12px;
}

.chart-track {
  height: 7px;
}

@media (max-width: 1100px) {
  .analytics-hero-grid,
  .analytics-trend-band,
  .analytics-panel-grid,
  .analytics-panel-body {
    grid-template-columns: 1fr;
  }

}

.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fbfdff;
}

.table-summary {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.table-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.table-footer .table-summary {
  margin-top: 0;
}

.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.pager .btn {
  padding: 6px 10px;
  border-radius: 8px;
}

.pager .btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.inline-filter-label,
.inline-filter-sep {
  color: var(--muted);
  font-size: 15px;
  align-self: center;
  white-space: nowrap;
}

.filter-reset-btn {
  min-width: 104px;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  justify-content: center;
  letter-spacing: 1px;
  padding-left: 14px;
  padding-right: 14px;
}

#workbenchSearch,
#globalSearch {
  min-width: 232px;
}

.paste-zone.active,
.paste-zone:hover {
  border-color: var(--brand);
  background: #f4f9ff;
}

@media (max-width: 1280px) {
  .ticket-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .execution-grid,
  .execution-cost-grid {
    grid-template-columns: 1fr;
  }

  .date-clear-row {
    grid-template-columns: minmax(0, 1fr) 58px;
  }
}
