@import url("../vendor/flatpickr/flatpickr.min.css");
@import url("./tokens.css?v=20260619-button-colors");
@import url("./components.css?v=20260814-export-button-hover");

* {
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--color-black-800);
  background: var(--color-black-50);
}

body {
  min-height: 100vh;
  margin: 0;
}

html,
body,
.crm-main,
.crm-content,
.crm-sidebar,
.crm-sidebar-scroll,
.crm-sidebar-footer,
.ui-tabs,
.d360-step-items,
.d360-table-scroll,
.d360-filter-check-list,
.ui-dropdown-menu,
.dataTables_scrollBody {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.crm-main::-webkit-scrollbar,
.crm-content::-webkit-scrollbar,
.crm-sidebar::-webkit-scrollbar,
.crm-sidebar-scroll::-webkit-scrollbar,
.crm-sidebar-footer::-webkit-scrollbar,
.ui-tabs::-webkit-scrollbar,
.d360-step-items::-webkit-scrollbar,
.d360-table-scroll::-webkit-scrollbar,
.d360-filter-check-list::-webkit-scrollbar,
.ui-dropdown-menu::-webkit-scrollbar,
.dataTables_scrollBody::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.d360-table-scroll,
.dt-scroll-body,
.dt-container .dt-scroll-body,
.dataTables_scrollBody {
  -ms-overflow-style: auto;
  overflow-x: auto !important;
  scrollbar-color: rgba(100, 116, 139, 0.55) transparent;
  scrollbar-width: thin;
}

.d360-table-scroll::-webkit-scrollbar,
.dt-scroll-body::-webkit-scrollbar,
.dt-container .dt-scroll-body::-webkit-scrollbar,
.dataTables_scrollBody::-webkit-scrollbar {
  display: block;
  height: 8px;
  width: 8px;
}

.d360-table-scroll::-webkit-scrollbar-track,
.dt-scroll-body::-webkit-scrollbar-track,
.dt-container .dt-scroll-body::-webkit-scrollbar-track,
.dataTables_scrollBody::-webkit-scrollbar-track {
  background: transparent;
}

.d360-table-scroll::-webkit-scrollbar-thumb,
.dt-scroll-body::-webkit-scrollbar-thumb,
.dt-container .dt-scroll-body::-webkit-scrollbar-thumb,
.dataTables_scrollBody::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.55);
  border-radius: 999px;
}

.d360-table-scroll .crm-data-table,
.d360-table-scroll table.dataTable,
.dt-scroll-body table,
.dt-container .dt-scroll-body table,
.dataTables_scrollBody table {
  min-width: 100%;
  width: max-content !important;
}

.material-symbols-rounded {
  direction: ltr;
  display: inline-block;
  font-family: var(--icon-font);
  font-feature-settings: "liga";
  font-size: 1.25rem;
  font-style: normal;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--color-black-50), var(--color-blue-400));
}

.app-sidebar {
  background: var(--color-black-900);
  color: var(--color-black-0);
}

.app-nav-link {
  align-items: center;
  border-radius: var(--radius-md);
  color: var(--color-black-300);
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
}

.app-nav-link:hover,
.app-nav-link.is-active {
  background: rgb(255 255 255 / 0.1);
  color: var(--color-black-0);
}

.crm-logo-full {
  display: block;
  height: 2.75rem;
  max-width: 11rem;
  object-fit: contain;
  width: auto;
}

.crm-logo-mini {
  display: none;
  height: 2.25rem;
  object-fit: contain;
  width: auto;
}

.crm-layout.is-collapsed .crm-logo-full {
  display: none;
}

.crm-layout.is-collapsed .crm-logo-mini {
  display: block;
}

.d360-line-clamp {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  max-width: 42rem;
  overflow: hidden;
}

.draft-message-form-page {
  min-height: calc(100vh - 6rem);
}

.draft-message-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: calc(100vh - 8rem);
}

.draft-message-card {
  flex: 1;
}

.draft-message-grid {
  align-content: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(16rem, 1fr) minmax(14rem, 1fr);
}

.draft-message-type-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.draft-message-field-label {
  color: var(--color-black-900);
  font-size: 0.875rem;
  font-weight: 600;
}

.draft-message-content-field {
  grid-column: 1 / -1;
}

.draft-message-textarea {
  min-height: 16rem;
  resize: vertical;
}

.draft-message-counter {
  color: var(--color-black-500);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  text-align: right;
}

.draft-message-counter.is-over-limit {
  color: var(--color-red-300);
}

.draft-message-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .draft-message-grid {
    grid-template-columns: 1fr;
  }

  .draft-message-actions {
    justify-content: stretch;
  }

  .draft-message-actions .ui-btn {
    flex: 1;
  }
}

.definitions-education-form {
  display: block;
  padding: 1.5rem;
}

.definitions-form-section {
  border: 1px solid var(--color-black-100);
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
}

.definitions-form-section h2 {
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.definitions-education-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.definitions-education-grid .definitions-form-section {
  align-content: start;
  margin-bottom: 0;
}

.definitions-empty-state {
  color: #64748b;
  font-size: 0.95rem;
  padding: 1.5rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .definitions-education-grid {
    grid-template-columns: 1fr;
  }
}
.sponsor-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
