/* Custom MVC extensions complementing exact demo CSS */
:root {
  --primary: #21458f;
  --primary-hover: #1a3875;
  --accent: #21458f;
  --accent-hover: #1a3875;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --border-subtle: #e2e8f0;
}

/* Content toàn bộ hệ thống max-width 1560px */
.content,
.crumb {
  max-width: 1560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Breadcrumb nội bộ trang: căn thẳng lề trái không bị thụt lề */
.content .crumb,
.page-workspace > .crumb {
  padding: 0 !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.content .crumb span:first-child,
.page-workspace > .crumb span:first-child {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  background: #ffffff;
  border-radius: 12px;
  width: 92%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid #cbd5e1;
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
}
.modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  font-size: 14px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8fafc;
}

/* Form controls */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.form-control:focus {
  border-color: #21458f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 69, 143, 0.15);
}

.form-note {
  font-size: 12px;
  color: #64748b;
  margin-top: 5px;
}

/* Alert Boxes */
.alert-box {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: #21458f;
  color: #ffffff;
}
.btn-primary:hover {
  background: #1a3875;
}

.btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}
.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-success {
  background: #10b981;
  color: #ffffff;
}
.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
}
.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
}

/* Credential output card */
.demo-cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13.5px;
}
.demo-cred-row:last-child {
  border-bottom: none;
}
.demo-cred-row code {
  background: #e2e8f0;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  color: #0f172a;
}

/* Toolbar & Filters */
/* Toolbar & Filters */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.user-filter-toolbar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  width: 100% !important;
  margin-bottom: 16px !important;
  box-sizing: border-box !important;
}

.user-filter-toolbar > div {
  margin: 0 !important;
}

.user-filter-toolbar input.search-input,
.user-filter-toolbar select.select-filter {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.search-input {
  width: 100% !important;
  max-width: 100% !important;
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  background: #ffffff;
  box-sizing: border-box !important;
}

.select-filter {
  width: 100% !important;
  max-width: 100% !important;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  background: #ffffff;
  box-sizing: border-box !important;
}

/* Data Table container */
.table-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th,
table th,
.data-table th,
.table th,
.hh-table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-neutral {
  background: #f1f5f9;
  color: #475569;
}

/* ================= HEADER POLISH & ALIGNMENT ================= */
header {
  height: 56px !important;
  padding: 0 20px 0 266px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgb(220, 227, 237) !important;
  box-shadow: rgba(20, 37, 75, 0.04) 0px 1px 3px !important;
  z-index: 50 !important;
}

.brand {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 250px !important;
  height: 56px !important;
  background: #21458f !important;
  color: #ffffff !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.brand .brandtext {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  line-height: 1.15 !important;
}

.brand .brandtext b,
.brand .brandtext .brand-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.brand .brandtext small {
  color: rgb(192, 204, 235) !important;
  font-size: 8px !important;
  letter-spacing: 1.5px !important;
  margin-top: 3px !important;
  display: block !important;
  font-weight: 500 !important;
}

#menubtn {
  background: none !important;
  border: 0 !important;
  color: rgb(83, 105, 152) !important;
  height: 32px !important;
  min-width: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}

/* Sidebar & Menu Toggle CSS Rules */
body.menu .brand {
  display: none !important;
}

@media (min-width: 761px) {
  body.menu aside {
    display: none !important;
  }
  body.menu main {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  aside {
    display: none !important;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 260px !important;
    z-index: 9999 !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3) !important;
  }
  body.menu aside,
  aside.open {
    display: flex !important;
  }
  main {
    margin-left: 0 !important;
  }
}

#inactivity-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: rgb(71, 85, 105) !important;
  background: rgb(241, 245, 249) !important;
  border: 1px solid rgb(226, 232, 240) !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#inactivity-pill svg {
  color: rgb(100, 116, 139) !important;
  flex-shrink: 0 !important;
}

#inactivity-pill #timer-countdown {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: rgb(30, 41, 59) !important;
}

#btn-renew-session {
  color: rgb(37, 99, 235) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin-left: 2px !important;
}
#btn-renew-session:hover {
  text-decoration: underline !important;
}

.menu-search {
  display: flex !important;
  align-items: center !important;
}

.menu-search input {
  height: 32px !important;
  width: 220px !important;
  border: 1px solid rgb(220, 227, 237) !important;
  border-radius: 6px !important;
  padding: 0 10px !important;
  font-size: 12.5px !important;
  color: rgb(30, 41, 59) !important;
  outline: none !important;
  background: #ffffff !important;
}

.menu-search input:focus {
  border-color: #21458f !important;
}

.actor {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 12.5px !important;
}

.actor .avatar {
  width: 32px !important;
  height: 32px !important;
  background: #21458f !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  flex-shrink: 0 !important;
}

.actor-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  line-height: 1.25 !important;
}

.actor-info b {
  color: rgb(30, 41, 59) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

.actor-info small {
  color: rgb(100, 116, 139) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

/* ================= TABLE PAGINATION ================= */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #ffffff;
  border-top: 1px solid rgb(220, 227, 237);
  font-size: 13px;
  color: rgb(71, 85, 105);
  flex-wrap: wrap;
  gap: 12px;
}

.table-pagination-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-pagination-info select {
  padding: 4px 10px;
  font-size: 12.5px;
  border: 1px solid rgb(203, 213, 225);
  border-radius: 6px;
  color: rgb(51, 74, 121);
  background: white;
  cursor: pointer;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid rgb(220, 227, 237);
  background: #ffffff;
  color: rgb(51, 74, 121);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

.pagination-btn:hover:not(:disabled) {
  background: rgb(240, 244, 252);
  border-color: rgb(180, 200, 235);
}

.pagination-btn.active {
  background: #21458f !important;
  color: #ffffff !important;
  border-color: #21458f !important;
  font-weight: 600;
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ================= SINGLE-LINE USER INFO ================= */
.data-table th,
.data-table td {
  white-space: nowrap !important;
}

.person {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.person .avatar {
  width: 26px !important;
  height: 26px !important;
  font-size: 11px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

.person b {
  font-weight: 600 !important;
  color: #1e293b !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

.person small {
  color: #64748b !important;
  font-size: 11.5px !important;
  white-space: nowrap !important;
  margin-left: 2px !important;
}

/* ================= IAM PERMISSIONS MATRIX ================= */
.perm-matrix-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  max-height: 480px !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
}

.perm-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
}

.perm-item:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

.perm-item:has(input:checked) {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
}

.perm-item-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  padding-right: 12px !important;
}

.perm-item-meta b {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  line-height: 1.3 !important;
}

.perm-item-meta small {
  font-size: 11px !important;
  color: #64748b !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.perm-checkbox,
.perm-item input[type="checkbox"] {
  margin: 0 !important;
  margin-left: auto !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

/* ================= TOÀN BỘ BẢNG CỦA HỆ THỐNG TH IN THƯỜNG & MÀU CHÍNH #21458f ================= */
th,
table th,
.data-table th,
.table th,
.hh-table th {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 600 !important;
}

aside {
  background: #21458f !important;
  color: #ffffff !important;
}

aside,
aside .aside-title,
aside nav,
aside nav button,
aside nav summary,
aside nav .nav-group > summary,
aside nav .nav-module > summary,
aside nav .nav-module button,
aside .nav-icon,
aside nav summary::after,
aside .aside-foot,
aside .aside-foot span,
aside .aside-foot b {
  color: #ffffff !important;
}

.brand {
  background: #21458f !important;
}

.aside-foot {
  background: #1a3875 !important;
  border-top-color: #2b51a0 !important;
}

.profile-mark {
  background: #2d55a8 !important;
}

nav > button.active {
  background: #1a3875 !important;
  box-shadow: none !important;
  border-radius: 7px !important;
  color: #ffffff !important;
}

.nav-module button.active {
  background: #1e3f82 !important;
  box-shadow: rgb(143, 168, 255) 3px 0px inset !important;
  color: #ffffff !important;
}

nav .nav-group > summary:hover,
.nav-module button:hover,
nav > button:hover {
  background: #1a3875 !important;
}

.button.primary,
.button.teal,
.btn-primary,
button.button.teal,
button.button.primary {
  background: #21458f !important;
  border-color: #21458f !important;
  color: #ffffff !important;
}

.button.primary:hover,
.button.teal:hover,
.btn-primary:hover,
button.button.teal:hover,
button.button.primary:hover {
  background: #1a3875 !important;
  border-color: #1a3875 !important;
  color: #ffffff !important;
}

.link,
a.link {
  color: #21458f !important;
}

/* ================= AGENT TABS (EXACT DEMO STYLING) ================= */
.agent-tabs {
  display: flex !important;
  gap: 4px !important;
  overflow-x: auto !important;
  padding: 8px 12px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #eef2fb !important;
  margin-bottom: 24px !important;
}

.agent-tabs button,
.agent-tabs button[role="tab"] {
  white-space: nowrap !important;
  border: 0 !important;
  background: transparent !important;
  color: rgb(113, 132, 163) !important;
  font-size: 13px !important;
  padding: 9px 14px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  font-weight: 500 !important;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

.agent-tabs button:hover,
.agent-tabs button[role="tab"]:hover {
  color: rgb(41, 67, 139) !important;
  background: rgba(255, 255, 255, 0.55) !important;
}

.agent-tabs button.current,
.agent-tabs button[aria-selected="true"] {
  color: #1a2340 !important;
  background: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(30, 45, 100, 0.14), 0 2px 8px rgba(30, 45, 100, 0.08) !important;
}

.tabs button.on {
  color: rgb(41, 67, 139) !important;
  border-bottom-color: rgb(41, 67, 139) !important;
  font-weight: 650 !important;
}

.work-tab-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 8px !important;
  line-height: 1 !important;
}

.work-tab-icon svg {
  width: 15px !important;
  height: 15px !important;
  display: block !important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: #21458f !important;
  box-shadow: 0 0 0 3px rgba(33, 69, 143, 0.15) !important;
  outline: none !important;
}

/* ================= TAB CHÍNH SÁCH & HOA HỒNG ================= */
.pc-wrap { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:18px; margin-bottom:16px; }
.pc-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; }
.pc-col { display:flex; flex-direction:column; gap:14px; }
.pc-card { border:1px solid #dbe3f3; border-radius:12px; overflow:hidden; background:#fff; }
.pc-card-h { background:#eef2fb; padding:12px 16px; font-weight:700; font-size:13.5px; color:#2a3c6b; border-bottom:1px solid #dbe3f3; }
.pc-card-b { padding:10px 16px 12px; }
.pc-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:5px 0; font-size:13px; }
.pc-row span { color:#64748b; }
.pc-row b { color:#1e293b; font-weight:700; }
.pc-subtabs { background:#eef2fb; border-radius:12px; padding:10px 12px; margin-bottom:18px; }
.pc-subtab { display:inline-flex; align-items:center; gap:8px; border:0; background:#fff; color:#1a2340; font-weight:700; font-size:13px; padding:8px 14px; border-radius:8px; box-shadow:0 1px 3px rgba(30,45,100,.14); cursor:default; }
.pc-list-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.pc-list-head h3 { margin:0 0 2px; font-size:16px; font-weight:700; color:#1e2a4a; }
.pc-list-head p { margin:0; font-size:12.5px; color:#64748b; }
.pc-add-btn { background:#21458f; color:#fff; border:0; border-radius:999px; padding:10px 20px; font-size:13px; font-weight:700; cursor:pointer; }
.pc-add-btn:hover { background:#1a3875; }
.pc-table { width:100%; border-collapse:collapse; font-size:13px; }
.pc-table th { text-align:left; color:#64748b; font-weight:500; padding:10px 12px; border-bottom:1px solid #e2e8f0; }
.pc-table td { padding:12px; border-bottom:1px solid #eef1f6; vertical-align:middle; color:#334155; }
.pc-table td b { display:block; color:#1e293b; font-weight:700; }
.pc-table td small { display:block; color:#7a889c; font-size:11.5px; margin-top:2px; }
.pc-pill { display:inline-flex; align-items:center; gap:6px; background:#e6f4ec; color:#2f7a55; font-size:12px; padding:3px 10px; border-radius:6px; font-weight:600; }
.pc-pill::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.pc-pill.draft { background:#eef1f6; color:#64748b; }
.pc-pill.pending { background:#fff1d7; color:#986c1d; }
.pc-detail-btn { background:#fff; border:1px solid #d5ddec; border-radius:8px; padding:8px 16px; font-size:13px; font-weight:600; color:#1e293b; cursor:pointer; }
.pc-detail-btn:hover { background:#f3f6fc; }
.pc-note { margin-top:18px; background:#eaf1fb; border-radius:8px; padding:12px 16px; font-size:12.5px; color:#4a6288; }
.pc-foot { margin-top:10px; font-size:12px; color:#7a889c; }
.pm-card { border:1px solid #dbe3f3; border-radius:12px; overflow:hidden; margin-bottom:14px; background:#fff; }
.pm-card-h { background:#eef2fb; padding:10px 14px; font-weight:700; font-size:13px; color:#2a3c6b; border-bottom:1px solid #dbe3f3; }
.pm-card-b { padding:12px 14px; }
.pm-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 16px; }
.pm-grid label, .pm-band label { display:block; font-size:12px; color:#64748b; margin-bottom:4px; font-weight:600; }
.pm-grid input, .pm-grid select, .pm-grid textarea, .pm-band input { width:100%; border:1px solid #d5ddec; border-radius:8px; padding:8px 10px; font-size:13px; height:38px; background:#fff; box-sizing:border-box; }
.pm-grid textarea { height:70px; resize:vertical; }
.pm-band { display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:10px; align-items:end; margin-bottom:10px; }
.pm-del { background:#ef4444; color:#fff; border:0; border-radius:8px; padding:0 16px; height:38px; font-weight:600; cursor:pointer; }
.pm-addband { background:#21458f; color:#fff; border:0; border-radius:999px; padding:99px 18px; font-size:13px; font-weight:600; cursor:pointer; }

/* ================= LMS DETAIL MODAL STYLES ================= */
.lms-detail-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.lms-detail-group {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.lms-detail-group h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.lms-detail-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

.lms-detail-fields > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  color: #1e293b;
}

.lms-detail-fields label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.lms-detail-fields b {
  font-weight: 600;
  color: #0f172a;
}

.attachment-link {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
}

.attachment-link:hover {
  text-decoration: underline;
}

.detail-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.detail-status--pending {
  background: #fef3c7;
  color: #b45309;
}

.detail-status--approved {
  background: #dcfce7;
  color: #15803d;
}

.work-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modalhead .close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
}
.modalhead .close:hover {
  color: #0f172a;
}


