/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
}

.container {
  max-width: 400px;
  margin: 80px auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 1rem;
  outline: none;
}

input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

button {
  width: 100%;
  padding: 0.625rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

button:hover {
  background: #2563eb;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.link a {
  color: #3b82f6;
  text-decoration: none;
}

/* ── Page layout ── */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Nav bar ── */

.nav {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
  text-decoration: none;
  margin-right: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
}

.nav-link:hover {
  color: #3b82f6;
}

.nav-email {
  font-size: 0.8125rem;
  color: #6b7280;
}

/* ── Nav card grid ── */

.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.nav-card {
  display: block;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.nav-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #3b82f6;
}

.nav-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.nav-card-desc {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
}

/* ── Tabs ── */

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  width: auto;
  border-radius: 0;
}

.tab:hover {
  color: #374151;
  background: #f9fafb;
}

.tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  background: none;
}

/* ── Tables ── */

.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  /* make it shorter in height */
  max-height: 400px;
}

table {
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: white;
  table-layout: auto;
}

th {
  background: #f8fafc;
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: middle;
  min-width: 80px;
}

/* Allow specific columns to wrap */
td.wrap-text {
  white-space: normal;
  word-break: break-word;
  max-width: 300px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #f1f5f9;
}

/* ── Badges ── */

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-green {
  background: #dcfce7;
  color: #166534;
}

.badge-yellow {
  background: #fef9c3;
  color: #854d0e;
}

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

.badge-gray {
  background: #f3f4f6;
  color: #4b5563;
}

/* ── States ── */

.empty-state {
  padding: 3rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  background: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.loading {
  padding: 3rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* ── Small buttons ── */

.btn-sm {
  width: auto;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: 5px;
}

.btn-outline {
  background: transparent;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-outline:hover {
  background: #f3f4f6;
  color: #1a1a1a;
}

/* ── Button variants ── */

.btn-danger {
  background: #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-success {
  background: #16a34a;
}

.btn-success:hover {
  background: #15803d;
}

.btn-warning {
  background: #d97706;
  color: white;
}

.btn-warning:hover {
  background: #b45309;
}

.btn-ghost {
  background: transparent;
  color: #374151;
}

.btn-ghost:hover {
  background: #f3f4f6;
}

.btn-icon {
  padding: 0.5rem;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Toast notifications ── */

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: toast-slide-in 0.2s ease-out;
  border-left: 4px solid;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-success {
  border-left-color: #16a34a;
}

.toast-error {
  border-left-color: #dc2626;
}

.toast-warning {
  border-left-color: #d97706;
}

.toast-info {
  border-left-color: #3b82f6;
}

.toast-content {
  flex: 1 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

.toast-description {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.toast-close {
  flex-shrink: 0;
  width: auto;
  padding: 0.25rem;
  background: transparent;
  color: #9ca3af;
  border-radius: 4px;
}

.toast-close:hover {
  background: #f3f4f6;
  color: #374151;
}

/* ── Modal ── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: modal-fade-in 0.15s ease-out;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  animation: modal-scale-in 0.15s ease-out;
}

@keyframes modal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-sm {
  width: 100%;
  max-width: 400px;
}

.modal-md {
  width: 100%;
  max-width: 560px;
}

.modal-lg {
  width: 100%;
  max-width: 720px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.modal-close {
  width: auto;
  padding: 0.375rem;
  background: transparent;
  color: #9ca3af;
  border-radius: 6px;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  overflow-x: auto;
  flex: 1 1;
}

.search-input {
  width: 100%;
  padding: 0.375rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
  outline: none;
}

.search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
}

.modal-footer button {
  width: auto;
  min-width: 80px;
}

/* ── Detail Panel (slide-out) ── */

.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.panel-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 520px;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 950;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.detail-panel.open {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.panel-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.panel-close {
  width: auto;
  padding: 0.375rem;
  background: transparent;
  color: #9ca3af;
  border-radius: 6px;
}

.panel-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.panel-body {
  flex: 1 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.panel-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.panel-footer button {
  flex: 1 1;
}

/* ── Detail panel content helpers ── */

.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

.detail-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}

.detail-value {
  font-size: 0.875rem;
  color: #1a1a1a;
  word-break: break-word;
}

.detail-value.mono {
  font-family: monospace;
  font-size: 0.8125rem;
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* ── File dropzone ── */

.file-dropzone-container {
  width: 100%;
}

.file-dropzone {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.file-dropzone:hover {
  border-color: #3b82f6;
  background: #f8fafc;
}

.file-dropzone.dragging {
  border-color: #3b82f6;
  background: #eff6ff;
}

.file-dropzone.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dropzone-icon {
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.file-dropzone:hover .dropzone-icon,
.file-dropzone.dragging .dropzone-icon {
  color: #3b82f6;
}

.dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dropzone-primary {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.dropzone-secondary {
  font-size: 0.75rem;
  color: #9ca3af;
}

.dropzone-error {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #dc2626;
}

.file-list {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.file-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.file-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.75rem;
  color: #9ca3af;
}

.file-remove {
  flex-shrink: 0;
  width: auto;
  padding: 0.25rem;
  background: transparent;
  color: #9ca3af;
  border-radius: 4px;
}

.file-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* ── Enhanced table styles ── */

tbody tr {
  cursor: pointer;
}

tr.selected td {
  background: #eff6ff;
}

tr.selected {
  box-shadow: inset 3px 0 0 #3b82f6;
}

tr.locked-other td {
  background: #fef3c7;
}

tr.locked-other {
  cursor: not-allowed;
}

tr.locked-me td {
  background: #d1fae5;
}

.lock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.lock-icon {
  flex-shrink: 0;
}

/* ── Additional badge variants ── */

.badge-orange {
  background: #ffedd5;
  color: #c2410c;
}

.badge-purple {
  background: #f3e8ff;
  color: #7c3aed;
}

/* ── Form field group ── */

.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  margin-bottom: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
}

/* ── Select element ── */

select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  outline: none;
}

select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* ── Textarea ── */

textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  outline: none;
}

textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* ── Skeleton loading ── */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  width: 100%;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-row {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
}

/* ── Action bar (for detail panels) ── */

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.action-bar button {
  width: auto;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
}

/* ── Rich Text Editor ── */

.rich-editor {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.rich-editor.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.rich-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.toolbar-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #374151;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

.toolbar-btn:hover {
  background: #e5e7eb;
}

.toolbar-btn.active {
  background: #3b82f6;
  color: white;
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: #d1d5db;
  margin: 0 0.375rem;
}

.rich-editor-content {
  min-height: 150px;
  padding: 0.75rem;
  outline: none;
  font-size: 0.875rem;
  line-height: 1.6;
}

.rich-editor-content:focus {
  outline: none;
}

.rich-editor-content p {
  margin: 0 0 0.5rem 0;
}

.rich-editor-content p:last-child {
  margin-bottom: 0;
}

.rich-editor-content ul,
.rich-editor-content ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.rich-editor-content li {
  margin: 0.25rem 0;
}

.rich-editor-content[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
  float: left;
  height: 0;
}

.rich-editor-loading {
  padding: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* ── ProseMirror specific ── */

.ProseMirror {
  min-height: 150px;
  padding: 0.75rem;
  outline: none;
  font-size: 0.875rem;
  line-height: 1.6;
}

.ProseMirror:focus {
  outline: none;
}

.ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
  float: left;
  height: 0;
}

/* ── Action Panel (under table) ── */

.action-panel {
  margin-top: 1.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
}

.action-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.action-panel-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
}

.action-panel-close {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-panel-close:hover {
  color: #1a1a1a;
  background: #f3f4f6;
  border-radius: 4px;
}

.action-panel-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 1rem;
}

.action-panel-buttons.single {
  grid-template-columns: 1fr;
}

.btn-large {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-large-blue {
  background: #4f5bd5;
  color: white;
  border-color: #4f5bd5;
}

.btn-large-blue:hover {
  background: #3b47c8;
  border-color: #3b47c8;
}

.btn-large-green {
  background: #3d9970;
  color: white;
  border-color: #3d9970;
}

.btn-large-green:hover {
  background: #2f7a59;
  border-color: #2f7a59;
}

.btn-medium-blue {
  background: #4f5bd5;
  color: white;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn-medium-blue:hover {
  background: #3b47c8;
}

/* Info display panel */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 6px;
}

.info-row {
  display: flex;
  gap: 0.5rem;
}

.info-label {
  font-weight: 600;
  color: #374151;
  min-width: 120px;
}

.info-value {
  color: #1a1a1a;
}

.info-value a {
  color: #3b82f6;
  text-decoration: none;
}

.info-value a:hover {
  text-decoration: underline;
}

/* Notes section */
.notes-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.notes-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.notes-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.notes-content {
  padding: 0.75rem;
  background: #fffbeb;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* Reconciliation steps listview */
.reconciliation-steps {
  margin-top: 1.5rem;
}

.reconciliation-step {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.reconciliation-step-header {
  padding: 0.875rem 1rem;
  background: #f8fafc;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 1px solid #e5e7eb;
}

.reconciliation-step-content {
  padding: 1rem;
  color: #374151;
  line-height: 1.5;
}

.reconciliation-step-content a {
  color: #3b82f6;
  text-decoration: none;
}

.reconciliation-step-content a:hover {
  text-decoration: underline;
}

/* Modal button variants */
.btn-cancel-orange {
  background: #c9722c;
  color: white;
  border: none;
}

.btn-cancel-orange:hover {
  background: #a85d1f;
}

.btn-confirm-green {
  background: #9ac8b4;
  color: white;
  border: none;
}

.btn-confirm-green:hover {
  background: #7fb99d;
}

/* Checkbox styles */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0.25rem 0 0 0;
  cursor: pointer;
}

.checkbox-row label {
  font-size: 0.9375rem;
  color: #374151;
  cursor: pointer;
  margin: 0;
}

/* Conditional section (shown when checkbox checked) */
.conditional-section {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.conditional-section-note {
  font-size: 0.875rem;
  font-style: italic;
  color: #6b7280;
  margin-bottom: 1rem;
}

/* Files table in modal */
.files-table-wrap {
  margin: 1rem 0;
  max-height: 200px;
  overflow-y: auto;
}

.files-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.files-table th,
.files-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.files-table th {
  background: #f8fafc;
  font-weight: 600;
}

.files-table input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Email preview in modal */
.email-preview {
  margin: 1rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  max-height: 300px;
  overflow: auto;
}

.email-preview-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.5rem;
}

/* Modal footer buttons layout */
.modal-footer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
}

/* File action buttons in modal */
.file-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.file-action-buttons button {
  white-space: nowrap;
}

/* Document types grid (checkbox list) */
.doc-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-gap: 0.5rem;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}

.doc-type-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  margin-bottom: 0;
}

.doc-type-checkbox:hover {
  background: #f3f4f6;
}

.doc-type-checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.doc-type-checkbox span {
  flex: 1 1;
  line-height: 1.3;
}

/* Nested modal z-index handling */
.modal-overlay.nested {
  z-index: 1100;
}

.modal-overlay.nested .modal {
  z-index: 1101;
}

