form {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-flow: column;
  gap: 8px;
  max-width: -moz-available;
  max-width: 600px;
  border: 3px solid #e5e7eb;
  border-radius: 6px;
  background-color: #f3f4f6;
  padding: 16px;
  margin-bottom: 16px;
}
form > div {
  display: inline-grid;
}

label {
  min-width: 30%;
}

input:focus, textarea:focus {
  outline: #6b7280;
  background-color: #f0fdf4;
  box-shadow: inset #9ca3af 3px -1px;
}

input, textarea {
  outline: none;
  transition: 0.5s;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type=text], input[type=password], select {
  min-width: 65%;
  padding: 10px;
}

textarea {
  min-width: 45%;
  height: 150px;
  padding: 10px;
}

input[type=submit] {
  width: 100%;
  background-color: #04AA6D;
  color: white;
  padding: 14px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

@media screen and (max-width: 600px) {
  label,
  input[type=text],
  input[type=submit],
  select, textarea {
    flex: 100%;
    min-width: fit-content();
  }
}
.btn {
  padding: 8px;
  border: none;
  background: #d1d5db;
}
.btn:hover {
  background-color: #f3f4f6;
}

.btn-primary {
  background: #a3e635;
}

.form-hidden {
  display: none;
}

/* Inline | https://crm.dev:9443/client/3/edit */
fieldset {
  display: grid;
  gap: 16px;
  max-width: -moz-available;
  width: -webkit-fill-available;
  width: -moz-available;
}

#actions {
  display: flex;
  justify-content: flex-end;
}

.add-event {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
  flex-direction: row;
}
.add-event input {
  width: 100%;
}
.add-event .event-base {
  flex-grow: 3;
  flex-basis: 16px;
}
.add-event .event-base input {
  width: 100%;
}
.add-event .event-base div {
  width: -moz-available;
  width: -webkit-fill-available;
}
.add-event .event-note {
  flex: 1;
  display: flex;
  flex-direction: column;
  order: 2;
}

.autocomplete-dropdown .list-group-item.active {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.state-circle {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  cursor: help;
}

.client-details .icon-address:after {
  content: url('data: image/svg+xml, <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 10L3 8M3 8L10 1L17 8M3 8V18C3 18.5523 3.44772 19 4 19H7M17 8L19 10M17 8V18C17 18.5523 16.5523 19 16 19H13M7 19C7.55228 19 8 18.5523 8 18V14C8 13.4477 8.44772 13 9 13H11C11.5523 13 12 13.4477 12 14V18C12 18.5523 12.4477 19 13 19M7 19H13" stroke="%23111827" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  display: inline-block;
}
.client-details .icon-email:after {
  content: url('data: image/svg+xml, <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 10L3 8M3 8L10 1L17 8M3 8V18C3 18.5523 3.44772 19 4 19H7M17 8L19 10M17 8V18C17 18.5523 16.5523 19 16 19H13M7 19C7.55228 19 8 18.5523 8 18V14C8 13.4477 8.44772 13 9 13H11C11.5523 13 12 13.4477 12 14V18C12 18.5523 12.4477 19 13 19M7 19H13" stroke="%23111827" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  display: inline-block;
}
.client-details .icon-phone:after {
  content: url('data: image/svg+xml, <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 5C3 3.89543 3.89543 3 5 3H8.27924C8.70967 3 9.09181 3.27543 9.22792 3.68377L10.7257 8.17721C10.8831 8.64932 10.6694 9.16531 10.2243 9.38787L7.96701 10.5165C9.06925 12.9612 11.0388 14.9308 13.4835 16.033L14.6121 13.7757C14.8347 13.3306 15.3507 13.1169 15.8228 13.2743L20.3162 14.7721C20.7246 14.9082 21 15.2903 21 15.7208V19C21 20.1046 20.1046 21 19 21H18C9.71573 21 3 14.2843 3 6V5Z" stroke="%23111827" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  display: inline-block;
}
.client-details .icon-mobile:after {
  content: url('data:image/svg+xml, <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H12.01M8 21H16C17.1046 21 18 20.1046 18 19V5C18 3.89543 17.1046 3 16 3H8C6.89543 3 6 3.89543 6 5V19C6 20.1046 6.89543 21 8 21Z" stroke="%23111827" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  display: inline-block;
}
.client-details:after {
  content: url('data:image/svg+xml, <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.2677 3.73223L20.9748 3.02513V3.02513L20.2677 3.73223ZM6.5 21.0355V22.0355C6.76522 22.0355 7.01957 21.9301 7.20711 21.7426L6.5 21.0355ZM3 21.0355H2C2 21.5878 2.44772 22.0355 3 22.0355V21.0355ZM3 17.4644L2.29289 16.7573C2.10536 16.9448 2 17.1992 2 17.4644H3ZM17.4393 4.43934C18.0251 3.85355 18.9748 3.85355 19.5606 4.43934L20.9748 3.02513C19.608 1.65829 17.3919 1.65829 16.0251 3.02513L17.4393 4.43934ZM19.5606 4.43934C20.1464 5.02513 20.1464 5.97487 19.5606 6.56066L20.9748 7.97487C22.3417 6.60804 22.3417 4.39196 20.9748 3.02513L19.5606 4.43934ZM19.5606 6.56066L5.79289 20.3284L7.20711 21.7426L20.9748 7.97487L19.5606 6.56066ZM6.5 20.0355H3V22.0355H6.5V20.0355ZM16.0251 3.02513L2.29289 16.7573L3.70711 18.1715L17.4393 4.43934L16.0251 3.02513ZM2 17.4644V21.0355H4V17.4644H2ZM14.5251 5.93934L18.0606 9.47487L19.4748 8.06066L15.9393 4.52513L14.5251 5.93934Z" fill="#111827"/></svg>');
  display: inline-block;
}

.client-details th {
  position: relative;
  padding-right: 8px;
  padding-left: 8px;
}

#calender_root {
  margin-left: 16px;
  background: #f1f5f9;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

div.calendar div.row-cells {
  border-bottom: var(--calendar-js-spacing-border-size) solid #d6d3d1;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  font-weight: 300;
  background-color: #fff;
  color: #12100e;
  width: 100%;
}
div.calendar div.row-cells.cell:hover {
  background-color: #fefce8;
}
div.calendar div.weekend-day {
  background-color: #fefce8;
}
div.calendar .ib-hamburger:nth-child(1), div.calendar div.ib-pin, div.calendar div.ib-arrow-right-full-line {
  display: none;
}
div.calendar div.full-month-view div.title-bar {
  font-weight: var(--calendar-js-title-bar-font-weight);
  background-color: #c30b29;
  color: #f8fafc;
  text-align: center;
  padding-top: var(--calendar-js-spacing);
  padding-bottom: var(--calendar-js-spacing);
  padding-left: calc(var(--calendar-js-spacing) / 2);
  padding-right: calc(var(--calendar-js-spacing) / 2);
  position: relative;
}
div.calendar div.full-month-view div.title-bar div.title-container span.year-dropdown-button {
  white-space: nowrap;
  overflow: hidden;
  padding: 3px 6px;
  border-radius: var(--calendar-js-border-radius);
  color: #0f172a;
  background-color: #f8fafc;
  border: var(--calendar-js-spacing-border-size) solid var(--calendar-js-dark-lighter-color);
  font-weight: 500;
  transition: var(--calendar-js-transition);
  transition-property: opacity;
}

/* Timeline */
.timeline-wrapper {
  padding: 20px 0;
}

.timeline-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.customer-label {
  width: 180px;
  min-width: 180px;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-track {
  flex: 1;
  position: relative;
  height: 28px;
  border-top: 1px solid #dee2e6;
}

.monday-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #adb5bd;
  z-index: 1;
}

.monday-label {
  position: absolute;
  top: -18px;
  font-size: 9px;
  color: #6c757d;
  white-space: nowrap;
  transform: translateX(-50%);
  z-index: 2;
}

.event-dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transform: translate(-50%, -50%);
  transition: transform 0.15s, box-shadow 0.15s;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.event-dot:hover {
  transform: translate(-50%, -50%) scale(1.4);
  z-index: 20;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}
.event-dot.type-1 {
  background-color: #dc3545;
}
.event-dot.type-2 {
  background-color: #0dcaf0;
}
.event-dot.type-3 {
  background-color: #0d6efd;
}
.event-dot.type-4 {
  background-color: #198754;
}

.tooltip-box {
  position: fixed;
  background: rgba(33, 37, 41, 0.95);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 9999;
  display: none;
  max-width: 300px;
  pointer-events: none;
  line-height: 1.5;
}
.tooltip-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.nav-controls .btn {
  font-size: 13px;
}
.nav-controls .month-label {
  font-weight: 600;
  font-size: 15px;
  min-width: 160px;
  text-align: center;
}

.legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

header nav ul li {
  display: table-cell;
  vertical-align: middle;
  margin-left: 2rem;
}
header nav ul li a {
  padding: 8px;
}
header nav ul li a:hover {
  background-color: #f3f4f6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  box-sizing: border-box;
}

html, body {
  background-color: #f3f4f6;
  margin: 0px;
}

a {
  color: #12100e;
}

h1 {
  margin: 16px 0px 8px 0px;
}

h2, h3 {
  margin: 16px 0px 8px 0px;
}

header {
  background-color: #fff;
  border-bottom: 1px solid #d1d5db;
  width: -webkit-fill-available;
  width: -moz-available;
  border-bottom: 1px solid #d1d5db;
  display: grid;
  grid-template-columns: 1fr 3fr;
  justify-items: self-start;
  align-items: center;
  padding: 1rem 3rem;
}
header .logo {
  text-decoration: none;
  display: table-cell;
  vertical-align: middle;
}

main {
  width: auto;
  max-width: 960px;
  margin: 0 auto;
}
main > article {
  margin-top: 16px;
  background-color: #fff;
  padding: 4px 16px;
  margin-bottom: 64px;
}

.alert {
  width: 100%;
  text-align: center;
}
.alert .alert-danger {
  border: 2px solid red;
  padding: 8px;
  background-color: #ffdfdf;
}

table {
  border: none;
  border-collapse: collapse;
  padding: 4px;
  width: unset;
  box-shadow: 4px 4px 17px -10px #a8a29e;
}
@media (max-width: 540px) {
  table {
    width: 100%;
  }
  table thead {
    display: none;
  }
  table tr, table td {
    display: block;
    width: 100%;
  }
  table tr {
    margin-bottom: 1rem;
  }
}
table tr.disabled {
  background: grey;
  display: none;
}
table tr.odd:hover {
  background-color: #e5e7eb;
}
table tr.even:hover {
  background-color: #d1d5db;
}
table .even {
  background-color: #f3f4f6;
}
table thead tr th {
  background-color: #e5e7eb;
  border-bottom: 1px solid #111827;
  padding: 8px;
}
table td {
  padding: 8px;
}
table .time {
  white-space: nowrap;
}

.example-wrapper {
  margin: 1em auto;
  max-width: 800px;
  width: 95%;
  font: 18px/1.5 sans-serif;
}
.example-wrapper code {
  background: #F5F5F5;
  padding: 2px 6px;
}

.design-blocked {
  opacity: 0.5;
}

.project-tabs {
  margin-bottom: 16px;
}
.project-tabs ul {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  border-bottom: 2px solid #d1d5db;
}
.project-tabs .nav-item {
  margin: 0;
}
.project-tabs .nav-link {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  color: #6b7280;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: -2px;
  font-size: 14px;
  transition: background-color 0.15s, color 0.15s;
}
.project-tabs .nav-link:hover {
  color: #111827;
  background-color: #f3f4f6;
}
.project-tabs .nav-link.active {
  color: #111827;
  background-color: #fff;
  border-color: #d1d5db;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.badge.bg-secondary {
  background-color: #6c757d;
  color: #fff;
}
.badge.bg-warning {
  background-color: #ffc107;
  color: #111827;
}
.badge.bg-info {
  background-color: #17a2b8;
  color: #fff;
}
.badge.bg-success {
  background-color: #28a745;
  color: #fff;
}
.badge.bg-danger {
  background-color: #dc3545;
  color: #fff;
}

.rejection-message {
  padding: 12px 16px;
  margin: 12px 0;
  background-color: #ffdfdf;
  border-left: 3px solid #dc3545;
}
.rejection-message p {
  margin: 0 0 6px 0;
  white-space: pre-wrap;
}
.rejection-message small {
  color: #666;
}

.qa-message {
  padding: 12px 16px;
  margin: 8px 0;
  background-color: #f3f4f6;
  border-left: 3px solid #9ca3af;
}
.qa-message p {
  margin: 0 0 6px 0;
  white-space: pre-wrap;
}
.qa-message small {
  color: #666;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0 24px 0;
}
.dashboard-cards .dashboard-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #111827;
  transition: box-shadow 0.15s;
}
.dashboard-cards .dashboard-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.dashboard-cards .dashboard-card .card-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.dashboard-cards .dashboard-card .card-label {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dashboard-cards .dashboard-card.card-leads {
  border-left: 3px solid #3b82f6;
}
.dashboard-cards .dashboard-card.card-qa {
  border-left: 3px solid #14b8a6;
}
.dashboard-cards .dashboard-card.card-rejected {
  border-left: 3px solid #ef4444;
}
.dashboard-cards .dashboard-card.card-events {
  border-left: 3px solid #f59e0b;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-main {
  min-width: 0;
}

.dashboard-sidebar {
  min-width: 0;
}
.dashboard-sidebar .dashboard-section h2 {
  font-size: 13px;
  margin-bottom: 6px;
}
.dashboard-sidebar .dashboard-section .table {
  margin-bottom: 12px;
}

.dashboard-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.dashboard-section h2 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}
.dashboard-section .table-wrapper {
  overflow-x: auto;
}
.dashboard-section .table-wrapper table {
  min-width: 0;
}
.dashboard-section .search-form {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
}
.dashboard-section .search-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-right: none;
  border-radius: 6px 0 0 6px;
  font-size: 13px;
}
.dashboard-section .search-form button {
  padding: 8px 16px;
  background-color: #e5e7eb;
  border: 1px solid #d1d5db;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  cursor: pointer;
}
.dashboard-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.dashboard-section .section-header h2 {
  margin: 0;
}
.dashboard-section .section-footer {
  margin-top: 8px;
  text-align: right;
  font-size: 13px;
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.dashboard-actions .action-btn {
  display: block;
  padding: 10px 16px;
  background-color: #e5e7eb;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: background-color 0.15s;
}
.dashboard-actions .action-btn:hover {
  background-color: #d1d5db;
}

.client-list .client-card {
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}
.client-list .client-card:last-child {
  border-bottom: none;
}
.client-list .client-card .client-row {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.client-list .client-card .client-row .client-label {
  min-width: 56px;
  color: #6b7280;
  font-weight: 500;
}
.client-list .client-card .client-row a {
  color: #111827;
}
.client-list .client-card .client-counts {
  display: flex;
  gap: 16px;
  padding: 6px 0 2px 64px;
  border-top: 1px solid #f3f4f6;
  margin-top: 4px;
}
.client-list .client-card .client-counts .count-item {
  font-size: 12px;
  color: #6b7280;
}
.client-list .client-card .client-counts .count-item .count-value {
  font-weight: 700;
  color: #374151;
}
.client-list .client-card .pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
}
.client-list .client-card .pagination-btn {
  display: inline-block;
  min-width: 32px;
  padding: 4px 10px;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}
.client-list .client-card .pagination-btn:hover {
  background-color: #f3f4f6;
}
.client-list .client-card .pagination-btn.active {
  background-color: #c30b29;
  color: #fff;
  border-color: #c30b29;
}
.client-list .client-card .pagination-ellipsis {
  padding: 4px 6px;
  color: #9ca3af;
}
.client-list .client-card .pagination-info {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.qa-design-section {
  margin-bottom: 32px;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
}

.qa-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.qa-info-grid .qa-info-item .qa-info-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}
.qa-info-grid .qa-info-item .translation-missing {
  padding: 16px;
  margin-bottom: 24px;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
}
.qa-info-grid .qa-info-item .translation-missing h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #d97706;
}
.qa-info-grid .qa-info-item .translation-missing p {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #4b5563;
}
.qa-info-grid .qa-info-item .translation-missing ul {
  margin: 0 0 12px 0;
  padding-left: 20px;
  max-height: 200px;
  overflow-y: auto;
}
.qa-info-grid .qa-info-item .translation-missing ul li {
  margin-bottom: 2px;
  font-size: 13px;
}
.qa-info-grid .qa-info-item .translation-missing ul li code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
}
.qa-info-grid .qa-info-item .translation-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.qa-info-grid .qa-info-item .translation-table th, .qa-info-grid .qa-info-item .translation-table td {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  text-align: left;
  vertical-align: top;
}
.qa-info-grid .qa-info-item .translation-table th {
  background-color: #f3f4f6;
  font-size: 13px;
  font-weight: 600;
}
.qa-info-grid .qa-info-item .translation-table .translation-key {
  white-space: nowrap;
  width: 1%;
}
.qa-info-grid .qa-info-item .translation-table .translation-key code {
  background: none;
  padding: 0;
  font-size: 13px;
}
.qa-info-grid .qa-info-item .translation-table .translation-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}
.qa-info-grid .qa-info-item .translation-table .translation-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.qa-info-grid .qa-info-item .translation-actions {
  display: flex;
  justify-content: flex-end;
}

.qa-decision-buttons {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}

.btn-decide {
  flex: 1;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-decide:hover {
  opacity: 0.85;
}
.btn-decide.btn-decide-approve {
  background-color: #16a34a;
  color: #fff;
}
.btn-decide.btn-decide-reject {
  background-color: #dc2626;
  color: #fff;
}

.qa-status-approved {
  padding: 12px 16px;
  background-color: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 6px;
  color: #166534;
}

.qa-status-rejected {
  padding: 12px 16px;
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  color: #991b1b;
}

.qa-thread {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.qa-message {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 6px;
}
.qa-message.qa-message-odd {
  background-color: #f3f4f6;
}
.qa-message.qa-message-even {
  background-color: #f9fafb;
}
.qa-message .qa-message-body {
  margin-bottom: 4px;
  white-space: pre-wrap;
}
.qa-message .qa-message-meta {
  font-size: 12px;
  color: #6b7280;
}

.qa-no-messages {
  color: #9ca3af;
  font-style: italic;
}

/* Modal */
.qa-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.qa-modal-content {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.qa-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
}
.qa-modal-header h3 {
  margin: 0;
}
.qa-modal-header.qa-modal-header-approve {
  background-color: #dcfce7;
  color: #166534;
}
.qa-modal-header.qa-modal-header-reject {
  background-color: #fee2e2;
  color: #991b1b;
}

.qa-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: inherit;
  padding: 0 4px;
}

.qa-template-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.qa-template-item {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.15s, border-color 0.15s;
}
.qa-template-item:hover {
  background-color: #f3f4f6;
}
.qa-template-item.qa-template-selected {
  background-color: #f3f4f6;
  border-color: #c30b29;
  font-weight: 600;
}

.qa-modal-section {
  padding: 16px 20px;
  width: -webkit-fill-available;
}
.qa-modal-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}
.qa-modal-section select {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 12px;
}
.qa-modal-section textarea,
.qa-modal-section .qa-form-textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.qa-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #e5e7eb;
}

.btn-cancel {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.btn-cancel:hover {
  background: #f3f4f6;
}

.btn-send {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: #c30b29;
  color: #fff;
  cursor: pointer;
}
.btn-send:hover {
  opacity: 0.85;
}

.alert-success {
  padding: 10px 16px;
  background-color: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 6px;
  color: #166534;
  margin-bottom: 16px;
}

.client-counts {
  display: flex;
  gap: 16px;
  padding: 6px 0 2px 64px;
  border-top: 1px solid #f3f4f6;
  margin-top: 4px;
}
.client-counts .count-item {
  font-size: 12px;
  color: #6b7280;
}
.client-counts .count-item .count-value {
  font-weight: 700;
  color: #374151;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
}

.pagination-btn {
  display: inline-block;
  min-width: 32px;
  padding: 4px 10px;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}
.pagination-btn:hover {
  background-color: #f3f4f6;
}
.pagination-btn.active {
  background-color: #c30b29;
  color: #fff;
  border-color: #c30b29;
}

.pagination-ellipsis {
  padding: 4px 6px;
  color: #9ca3af;
}

.pagination-info {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}
