/* Override stylesheet loaded after styles.css.
   Add new responsive and page-specific styles here without modifying the legacy base file. */

/* =============================================
   FORMCENTER
   ============================================= */

.formcenter-modern-alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.formcenter-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.formcenter-header-content,
.formcenter-header-actions,
.formcenter-tabs-shell,
.formcenter-card-grid-wrap {
  min-width: 0;
}

.formcenter-header-content {
  flex: 1 1 360px;
}

.formcenter-breadcrumb {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
}

.formcenter-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.formcenter-breadcrumb a:hover,
.formcenter-breadcrumb a:focus {
  color: #1a2233;
  text-decoration: underline;
}

.formcenter-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.formcenter-title i {
  margin-right: 10px;
  color: #64748b;
  font-size: 24px;
}

.formcenter-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

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

.formcenter-header-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.formcenter-tabs-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.formcenter-tabs-mobile-select {
  display: none;
  padding: 14px 14px 14px;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf1;
}

.formcenter-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}

.formcenter-tabs-nav > li {
  min-width: 0;
}

.formcenter-tabs-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.formcenter-tab-pane {
  padding: 18px;
}

.formcenter-card-grid-wrap {
  width: 100%;
}

.formcenter-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.formcenter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  background: #f3f3f3;
  border: 1px solid silver;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.formcenter-card-pin {
  position: absolute;
  top: -12px;
  right: 4px;
  font-size: 24px;
  color: #4a4a4a;
  transform: rotate(30deg);
}

.formcenter-card-title {
  margin: 0;
  padding-right: 26px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
}

.formcenter-card-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 10px;
}

.formcenter-card-preview img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.formcenter-card-folder {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.formcenter-card-folder .formcenter-card-title {
  padding-right: 0;
}

.formcenter-card-folder .formcenter-card-actions {
  width: 100%;
  margin-top: 4px;
  justify-content: center;
}

.formcenter-card-folder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #dde3ea;
}

.formcenter-card-folder-icon i {
  font-size: 40px;
  color: #808080;
}

.formcenter-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.formcenter-card-actions .btn {
  flex: 1 1 180px;
  min-height: 38px;
}

.formcenter-card .btn.btn-info {
  color: #ffffff;
  background-color: #808080;
  border-color: #4a4a4a;
}

.formcenter-card .btn.btn-info:hover,
.formcenter-card .btn.btn-info:focus {
  color: #ffffff;
  background-color: #6f6f6f;
  border-color: #3f3f3f;
}

.formcenter-card-date {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
}

.formcenter-form-shell {
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.formcenter-form-pane {
  padding: 24px;
}

.formcenter-form-fields {
  display: grid;
  gap: 18px;
}

.formcenter-form-field {
  min-width: 0;
}

.formcenter-form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.formcenter-required {
  font-size: 10px;
  font-weight: 400;
  color: #94a3b8;
}

.formcenter-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.formcenter-form-actions .btn {
  min-height: 40px;
}

/* =============================================
   JOURNAL
   ============================================= */

.journal-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.journal-header-content,
.journal-header-actions,
.journal-table-shell,
.journal-table-wrapper {
  min-width: 0;
}

.journal-header-content {
  flex: 1 1 360px;
}

.journal-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.journal-title i {
  margin-right: 10px;
  color: #64748b;
  font-size: 24px;
}

.journal-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

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

.journal-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.journal-dropdown-menu > li > a {
  white-space: normal;
}

.journal-table-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.journal-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.journal-modern-table {
  width: 100%;
  min-width: 760px;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.journal-modern-table thead th {
  background: #f8f9fb;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e8ecf1;
  white-space: nowrap;
}

.journal-modern-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.journal-data-row:last-child td {
  border-bottom: none;
}

.journal-data-row:hover {
  background-color: #f8fbff !important;
}

.journal-td-primary {
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
}

.journal-td-data {
  white-space: normal;
}

.journal-entry-text {
  line-height: 1.6;
}

.journal-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 24px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.journal-empty-state i {
  font-size: 18px;
  color: #94a3b8;
}

/* =============================================
   TELEPHONENOTES
   ============================================= */

.telephonenotes-modern-alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.telephonenotes-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.telephonenotes-header-content,
.telephonenotes-header-actions,
.telephonenotes-tabs-shell,
.telephonenotes-tabs-content,
.telephonenotes-tab-pane {
  min-width: 0;
}

.telephonenotes-header-content {
  flex: 1 1 360px;
}

.telephonenotes-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.telephonenotes-title i {
  margin-right: 10px;
  color: #64748b;
  font-size: 24px;
}

.telephonenotes-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

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

.telephonenotes-header-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.telephonenotes-tabs-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.telephonenotes-tabs-mobile-select {
  display: none;
  padding: 14px;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf1;
}

.telephonenotes-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}

.telephonenotes-tabs-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.telephonenotes-tab-pane {
  padding: 18px;
}

.telephonenotes-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.telephonenotes-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.telephonenotes-note-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.telephonenotes-note-archived {
  background: #f8fafc;
}

.telephonenotes-note-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.telephonenotes-note-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.telephonenotes-note-date {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: #1f2937;
}

.telephonenotes-note-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.telephonenotes-status-pill {
  align-self: flex-start;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.telephonenotes-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.telephonenotes-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
}

.telephonenotes-meta-item-wide {
  grid-column: 1 / -1;
}

.telephonenotes-meta-label,
.telephonenotes-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}

.telephonenotes-meta-value {
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.telephonenotes-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.telephonenotes-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.telephonenotes-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d7e6f5;
  background: #edf5fd;
  color: #416a8f;
  font-size: 12px;
  font-weight: 600;
}

.telephonenotes-content-section {
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
}

.telephonenotes-content-text {
  color: #374151;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.telephonenotes-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.telephonenotes-card-actions .btn {
  flex: 1 1 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.telephonenotes-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e8ecf1;
}

.telephonenotes-pagination-wrap,
.telephonenotes-footer-actions {
  min-width: 0;
}

.telephonenotes-pagination ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.telephonenotes-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  background: #ffffff;
  color: #475569;
  text-decoration: none;
}

.telephonenotes-pagination a:hover,
.telephonenotes-pagination a:focus {
  border-color: #3b82c4;
  color: #285a86;
  text-decoration: none;
}

.telephonenotes-page-active a {
  border-color: #3b82c4;
  background: #3b82c4;
  color: #ffffff;
}

.telephonenotes-paging-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.telephonenotes-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  padding: 32px 24px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.telephonenotes-empty-state i {
  font-size: 18px;
  color: #94a3b8;
}

.telephonenotes-form-header {
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.telephonenotes-form-header-content {
  padding: 24px;
}

.telephonenotes-breadcrumb {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
}

.telephonenotes-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.telephonenotes-breadcrumb a:hover,
.telephonenotes-breadcrumb a:focus {
  color: #1a2233;
  text-decoration: underline;
}

.telephonenotes-form-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.telephonenotes-form-title i {
  margin-right: 10px;
  color: #64748b;
  font-size: 24px;
}

.telephonenotes-form-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.telephonenotes-form-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.telephonenotes-form-pane {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
}

.telephonenotes-form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.telephonenotes-form-section-intro {
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}

.telephonenotes-section-heading {
  margin: 0;
  font-size: 20px;
  color: #1f2937;
  line-height: 1.3;
}

.telephonenotes-section-copy {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.telephonenotes-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.telephonenotes-form-field {
  min-width: 0;
}

.telephonenotes-form-field-wide {
  grid-column: 1 / -1;
}

.telephonenotes-form-label {
  display: block;
  margin-bottom: 7px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
}

.telephonenotes-input,
.telephonenotes-textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border-color: #dbe4ee;
  box-shadow: none;
}

.telephonenotes-input:focus,
.telephonenotes-textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}

.telephonenotes-textarea {
  min-height: 220px;
  resize: vertical;
}

.telephonenotes-activity-shell {
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
}

.telephonenotes-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.telephonenotes-activity-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.telephonenotes-activity-option input {
  margin: 0;
  flex: 0 0 auto;
}

.telephonenotes-activity-option span {
  min-width: 0;
}

.telephonenotes-form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #eef2f7;
}

.telephonenotes-form-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

/* =============================================
   DIET
   ============================================= */

.diet-modern-alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.diet-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.diet-header-content,
.diet-header-actions,
.diet-tabs-shell,
.diet-tabs-content,
.diet-tab-pane {
  min-width: 0;
}

.diet-header-content {
  flex: 1 1 360px;
}

.diet-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.diet-title i {
  margin-right: 10px;
  color: #64748b;
  font-size: 24px;
}

.diet-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

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

.diet-header-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.diet-tabs-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.diet-tabs-mobile-select {
  display: none;
  padding: 14px;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf1;
}

.diet-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}

.diet-tabs-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.diet-tab-pane {
  padding: 18px;
}

.diet-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.diet-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.diet-plan-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.diet-plan-current {
  border-color: #f2b8b5;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.08);
}

.diet-plan-next {
  border-color: #f5d08a;
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.08);
}

.diet-plan-top,
.diet-plan-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.diet-plan-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #1f2937;
}

.diet-plan-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.diet-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
}

.diet-meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}

.diet-meta-value {
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.diet-status-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.diet-status-pill {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.diet-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.diet-preview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.diet-preview-card:hover,
.diet-preview-card:focus {
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  color: inherit;
  text-decoration: none;
}

.diet-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.diet-preview-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 220px;
  max-height: 320px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
}

.diet-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.diet-card-actions .btn {
  flex: 1 1 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.diet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e8ecf1;
}

.diet-pagination-wrap,
.diet-footer-actions {
  min-width: 0;
}

.diet-pagination ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diet-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  background: #ffffff;
  color: #475569;
  text-decoration: none;
}

.diet-pagination a:hover,
.diet-pagination a:focus {
  border-color: #3b82c4;
  color: #285a86;
  text-decoration: none;
}

.diet-page-active a {
  border-color: #3b82c4;
  background: #3b82c4;
  color: #ffffff;
}

.diet-paging-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.diet-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  padding: 32px 24px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.diet-empty-state i {
  font-size: 18px;
  color: #94a3b8;
}

.diet-form-header {
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.diet-form-header-content {
  padding: 24px;
}

.diet-breadcrumb {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
}

.diet-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.diet-breadcrumb a:hover,
.diet-breadcrumb a:focus {
  color: #1a2233;
  text-decoration: underline;
}

.diet-form-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.diet-form-title i {
  margin-right: 10px;
  color: #64748b;
  font-size: 24px;
}

.diet-form-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.diet-form-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.diet-form-pane {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
}

.diet-form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diet-form-section-intro {
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}

.diet-section-heading {
  margin: 0;
  font-size: 20px;
  color: #1f2937;
  line-height: 1.3;
}

.diet-section-copy {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.diet-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.diet-form-field {
  min-width: 0;
}

.diet-form-field-wide {
  grid-column: 1 / -1;
}

.diet-form-label {
  display: block;
  margin-bottom: 7px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
}

.diet-required,
.diet-current-file {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
}

.diet-input {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border-color: #dbe4ee;
  box-shadow: none;
}

.diet-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}

.diet-file-input {
  padding: 7px 12px;
}

.diet-field-help {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.diet-form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #eef2f7;
}

.diet-form-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

/* =============================================
   INVENTORY
   ============================================= */

.inventory-modern-alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.inventory-page-header,
.inventory-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.inventory-header-content,
.inventory-header-actions,
.inventory-tabs-shell,
.inventory-form-header-content,
.inventory-form-shell,
.inventory-documents-shell {
  min-width: 0;
}

.inventory-header-content,
.inventory-form-header-content {
  flex: 1 1 360px;
}

.inventory-title,
.inventory-form-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.inventory-title i,
.inventory-form-title i {
  margin-right: 10px;
  color: #64748b;
  font-size: 24px;
}

.inventory-subtitle,
.inventory-form-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

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

.inventory-header-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.inventory-tabs-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.inventory-tabs-mobile-select {
  display: none;
  padding: 14px 14px 0;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf1;
}

.inventory-tabs-mobile-select .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  box-shadow: none;
}

.inventory-tabs-nav > li {
  min-width: 0;
}

.inventory-tabs-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inventory-tabs-content {
  background: #ffffff;
}

.inventory-tab-panel {
  padding: 8px;
}

.inventar-count.round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 22px;
  padding: 0 8px;
}

.inventory-table-wrap {
  border: none;
  border-radius: 0;
}

.inventory-table {
  margin-bottom: 0;
}

.inventory-row td:first-child {
  font-weight: 600;
  color: #1f2937;
}

.inventory-zustand-badge {
  white-space: nowrap;
}

.inventory-row-actions .btn {
  min-width: 34px;
  min-height: 34px;
}

.inventory-action-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.inventory-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  background: #ffffff;
  color: #334155 !important;
  text-decoration: none !important;
}

.inventory-action-btn span {
  font-size: 12px;
  font-weight: 600;
}

.inventory-action-edit:hover,
.inventory-action-edit:focus {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #2563eb !important;
}

.inventory-select-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  vertical-align: middle;
}

.inventory-select-toggle .checkmark {
  position: static;
  margin: 0;
  flex: 0 0 auto;
}

.inventory-select-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  line-height: 1;
}

.inventory-form-breadcrumb {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
}

.inventory-form-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.inventory-form-breadcrumb a:hover,
.inventory-form-breadcrumb a:focus {
  color: #1a2233;
  text-decoration: underline;
}

.inventory-form-shell,
.inventory-documents-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.inventory-form-tabs {
  border-bottom: 1px solid #e8ecf1;
  background: #f8f9fb;
}

.inventory-form-tabs-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inventory-form-content {
  background: #ffffff;
}

.inventory-form-pane {
  padding: 24px;
}

.inventory-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.inventory-form-field {
  min-width: 0;
}

.inventory-form-field-full {
  grid-column: 1 / -1;
}

.inventory-form-label,
.inventory-form-label-static {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.inventory-form-label-static {
  margin-bottom: 2px;
}

.inventory-required {
  font-size: 10px;
  font-weight: 400;
  color: #94a3b8;
}

.inventory-field-note {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.inventory-textarea {
  min-height: 110px;
  resize: vertical;
}

.inventory-it-shell {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #edf2f7;
}

.inventory-it-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.inventory-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #dbe4ee;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
}

.inventory-switch input[type="checkbox"] {
  margin: 0;
}

.inventory-it-fields {
  margin-top: 18px;
}

.inventory-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.inventory-form-actions .btn {
  min-height: 40px;
}

.inventory-documents-shell {
  margin-top: 24px;
  padding: 20px 24px;
}

.inventory-documents-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.inventory-documents-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1a2233;
}

.inventory-documents-subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.inventory-documents-upload {
  min-height: 40px;
}

.inventory-documents-shell ul.inventory-documents-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inventory-documents-shell ul.inventory-documents-list li {
  float: none !important;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
  margin: 0;
}

.inventory-documents-shell .inventory-documents-list .bigelement.details {
  display: flex;
  flex-direction: column;
  width: 100% !important;
  max-width: 100%;
  min-height: 340px;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.inventory-documents-shell .inventory-documents-list .filename {
  display: block;
  margin: 0;
  padding: 14px 16px;
  background: #db002c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.inventory-documents-shell .inventory-documents-list .date {
  display: grid;
  gap: 10px;
  padding: 14px 16px 0;
  background: #c7c7c7;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.5;
}

.inventory-documents-shell .inventory-documents-list .date .btn {
  justify-self: start;
}

.inventory-documents-shell .inventory-documents-list .thumbnail {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin: 0;
  padding: 16px;
  background: #ffffff;
}

.inventory-documents-shell .inventory-documents-list .zoomthumb {
  width: 100%;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
}

.inventory-documents-empty {
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed #dbe4ee;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.inventory-modal-body {
  padding-top: 20px;
}

.inventory-modal-fields {
  display: grid;
  gap: 16px;
}

.inventory-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inventory-upload-intro {
  margin-bottom: 16px;
}

.inventory-upload-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.inventory-upload-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  max-width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 3px dashed #cbd5e1;
  border-radius: 16px;
  font-size: 14px;
  text-align: center;
  background: #f8fafc;
  color: #475569;
}

.inventory-upload-list {
  flex: 1 1 180px;
  min-width: 0;
}

.inventory-upload-list ul {
  min-height: 20px;
  margin: 0;
  padding-left: 18px;
 }

@media (max-width: 1100px) {
  .formcenter-page-header {
    align-items: flex-start;
  }

  .formcenter-header-actions {
    justify-content: flex-start;
  }

  .journal-page-header {
    align-items: flex-start;
  }

  .journal-header-actions {
    justify-content: flex-start;
  }

  .telephonenotes-page-header {
    align-items: flex-start;
  }

  .telephonenotes-header-actions {
    justify-content: flex-start;
  }

  .diet-page-header {
    align-items: flex-start;
  }

  .diet-header-actions {
    justify-content: flex-start;
  }

  .inventory-page-header,
  .inventory-form-header {
    align-items: flex-start;
  }

  .inventory-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .formcenter-tabs-mobile-select {
    display: block;
  }

  .formcenter-tabs-shell .nav-tabs.formcenter-tabs-nav {
    display: none !important;
  }

  .telephonenotes-tabs-mobile-select {
    display: block;
  }

  .telephonenotes-tabs-shell .nav-tabs.telephonenotes-tabs-nav {
    display: none !important;
  }

  .diet-tabs-mobile-select {
    display: block;
  }

  .diet-tabs-shell .nav-tabs.diet-tabs-nav {
    display: none !important;
  }

  .inventory-tabs-mobile-select {
    display: block;
  }

  .inventory-tabs-shell .nav-tabs.inventory-tabs-nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .formcenter-page-header {
    padding: 16px;
  }

  .formcenter-title {
    font-size: 22px;
  }

  .formcenter-subtitle {
    font-size: 13px;
  }

  .formcenter-header-actions {
    width: 100%;
  }

  .formcenter-header-actions .btn {
    flex: 1 1 100%;
  }

  .formcenter-tab-pane {
    padding: 14px;
  }

  .formcenter-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .formcenter-card {
    padding: 14px;
  }

  .formcenter-card-preview {
    min-height: 200px;
  }

  .formcenter-card-actions .btn {
    flex-basis: 100%;
  }

  .formcenter-form-pane {
    padding: 16px;
  }

  .formcenter-form-actions {
    justify-content: stretch;
  }

  .formcenter-form-actions .btn {
    width: 100%;
  }

  .journal-page-header {
    padding: 16px;
    gap: 12px;
  }

  .journal-title {
    font-size: 22px;
  }

  .journal-subtitle {
    font-size: 13px;
  }

  .journal-header-actions {
    width: 100%;
  }

  .journal-header-actions .btn-group,
  .journal-filter-btn {
    width: 100%;
  }

  .journal-table-wrapper {
    overflow: visible;
  }

  .journal-modern-table,
  .journal-modern-table tbody,
  .journal-modern-table tr,
  .journal-modern-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
  }

  .journal-modern-table {
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
  }

  .journal-modern-table thead {
    display: none;
  }

  .journal-modern-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 4px 0;
    margin: 0;
  }

  .journal-data-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    justify-self: stretch;
    margin: 0 0 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
  }

  .journal-modern-table td {
    display: grid !important;
    grid-template-columns: minmax(92px, 120px) minmax(0, 1fr);
    align-items: start;
    column-gap: 14px;
    row-gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
  }

  .journal-modern-table td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    max-width: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .journal-modern-table td:last-child {
    border-bottom: none;
  }

  .journal-td-primary {
    white-space: normal;
  }

  .journal-entry-text {
    word-break: break-word;
  }

  .journal-empty-state {
    padding: 22px 16px;
    flex-direction: column;
  }

  .telephonenotes-page-header {
    padding: 16px;
    gap: 12px;
  }

  .telephonenotes-title {
    font-size: 22px;
  }

  .telephonenotes-subtitle {
    font-size: 13px;
  }

  .telephonenotes-header-actions {
    width: 100%;
  }

  .telephonenotes-header-actions .btn {
    flex: 1 1 100%;
  }

  .telephonenotes-tab-pane {
    padding: 14px;
  }

  .telephonenotes-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .telephonenotes-note-card {
    padding: 14px;
    gap: 14px;
  }

  .telephonenotes-note-top {
    flex-direction: column;
  }

  .telephonenotes-note-date {
    font-size: 18px;
  }

  .telephonenotes-meta-list {
    grid-template-columns: 1fr;
  }

  .telephonenotes-meta-item,
  .telephonenotes-meta-item-wide {
    grid-column: auto;
  }

  .telephonenotes-card-actions .btn,
  .telephonenotes-footer-actions,
  .telephonenotes-paging-btn {
    width: 100%;
  }

  .telephonenotes-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .telephonenotes-pagination ul {
    justify-content: center;
  }

  .telephonenotes-empty-state {
    min-height: 180px;
    padding: 22px 16px;
    flex-direction: column;
  }

  .telephonenotes-form-header-content,
  .telephonenotes-form-pane {
    padding: 16px;
  }

  .telephonenotes-form-title {
    font-size: 22px;
  }

  .telephonenotes-form-subtitle,
  .telephonenotes-section-copy {
    font-size: 13px;
  }

  .telephonenotes-form-pane {
    gap: 20px;
  }

  .telephonenotes-form-grid,
  .telephonenotes-activity-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .telephonenotes-activity-shell {
    padding: 14px;
  }

  .telephonenotes-textarea {
    min-height: 180px;
  }

  .telephonenotes-form-actions {
    flex-direction: column;
  }

  .telephonenotes-form-actions .btn {
    width: 100%;
  }

  .diet-page-header {
    padding: 16px;
    gap: 12px;
  }

  .diet-title {
    font-size: 22px;
  }

  .diet-subtitle {
    font-size: 13px;
  }

  .diet-header-actions {
    width: 100%;
  }

  .diet-header-actions .btn {
    flex: 1 1 100%;
  }

  .diet-tab-pane {
    padding: 14px;
  }

  .diet-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .diet-plan-card {
    padding: 14px;
    gap: 14px;
  }

  .diet-plan-title {
    font-size: 17px;
  }

  .diet-plan-meta,
  .diet-preview-grid {
    grid-template-columns: 1fr;
  }

  .diet-preview-card img {
    min-height: 180px;
    max-height: 260px;
  }

  .diet-card-actions .btn,
  .diet-footer-actions,
  .diet-paging-btn {
    width: 100%;
  }

  .diet-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .diet-pagination ul {
    justify-content: center;
  }

  .diet-empty-state {
    min-height: 180px;
    padding: 22px 16px;
    flex-direction: column;
  }

  .diet-form-header-content,
  .diet-form-pane {
    padding: 16px;
  }

  .diet-form-title {
    font-size: 22px;
  }

  .diet-form-subtitle,
  .diet-section-copy,
  .diet-field-help {
    font-size: 13px;
  }

  .diet-form-pane {
    gap: 20px;
  }

  .diet-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .diet-form-actions {
    flex-direction: column;
  }

  .diet-form-actions .btn {
    width: 100%;
  }

  .inventory-page-header,
  .inventory-form-header {
    padding: 16px;
    gap: 12px;
  }

  .inventory-title,
  .inventory-form-title {
    font-size: 22px;
  }

  .inventory-subtitle,
  .inventory-form-subtitle {
    font-size: 13px;
  }

  .inventory-header-actions {
    width: 100%;
  }

  .inventory-header-actions .btn {
    flex: 1 1 100%;
  }

  .inventory-tab-panel {
    padding: 0;
  }

  .inventory-table-wrap {
    overflow: visible;
  }

  .inventory-table,
  .inventory-table tbody,
  .inventory-table tr,
  .inventory-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
  }

  .inventory-table {
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
  }

  .inventory-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 4px 0;
    margin: 0;
  }

  table.inventory-table tbody tr.inventory-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    justify-self: stretch;
    margin: 0 0 14px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 14px;
    box-sizing: border-box;
  }

  table.inventory-table tbody tr.inventory-row td {
    display: grid !important;
    grid-template-columns: minmax(104px, 120px) minmax(0, 1fr);
    align-items: start;
    column-gap: 14px;
    row-gap: 4px;
    padding: 8px 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  table.inventory-table tbody tr.inventory-row td::before {
    display: block;
    width: 100%;
    max-width: none;
  }

  td.inventory-row-actions {
    padding-top: 10px !important;
    justify-content: flex-start;
    gap: 10px;
  }

  td.inventory-row-actions::before {
    display: none;
  }

  .inventory-action-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .inventory-action-btn,
  .inventory-select-toggle {
    width: 100%;
    justify-content: center;
  }

  .inventory-select-toggle {
    padding: 10px 12px;
  }

  .inventory-form-pane {
    padding: 16px;
  }

  .inventory-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .inventory-it-shell {
    margin-top: 20px;
    padding-top: 20px;
  }

  .inventory-it-toggle {
    align-items: stretch;
  }

  .inventory-switch {
    width: 100%;
    justify-content: center;
  }

  .inventory-form-actions {
    flex-direction: column;
  }

  .inventory-form-actions .btn {
    width: 100%;
  }

  .inventory-documents-shell {
    padding: 16px;
  }

  .inventory-documents-title {
    font-size: 20px;
  }

  .inventory-documents-upload {
    width: 100%;
  }

  .inventory-documents-shell ul.inventory-documents-list {
    grid-template-columns: 1fr;
  }

  .inventory-documents-shell .inventory-documents-list .bigelement.details {
    min-height: 0;
  }

  .inventory-documents-shell .inventory-documents-list .date {
    grid-template-columns: 1fr;
  }

  .inventory-documents-shell .inventory-documents-list .date .btn {
    width: 100%;
    justify-self: stretch;
  }

  .inventory-documents-shell .inventory-documents-list .thumbnail {
    min-height: 140px;
    padding: 12px;
  }

  .inventory-modal-footer .btn {
    width: 100%;
  }

  .inventory-upload-layout {
    flex-direction: column;
  }

  .inventory-upload-dropzone {
    width: 100%;
  }
}

/* =============================================
   EMAILS OVERVIEW
   ============================================= */

.emails-tabs-mobile-select {
  display: none;
}

.emails-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.emails-td-id,
.emails-td-subject {
  font-weight: 600;
}

.emails-td-subject,
.emails-td-data {
  word-break: break-word;
}

.emails-td-tags .label,
.emails-td-data .label {
  margin-bottom: 4px;
}

.emails-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.emails-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
}

.emails-checkbox-label input {
  margin: 0;
}

.emails-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.emails-status-select {
  width: 350px;
  max-width: 100%;
}

.emails-save-btn {
  min-width: 200px;
}

@media (max-width: 900px) {
  .emails-tabs-mobile-select {
    display: block;
    margin-bottom: 12px;
  }

  .emails-tabs-mobile-select .form-control {
    height: 42px;
    border-radius: 10px;
  }

  .emails-tabs-shell .nav-tabs.emails-tabs-nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .emails-overview-header,
  .emails-overview-header > tbody,
  .emails-overview-header > tbody > tr,
  .emails-overview-header > tbody > tr > th {
    display: block;
    width: 100%;
  }

  .emails-overview-header > tbody > tr > th {
    padding: 0 0 14px;
  }

  .emails-overview-title {
    font-size: 26px;
  }

  .emails-filter-panel {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  }

  .emails-filter-name {
    display: block;
    margin: 0 0 10px;
  }

  .emails-filter-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    float: none !important;
    margin: 0;
    padding: 0;
  }

  .emails-filter-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  .emails-filter-item-label {
    width: auto;
    flex: 0 0 100%;
  }

  .emails-filter-item .btn {
    margin: 0;
  }

  .emails-filter-state {
    min-width: 0;
    width: 100%;
  }

  .emails-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0 !important;
    gap: 8px;
  }

  .emails-header-actions .btn {
    width: 100%;
  }

  .emails-tabs-shell {
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    background: #ffffff;
    overflow: hidden;
  }

  .emails-tabs-mobile-select {
    display: block;
    padding: 14px 14px 0;
    padding-bottom: 14px;
    background: #f8f9fb;
    border-bottom: 1px solid #e8ecf1;
  }

  .emails-tabs-shell .nav-tabs.emails-tabs-nav {
    display: none !important;
  }

  .emails-tab-pane {
    padding: 14px;
  }

  .emails-table-wrapper {
    overflow: visible;
  }

  .emails-modern-table,
  .emails-modern-table tbody,
  .emails-modern-table tr,
  .emails-modern-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
  }

  .emails-modern-table {
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
  }

  .emails-modern-table thead {
    display: none;
  }

  .emails-modern-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 4px 0;
    margin: 0;
  }

  .emails-data-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    justify-self: stretch;
    margin: 0 0 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
  }

  .emails-modern-table td {
    display: grid !important;
    grid-template-columns: minmax(92px, 120px) minmax(0, 1fr);
    align-items: start;
    column-gap: 14px;
    row-gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
  }

  .emails-modern-table tr.small td {
    font-size: 13px;
    line-height: 1.4;
    padding: 10px 0;
  }

  .emails-modern-table td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    max-width: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .emails-modern-table td:last-child {
    border-bottom: none;
  }

  .emails-td-actions,
  .emails-td-select {
    align-items: center;
  }

  .emails-row-actions {
    justify-content: flex-start;
  }

  .emails-row-actions .btn {
    min-width: 90px;
  }

  .emails-checkbox-label {
    justify-content: flex-start;
  }

  .emails-bulk-actions {
    justify-content: stretch;
    margin-top: 14px;
  }

  .emails-status-select,
  .emails-save-btn {
    width: 100%;
  }
}

/* =============================================
   FILEMANAGER OVERVIEW
   ============================================= */

.filemanager-page .filemanager-header-title {
  margin: 0;
}

.filemanager-page .filemanager-section-title {
  margin-top: 0;
  margin-bottom: 18px;
}

.filemanager-page .filemanager-thumbnail-image {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .filemanager-page .filemanager-header-table,
  .filemanager-page .filemanager-header-table > tbody,
  .filemanager-page .filemanager-header-table > tbody > tr,
  .filemanager-page .filemanager-header-table > tbody > tr > th {
    display: block;
    width: 100%;
  }

  .filemanager-page .filemanager-header-table > tbody > tr > th {
    padding: 0 0 14px;
  }

  .filemanager-page .filemanager-header-actions {
    display: block;
    width: 100%;
    margin: 0 !important;
  }

  .filemanager-page .filemanager-header-actions .btn {
    width: 100%;
  }

  .filemanager-page ul.filemanagerlist {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 0;
    margin: 0;
  }

  .filemanager-page ul.filemanagerlist li.filemanager-list-item {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .filemanager-page div.bigelement {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100px;
    box-sizing: border-box;
  }

  .filemanager-page div.bigelement.year,
  .filemanager-page div.bigelement.month {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    line-height: 1.25;
    padding: 18px;
    font-size: 28px;
    text-align: center;
  }

  .filemanager-page div.bigelement.details {
    height: auto !important;
    min-height: 0;
    overflow: hidden;
  }

  .filemanager-page .filemanager-filename {
    padding: 12px;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
  }

  .filemanager-page .filemanager-date {
    display: block;
    margin: -4px -4px 0;
    padding: 10px 12px;
    line-height: 1.5;
  }

  .filemanager-page .filemanager-date form.downloadform {
    display: block;
    float: none !important;
    margin: 10px 0 0;
  }

  .filemanager-page .filemanager-date form.downloadform .btn {
    width: 100%;
    height: auto !important;
    min-height: 34px;
    line-height: 1.4;
    margin-top: 0;
  }

  .filemanager-page .filemanager-thumbnail {
    display: block;
    padding: 12px 0 0;
  }

  .filemanager-page .filemanager-thumbnail-image {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
}

/* =============================================
   FILEMANAGER ADD
   ============================================= */

.filemanager-add-page .filemanager-add-header-title {
  margin: 0;
}

.filemanager-add-page .filemanager-add-help {
  margin: 18px 0 0;
}

.filemanager-add-page .filemanager-add-actions {
  margin-top: 16px;
}

@media (max-width: 767px) {
  .filemanager-add-page .filemanager-add-header-table,
  .filemanager-add-page .filemanager-add-header-table > tbody,
  .filemanager-add-page .filemanager-add-header-table > tbody > tr,
  .filemanager-add-page .filemanager-add-header-table > tbody > tr > th {
    display: block;
    width: 100%;
  }

  .filemanager-add-page .filemanager-add-header-table > tbody > tr > th {
    padding: 0 0 14px;
  }

  .filemanager-add-page .filemanager-add-header-title {
    line-height: 1.35;
  }

  .filemanager-add-page .filemanager-add-shell {
    overflow: hidden;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  }

  .filemanager-add-page .filemanager-add-tabs {
    margin-bottom: 0;
  }

  .filemanager-add-page .filemanager-add-pane {
    padding: 16px;
  }

  .filemanager-add-page .filemanager-add-fields {
    padding: 0;
    margin: 0;
  }

  .filemanager-add-page .filemanager-add-field {
    width: 100%;
  }

  .filemanager-add-page .filemanager-add-label {
    display: block;
    margin-bottom: 8px !important;
  }

  .filemanager-add-page .filemanager-add-actions {
    margin-top: 18px;
  }

  .filemanager-add-page .filemanager-add-save {
    float: none !important;
    display: block;
    width: 100%;
  }
}

/* =============================================
   LECTURER OVERVIEW
   ============================================= */

.lecturer-page .lecturer-title {
  margin: 0;
}

.lecturer-page .lecturer-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.lecturer-page .lecturer-modern-table {
  margin-bottom: 0;
}

.lecturer-page .lecturer-pagination-bar {
  margin-top: 16px;
}

.lecturer-page .lecturer-pagination {
  float: none !important;
}

@media (max-width: 767px) {
  .lecturer-page .lecturer-header-table,
  .lecturer-page .lecturer-header-table > tbody,
  .lecturer-page .lecturer-header-table > tbody > tr,
  .lecturer-page .lecturer-header-table > tbody > tr > th {
    display: block;
    width: 100%;
  }

  .lecturer-page .lecturer-header-table > tbody > tr > th {
    padding: 0 0 14px;
  }

  .lecturer-page .lecturer-select {
    width: 100% !important;
    max-width: 100%;
    font-size: 16px !important;
  }

  .lecturer-page .lecturer-tabs-shell {
    overflow: hidden;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  }

  .lecturer-page .lecturer-tabs-nav {
    margin-bottom: 0;
  }

  .lecturer-page .lecturer-tabs-nav > li {
    float: none;
  }

  .lecturer-page .lecturer-tabs-nav > li > a {
    margin-right: 0;
    border-radius: 0;
  }

  .lecturer-page .lecturer-tab-pane {
    padding: 14px;
  }

  .lecturer-page .lecturer-table-wrapper {
    overflow: visible;
  }

  .lecturer-page .lecturer-modern-table,
  .lecturer-page .lecturer-modern-table tbody,
  .lecturer-page .lecturer-modern-table tr,
  .lecturer-page .lecturer-modern-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
  }

  .lecturer-page .lecturer-modern-table {
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
  }

  .lecturer-page .lecturer-modern-table thead {
    display: none;
  }

  .lecturer-page .lecturer-modern-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 4px 0;
    margin: 0;
  }

  .lecturer-page .lecturer-data-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    justify-self: stretch;
    margin: 0 0 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
  }

  .lecturer-page .lecturer-modern-table td {
    display: grid !important;
    grid-template-columns: minmax(98px, 120px) minmax(0, 1fr);
    align-items: start;
    column-gap: 14px;
    row-gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
    word-break: break-word;
  }

  .lecturer-page .lecturer-modern-table td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .lecturer-page .lecturer-modern-table td:last-child {
    border-bottom: none;
  }

  .lecturer-page .lecturer-pagination-bar {
    margin-top: 10px;
  }

  .lecturer-page .lecturer-pagination {
    width: 100%;
    margin: 0;
  }

  .lecturer-page .lecturer-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .lecturer-page .lecturer-pagination ul > li {
    display: inline-flex;
    float: none;
  }
}

/* =============================================
   SETTINGS OVERVIEW
   ============================================= */

.settings-page .settings-title {
  margin: 0;
}

.settings-page .settings-table-wrapper {
  width: 100%;
}

.settings-page .settings-modern-table {
  margin-bottom: 0;
}

.settings-page .settings-actions-toggle {
  display: none;
}

@media (max-width: 767px) {
  .settings-page .settings-header-table,
  .settings-page .settings-header-table > tbody,
  .settings-page .settings-header-table > tbody > tr,
  .settings-page .settings-header-table > tbody > tr > th {
    display: block;
    width: 100%;
  }

  .settings-page .settings-header-table > tbody > tr > th {
    padding: 0 0 14px;
  }

  .settings-page .settings-header-actions {
    display: block;
    width: 100%;
    margin: 0 !important;
    margin-left: 0 !important;
  }

  .settings-page .settings-header-actions .btn {
    width: 100%;
  }

  .settings-page .settings-tabs-shell {
    overflow: hidden;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  }

  .settings-page .settings-tabs-nav {
    margin-bottom: 0;
  }

  .settings-page .settings-tabs-nav > li {
    float: none;
  }

  .settings-page .settings-tabs-nav > li > a {
    margin-right: 0;
    border-radius: 0;
  }

  .settings-page .settings-tab-pane {
    padding: 14px;
  }

  .settings-page .settings-table-wrapper {
    overflow: visible;
  }

  .settings-page .settings-modern-table,
  .settings-page .settings-modern-table tbody,
  .settings-page .settings-modern-table tr,
  .settings-page .settings-modern-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    float: none !important;
  }

  .settings-page .settings-modern-table {
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
  }

  .settings-page .settings-modern-table thead {
    display: none;
  }

  .settings-page .settings-modern-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 4px 0;
    margin: 0;
  }

  .settings-page .settings-data-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    justify-self: stretch;
    margin: 0 0 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
  }

  .settings-page .settings-modern-table td {
    display: block !important;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .settings-page .table-responsive.settings-table-wrapper > .settings-modern-table > thead > tr > th,
  .settings-page .table-responsive.settings-table-wrapper > .settings-modern-table > tbody > tr > th,
  .settings-page .table-responsive.settings-table-wrapper > .settings-modern-table > tfoot > tr > th,
  .settings-page .table-responsive.settings-table-wrapper > .settings-modern-table > thead > tr > td,
  .settings-page .table-responsive.settings-table-wrapper > .settings-modern-table > tbody > tr > td,
  .settings-page .table-responsive.settings-table-wrapper > .settings-modern-table > tfoot > tr > td {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .settings-page .settings-modern-table td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.4;
  }

  .settings-page .settings-modern-table td:last-child {
    border-bottom: none;
  }

  .settings-page .settings-actions-cell {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
    border-bottom: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  .settings-page .settings-actions-cell::before {
    display: none;
  }

  .settings-page .settings-actions-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px !important;
    border: 1px solid #dbe4ee !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 0 auto;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    align-self: flex-end;
  }

  .settings-page .settings-actions-group {
    display: none;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
    float: none !important;
    padding: 10px 0 0;
    border-top: 1px solid #f1f5f9;
    box-sizing: border-box;
  }

  .settings-page .settings-data-row.settings-actions-open .settings-actions-group {
    display: flex;
  }

  .settings-page .settings-data-row.settings-actions-open .settings-actions-toggle {
    background: #eef5ff !important;
    border-color: #bfd7f2 !important;
  }

  .settings-page .settings-actions-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 36px;
    font-size: 14px;
  }
}

/* =============================================
   SETTINGS FORM
   ============================================= */

.settings-form-page .settings-form-title {
  margin: 0;
}

.settings-form-page .settings-form-actions {
  margin-top: 16px;
}

@media (max-width: 767px) {
  .settings-form-page .settings-form-header-table,
  .settings-form-page .settings-form-header-table > tbody,
  .settings-form-page .settings-form-header-table > tbody > tr,
  .settings-form-page .settings-form-header-table > tbody > tr > th {
    display: block;
    width: 100%;
  }

  .settings-form-page .settings-form-header-table > tbody > tr > th {
    padding: 0 0 14px;
  }

  .settings-form-page .settings-form-tabs {
    overflow: hidden;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  }

  .settings-form-page .settings-form-tabs-nav {
    margin-bottom: 0;
  }

  .settings-form-page .settings-form-tabs-nav > li {
    float: none;
  }

  .settings-form-page .settings-form-tabs-nav > li > a {
    margin-right: 0;
    border-radius: 0;
  }

  .settings-form-page .settings-form-pane {
    padding: 16px;
  }

  .settings-form-page .settings-form-fields {
    margin: 0;
    padding: 0;
  }

  .settings-form-page .settings-form-field {
    width: 100%;
    margin-bottom: 12px;
  }

  .settings-form-page .settings-form-label {
    display: block;
    margin-bottom: 8px !important;
  }

  .settings-form-page .settings-form-save {
    float: none !important;
    display: block;
    width: 100%;
  }
}
