:root {
  --bg1: #0b2c67;
  --bg2: #0f4f9b;
  --panel: rgba(11, 40, 86, 0.82);
  --accent: #2f90ff;
  --accent-2: #25c2ff;
  --text: #ffffff;
  --muted: #d6e5ff;
  --line: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
}

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(88, 145, 255, 0.3), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(37, 194, 255, 0.28), transparent 35%),
    linear-gradient(125deg, #091a3f 0%, #0f3f7f 55%, #1b5ba3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-overlay {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.15;
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(88vw, 520px);
  padding: 46px 52px;
  background: rgba(248, 250, 255, 0.96);
  border-radius: 8px;
  color: #1d3558;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
}

.login-card .brand-mark {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #64b2ff, #3a7fe8);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
}

.login-card h1 {
  margin: 14px 0 6px;
  text-align: center;
  font-weight: 300;
  letter-spacing: 1px;
  color: #5f9eee;
}

.subtitle {
  text-align: center;
  margin: 0 0 22px;
  color: #7f9ac2;
}

.login-card label {
  display: block;
  font-size: 14px;
  margin: 14px 0 6px;
  color: #6f84a7;
}

.login-card input,
.filters input,
.filters select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid #d5e1f3;
  border-radius: 6px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.form-grid textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}

.login-card input:focus,
.filters input:focus,
.filters select:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: #67aefb;
  box-shadow: 0 0 0 2px rgba(68, 148, 246, 0.15);
}

.btn-primary,
.btn-light,
.btn-ghost {
  border: 0;
  border-radius: 6px;
  height: 40px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(120deg, #2f90ff, #4b82f8);
  color: #fff;
}

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  color: #1f4f8c;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hint {
  font-size: 12px;
  color: #8098bb;
  margin-top: 10px;
}

.error-text {
  min-height: 20px;
  color: #d83f5b;
  font-size: 13px;
}

.app-body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(10, 38, 84, 0.9), rgba(10, 38, 84, 0.9)),
    linear-gradient(120deg, #15386f 0%, #1f579c 40%, #12386c 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 62px;
  background: linear-gradient(90deg, #0e4f9a, #0a68b5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.top-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.sys-name {
  font-size: 16px;
}

.top-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

#userBadge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.container {
  width: min(1500px, 96vw);
  margin: 18px auto 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
}

.hero-card,
.panel,
.tile {
  border-radius: 10px;
  border: 1px solid var(--line);
}

.hero-card {
  background: rgba(21, 63, 121, 0.75);
  padding: 16px 20px;
}

.hero-card h2 {
  margin: 4px 0 10px;
}

.hero-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.tile {
  min-height: 140px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 18px;
  backdrop-filter: blur(2px);
}

.tile b {
  font-size: 36px;
}

.tile.blue { background: rgba(43, 105, 196, 0.78); }
.tile.green { background: rgba(54, 152, 77, 0.78); }
.tile.cyan { background: rgba(25, 156, 184, 0.78); }

.panel {
  margin-top: 16px;
  background: rgba(14, 53, 106, 0.82);
  padding: 16px;
}

.panel-flash {
  animation: panelFlash 1.2s ease;
}

@keyframes panelFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(101, 180, 255, 0.78);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(101, 180, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(101, 180, 255, 0);
  }
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.panel-head h3 {
  margin: 0;
}

.filters {
  display: grid;
  grid-template-columns: 220px 1fr 100px 100px;
  gap: 10px;
  margin-bottom: 12px;
}

.table-wrap {
  overflow: auto;
}

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

thead {
  background: rgba(255, 255, 255, 0.12);
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  font-size: 14px;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

.link-btn {
  color: #91c4ff;
  cursor: pointer;
  text-decoration: underline;
}

.modal,
.drawer {
  position: fixed;
  z-index: 20;
}

.modal {
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
}

.modal-content {
  width: min(980px, 94vw);
  max-height: 90vh;
  overflow: auto;
  background: #f7faff;
  color: #1b3862;
  border-radius: 8px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #d4e1f0;
}

.btn-close {
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
  color: #7093c0;
}

.form-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.form-grid .wide,
.actions-row {
  grid-column: 1 / -1;
}

.drawer {
  top: 0;
  right: 0;
  width: min(640px, 94vw);
  height: 100vh;
  background: #f7fbff;
  color: #1a3556;
  border-left: 1px solid #cddcf1;
  box-shadow: -8px 0 26px rgba(8, 35, 74, 0.25);
}

.drawer-head {
  height: 58px;
  border-bottom: 1px solid #d5e2f2;
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-head h3 {
  margin: 0;
}

.drawer-body {
  height: calc(100vh - 58px);
  overflow: auto;
  padding: 14px;
}

.detail-block {
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
}

.detail-block h4 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #d8e4f2;
  background: #f4f8fe;
}

.detail-inner {
  padding: 12px;
  font-size: 14px;
  line-height: 1.75;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dcecff;
  color: #1b5ca8;
  font-size: 12px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  padding: 10px 0;
  border-bottom: 1px dashed #d8e4f2;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

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

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

@media (max-width: 720px) {
  .login-card {
    padding: 28px 24px;
  }

  .topbar {
    padding: 0 12px;
  }

  .sys-name {
    display: none;
  }

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

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

.hint-inline {
  margin-left: 12px;
  font-size: 13px;
  color: #5d7fae;
}

.form-grid select[multiple] {
  height: auto;
  min-height: 140px;
  padding: 8px 12px;
}

.filters {
  grid-template-columns: 180px 180px 1fr 100px 100px;
}

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

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

.admin-body {
  /* Keep scrollbar width stable when switching sections to avoid page shift. */
  overflow-y: scroll;
}

.admin-layout {
  width: calc(100vw - 24px);
  margin: 18px 12px 28px;
  position: relative;
}

.admin-sidebar {
  width: 220px;
  background: rgba(14, 53, 106, 0.82);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  position: fixed;
  left: 12px;
  top: 74px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  z-index: 8;
}

.side-group + .side-group {
  margin-top: 18px;
}

.side-title {
  font-size: 13px;
  color: #aac9f2;
  margin-bottom: 8px;
}

.side-link {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
}

.side-link.active {
  background: linear-gradient(120deg, #2f90ff, #4b82f8);
  border-color: transparent;
}

.admin-content {
  min-width: 0;
  margin-left: 248px;
  min-height: calc(100vh - 108px);
}

.admin-panel {
  margin-top: 0;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-kpi-card {
  border-radius: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-kpi-card.todo {
  background: rgba(46, 108, 205, 0.75);
}

.admin-kpi-card.processing {
  background: rgba(35, 138, 84, 0.75);
}

.admin-kpi-card.total {
  background: rgba(30, 137, 171, 0.75);
}

.admin-kpi-card.uat {
  background: rgba(166, 117, 20, 0.75);
}

.kpi-title {
  font-size: 13px;
  color: #dbeaff;
}

.kpi-value {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 700;
}

.sub-title {
  margin: 0 0 10px;
}

@media (max-width: 1080px) {
  .admin-layout {
    width: min(1600px, 96vw);
    margin: 18px auto 28px;
  }

  .admin-sidebar {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    margin-bottom: 12px;
  }

  .admin-content {
    margin-left: 0;
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.system-modal-content {
  width: min(760px, 92vw);
}

.attachment-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.attachment-list .btn-light {
  height: 32px;
  padding: 0 14px;
}



.notify-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.notify-bell:hover {
  background: rgba(255, 255, 255, 0.16);
}

.notify-bell .bell-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.notify-bell svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notify-count {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 0 0 2px #0e4f9a;
}

.notify-count.zero {
  background: rgba(255, 255, 255, 0.35);
}

.btn-small {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.notify-popover {
  position: absolute;
  top: 52px;
  left: 0;
  width: min(360px, 92vw);
  max-height: 460px;
  background: #f8fbff;
  color: #1a3556;
  border: 1px solid #d0def2;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(7, 31, 74, 0.28);
  z-index: 30;
  overflow: hidden;
}

.notify-popover-head {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid #dde7f5;
  background: #f1f6fe;
}

.notify-popover-body {
  max-height: 350px;
  overflow: auto;
  padding: 8px;
}

.notify-popover-foot {
  border-top: 1px solid #dde7f5;
  padding: 8px;
  display: flex;
  justify-content: flex-end;
  background: #f6f9ff;
}

.notify-item {
  border: 1px solid #d8e3f3;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
  background: #fff;
  cursor: pointer;
}

.notify-item:last-child {
  margin-bottom: 0;
}

.notify-item:hover {
  border-color: #7fb2f7;
  background: #f8fbff;
}

.notify-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #1c4f92;
  font-size: 13px;
  margin-bottom: 4px;
}

.notify-item-title {
  font-size: 13px;
  color: #214672;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notify-item-meta {
  font-size: 12px;
  color: #6886aa;
  margin-top: 4px;
}

.notify-empty {
  color: #6a86a8;
  font-size: 13px;
  padding: 10px;
  text-align: center;
}







.detail-modal-content {
  width: min(1100px, 94vw);
  max-height: 88vh;
  overflow: hidden;
  background: #f7fbff;
  color: #1a3556;
  border-radius: 10px;
  border: 1px solid #cddcf1;
}

.detail-modal-body {
  height: auto;
  max-height: calc(88vh - 58px);
}
#todoListModal {
  background: linear-gradient(180deg, rgba(4, 16, 44, 0.56) 0%, rgba(2, 11, 35, 0.68) 100%);
  backdrop-filter: blur(3px);
}

.todo-list-modal-content {
  width: min(1160px, 94vw);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #c5d9f2;
  background: linear-gradient(180deg, #f7fbff 0%, #eff6ff 100%);
  box-shadow: 0 26px 70px rgba(5, 24, 56, 0.4);
  display: flex;
  flex-direction: column;
  animation: todoListModalIn 0.22s ease-out;
}

#todoListModal .modal-head {
  padding: 14px 18px;
  background: linear-gradient(90deg, #f6faff 0%, #edf5ff 100%);
  border-bottom: 1px solid #d7e5f6;
}

#todoListModal .modal-head h3 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.3px;
  color: #173f72;
}

#todoListModal .btn-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(44, 109, 198, 0.1);
  color: #5f84b5;
  font-size: 26px;
  line-height: 32px;
  text-align: center;
}

#todoListModal .btn-close:hover {
  background: rgba(44, 109, 198, 0.18);
  color: #2f68ad;
}

.todo-list-modal-meta {
  padding: 8px 18px 10px;
  border-bottom: 1px solid #dfeaf7;
  color: #587ba8;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.62);
}

.todo-list-table-wrap {
  max-height: calc(88vh - 120px);
  padding: 0 10px 12px;
}

.todo-list-table-wrap table {
  min-width: 860px;
  border-radius: 10px;
  overflow: hidden;
}

.todo-list-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e9f2ff;
  color: #1d4a83;
  font-weight: 700;
  border-bottom: 1px solid #d0e1f4;
}

.todo-list-table-wrap tbody td {
  color: #1d3e66;
  border-bottom: 1px solid #e5eef9;
}

.todo-list-table-wrap tbody tr:nth-child(2n) {
  background: #f8fbff;
}

.todo-list-table-wrap tbody tr:hover {
  background: #edf5ff;
}

.todo-list-table-wrap .link-btn {
  color: #2f69b4;
  text-decoration-thickness: 1px;
}

.todo-list-table-wrap .badge {
  background: #dcecff;
  color: #1a5ea7;
}

@keyframes todoListModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .todo-list-modal-content {
    width: 96vw;
    max-height: 92vh;
    border-radius: 12px;
  }

  #todoListModal .modal-head {
    padding: 12px 14px;
  }

  #todoListModal .modal-head h3 {
    font-size: 20px;
  }

  .todo-list-modal-meta {
    padding: 8px 14px;
  }

  .todo-list-table-wrap {
    max-height: calc(92vh - 112px);
    padding: 0 8px 10px;
  }

  .todo-list-table-wrap table {
    min-width: 700px;
  }
}

.login-submit {
  width: 100%;
  height: 44px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
}

.btn-wecom {
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 1px solid #8fd0b0;
  border-radius: 6px;
  background: linear-gradient(120deg, #1aad19, #2dc653);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-wecom:hover {
  filter: brightness(1.03);
}

.login-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.text-link-btn {
  border: 0;
  background: transparent;
  color: #5d84b8;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 0;
}

.text-link-btn:hover {
  color: #2f90ff;
  text-decoration: underline;
}

.tool-sep {
  color: #9fb6d8;
  font-size: 12px;
}

.login-modal-content {
  width: min(520px, 92vw);
}

.login-modal-form {
  grid-template-columns: 1fr;
}

.login-actions-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.modal-msg {
  margin: 2px 0 0;
  min-height: 22px;
}

.forgot-tip {
  margin: 0;
  font-size: 13px;
  color: #6f84a7;
}

.success-text {
  color: #1b9f5a;
}

.flow-form-sheet {
  border: 1px solid #d8e4f2;
  border-radius: 10px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 12px;
}

.flow-form-main {
  border: 1px solid #e2ecf8;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.flow-title {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: #163f74;
}

.flow-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 13px;
  color: #365b88;
}

.flow-action-card {
  border: 1px solid #d5e4f5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  align-self: start;
}

.flow-action-card-head {
  padding: 10px 12px;
  background: #f1f7ff;
  border-bottom: 1px solid #dce8f7;
  font-weight: 700;
  color: #1a467d;
  font-size: 14px;
}

.flow-action-card-body {
  padding: 10px;
}

.flow-action-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flow-assign-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-select {
  min-width: 0;
  width: 100%;
  border: 1px solid #d5e1f3;
  border-radius: 6px;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
}

.flow-select:focus {
  border-color: #67aefb;
  box-shadow: 0 0 0 2px rgba(68, 148, 246, 0.15);
}

.flow-actions-row .btn-primary,
.flow-assign-row .btn-primary {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.flow-empty-action {
  font-size: 13px;
  color: #597aa6;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.detail-span-all {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .flow-form-sheet {
    grid-template-columns: 1fr;
  }

  .flow-summary-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .flow-assign-row {
    flex-direction: column;
    align-items: stretch;
  }
}
.inbox-panel {
  backdrop-filter: blur(2px);
}

.inbox-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(146, 192, 250, 0.18);
  border-radius: 12px;
  background: rgba(11, 44, 92, 0.28);
}

.inbox-filter-fields {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.inbox-filter-fields #scopeFilter,
.inbox-filter-fields #statusFilter {
  flex: 0 0 260px;
}

.inbox-keyword-wrap {
  flex: 1 1 320px;
  min-width: 220px;
}

.inbox-keyword-wrap input {
  width: 100%;
}

.inbox-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.inbox-filters input,
.inbox-filters select {
  height: 40px;
  border: 1px solid #c8dbf4;
  border-radius: 8px;
  background: #f8fbff;
}

.inbox-filters .btn-search,
.inbox-filters .btn-reset {
  height: 40px;
  border-radius: 8px;
  font-weight: 600;
  min-width: 96px;
}

.inbox-filters .btn-search {
  box-shadow: 0 6px 14px rgba(46, 130, 244, 0.28);
}

.inbox-filters .btn-reset {
  border: 1px solid #d2e2f7;
  color: #2c5f9d;
}

@media (max-width: 1200px) {
  .inbox-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .inbox-filter-fields {
    flex-wrap: wrap;
  }

  .inbox-filter-fields #scopeFilter,
  .inbox-filter-fields #statusFilter {
    flex: 1 1 220px;
  }

  .inbox-keyword-wrap {
    flex: 1 1 100%;
  }

  .inbox-filter-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .inbox-filters {
    padding: 12px;
  }

  .inbox-filter-fields {
    flex-direction: column;
    align-items: stretch;
  }

  .inbox-filter-fields #scopeFilter,
  .inbox-filter-fields #statusFilter,
  .inbox-keyword-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  .inbox-filter-actions {
    width: 100%;
  }

  .inbox-filters .btn-search,
  .inbox-filters .btn-reset {
    flex: 1 1 0;
  }
}

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

.pager-row .btn-light {
  height: 34px;
  padding: 0 14px;
}

.pager-info {
  font-size: 13px;
  color: #d7e7ff;
}

.pager-row .btn-light:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


.pager-select,
.pager-jump-input {
  height: 34px;
  border: 1px solid #c8dbf4;
  border-radius: 6px;
  background: #f8fbff;
  color: #1b3558;
  padding: 0 10px;
}

.pager-select {
  min-width: 74px;
}

.pager-jump-input {
  width: 82px;
}

.pager-size {
  font-size: 13px;
  color: #d7e7ff;
}

.picked-attachment-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.picked-attachment-empty {
  font-size: 13px;
  color: #8ea9cd;
}

.picked-attachment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
}

.picked-attachment-name {
  max-width: min(46vw, 520px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #dcecff;
  font-size: 13px;
}
.picked-attachment-link {
  max-width: min(46vw, 520px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13px;
}

.picked-attachment-size {
  font-size: 12px;
  color: #9fb8dc;
}

.picked-attachment-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.picked-attachment-actions .btn-light:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .picked-attachment-name {
    max-width: calc(100vw - 180px);
  }

  .picked-attachment-link {
    max-width: calc(100vw - 180px);
  }

  .picked-attachment-actions {
    margin-left: 0;
  }
}
/* Submit Ticket Page Polish */
.submit-ticket-page {
  background:
    radial-gradient(circle at 15% 6%, rgba(92, 158, 255, 0.22), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(33, 203, 255, 0.16), transparent 32%),
    linear-gradient(rgba(10, 38, 84, 0.9), rgba(10, 38, 84, 0.9)),
    linear-gradient(120deg, #15386f 0%, #1f579c 40%, #12386c 100%);
}

.submit-ticket-page .submit-ticket-shell {
  width: min(1240px, 94vw);
}

.submit-ticket-page .topbar {
  height: 58px;
  padding: 0 20px;
}

.submit-ticket-page #userBadge {
  padding: 5px 10px;
  font-size: 13px;
}

.submit-ticket-page .top-right .btn-ghost {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.submit-ticket-page .sys-name {
  font-size: 15px;
}

.submit-ticket-page .submit-ticket-panel {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(145, 200, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(24, 71, 132, 0.88) 0%, rgba(16, 57, 112, 0.9) 100%);
  box-shadow: 0 18px 36px rgba(4, 19, 44, 0.28);
  animation: submitPanelIn 380ms ease-out;
}

.submit-ticket-page .submit-ticket-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(153, 205, 255, 0.26);
}

.submit-ticket-page .submit-ticket-head h3 {
  font-size: 28px;
  letter-spacing: 0.3px;
  text-shadow: 0 8px 18px rgba(18, 61, 124, 0.35);
}

.submit-ticket-page .submit-ticket-subtitle {
  margin-top: 8px;
  max-width: 760px;
  color: #bfd9fa;
  font-size: 13px;
  line-height: 1.55;
}

.submit-ticket-page .submit-ticket-form {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
}

.submit-ticket-page .submit-ticket-form label {
  color: #eaf4ff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.submit-ticket-page .submit-ticket-block {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(154, 202, 255, 0.16);
  background: linear-gradient(180deg, rgba(17, 59, 114, 0.52), rgba(11, 44, 92, 0.44));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.submit-ticket-page .submit-ticket-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(155, 207, 255, 0.18);
}

.submit-ticket-page .submit-ticket-main-head {
  max-width: 900px;
}

.submit-ticket-page .submit-ticket-block-head h4 {
  font-size: 16px;
  color: #f4f9ff;
}

.submit-ticket-page .submit-ticket-block-head span {
  color: #aac9ee;
  font-size: 12px;
}

.submit-ticket-page .submit-ticket-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  align-items: start;
}

.submit-ticket-page .submit-ticket-flow-entry {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(155, 207, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.submit-ticket-page .submit-ticket-flow-entry strong {
  color: #cfe5ff;
  font-size: 13px;
  font-weight: 500;
}

.submit-ticket-page .submit-ticket-flow-entry .btn-light {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.submit-ticket-page .submit-ticket-content-block {
  padding-bottom: 16px;
}

.submit-ticket-page .submit-ticket-upload {
  margin-top: 10px;
}

.submit-ticket-page .submit-ticket-form input,
.submit-ticket-page .submit-ticket-form select,
.submit-ticket-page .submit-ticket-form textarea {
  border: 1px solid rgba(171, 210, 255, 0.35);
  background: rgba(252, 255, 255, 0.97);
  color: #173d70;
  border-radius: 9px;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.submit-ticket-page .submit-ticket-form input,
.submit-ticket-page .submit-ticket-form select {
  height: 38px;
  font-size: 13px;
}

.submit-ticket-page .submit-ticket-form textarea {
  min-height: 140px;
  font-size: 13px;
  line-height: 1.55;
}

.submit-ticket-page .submit-ticket-form input:focus,
.submit-ticket-page .submit-ticket-form select:focus,
.submit-ticket-page .submit-ticket-form textarea:focus {
  border-color: #67b4ff;
  box-shadow: 0 0 0 3px rgba(95, 177, 255, 0.2);
  transform: translateY(-1px);
}

.submit-ticket-page #submitterName {
  background: linear-gradient(90deg, rgba(228, 241, 255, 0.95), rgba(246, 251, 255, 0.95));
  color: #1d4b82;
  border-left: 3px solid rgba(64, 142, 240, 0.52);
}

.flow-info-modal-content {
  width: min(640px, 92vw);
  border-radius: 14px;
  overflow: hidden;
}

.flow-info-modal-body {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f7fbff;
}

.flow-info-item {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d9e7f7;
  background: #ffffff;
}

.flow-info-item.wide {
  grid-column: 1 / -1;
}

.flow-info-item span {
  display: block;
  margin-bottom: 8px;
  color: #6c87a8;
  font-size: 12px;
}

.flow-info-item strong {
  display: block;
  color: #173d70;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  word-break: break-word;
}

.submit-ticket-page #selectedAttachmentSummary {
  margin-top: 4px;
  color: #cfe5ff;
}

.submit-ticket-page .picked-attachment-list {
  margin-top: 8px;
}

.submit-ticket-page .picked-attachment-item {
  border-color: rgba(164, 209, 255, 0.3);
  background: rgba(11, 45, 95, 0.4);
}

.submit-ticket-page .picked-attachment-size {
  color: #c1dbff;
}

.submit-ticket-page .submit-ticket-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(155, 207, 255, 0.18);
}

.submit-ticket-page .submit-ticket-actions .btn-primary {
  height: 40px;
  min-width: 120px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
  border-radius: 9px;
  box-shadow: 0 10px 18px rgba(42, 130, 239, 0.33);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.submit-ticket-page .submit-ticket-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(42, 130, 239, 0.42);
}

.submit-ticket-page .submit-ticket-actions .hint-inline {
  color: #b6d3f5;
  font-size: 12px;
}

@keyframes submitPanelIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .submit-ticket-page .submit-ticket-panel {
    padding: 14px 12px;
  }

  .submit-ticket-page .submit-ticket-head h3 {
    font-size: 24px;
  }

  .submit-ticket-page .submit-ticket-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .submit-ticket-page .submit-ticket-block {
    padding: 12px;
  }

  .submit-ticket-page .submit-ticket-block-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .submit-ticket-page .submit-ticket-main-head {
    max-width: none;
  }

  .submit-ticket-page .submit-ticket-block-grid {
    grid-template-columns: 1fr;
  }

  .submit-ticket-page .submit-ticket-flow-entry {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-info-modal-body {
    grid-template-columns: 1fr;
  }

  .submit-ticket-page .submit-ticket-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
.operation-log-filters {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px 12px;
  margin-bottom: 10px;
}

.operation-log-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.operation-log-pager {
  margin-top: 12px;
}

#operationLogBody td {
  vertical-align: top;
}

#operationLogBody td:last-child {
  max-width: 360px;
  word-break: break-word;
}

@media (max-width: 1280px) {
  .operation-log-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 720px) {
  .operation-log-filters {
    grid-template-columns: 1fr;
  }

  #operationLogBody td:last-child {
    max-width: 220px;
  }
}


.admin-report-head {
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-report-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-report-tools label {
  color: #cfe3ff;
  font-size: 13px;
}

.admin-report-tools select {
  height: 34px;
  border: 1px solid #c7dbf5;
  border-radius: 6px;
  padding: 0 10px;
  background: #f7fbff;
  color: #173b66;
}

.admin-report-tools .btn-light {
  height: 34px;
  padding: 0 12px;
}

.admin-report-meta {
  font-size: 12px;
  color: #a8c3e8;
  margin-bottom: 10px;
}

.admin-report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-report-kpi {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.report-kpi-title {
  color: #d6e8ff;
  font-size: 13px;
}

.report-kpi-value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.admin-report-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-block {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.04);
}

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

.report-progress-item {
  display: grid;
  gap: 6px;
}

.report-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #d7e7ff;
}

.report-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.report-progress-fill {
  height: 100%;
  border-radius: 999px;
}

.report-progress-fill.todo {
  background: linear-gradient(90deg, #3b8cff, #70a9ff);
}

.report-progress-fill.processing {
  background: linear-gradient(90deg, #17a36f, #54d29e);
}

.report-progress-fill.uat {
  background: linear-gradient(90deg, #2f8fca, #69c9f3);
}

.report-progress-fill.closed {
  background: linear-gradient(90deg, #5f728b, #97abc2);
}

.report-progress-fill.rejected {
  background: linear-gradient(90deg, #c56d4e, #e69f84);
}

.report-empty {
  font-size: 13px;
  color: #9db7db;
  padding: 4px 0;
}

#reportSection th,
#reportSection td {
  font-size: 13px;
}

#reportSection,
#reportSection .admin-report-two-col,
#reportSection .report-block {
  min-width: 0;
}

#reportSection .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

#reportSection table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

#reportSection th,
#reportSection td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .admin-report-kpi-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 960px) {
  .admin-report-two-col {
    grid-template-columns: 1fr;
  }

  .admin-report-kpi-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-report-tools {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-report-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin workflow page refresh */
.admin-body {
  background:
    radial-gradient(circle at top right, rgba(102, 179, 255, 0.18), transparent 26%),
    radial-gradient(circle at left 20%, rgba(49, 110, 197, 0.16), transparent 30%),
    linear-gradient(180deg, #0a3d80 0%, #0b2f63 100%);
}

.admin-layout {
  width: min(1660px, calc(100vw - 52px));
  margin: 20px 28px 34px 14px;
}

.admin-sidebar {
  width: 208px;
  top: 78px;
  background: linear-gradient(180deg, rgba(11, 51, 104, 0.94) 0%, rgba(10, 40, 84, 0.96) 100%);
  border: 1px solid rgba(191, 219, 255, 0.18);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 18px 36px rgba(3, 18, 47, 0.22);
}

.side-title {
  margin-bottom: 10px;
  color: #9dc7ff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-link {
  border-radius: 12px;
  border-color: rgba(191, 219, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 11px 13px;
  transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.side-link:hover {
  border-color: rgba(191, 219, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.side-link.active {
  background: linear-gradient(135deg, #61a6ff 0%, #3d7cf1 100%);
  box-shadow: 0 12px 26px rgba(61, 124, 241, 0.34);
}

.admin-content {
  margin-left: 236px;
  padding-right: 12px;
  min-height: calc(100vh - 118px);
}

.admin-panel {
  border-radius: 18px;
  border: 1px solid rgba(193, 215, 241, 0.88);
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98) 0%, rgba(242, 247, 255, 0.98) 100%);
  color: #173a63;
  box-shadow: 0 18px 42px rgba(7, 29, 68, 0.16);
  padding: 22px;
}

.admin-body .topbar {
  padding: 0 18px;
}

.admin-body .top-right {
  gap: 10px;
}

.admin-body #userBadge {
  padding: 5px 10px;
  font-size: 13px;
}

.admin-body .top-right .btn-ghost {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.admin-panel .panel-head {
  margin-bottom: 16px;
}

.admin-panel .panel-head h3,
.workflow-hero-copy h3 {
  color: #143b6f;
}

.admin-panel .form-grid label,
.admin-panel .detail-inner,
.admin-panel th,
.admin-panel td {
  color: #24486f;
}

.admin-panel .hint-inline {
  margin-left: 0;
  color: #607d9f;
}

.admin-panel .table-wrap {
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-panel thead {
  background: #edf4ff;
}

.admin-panel th,
.admin-panel td {
  border-bottom: 1px solid #e3ecf8;
}

.admin-panel tbody tr:hover {
  background: #f4f8ff;
}

.workflow-panel {
  padding: 26px;
}

.workflow-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
  border-radius: 20px;
  border: 1px solid #d9e7f7;
  background:
    radial-gradient(circle at top right, rgba(71, 145, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #f9fbff 0%, #eef5ff 100%);
}

.workflow-hero-copy h3 {
  margin: 10px 0 6px;
  font-size: 30px;
}

.workflow-hero-copy p {
  margin: 0;
  max-width: 720px;
  color: #5f7fa3;
  line-height: 1.7;
}

.workflow-hero-tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #dfeeff;
  color: #1f63ba;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.workflow-hero-meta {
  display: grid;
  gap: 12px;
}

.workflow-stat {
  border: 1px solid #d6e6fb;
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.workflow-stat-label {
  display: block;
  margin-bottom: 8px;
  color: #6c88aa;
  font-size: 12px;
}

.workflow-stat strong {
  color: #1a457c;
  font-size: 16px;
}

.workflow-editor {
  border: 1px solid #d9e6f4;
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.workflow-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.workflow-section-head h4 {
  margin: 0 0 4px;
  color: #163f74;
  font-size: 18px;
}

.workflow-section-head p {
  margin: 0;
  color: #6c87a8;
  font-size: 13px;
}

.workflow-form-grid {
  padding: 0;
  gap: 16px;
}

.workflow-block {
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid #d7e5f4;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.workflow-block h4 {
  padding: 14px 18px;
  font-size: 15px;
  color: #173e71;
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
}

.workflow-block .detail-inner {
  padding: 18px;
}

#approvalStepList {
  display: grid;
  gap: 14px;
}

.workflow-step-card {
  border: 1px solid #d8e6f6;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 10px 22px rgba(13, 44, 91, 0.06);
}

.workflow-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid #e4edf8;
}

.workflow-step-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.workflow-step-title-wrap strong {
  display: block;
  color: #163f73;
  font-size: 16px;
}

.workflow-step-title-wrap p {
  margin: 4px 0 0;
  color: #6b87a8;
  font-size: 13px;
}

.workflow-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #edf5ff 0%, #dcecff 100%);
  color: #1c61b6;
  font-size: 12px;
  font-weight: 700;
}

.workflow-step-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workflow-step-body {
  padding: 18px;
}

.step-action-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d6e3f5;
  background: #fff;
  color: #2c5b92;
}

.step-action-btn:hover {
  background: #f3f8ff;
}

.step-action-danger {
  color: #a14d4d;
  border-color: #ecd0d0;
  background: #fff7f7;
}

.step-action-danger:hover {
  background: #ffefef;
}

.workflow-add-row {
  margin-top: 14px;
}

.workflow-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.workflow-preview-node {
  min-width: 140px;
  max-width: 220px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #d7e5f7;
  background: #fff;
  box-shadow: 0 10px 18px rgba(13, 44, 91, 0.05);
}

.workflow-preview-node strong {
  display: block;
  margin-bottom: 4px;
  color: #173f71;
  font-size: 14px;
}

.workflow-preview-node span {
  display: block;
  color: #6683a4;
  font-size: 12px;
  line-height: 1.5;
}

.workflow-preview-approval {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.workflow-preview-assign {
  background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
}

.workflow-preview-process {
  background: linear-gradient(180deg, #f6fbff 0%, #ebf7ff 100%);
}

.workflow-preview-uat {
  background: linear-gradient(180deg, #fffdf8 0%, #fff5df 100%);
}

.workflow-preview-done {
  background: linear-gradient(180deg, #f8fff9 0%, #eaf9ef 100%);
}

.workflow-preview-arrow {
  color: #7ea0c7;
  font-size: 18px;
  font-weight: 700;
}

.workflow-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.workflow-empty {
  padding: 18px;
  border: 1px dashed #cfe0f5;
  border-radius: 14px;
  background: #f8fbff;
  color: #6f8cab;
}

@media (max-width: 1080px) {
  .workflow-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-layout {
    width: min(1600px, calc(100vw - 16px));
    margin: 16px 8px 24px;
  }

  .workflow-panel,
  .admin-panel {
    padding: 16px;
  }

  .workflow-editor,
  .workflow-block .detail-inner,
  .workflow-step-body,
  .workflow-step-head,
  .workflow-hero {
    padding: 14px;
  }

  .workflow-step-head {
    flex-direction: column;
  }

  .workflow-step-title-wrap {
    flex-direction: column;
    gap: 10px;
  }

  .workflow-preview-node {
    max-width: none;
    width: 100%;
  }

  .workflow-preview-arrow {
    display: none;
  }
}

/* Workflow overview */
.overview-hero {
  margin-bottom: 16px;
}

.overview-editor-shell {
  padding-bottom: 18px;
}

.overview-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.overview-filter-bar {
  display: grid;
  grid-template-columns: 210px 210px minmax(280px, 1fr) 100px;
  gap: 12px;
  align-items: end;
}

.overview-filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #274a70;
  font-size: 14px;
}

.overview-filter-bar .wide {
  min-width: 0;
}

.overview-list-meta {
  margin: 14px 0 12px;
  color: #6783a4;
  font-size: 13px;
}

.overview-page-panel .pager-info,
.overview-page-panel .pager-size {
  color: #6783a4;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
  gap: 16px;
}

.overview-list-block,
.overview-detail-block {
  margin-top: 0;
}

.overview-table-wrap {
  padding: 0;
}

.overview-table {
  min-width: 920px;
}

.overview-table .table-subtext {
  margin-top: 4px;
  color: #7893b3;
  font-size: 12px;
}

.overview-table .table-summary {
  color: #537191;
  line-height: 1.5;
}

.overview-row-active {
  background: #eef5ff;
}

.overview-row-active td {
  border-bottom-color: #d6e6fa;
}

.overview-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.overview-detail-head h5 {
  margin: 0 0 6px;
  color: #173f72;
  font-size: 24px;
}

.overview-detail-head p {
  margin: 0;
  color: #6784a4;
  font-size: 13px;
}

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

.overview-summary-card {
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.overview-summary-card span {
  display: block;
  margin-bottom: 8px;
  color: #718cac;
  font-size: 12px;
}

.overview-summary-card strong {
  color: #173f72;
  font-size: 16px;
}

.overview-detail-section + .overview-detail-section {
  margin-top: 18px;
}

.overview-detail-label {
  margin-bottom: 10px;
  color: #173f72;
  font-size: 14px;
  font-weight: 700;
}

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

.overview-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.overview-step-order {
  min-width: 78px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f2ff;
  color: #2166bd;
  font-size: 12px;
  font-weight: 700;
}

.overview-step-main strong {
  display: block;
  color: #173f72;
  font-size: 14px;
}

.overview-step-main span {
  display: block;
  margin-top: 4px;
  color: #6e89a9;
  font-size: 13px;
}

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

  .overview-detail-block .workflow-preview-node {
    max-width: 240px;
  }
}

@media (max-width: 1080px) {
  .overview-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .admin-layout {
    width: min(1600px, 95vw);
    margin: 18px auto 28px;
  }
}

@media (max-width: 720px) {
  .overview-filter-bar {
    grid-template-columns: 1fr;
  }

  .overview-detail-head {
    flex-direction: column;
  }

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

  .overview-step-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Overview layout tightening */
.overview-hero {
  grid-template-columns: 1fr;
  padding: 20px 24px;
}

.overview-hero .workflow-hero-copy p {
  max-width: 980px;
}

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

.overview-list-block,
.overview-detail-block {
  width: 100%;
}

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

.overview-table {
  min-width: 760px;
}

.overview-table th,
.overview-table td {
  vertical-align: top;
}

.overview-detail-block .detail-inner {
  overflow: hidden;
}

.overview-detail-block .workflow-preview {
  align-items: stretch;
}

.overview-detail-block .workflow-preview-node {
  max-width: none;
}

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

/* Split workflow pages */
.side-link {
  display: block;
  text-decoration: none;
}

.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-title-row h3 {
  margin: 0 0 6px;
  color: #163f74;
  font-size: 32px;
}

.page-subtitle {
  margin: 0;
  color: #6c87a8;
  font-size: 14px;
}

.page-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-head-tight {
  margin-bottom: 18px;
}

.overview-page-panel,
.detail-page-panel,
.editor-page-panel {
  padding: 24px;
}

.detail-summary-grid {
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .page-title-row {
    flex-direction: column;
  }

  .page-title-row h3 {
    font-size: 24px;
  }
}

/* Management pages visual alignment */
.management-list-block {
  margin-top: 6px;
}

.management-table-shell {
  padding: 0;
}

.management-table-wrap {
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.management-table-wrap table {
  min-width: 860px;
}

.management-table-wrap thead {
  background: #edf4ff;
}

.management-table-wrap th,
.management-table-wrap td {
  border-bottom: 1px solid #e3ecf8;
  color: #24486f;
  vertical-align: top;
}

.management-table-wrap tbody tr:nth-child(2n) {
  background: #fbfdff;
}

.management-table-wrap tbody tr:hover {
  background: #f4f8ff;
}

.management-list-block .link-btn {
  color: #5f94d8;
  text-decoration: none;
}

.management-list-block .link-btn:hover {
  color: #2f69b4;
  text-decoration: underline;
}

.system-modal-content {
  border-radius: 16px;
  border: 1px solid #d3e2f4;
  background: linear-gradient(180deg, #fdfefe 0%, #f5f9ff 100%);
  box-shadow: 0 22px 54px rgba(7, 29, 68, 0.22);
}

.system-modal-content .modal-head {
  padding: 14px 18px;
  background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
}

.system-modal-content .modal-head h3 {
  margin: 0;
  color: #163f74;
  font-size: 24px;
}

.system-modal-content .form-grid {
  padding: 18px;
  gap: 14px;
}

.system-modal-content .actions-row {
  margin-top: 4px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}

.topbar .brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 22px rgba(7, 28, 63, 0.14);
  overflow: hidden;
}

.topbar .brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.topbar .brand-wordmark {
  display: none;
}

.login-card .brand-mark {
  width: 238px;
  height: 74px;
  margin: 0 auto 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-card .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-card {
  width: min(88vw, 500px);
  padding: 34px 44px 40px;
  border-radius: 22px;
  border: 1px solid rgba(106, 145, 211, 0.18);
  box-shadow: 0 26px 68px rgba(5, 20, 46, 0.34);
}

.login-card h1 {
  margin: 2px 0 6px;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: #4b86dc;
}

.subtitle {
  text-align: center;
  margin: 0 0 24px;
  color: #7894bd;
}

@media (max-width: 720px) {
  .topbar .brand-badge {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 5px;
  }

  .login-card {
    width: min(92vw, 460px);
    padding: 28px 26px 32px;
  }

  .login-card .brand-mark {
    width: 204px;
    height: 66px;
  }
}
