.document_type_name{
    font-weight: bold;
}
.document_type_description{
    font-style: italic;
    color: gray;
}

/* Make rows in the dropdown two-lined and tidy */
.select2-results__option .doc-option {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  padding: 2px 0;
}

.select2-results__option .document_type_name {
  font-weight: 600;
}

.select2-results__option .document_type_description {
  font-size: 0.85em;
  opacity: 0.8;
}

/* Optional: tighten selected tags if multiple */
.select2-selection__choice {
  line-height: 1.2;
}

#venueSelect{
  margin-left:20px;
  margin-right:20px;
  margin-top: 20px;
}

#uploadBtn::part(base),
#requestDocument::part(base) {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#uploadBtn::part(label),
#uploadBtn sl-icon,
#requestDocument::part(label),
#requestDocument sl-icon {
  color: inherit;
}

#uploadBtn::part(base):hover,
#requestDocument::part(base):hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

#uploadBtn::part(base):active,
#requestDocument::part(base):active {
  transform: translateY(0);
}

.documents-viewSwitch{
  align-self: center;
  display: inline-flex;
  gap: 0;
  margin-right: 40px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.documents-viewSwitch sl-button::part(base){
  min-width: 52px;
  border-radius: 10px;
  border: none;
  color: #475569;
  background: transparent;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.documents-viewSwitch sl-button::part(label),
.documents-viewSwitch sl-button sl-icon{
  color: inherit;
}

.documents-viewSwitch sl-button[variant="primary"]::part(base){
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.documents-viewSwitch sl-button:not([variant="primary"])::part(base){
  color: #475569;
}

.request-document-dialog::part(panel) {
  border-radius: 14px;
  overflow: hidden;
  width: min(760px, 94vw);
}

.request-document-dialog::part(header) {
  border: 0;
  min-height: 0;
  padding: 0;
}

.request-document-dialog::part(title),
.request-document-dialog::part(close-button) {
  display: none;
}

.request-document-dialog::part(body) {
  padding: 28px 28px 0;
}

.request-document-dialog::part(footer) {
  background: rgba(248, 250, 252, 0.86);
  border-top: 1px solid #e5e7eb;
  padding: 12px 28px 16px;
}

.request-document-dialog sl-button::part(base) {
  border-radius: 5px;
  min-height: 38px;
  min-width: 96px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.request-document-dialog sl-select::part(combobox),
.request-document-dialog sl-textarea::part(base) {
  border-color: rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  box-shadow: none;
}

.request-document-dialog sl-select::part(display-input),
.request-document-dialog sl-textarea::part(textarea) {
  color: #0f172a;
  font-size: 15px;
}

.request-document-hero {
  align-items: center;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.08), rgba(193, 53, 132, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 76px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.request-document-hero-icons {
  align-items: center;
  display: flex;
}

.request-document-hero-icons span {
  align-items: center;
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 12px 26px -18px rgba(15, 23, 42, 0.65);
  color: #2563eb;
  display: inline-flex;
  font-size: 20px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.request-document-hero-icons span:last-child {
  color: #0b559f;
  margin-left: -10px;
}

.request-document-hero h3,
.request-document-card-header h4 {
  color: #1f2937;
  font-weight: 800;
  line-height: 1.16;
  margin: 0 0 4px;
}

.request-document-hero h3 {
  font-size: 24px;
}

.request-document-card-header h4 {
  font-size: 18px;
}

.request-document-hero p,
.request-document-card-header p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.request-document-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.request-document-card-header {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
}

.request-document-card-header sl-icon {
  color: #2563eb;
  font-size: 22px;
  margin-top: 2px;
}

.request-document-field {
  display: grid;
  gap: 8px;
}

.request-document-field > span {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}

.request-document-footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  width: 100%;
}

#requestDocumentDialog #document-type-select + .select2 {
  width: 100% !important;
}

#requestDocumentDialog #document-type-select + .select2 .select2-selection--single {
  border-color: rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  height: 44px;
  min-height: 44px;
}

#requestDocumentDialog #document-type-select + .select2 .select2-selection--single .select2-selection__rendered {
  color: #0f172a;
  font-size: 15px;
  line-height: 44px;
  padding-left: 12px;
}

#requestDocumentDialog #document-type-select + .select2 .select2-selection--single .select2-selection__arrow {
  height: 44px;
}

/* Consistent empty-state styling */
.empty-message {
  padding: 10px;
  text-align: center;
  color: var(--sl-color-neutral-500);
  font-style: italic;
  width: 100%;
}

/* Documents empty-state (matches other empty panels) */
.docs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 200px;
  margin: 16px;
  padding: 24px;
  border: 2px dashed var(--profile-border, #e2e2e3);
  border-radius: 12px;
  background: #fafafa;
  color: var(--sl-color-neutral-600, #6b7280);
  text-align: center;
  width: 100%;
}
.docs-empty sl-icon { font-size: 40px; color: var(--sl-color-neutral-400, #9ca3af); }
.docs-empty .msg { font-size: 14px; }

#documentsTable td.documents-action-cell {
  width: 56px;
  min-width: 56px;
  padding: 0 6px;
  vertical-align: middle;
  line-height: 1;
}

#documentsTable td.documents-action-cell .documents-row-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  line-height: 1;
}

#documentsTable td.documents-action-cell sl-icon-button::part(base) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.documents-uploadDialog {
  --width: min(860px, calc(100vw - 32px));
}

.documents-uploadDialog::part(panel) {
  border-radius: 14px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

.documents-uploadDialog::part(header) {
  align-items: center;
  min-height: 0;
  padding: 0;
}

.documents-uploadDialog::part(title) {
  display: none;
}

.documents-uploadDialog::part(close-button) {
  display: none;
}

.documents-uploadDialog::part(body) {
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  padding: 30px 30px 0;
}

.documents-uploadHero {
  align-items: center;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.08), rgba(193, 53, 132, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
  min-height: 82px;
  padding: 12px 18px;
}

.documents-uploadHero__icons {
  align-items: center;
  display: flex;
}

.documents-uploadHero__icons span {
  align-items: center;
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 12px 26px -18px rgba(15, 23, 42, 0.65);
  color: #2563eb;
  display: inline-flex;
  font-size: 18px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.documents-uploadHero__icons span:last-child {
  color: #0b4f91;
  margin-left: -10px;
}

.documents-uploadHero h3 {
  color: #1f2937;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.2;
  margin: 0 0 4px;
}

.documents-uploadHero p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.documents-uploadLayout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  margin-top: 12px;
}

.documents-uploadCard {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  min-width: 0;
  padding: 16px;
}

.documents-uploadCard--details {
  display: grid;
  gap: 12px;
}

.documents-uploadCard--assign {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.documents-uploadCard__header {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
}

.documents-uploadCard__header i {
  color: #2563eb;
  font-size: 19px;
  line-height: 1.2;
  margin-top: 1px;
}

.documents-uploadCard__header strong {
  color: #1f2937;
  display: block;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
}

.documents-uploadCard__header span {
  color: #64748b;
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.documents-uploadDialog sl-input::part(form-control-label),
.documents-uploadDialog sl-select::part(form-control-label),
.documents-uploadDialog sl-textarea::part(form-control-label) {
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.documents-uploadDialog sl-input::part(base),
.documents-uploadDialog sl-select::part(combobox),
.documents-uploadDialog sl-textarea::part(base) {
  border-radius: 10px;
}

.documents-uploadDialog sl-input::part(input),
.documents-uploadDialog sl-select::part(display-input),
.documents-uploadDialog sl-textarea::part(textarea) {
  color: #1f2937;
  font-size: 14px;
}

.documents-uploadDialog sl-textarea::part(textarea) {
  min-height: 108px;
}

.documents-uploadDialog #dialogAssignBox sl-tab-group::part(nav) {
  border-bottom-color: rgba(148, 163, 184, 0.22);
}

.documents-uploadDialog #dialogAssignBox sl-tab::part(base) {
  color: #64748b;
  min-height: 38px;
}

.documents-uploadDialog #dialogAssignBox sl-tab[active]::part(base) {
  color: #0b4f91;
}

.documents-uploadDialog #dialogAssignBox sl-tab-panel::part(base) {
  padding: 12px 0 0;
}

.documents-uploadDialog #dialogAssignBox .panel_header {
  color: #1f2937;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.2;
  margin-bottom: 10px;
}

.documents-uploadDialog #dialogAssignBox .search {
  margin-bottom: 10px;
}

.documents-uploadDialog #dialogAssignBox .list {
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
  padding: 0;
}

.documents-uploadDialog #dialogAssignBox .list li {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  color: #374151;
  font-size: 14px;
  line-height: 1.25;
  padding: 10px 2px;
}

.documents-uploadDialog #dialogAssignBox .list li:last-child {
  border-bottom: 0;
}

.documents-uploadActions {
  align-items: center;
  background: rgba(248, 250, 252, 0.8);
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 14px -30px 0;
  padding: 12px 30px 16px;
}

@media (max-width: 860px) {
  .documents-uploadDialog::part(header) {
    padding: 0;
  }

  .documents-uploadDialog::part(body) {
    padding: 20px 20px 0;
  }

  .documents-uploadLayout {
    grid-template-columns: 1fr;
  }

  .documents-uploadActions {
    margin-left: -20px;
    margin-right: -20px;
    padding: 12px 20px 16px;
  }
}

:root.sl-theme-dark #uploadBtn::part(base),
:root.sl-theme-dark #requestDocument::part(base) {
  background: #1C2530;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.6);
}

:root.sl-theme-dark #uploadBtn::part(base):hover,
:root.sl-theme-dark #requestDocument::part(base):hover {
  background: #273241;
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.7);
}

:root.sl-theme-dark .documents-viewSwitch {
  background: var(--mm-dark-surface, #0f172a);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.3);
}

:root.sl-theme-dark .documents-viewSwitch sl-button::part(base) {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .documents-viewSwitch sl-button[variant="primary"]::part(base) {
  background: #1C2530;
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.6);
}

:root.sl-theme-dark .documents-viewSwitch sl-button:not([variant="primary"])::part(base) {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .request-document-dialog::part(panel) {
  background: var(--mm-dark-surface, #0f172a);
  color: var(--mm-dark-body, #cbd5e1);
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.78);
}

:root.sl-theme-dark .request-document-dialog::part(body) {
  background: var(--mm-dark-surface, #0f172a);
}

:root.sl-theme-dark .request-document-dialog::part(footer) {
  background: var(--mm-dark-surface-2, #111827);
  border-top-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .request-document-hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(193, 53, 132, 0.14));
  border-color: rgba(125, 211, 252, 0.22);
}

:root.sl-theme-dark .request-document-hero-icons span {
  background: var(--mm-dark-surface-3, #1f2937);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 26px -18px rgba(2, 6, 23, 0.85);
  color: #7dd3fc;
}

:root.sl-theme-dark .request-document-hero-icons span:last-child {
  color: #93c5fd;
}

:root.sl-theme-dark .request-document-hero h3,
:root.sl-theme-dark .request-document-card-header h4 {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .request-document-hero p,
:root.sl-theme-dark .request-document-card-header p {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .request-document-card {
  background: var(--mm-dark-surface-2, #111827);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.3);
}

:root.sl-theme-dark .request-document-card-header sl-icon {
  color: #7dd3fc;
}

:root.sl-theme-dark .request-document-field > span,
:root.sl-theme-dark .request-document-dialog sl-select::part(form-control-label),
:root.sl-theme-dark .request-document-dialog sl-textarea::part(form-control-label) {
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .request-document-dialog sl-select::part(combobox),
:root.sl-theme-dark .request-document-dialog sl-textarea::part(base) {
  background: var(--mm-dark-surface-3, #1f2937);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .request-document-dialog sl-select::part(display-input),
:root.sl-theme-dark .request-document-dialog sl-textarea::part(textarea) {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .request-document-dialog sl-textarea::part(textarea)::placeholder {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .request-document-dialog sl-select::part(panel) {
  background: var(--mm-dark-surface-2, #111827);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark #requestDocumentDialog #document-type-select + .select2 .select2-selection--single {
  background: var(--mm-dark-surface-3, #1f2937);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark #requestDocumentDialog #document-type-select + .select2 .select2-selection__rendered {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark #requestDocumentDialog #document-type-select + .select2 .select2-selection__placeholder,
:root.sl-theme-dark #requestDocumentDialog #document-type-select + .select2 .select2-selection__arrow b {
  color: var(--mm-dark-muted, #94a3b8);
  border-top-color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark #requestDocumentDialog .select2-dropdown {
  background: var(--mm-dark-surface-2, #111827);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark #requestDocumentDialog .select2-results__option {
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark #requestDocumentDialog .select2-results__option--highlighted {
  background: rgba(59, 130, 246, 0.24);
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .documents-uploadDialog::part(panel) {
  background: var(--mm-dark-surface, #0f172a);
  color: var(--mm-dark-body, #cbd5e1);
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.78);
}

:root.sl-theme-dark .documents-uploadDialog::part(body) {
  background: var(--mm-dark-surface, #0f172a);
}

:root.sl-theme-dark .documents-uploadHero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(193, 53, 132, 0.14));
  border-color: rgba(125, 211, 252, 0.22);
}

:root.sl-theme-dark .documents-uploadHero__icons span {
  background: var(--mm-dark-surface-3, #1f2937);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 26px -18px rgba(2, 6, 23, 0.85);
  color: #7dd3fc;
}

:root.sl-theme-dark .documents-uploadHero__icons span:last-child {
  color: #93c5fd;
}

:root.sl-theme-dark .documents-uploadHero h3,
:root.sl-theme-dark .documents-uploadCard__header strong,
:root.sl-theme-dark .documents-uploadDialog #dialogAssignBox .panel_header {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .documents-uploadHero p,
:root.sl-theme-dark .documents-uploadCard__header span {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .documents-uploadCard {
  background: var(--mm-dark-surface-2, #111827);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.3);
}

:root.sl-theme-dark .documents-uploadCard__header i {
  color: #7dd3fc;
}

:root.sl-theme-dark .documents-uploadDialog sl-input::part(form-control-label),
:root.sl-theme-dark .documents-uploadDialog sl-select::part(form-control-label),
:root.sl-theme-dark .documents-uploadDialog sl-textarea::part(form-control-label) {
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .documents-uploadDialog sl-input::part(base),
:root.sl-theme-dark .documents-uploadDialog sl-select::part(combobox),
:root.sl-theme-dark .documents-uploadDialog sl-textarea::part(base) {
  background: var(--mm-dark-surface-3, #1f2937);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .documents-uploadDialog sl-input::part(input),
:root.sl-theme-dark .documents-uploadDialog sl-select::part(display-input),
:root.sl-theme-dark .documents-uploadDialog sl-textarea::part(textarea) {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .documents-uploadDialog sl-input::part(input)::placeholder,
:root.sl-theme-dark .documents-uploadDialog sl-textarea::part(textarea)::placeholder {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .documents-uploadDialog sl-select::part(panel) {
  background: var(--mm-dark-surface-2, #111827);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .documents-uploadDialog #dialogAssignBox sl-tab-group::part(nav) {
  border-bottom-color: rgba(148, 163, 184, 0.28);
}

:root.sl-theme-dark .documents-uploadDialog #dialogAssignBox sl-tab::part(base) {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .documents-uploadDialog #dialogAssignBox sl-tab[active]::part(base) {
  color: #7dd3fc;
}

:root.sl-theme-dark .documents-uploadDialog #dialogAssignBox .list li {
  border-bottom-color: rgba(148, 163, 184, 0.16);
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .documents-uploadDialog #dialogAssignBox .list li:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .documents-uploadActions {
  background: var(--mm-dark-surface-2, #111827);
  border-top-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}
