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

.line-page-header h2 {
  margin-bottom: 4px;
}

.line-page-header p {
  margin: 0;
  color: #6b7280;
}

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

.danger-test-inline {
  background: #dc2626 !important;
  color: #ffffff !important;
  font-weight: 900;
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 0;
  white-space: nowrap;
}

.danger-test-inline:disabled {
  opacity: 0.65;
  cursor: wait;
}

.line-info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.line-table-toolbar {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.line-table-toolbar input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.list-count {
  margin: 8px 0 12px;
  color: #047857;
  font-weight: 900;
}

.line-table-scroll {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow-x: auto;
  background: #ffffff;
}

.customer-reminder-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.customer-reminder-table th,
.customer-reminder-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 9px 8px;
  vertical-align: top;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.customer-reminder-table th {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  white-space: nowrap;
}

.customer-reminder-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.customer-reminder-table tbody tr:hover {
  background: #eff6ff;
}

.customer-reminder-table .select-col {
  width: 34px !important;
  text-align: center !important;
}

.customer-reminder-table th:nth-child(2),
.customer-reminder-table td:nth-child(2) {
  width: 19%;
}

.customer-reminder-table th:nth-child(3),
.customer-reminder-table td:nth-child(3) {
  width: 10%;
}

.customer-reminder-table th:nth-child(4),
.customer-reminder-table td:nth-child(4) {
  width: 14%;
}

.customer-reminder-table th:nth-child(5),
.customer-reminder-table td:nth-child(5) {
  width: 14%;
}

.customer-reminder-table th:nth-child(6),
.customer-reminder-table td:nth-child(6) {
  width: 9%;
}

.customer-reminder-table th:nth-child(7),
.customer-reminder-table td:nth-child(7) {
  width: 9%;
}

.customer-reminder-table th:nth-child(8),
.customer-reminder-table td:nth-child(8) {
  width: 12%;
}

.customer-reminder-table th:nth-child(9),
.customer-reminder-table td:nth-child(9) {
  width: 19%;
}

.customer-reminder-table input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  transform: none !important;
  accent-color: #2563eb;
  cursor: pointer;
  margin: 0 auto;
  display: inline-block;
  vertical-align: middle;
}

.small-muted {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.line-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.line-action-group button {
  padding: 7px 9px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.line-action-group button.danger-inline {
  background: #dc2626;
  color: #ffffff;
}

.line-action-group button.warning-inline {
  background: #f59e0b;
  color: #111827;
}

.line-action-group button.success-inline {
  background: #16a34a;
  color: #ffffff;
}

.line-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #e5e7eb;
  color: #374151;
}

.line-status.ok {
  background: #dcfce7;
  color: #166534;
}

.line-status.warn {
  background: #fef3c7;
  color: #92400e;
}

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

.customer-reminder-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.customer-reminder-pagination button {
  border: 0;
  border-radius: 9px;
  padding: 7px 11px;
  font-weight: 800;
  cursor: pointer;
  background: #e5e7eb;
  color: #111827;
}

.customer-reminder-pagination button.active {
  background: #2563eb;
  color: #ffffff;
}

.customer-reminder-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-dots {
  color: #6b7280;
  padding: 0 4px;
}

.reminder-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.reminder-editor-overlay.hidden {
  display: none;
}

.reminder-editor-card {
  width: min(620px, 96vw);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.reminder-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.reminder-editor-header h3 {
  margin: 0;
}

.reminder-editor-header button {
  border: 0;
  background: #e5e7eb;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.reminder-editor-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px;
}

.reminder-editor-body label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: #374151;
  margin-bottom: 5px;
}

.reminder-editor-body input,
.reminder-editor-body select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 14px;
  background: #ffffff;
}

.reminder-editor-body input[readonly] {
  background: #f3f4f6;
  color: #4b5563;
}

.reminder-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}

.secondary-inline {
  border: 0;
  border-radius: 9px;
  padding: 8px 12px;
  background: #e5e7eb;
  color: #111827;
  font-weight: 800;
  cursor: pointer;
}

#editorReminderDays {
  font-weight: 800;
}

.inline-service-job-select,
.inline-reminder-type-select {
  width: 100%;
  min-width: 130px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 7px 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.inline-service-job-select:disabled,
.inline-reminder-type-select:disabled {
  opacity: 0.6;
  cursor: wait;
}

.customer-reminder-action-bar {
  position: absolute !important;
  top: 26px !important;
  right: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 5 !important;
  white-space: nowrap !important;
}

.customer-reminder-action-bar button {
  white-space: nowrap !important;
  margin: 0 !important;
}

.customer-reminder-action-bar .danger-test-inline {
  background: #dc2626 !important;
  color: #ffffff !important;
  font-weight: 900;
  border-radius: 10px;
  padding: 9px 14px;
  white-space: nowrap;
}

.customer-reminder-page {
  position: relative !important;
}

.customer-reminder-header,
.line-page-header {
  display: block !important;
  position: static !important;
  margin-bottom: 12px !important;
  padding-right: 470px !important;
  min-height: 88px !important;
}

.customer-reminder-heading-block,
.line-page-header > div:first-child {
  display: block !important;
  min-width: 0 !important;
}

.customer-reminder-heading-block h2,
.line-page-header h2 {
  margin: 0 0 8px !important;
  line-height: 1.25 !important;
}

.customer-reminder-heading-block p,
.line-page-header p {
  margin: 0 !important;
  color: #6b7280 !important;
  line-height: 1.5 !important;
}

.customer-reminder-actions-row td {
  background: #f8fafc;
  padding: 8px 10px 14px !important;
  border-bottom: 1px solid #dbeafe !important;
}

.customer-reminder-main-row td {
  border-bottom: 0 !important;
}

.reminder-bottom-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-left: 6px;
  padding-right: 8px;
  padding-top: 0;
  margin-left: 0;
}

.reminder-bottom-actions button {
  padding: 9px 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .customer-reminder-header,
  .line-page-header {
    padding-right: 0 !important;
    min-height: 0 !important;
  }

  .customer-reminder-action-bar {
    position: static !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    margin-top: 12px !important;
  }

  .line-page-header {
    flex-direction: column;
  }

  .customer-reminder-table {
    min-width: 980px;
  }

  .reminder-editor-body {
    grid-template-columns: 1fr;
  }
}
