
/* Root variables for dynamic scaling */
:root {
  --dropdown-height-scale: 1;
  --font-scale: 0.9;
  --height-scale: 1;
  --max-label-width: 100px;
  --max-label-width-member-form: 140px;
}

/* Animation for spinner rotation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Alphabetical CSS Rules */
#calendar {
  box-sizing: border-box;
  margin: 0 0 0 1.6%;
  max-width: 1920px;
  width: 97%;
}

#calendarTab {
  padding: 0;
  width: 100%;
}

#calendarTab .subcat-link {
  color: #3a87ad;
  padding-right: 16px;
  position: relative;
  text-decoration: underline;
  text-wrap-mode: nowrap;
}

#calendarTab .subcat-link::after {
  color: #235d7a;
  content: '\f35d';
  font-family: 'Font Awesome 6 Free', serif;
  font-size: 10px;
  font-weight: 900;
  position: absolute;
  right: 0;
  text-decoration: none;
  top: 50%;
  transform: translateY(-50%);
}

#calendarTab .subcat-link:hover {
  color: #235d7a;
  text-decoration: underline;
}

#clear-search,
#history-clear-search {
  color: #666;
  cursor: pointer;
  display: none;
  font-size: 20px;
  line-height: 1;
  padding: 0 5px;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

#detail-modal .form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: calc(10px * var(--height-scale));
}

#detail-modal .form-row .ts-wrapper {
  flex: 1;
}

#detail-modal .form-row label {
  font-size: calc(14px * var(--font-scale));
  flex-shrink: 0;
  margin-right: 10px;
  overflow: visible;
  text-align: right;
  white-space: nowrap;
  width: var(--max-label-width, 100px);
}

#detail-modal .modal-content {
  max-height: 90vh;
  max-width: 600px;
  overflow-y: auto;
  font-size: calc(10px * var(--font-scale));
}

#export-history-button {
  background-color: #64AD647B;
}

#export-history-button:hover {
  background-color: #64AD64BE;
}

#export-members-button {
  background-color: #64AD647B;
  height: 45px;
  width: 162px;
}

#export-members-button:hover {
  background-color: #64AD64BE;
}

#export-pdf-button {
  background-color: #e26b6b5c;
  margin-left: auto;
}

#export-pdf-button:hover {
  background-color: #E26B6BCB;
  margin-left: auto;
}

#filter-no-role.active {
  background-color: #d3d3d3;
}

#filter-search-clear {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 16px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

#filter-search-clear:hover {
  color: #333;
}

#filter-search-input {
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  padding: 8px 30px 8px 10px;
  width: 100%;
}

#filter-search-input:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.3);
  outline: none;
}

#generate-hebrew-date {
  margin-bottom: 6px;
}

#haftara-group {
  align-items: center;
}

#haftara-group.hidden {
  display: none !important;
}

#header-logo {
  height: 50px;
  margin-bottom: -10px;
  margin-right: 15px;
  opacity: 0.8;
  width: auto;
}

#history-management {
  margin: 20px 0;
  overflow-x: auto; /* Enable horizontal scrollbar */
  width: 100%;
}

#history-management > div:nth-child(1) {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#history-management > div:nth-child(2) {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

#history-menu-actions input[type="checkbox"] {
  height: 16px;
  margin-right: 5px;
  width: 16px;
}

#history-menu-actions label {
  align-items: center;
  background-color: #f1f1f1;
  border-radius: 5px;
  display: flex;
  font-size: 14px;
  padding: 8px 12px;
  white-space: nowrap;
}

#history-menu-actions label span {
  font-weight: bold;
  margin-right: 5px;
}

#history-menu-actions select {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  height: 34px;
  padding: 6px 10px;
}

#history-search {
  box-sizing: border-box;
  height: 38px;
  padding-right: 25px;
  width: 200px;
}

#HistorySearch {
  display: inline-block;
  margin: 0 10px 0 0;
  position: relative;
}

#history-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1200px; /* Ensure table is wide enough to match #member-table proportions */
}

#history-table td,
#history-table th {
  border: 1px solid #ddd;
  padding: 7px;
  text-align: left;
}

#history-table th {
  background-color: #f1f1f1;
  cursor: pointer;
}

#history-table th:hover {
  background-color: #ddd;
}

#import-feedback-modal #import-feedback-content {
  font-size: 14px;
  line-height: 1.5;
  max-height: 60vh;
  overflow-y: auto;
  padding: 10px;
}

#import-feedback-modal .modal-actions {
  justify-content: center;
  margin-top: 20px;
}

#import-feedback-modal .modal-content {
  max-width: 600px;
  padding: 20px;
}

#import-feedback-modal h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

#import-members-button {
  background-color: #64AD647B;
  height: 45px;
  width: 162px;
}

#import-members-button:hover {
  background-color: #64AD64BE;
}

#loading-spinner {
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2000;
}

#member-date-naissance {
  /* Width is controlled by flex: 1 in #member-form-modal .form-row input */
}

#member-form-modal .form-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: calc(8px * var(--height-scale));
}

#member-form-modal .form-row .hebrew-date-editor {
  align-items: center;
  display: flex;
  flex-grow: 1;
  gap: 4px;
}

#member-form-modal .form-row .hebrew-date-editor input,
#member-form-modal .form-row .hebrew-date-editor select {
  flex: 1;
  font-size: calc(14px * var(--font-scale));
  min-width: 0;
  padding: calc(4px * var(--height-scale));
}

#member-form-modal .form-row button {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  font-size: calc(12px * var(--font-scale));
  justify-content: center;
  margin-left: 4px;
}

#member-form-modal .form-row input,
#member-form-modal .form-row select,
#member-form-modal .form-row textarea {
  flex: 1;
  font-size: calc(14px * var(--font-scale));
  margin: 0;
  padding: calc(4px * var(--height-scale));
}

#member-form-modal .form-row label {
  flex-shrink: 0;
  font-size: calc(14px * var(--font-scale));
  margin-right: 8px;
  overflow: visible;
  text-align: left;
  white-space: nowrap;
  width: var(--max-label-width-member-form, 140px);
}

#member-form-modal .form-submit {
  justify-content: flex-start;
  margin-top: calc(10px * var(--height-scale));
}

#member-form-modal .modal-content {
  max-height: 90vh;
  max-width: 600px;
  overflow-y: auto;
  padding: calc(10px * var(--height-scale));
}

#member-management {
  margin: 20px 0;
  overflow-x: auto; /* Enable horizontal scrollbar */
  width: 100%;
}

#member-management input[type="checkbox"] {
  margin-right: 5px;
}

#member-management input[type="file"],
#history-management input[type="file"] {
  font-size: 14px;
  padding: 8px;
}

#member-management label {
  align-items: center;
  display: flex;
  font-size: 14px;
}

#member-menu-actions input[type="checkbox"] {
  height: 16px;
  margin-right: 5px;
  width: 16px;
}

#member-menu-actions label {
  align-items: center;
  background-color: #f1f1f1;
  border-radius: 5px;
  display: flex;
  font-size: 14px;
  padding: 8px 12px;
  white-space: nowrap;
}

#member-menu-actions label span {
  font-weight: bold;
  margin-right: 5px;
}

#member-menu-actions select {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  height: 34px;
  padding: 6px 10px;
}

#member-search {
  box-sizing: border-box;
  height: 38px;
  padding-right: 25px;
  width: 200px;
}

#member-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1200px; /* Ensure table is wide enough to require horizontal scrolling */
}

#member-table td {
  border: 1px solid #ddd;
  padding: 0 10px;
  vertical-align: middle;
}

#member-table td:nth-child(6),
#member-table th:nth-child(6) {
  min-width: 260px;
  padding: 8px;
}

#member-table th {
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  font-weight: bold;
  overflow: hidden;
  padding: 8px;
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

#member-table th:hover {
  background-color: #ddd;
}

#member-table th .sort-icon {
  display: inline-block;
  text-align: center;
  width: 10px;
}

#member-table th:nth-child(11),
#member-table td:nth-child(11) {
  padding: 8px;
  word-break: break-all;
}

#member-table th:nth-child(13),
#member-table td:nth-child(13) {
  min-width: 100px;
  padding: 8px;
}

#member-table th:nth-child(14),
#member-table td:nth-child(14) {
  min-width: 231px;
  width: 231px;
}

#member-table tr {
  line-height: 1;
}

#month-navigation {
  align-items: center;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  z-index: 800;
}

#month-navigation .pagination {
  justify-content: center;
  margin: 0;
}

#new-member-button {
  background-color: #3A87ADA0;
  height: 45px;
  width: 100px;
}

#new-member-button:hover {
  color: #3a87ad;
}

.action-buttons {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: center;
  margin: 0 auto;
  max-width: 225px;
  width: 100%;
}

.action-buttons button {
  width: 100px;
}

.aliyot-list {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #444;
  display: block;
  font-size: 10px;
  line-height: 1.4;
  margin: 5px 0;
  padding: 5px;
  position: relative;
  text-align: left;
  word-wrap: break-word;
}

.aliyot-list a {
  color: #3a87ad;
  text-decoration: underline;
}

.aliyot-list a:hover {
  color: #235d7a;
}

.aliyot-list div {
  font-size: calc(10px * var(--font-scale));
  line-height: 1.4;
  margin-bottom: 2px;
}

.aliyot-list div strong {
  font-weight: bold;
}

.aliyot-list .fast-end,
.aliyot-list .fast-start,
.aliyot-list .shabbat-entry,
.aliyot-list .shabbat-exit,
.aliyot-list .yom-tov-entry,
.aliyot-list .yom-tov-exit {
  color: #3a87ad;
}

.aliyot-list .role-aliyot,
.aliyot-list .role-haftara,
.aliyot-list .role-hagbaa {
  color: #000000;
}

.aliyot-list .role-aliyot-subs {
  color: #006400;
  font-style: italic;
}

.aliyot-list .role-hagbaa-subs {
  color: #2f4f4f;
  font-style: italic;
}

.aliyot-list .role-ouv-aaron {
  color: #000000;
}

.aliyot-list .role-ouv-aaron-subs {
  color: #4b0082;
  font-style: italic;
}

.aliyot-list .role-sefer-sheni {
  color: #8B4513;
}

.aliyot-list-header {
  position: absolute;
  right: 5px;
  top: 5px;
  z-index: 10;
}

.bg-sunset\/10 {
  background-color: rgba(255, 102, 0, 0.1);
}

.birthday-icon {
  color: #ff6f61;
  font-size: 12px;
  margin-left: 1px;
  margin-right: 3px;
  vertical-align: middle;
}

.break-words {
  word-break: break-word;
}

.btn {
  background-color: #3a87ad;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 6px;
  padding: 8px 12px;
}

.btn i {
  font-size: 16px;
}

.btn:hover {
  background-color: #326d8f;
}

.candle-holder-icon {
  height: 16px;
  margin-left: 1px;
  margin-right: 3px;
  vertical-align: middle;
  width: 16px;
}

.candles-event {
  color: #c1a534;
  margin: 5px 0;
}

.close-modal {
  color: #333;
  cursor: pointer;
  font-size: 24px;
  position: absolute;
  right: 10px;
  top: 10px;
}

.close-modal:hover {
  color: #ff0000;
}

.dark\:bg-dawn\/10 {
  background-color: rgba(255, 245, 235, 0.1);
}

.dark\:text-dawn {
  color: #f5e6cc;
}

.default-event {
  color: #333;
  margin: 5px 0;
}

.delete-button {
  align-items: center;
  background-color: #e26b6bcf;
  border: none;
  border-radius: 5px;
  color: black;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 8px;
  height: 25px;
  padding: 0 10px;
  transition: 0.3s;
  width: 110px;
}

.delete-button:hover {
  background-color: #e26b6b;
}

.delete-icon {
  color: #ff4444;
  cursor: pointer;
  font-size: 18px;
  padding: 2px 5px;
}

.delete-icon:hover {
  color: #cc0000;
}

.d-print-none {
  display: block;
}

.edit-button {
  align-items: center;
  background-color: #3a87ada0;
  border: none;
  border-radius: 5px;
  color: black;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 8px;
  height: 25px;
  padding: 0 10px;
  transition: 0.3s;
  width: 110px;
}

.edit-button:hover {
  background-color: #3a87ad;
}

.edit-icon {
  color: #007bff;
  cursor: pointer;
  font-size: 16px;
  margin-right: 5px;
}

.edit-icon:hover {
  color: #0056b3;
}

.editable {
  padding: 8px;
  position: relative;
}

.editable:hover {
  background-color: #f5f5f5;
}

.editable input,
.editable select,
.editable .hebrew-date-editor {
  box-sizing: border-box;
  height: 100%;
  left: 0;
  margin-right: 29px;
  padding: 2px;
  position: absolute;
  top: 0;
  width: 100%;
}

.editable input:focus,
.editable select:focus {
  border-color: #3a87ad;
  box-shadow: 0 0 3px rgba(58, 135, 173, 0.5);
  outline: none;
}

.editable-date,
.editable-date-greg {
  cursor: pointer;
}

.editable-date .date-display,
.editable-date-greg .date-display {
  display: block;
}

.editable-date .date-edit,
.editable-date-greg .date-edit {
  display: none;
}

.event-icon {
  margin-right: 5px;
}

.event-list {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #444;
  font-size: calc(10px * var(--font-scale));
  line-height: 1.4;
  margin: 5px 0;
  padding: 5px;
  text-align: left;
  word-wrap: break-word;
}

.fc .fc-button {
  background-color: #f3f3f3 !important;
  border: 1px solid #d1d1d1 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #333 !important;
  text-transform: none !important;
  transition: background-color 0.2s, border-color 0.2s !important;
  height: calc(20px * var(--height-scale));
  /*font-size: calc(12px * var(--font-scale));*/
}

.fc .fc-button.fc-button-active,
.fc .fc-button:focus {
  background-color: #d1d1d1 !important;
  border-color: #a0a0a0 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.fc .fc-button:hover {
  background-color: #e5e5e5 !important;
  border-color: #b8b8b8 !important;
}

.fc .fc-day-other .fc-daygrid-day-top {
  opacity: 0.55;
}

.fc .fc-daygrid-body-natural .fc-daygrid-day-events {
  margin-bottom: 0 !important;
}

.fc .fc-event.fc-event-today .fc-event-title {
  background-color: rgba(255, 220, 40, 0.15);
}

.fc .fc-filterButton-button {
  background-color: #f3f3f3 !important;
  border: 1px solid #d1d1d1 !important;
  border-radius: 4px !important;
  color: #333 !important;
  position: relative;
}

.fc .fc-filterButton-button::after {
  content: '\f002';
  font-family: 'Font Awesome 6 Free', serif;
  font-weight: 900;
}

.fc .fc-button .fc-icon {
  font-size: unset;
  vertical-align: middle;
}

.fc-col-header > colgroup > col,
.fc-scrollgrid-sync-table > colgroup > col {
  width: 0 !important;
}

.fc-day-other .fc-daygrid-day-top:has(.settings-icon) {
  opacity: 1 !important;
}

.fc-daygrid-day {
  height: auto;
  min-width: 100px;
}

.fc-daygrid-day-frame {
  position: relative;
}

.fc-daygrid-day-number {
  display: inline-block;
  margin: 0;
  padding: 0 !important;
  position: static;
  white-space: nowrap;
}

.fc-daygrid-day-top {
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 5px;
}

.fc-event {
  background-color: #3a87ad;
  border: 1px solid #3a87ad;
  border-radius: 3px;
  color: #fff;
  display: block;
  font-size: calc(10px * var(--font-scale));
  line-height: 1.3;
  margin: 1px 2px 0;
  padding: 0 1px;
}

.fc-event a {
  color: #fff;
}

.fc-event a:focus,
.fc-event a:hover {
  color: #fff;
}

.fc-event.dafyomi,
.fc-event.dafyomi .fc-event-title,
.fc-event.dafyomi a {
  background-color: #FFF;
  border: 1px solid #FFF;
  color: #08c;
}

.fc-event.dafyomi a:focus,
.fc-event.dafyomi a:hover {
  color: #005580;
}

.fc-event.fast {
  background-color: #fd7e14;
  border: 1px solid #fd7e14;
  color: #FFF;
}

.fc-event.hebdate,
.fc-event.hebdate .fc-event-title,
.fc-event.omer,
.fc-event.omer .fc-event-title {
  background-color: #FFF;
  border: 1px solid #FFF;
  color: #999;
}

.fc-event.hebrew .fc-time {
  direction: ltr;
  unicode-bidi: bidi-override;
}

.fc-event.hebrew .fc-title {
  direction: rtl;
  font-family: 'SBL Hebrew', David, serif;
  font-size: 115%;
  font-weight: normal;
}

.fc-event.holiday,
.fc-event.holiday .fc-event-title,
.fc-event.holiday.timed,
.fc-event.holiday.timed .fc-event-title {
  background-color: #3a87ad;
  border: 1px solid #3a87ad;
  color: #FFF;
}

.fc-event.holiday.yomtov,
.fc-event.holiday.yomtov .fc-event-title,
.fc-event.holiday.yomtov a {
  background-color: #ffd446;
  border: 1px solid #ffd446;
  color: #333;
}

.fc-event.mishnayomi,
.fc-event.mishnayomi .fc-event-title,
.fc-event.mishnayomi a {
  background-color: #FFF;
  border: 1px solid #FFF;
  color: #257e4a;
}

.fc-event.mishnayomi a:focus,
.fc-event.mishnayomi a:hover {
  color: #15713b;
}

.fc-event.parashat,
.fc-event.parashat .fc-event-title {
  background-color: #257e4a;
  border: 1px solid #257e4a;
  color: #FFF;
}

.fc-event.roshchodesh {
  background-color: #6f42c1;
  border: 1px solid #6f42c1;
  color: #FFF;
}

.fc-event.timed,
.fc-event.timed .fc-event-title,
.fc-event.holiday.timed.fast,
.fc-event.holiday.timed.fast .fc-event-title {
  background-color: #FFF;
  border: 1px solid #FFF;
  color: #333;
}

.fc-event-time,
.fc-event-title {
  padding: 0 1px;
  white-space: normal;
}

.fc-header-toolbar {
  align-items: center;
  background-color: #ffffff !important;
  border-bottom: 1px solid #ddd !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  display: flex !important;
  flex-direction: row !important;
  margin-bottom: 0 !important;
  min-height: 50px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 900 !important;
}

.fc-header-toolbar .fc-toolbar-chunk:first-child {
  display: flex;
  flex-direction: row !important;
  text-align: left;
}

.fc-header-toolbar .fc-toolbar-chunk:last-child {
  display: flex;
  flex-direction: row !important;
  text-align: right;
}

.fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
  display: flex;
  flex-direction: row !important;
  text-align: center;
}

.fc-scrollgrid {
  margin-top: 0 !important;
}

.fc-theme-standard {
  overflow: visible !important;
  position: relative !important;
}

.fc-time {
  font-weight: bold;
}

.fc-timeGridDay-view .fc-daygrid-day-frame {
  min-height: 100px !important;
  padding: 10px !important;
}

.fc-timeGridDay-view .fc-timegrid-axis,
.fc-timeGridDay-view .fc-timegrid-col.fc-day-today,
.fc-timeGridDay-view .fc-timegrid-cols,
.fc-timeGridDay-view .fc-daygrid-day-frame {
  width: 100% !important;
}

.fc-timeGridDay-view th.fc-timegrid-axis,
.fc-timeGridDay-view td.fc-timegrid-axis,
.fc-timeGridDay-view .fc-scrollgrid-section-body td.fc-timegrid-axis.fc-scrollgrid-shrink,
.fc-timeGridDay-view .fc-scrollgrid-section-header th.fc-timegrid-axis {
  display: none !important;
}

.fc-timegrid-body,
.fc-timegrid-slot-labels,
.fc-timegrid-slots {
  display: none !important;
}

/* Style pour le bouton Aujourd'hui avec icône dynamique */
.fc-today-button {
  align-items: center;
  display: flex !important;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  gap: 5px;
}

.fc-today-button .calendar-icon {
  color: #3a87ad;
  font-size: 16px;
}

.fc-today-button .day-of-month {
  font-weight: bold;
}

.fc-view-selector {
  background-color: #f3f3f3;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  cursor: pointer;
  width: calc(77px * var(--font-scale));
  height: calc(20px * var(--height-scale));
  padding: 0;
}

.fc-view-selector option {
  background-color: #fff;
  line-height: 1.5;
  padding: 8px 6px;
}

.fc-view-selector:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.3);
  outline: none;
}

.fc-view-selector::-webkit-scrollbar {
  width: 6px;
}

.fc-view-selector::-webkit-scrollbar-thumb {
  background-color: #d1d1d1;
  border-radius: 3px;
}

.fc-view-selector::-webkit-scrollbar-track {
  background-color: #f3f3f3;
}

.filter-search-bar {
  background-color: #f9f9f9;
  border-bottom: 1px solid #d1d1d1;
  padding: 10px;
  position: relative;
  width: 100%;
  z-index: 850;
}

.filter-search-container {
  margin: 0 auto;
  max-width: 400px;
  position: relative;
}

.filter-search-results {
  background-color: #fff;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  left: 0;
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1000;
}

.font-mono {
  font-family: monospace;
}

.form-row {
  align-items: center;
  display: flex;
  margin-bottom: 8px;
}

.form-row div {
  align-items: center;
  display: flex;
  flex-grow: 1;
  gap: 10px;
}

.form-row input,
.form-row select,
.form-row.settings input,
.form-row.settings select {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  flex-grow: 1;
  font-size: 12px;
  max-height: 35px;
  padding: 6px;
}

.form-row label,
.modal-content p label {
  font-size: calc(10px * var(--font-scale));
  margin-right: 10px;
  text-align: right;
  text-wrap-mode: wrap !important;
  text-wrap-style: balance !important;
  white-space: nowrap;
  width: 160px;
}

.form-row textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  flex-grow: 1;
  font-size: 12px;
  height: 60px;
  padding: 6px;
  resize: vertical;
}

.form-row .hebrew-date-editor .hebrew-day,
.hebrew-date-editor .hebrew-day {
  min-width: 60px;
  width: 10ch;
}

.form-row .hebrew-date-editor .hebrew-month,
.hebrew-date-editor .hebrew-month {
  min-width: 100px;
  width: 12ch;
}

.form-row .hebrew-date-editor .hebrew-year,
.hebrew-date-editor .hebrew-year {
  min-width: 90px;
  width: 13ch;
}

.form-row .hebrew-date-editor input::placeholder,
.form-row #member-date-naissance::placeholder,
.hebrew-date-editor input::placeholder {
  color: #999;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-style: italic;
}

.greg-date-editor,
.hebrew-date-editor {
  display: flex;
  gap: 5px;
  position: relative;
  width: 100%;
}

.greg-date-editor input,
.greg-date-editor select,
.hebrew-date-editor input,
.hebrew-date-editor select {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 2px;
}

.greg-date-calendar {
  height: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
}

.havdalah-event {
  color: #8e44ad;
  margin: 5px 0;
}

.header-container {
  align-items: center;
  background-color: #f1f1f1;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: center;
}

.header-container a {
  display: inline-block;
  text-decoration: none;
}

.hebrew-date {
  color: #666;
  font-size: 12px;
  margin: 0;
  padding: 0;
  position: static;
}

.hebrew-date-editor {
  align-items: center;
  display: flex;
  gap: 5px;
  padding: 2px;
  width: 100%;
}

.hebrew-date-editor input,
.hebrew-date-editor select {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  padding: 4px;
}

.hebrew-date-editor input:focus,
.hebrew-date-editor select:focus {
  border-color: #3a87ad;
  box-shadow: 0 0 3px rgba(58, 135, 173, 0.5);
  outline: none;
}

.hidden {
  display: none !important;
}

html, body {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 14px;
  margin: 1px;
  padding: 0;
}

.icon {
  margin-right: 8px;
}

input, select {
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding: 4px;
}

.left-actions,
.right-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.marker\:text-secondary {
  color: #555;
}

.marker\:text-secondary li {
  margin-bottom: 20px;
  margin-top: 20px;
}

.marker\:text-secondary ol,
.marker\:text-secondary ul {
  color: #555;
}

.marker\:text-secondary ol > li {
  padding-left: 10px;
}

.marker\:text-secondary ol ul,
.marker\:text-secondary ul ul {
  margin-top: 5px;
}

.member-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.menu-actions {
  border-top: none;
  display: flex;
  justify-content: space-between;
  margin-top: 0;
  padding: 10px 10px;
}

.menu-actions .tablinks {
  align-items: center;
  background-color: #64AD647B;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 8px;
  height: 45px;
  transition: 0.3s;
}

.menu-actions .tablinks:hover {
  background-color: #64AD64BE;
}

.modal {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 15px;
}

.modal-content {
  background-color: #fefefe;
  border: 1px solid #888;
  box-sizing: border-box;
  height: auto;
  max-height: 90vh;
  max-width: 90vw;
  overflow-y: hidden;
  padding: calc(10px * var(--height-scale));
  position: absolute;
  width: 90vw;
}

.modal-content .flex-row {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  margin-bottom: calc(10px * var(--height-scale));
  min-width: 0;
  overflow: visible;
}

.modal-content .modal-row {
  align-items: center;
  display: flex;
  flex-direction: row !important;
  margin-bottom: 5px;
}

.modal-content .modal-row .modal-label {
  display: inline-block !important;
  flex-shrink: 0;
  margin-right: 10px;
  text-align: right;
  width: calc(var(--max-label-width, 150px));
}

.modal-content .modal-row select,
.modal-content .modal-row select[multiple] {
  flex: 1;
  max-width: 300px;
}

.modal-content .ts-wrapper {
  flex-grow: 1;
  line-height: normal;
  max-height: calc(40px * var(--height-scale));
  min-height: calc(30px * var(--height-scale));
  width: 100%;
}

.modal-content .ts-wrapper .ts-dropdown {
  max-height: calc(300px * var(--dropdown-height-scale));
  overflow-y: auto;
}

.modal-content label {
  display: inline-block;
  font-size: calc(16px * var(--font-scale));
  line-height: normal;
  margin: calc(5px * var(--height-scale)) 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  width: var(--max-label-width, 100px);
}

.modal-content select {
  flex-grow: 1;
  line-height: normal;
  max-height: calc(40px * var(--height-scale));
  min-height: calc(30px * var(--height-scale));
  width: 100%;
}

.modal-footer {
  display: flex;
  gap: calc(10px * var(--height-scale));
  justify-content: flex-end;
  margin-top: calc(10px * var(--height-scale));
}

.modal-footer button {
  font-size: calc(10px * var(--font-scale));
  line-height: normal;
  min-height: calc(30px * var(--height-scale));
  padding: calc(8px * var(--height-scale));
}

.modal-header {
  font-size: calc(13px * var(--height-scale));
  justify-content: center;
  text-align: center;
  width: 100%;
}

.no-results {
  color: #666;
  font-size: 14px;
  font-style: italic;
  padding: 8px 12px;
}

.option {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.page-item {
  display: inline;
}

.page-item a.page-link {
  background-color: #fff;
  border: 1px solid #dee2e6;
  color: #3a87ad;
  display: block;
  line-height: 1.25;
  margin-left: -1px;
  padding: 0.5rem 0.75rem;
  position: relative;
  text-decoration: none;
  font-size: xx-small;
}

.page-item a.page-link:hover {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #326d8f;
  z-index: 2;
}

.page-item.active a.page-link {
  background-color: #3a87ad;
  border-color: #3a87ad;
  color: #fff;
  z-index: 3;
}

.page-item:first-child .page-link {
  border-bottom-left-radius: 0.25rem;
  border-top-left-radius: 0.25rem;
  margin-left: 0;
}

.page-item:last-child .page-link {
  border-bottom-right-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

.pagination {
  border-radius: 0.25rem;
  display: inline-flex;
  list-style: none;
  padding-left: 0;
}

.pagination-controls {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.pagination-controls button {
  align-items: center;
  background-color: #3a87ad;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  height: 35px;
  justify-content: center;
  padding: 0 20px;
  transition: 0.3s;
}

.pagination-controls button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.pagination-controls button:hover:not(:disabled) {
  background-color: #326d8f;
}

.pagination-controls select {
  font-size: 14px;
  padding: 5px;
}

.pagination-controls span {
  font-size: 14px;
}

.pagination-left,
.pagination-right {
  align-items: center;
  display: flex;
  gap: 10px;
}

.pagination-sm .page-link {
  font-weight: bold;
  line-height: 1.5;
  padding: 0.25rem 0.5rem;
}

pre,
[style*="white-space: pre-wrap"] {
  white-space: pre-wrap;
}

.reset-button {
  background-color: #ff4444;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 6px;
  padding: 8px 16px;
}

.reset-button:hover {
  background-color: #cc0000;
}

.role-aliyot,
.role-aliyot-subs {
  background-color: #e6f3e6;
  border-radius: 3px;
  margin: 0;
  padding: 3px;
}

.role-group {
  margin-bottom: 10px;
}

.role-group label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 2px;
}

.role-haftara {
  background-color: #f2e6f3;
  border-radius: 3px;
  margin: 0;
  padding: 3px;
}

.role-hagbaa,
.role-hagbaa-subs {
  background-color: #e6f0f3;
  border-radius: 3px;
  margin: 0;
  padding: 3px;
}

.role-ouv-aaron,
.role-ouv-aaron-subs {
  background-color: #f3f0e6;
  border-radius: 3px;
  margin: 0;
  padding: 3px;
}

.rounded-sm {
  border-radius: 0.125rem;
}

.search-result {
  color: #333;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 12px;
}

.search-result:hover {
  background-color: #f0f0f0;
}

.settings-icon {
  color: #3a87ad;
  cursor: pointer;
  font-size: clamp(12px, 1.2vw, 16px);
  line-height: 1;
}

.settings-icon:hover {
  color: #326d8f;
}

.spinner {
  animation: spin 1s linear infinite;
  border: 5px solid #f3f3f3;
  border-radius: 50%;
  border-top: 5px solid #3a87ad;
  height: 50px;
  width: 50px;
}

.status-icon {
  cursor: pointer;
  font-size: 20px;
  margin-right: 5px;
}

.status-icon[data-statut="Actif"] {
  color: #28a745;
}

.status-icon[data-statut="Inactif"] {
  color: #dc3545;
}

.status-icon:hover {
  opacity: 0.8;
}

.sort-icon {
  display: inline-block;
  font-size: 12px;
  margin-left: 5px;
  text-align: center;
  width: 10px;
}

.subcat-link {
  color: #007bff;
  text-decoration: none;
}

.tab-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.tabcontent {
  border: 1px solid #ccc;
  border-top: none;
  display: none;
  margin-top: -10px;
  padding: 6px 12px;
}

.tabcontent.active {
  display: block;
}

.tablinks {
  align-items: center;
  background-color: inherit;
  border: none;
  cursor: pointer;
  display: flex;
  gap: 8px;
  outline: none;
  padding: 16px 8px 15px 5px;
  transition: 0.3s;
  font-size: min(calc(16px * var(--font-scale)), 16px);
}

.tablinks:hover {
  background-color: #ddd;
}

.tablinks.active {
  background-color: #3a87ad;
  color: white;
}

.tablinks .calendar-icon-img {
  height: 24px;
  width: 24px;
}

#tabs {
  background-color: #f1f1f1;
  border: none;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  white-space: nowrap;
}

.text-rust {
  color: #d9534f;
}

.text-sm {
  font-size: 0.875rem;
}

.ts-dropdown {
  max-height: 1000px !important;
  overflow-y: auto !important;
  position: absolute !important;
  z-index: 1000 !important;
}

.ts-dropdown-content {
  display: block !important;
}

.ts-wrapper {
  border: 1px solid #c6cccf26;
  border-radius: 4px;
  max-width: none;
  width: 100%;
}

.ts-wrapper .item {
  align-items: center;
  background-color: #3a87ad;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: block;
  justify-content: space-between;
  margin: 0;
  padding: 5px 5px 3px 5px;
  position: relative;
}

.ts-wrapper .item .ts-remove {
  background-color: transparent;
  border-left: 1px solid #89b1dd;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  height: 100%;
  line-height: 1;
  margin-top: -5px;
  padding: 4px 0 0 0;
  pointer-events: auto;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease;
  width: 20px;
}

.ts-wrapper .item .ts-remove:hover {
  background-color: transparent;
  color: #ff4444;
}

.ts-wrapper .item .ts-text {
  margin-left: -4px;
  padding-right: 5px;
}

.ts-wrapper .option {
  font-size: 12px;
  padding: 6px 10px;
}

.ts-wrapper .option.active {
  background-color: #3a87ad !important;
  color: #ffffff;
}

.ts-wrapper .option:hover {
  background-color: #326d8f !important;
  color: #ffffff;
}

.ts-wrapper .ts-dropdown {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ts-wrapper .ts-option,
.ts-wrapper .ts-item {
  overflow: visible;
  white-space: nowrap;
}

.ts-wrapper .ts-text .birthday-icon,
.ts-wrapper .ts-text .candle-holder-icon,
.ts-wrapper .option .birthday-icon,
.ts-wrapper .option .candle-holder-icon,
.modal-content .ts-wrapper .ts-text .birthday-icon,
.modal-content .ts-wrapper .ts-text .candle-holder-icon,
.modal-content .ts-wrapper .option .birthday-icon,
.modal-content .ts-wrapper .option .candle-holder-icon {
  color: #ff6f61;
  font-size: 12px;
  height: calc(16px * var(--height-scale));
  margin-left: 1px;
  margin-right: 3px;
  vertical-align: middle;
  width: calc(16px * var(--font-scale));
}

.ts-wrapper.multi .item .ts-remove {
  color: #000000;
}

.ts-wrapper.multi .ts-control > div {
  background: #f2f2f2;
  border: 0 solid #d0d0d0;
  color: #303030;
  cursor: pointer;
  margin: 0 6px 3px 0 !important;
  padding: 2px 6px;
}

.ts-wrapper .ts-control {
  display: flex;
  flex-wrap: wrap;
  min-height: 40px;
  padding: 4px;
}

.zmanim-event {
  color: #f39c12;
  margin: 5px 0;
}

/* Media Queries for max-width: 780px */
@media (max-width: 780px) {
  :root {
    --dropdown-height-scale: 1.2;
    --font-scale: 1.5;
    --height-scale: 0.8;
  }

  #clear-search,
  #history-clear-search {
    font-size: 18px;
  }

  #detail-modal .form-row {
    gap: 6px;
    margin-bottom: calc(6px * var(--height-scale));
  }

  #detail-modal .form-row label {
    font-size: calc(14px * var(--font-scale));
    margin-right: 6px;
  }

  #detail-modal .form-row .ts-wrapper {
    max-height: 28px;
    min-height: 26px;
  }

  #detail-modal .form-row .ts-wrapper .item {
    padding: 2px 4px;
  }

  #detail-modal .form-row .ts-wrapper .ts-control {
    min-height: 26px;
    padding: 2px;
  }

  #detail-modal .modal-content {
    max-height: 90vh;
    max-width: 90vw;
    overflow-y: auto;
    padding: calc(16px * var(--height-scale));
    width: 90vw;
  }

  #export-members-button {
    height: 40px;
    width: 100px;
  }

  #filter-search-input {
    font-size: 12px;
    padding: 6px 25px 6px 8px;
  }

  #generate-hebrew-date {
    margin-bottom: 4px;
  }

  #header-logo {
    height: 40px;
  }

  #history-management > div:nth-child(1) {
    gap: 8px;
    margin-bottom: 16px;
  }

  #history-management > div:nth-child(2) {
    margin-bottom: 8px;
  }

  #history-menu-actions input[type="checkbox"] {
    height: 14px;
    margin-right: 4px;
    width: 14px;
  }

  #history-menu-actions label {
    font-size: 13px;
    padding: 6px 10px;
  }

  #history-menu-actions select {
    font-size: 13px;
    height: 30px;
    padding: 4px 8px;
  }

  #history-search {
    height: 34px;
    padding-right: 20px;
  }

  #history-table td,
  #history-table th {
    padding: 6px;
  }

  #import-feedback-modal #import-feedback-content {
    font-size: 13px;
    max-height: none;
    padding: 8px;
  }

  #import-feedback-modal .modal-actions {
    margin-top: 12px;
  }

  #import-feedback-modal .modal-content {
    padding: 12px;
  }

  #import-feedback-modal h2 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  #import-members-button {
    height: 40px;
    width: 100px;
  }

  #member-form-modal .form-row {
    gap: 6px;
    margin-bottom: calc(6px * var(--height-scale));
  }

  #member-form-modal .form-row .hebrew-date-editor {
    gap: 3px;
  }

  #member-form-modal .form-row .hebrew-date-editor input,
  #member-form-modal .form-row .hebrew-date-editor select {
    font-size: 13px;
    max-height: 28px;
    max-width: 80px;
    min-width: 30px;
    padding: 2px;
  }

  #member-form-modal .form-row .hebrew-date-editor .hebrew-day {
    max-width: 50px;
    min-width: 30px;
    width: auto;
  }

  #member-form-modal .form-row .hebrew-date-editor .hebrew-month {
    max-width: 90px;
    min-width: 50px;
    width: auto;
  }

  #member-form-modal .form-row .hebrew-date-editor .hebrew-year {
    max-width: 70px;
    min-width: 40px;
    width: auto;
  }

  #member-form-modal .form-row button {
    margin-left: 2px;
  }

  #member-form-modal .form-row input,
  #member-form-modal .form-row select,
  #member-form-modal .form-row textarea {
    padding: calc(3px * var(--height-scale));
  }

  #member-form-modal .form-row label {
    font-size: calc(14px * var(--font-scale));
    margin-right: 6px;
    width: var(--max-label-width-member-form, 140px);
  }

  #member-form-modal .form-row textarea {
    height: 40px;
  }

  #member-form-modal .form-submit {
    margin-top: 6px;
  }

  #member-form-modal .modal-content {
    max-height: 90vh;
    max-width: 90vw;
    overflow-x: auto;
    overflow-y: auto;
    padding: calc(16px * var(--height-scale));
    width: 90vw;
  }

  #member-management input[type="file"],
  #history-management input[type="file"] {
    font-size: 13px;
    padding: 6px;
  }

  #member-management label {
    font-size: 13px;
  }

  #member-menu-actions input[type="checkbox"] {
    height: 14px;
    margin-right: 4px;
    width: 14px;
  }

  #member-menu-actions label {
    font-size: 13px;
    padding: 6px 10px;
  }

  #member-menu-actions select {
    font-size: 13px;
    height: 30px;
    padding: 4px 8px;
  }

  #member-search {
    height: 34px;
    padding-right: 20px;
  }

  #member-table td {
    padding: 0 8px;
  }

  #member-table td:nth-child(6),
  #member-table th:nth-child(6) {
    min-width: 220px;
    padding: 6px;
  }

  #member-table th {
    padding: 6px;
  }

  #member-table th:nth-child(13),
  #member-table td:nth-child(13) {
    min-width: 90px;
    padding: 6px;
  }

  #member-table th:nth-child(14),
  #member-table td:nth-child(14) {
    min-width: 200px;
    width: 200px;
  }

  #new-member-button {
    height: 40px;
    width: 100px;
  }

  .action-buttons {
    gap: 4px;
  }

  .action-buttons button {
    width: 90px;
  }

  .calendar-icon {
    font-size: 14px;
    margin-left: 3px;
  }

  .close-modal {
    font-size: 20px;
    right: 8px;
    top: 8px;
  }

  .delete-button {
    font-size: 13px;
    height: 22px;
    padding: 0 8px;
    width: 100px;
  }

  .delete-icon {
    font-size: 16px;
    padding: 1px 4px;
  }

  .edit-button {
    font-size: 13px;
    height: 22px;
    padding: 0 8px;
    width: 100px;
  }

  .edit-icon {
    font-size: 14px;
    margin-right: 4px;
  }

  .editable {
    padding: 6px;
  }

  .editable input,
  .editable select {
    padding: 1px;
  }

  .fc .fc-button {
    padding: 0.2rem 0.4rem !important;
  }

  .fc .fc-filterButton-button {
    font-size: calc(8px * var(--font-scale));
    height: 20px;
    width: 25px;
  }

  .fc-daygrid-day-top .settings-icon {
    font-size: clamp(10px, 1vw, 16px);
  }

  .fc-event,
  .aliyot-list,
  .aliyot-list div,
  .event-list,
  .event-list div {
    font-size: calc(10px * var(--font-scale));
    line-height: 1.4;
    margin-bottom: 2px;
  }

  .fc-header-toolbar {
    align-items: center !important;
    flex-direction: row !important;
    padding: 5px !important;
  }

  .fc-header-toolbar .fc-toolbar-chunk:first-child,
  .fc-header-toolbar .fc-toolbar-chunk:last-child,
  .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
    display: flex;
    flex-direction: row !important;
    text-align: center;
  }

  .fc-today-button {
    font-size: 12px;
  }

  .fc-today-button .calendar-icon {
    color: #3a87ad;
    font-size: 14px;
  }

  .fc-timeGridDay-view .fc-daygrid-day-frame {
    min-height: 80px !important;
    padding: 5px !important;
  }

  .fc-view-selector option {
    padding: 6px 4px;
  }

  .filter-search-bar {
    padding: 5px;
    top: 60px;
  }

  .form-row input,
  .form-row select,
  .form-row.settings input,
  .form-row.settings select {
    font-size: 11px;
    max-height: 28px;
    padding: 4px;
  }

  .form-row textarea {
    font-size: 11px;
    height: 40px;
    padding: 4px;
  }

  .form-row .hebrew-date-editor .hebrew-day,
  .hebrew-date-editor .hebrew-day {
    flex: 1;
    max-width: 50px;
    min-width: 30px;
    width: auto;
  }

  .form-row .hebrew-date-editor .hebrew-month,
  .hebrew-date-editor .hebrew-month {
    flex: 1;
    max-width: 90px;
    min-width: 50px;
    width: auto;
  }

  .form-row .hebrew-date-editor .hebrew-year,
  .hebrew-date-editor .hebrew-year {
    flex: 1;
    max-width: 70px;
    min-width: 40px;
    width: auto;
  }

  .form-row .hebrew-date-editor input::placeholder,
  .form-row #member-date-naissance::placeholder,
  .hebrew-date-editor input::placeholder {
    font-size: 13px;
  }

  .greg-date-editor,
  .hebrew-date-editor {
    gap: 3px;
  }

  .greg-date-editor input,
  .greg-date-editor select,
  .hebrew-date-editor input,
  .hebrew-date-editor select {
    padding: 1px;
  }

  .hebrew-date-editor input,
  .hebrew-date-editor select {
    font-size: 13px;
    padding: 2px;
  }

  .left-actions,
  .right-actions {
    gap: 8px;
  }

  .marker\:text-secondary li {
    margin-bottom: 16px;
    margin-top: 16px;
  }

  .marker\:text-secondary ol ul,
  .marker\:text-secondary ul ul {
    margin-top: 4px;
  }

  .member-form {
    gap: 8px;
  }

  .modal-actions {
    gap: 6px;
    margin-top: 10px;
  }

  .modal-content {
    height: auto;
    max-height: 90vh;
    max-width: 90vw;
    padding: calc(16px * var(--height-scale));
    width: 90vw;
  }

  .modal-content label {
    font-size: calc(16px * var(--font-scale));
  }

  .modal-content .flex-row {
    margin-bottom: 4px;
  }

  .modal-content .modal-row {
    margin-bottom: 4px;
  }

  .modal-content .modal-row .modal-label {
    margin-right: 8px;
  }

  .modal-content .modal-row select,
  .modal-content .modal-row select[multiple] {
    max-width: 250px;
  }

  .modal-content .ts-wrapper {
    max-height: 32px;
    min-height: 28px;
  }

  .modal-content select {
    max-height: 32px;
    min-height: 28px;
  }

  .modal-footer {
    gap: 6px;
    margin-top: 6px;
  }

  .modal-footer button {
    min-height: 28px;
    padding: 6px 12px;
  }

  .modal-header h2 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .pagination-controls {
    gap: 8px;
  }

  .pagination-controls button {
    font-size: 13px;
    height: 32px;
    padding: 0 16px;
  }

  .pagination-controls select {
    font-size: 13px;
    padding: 4px;
  }

  .pagination-controls span {
    font-size: 13px;
  }

  .pagination-left,
  .pagination-right {
    gap: 8px;
  }

  .pagination-sm .page-link {
    font-weight: bold;
    padding: 0.2rem 0.4rem;
  }

  .reset-button {
    font-size: 13px;
    padding: 6px 12px;
  }

  .search-result,
  .no-results {
    font-size: 12px;
    padding: 6px 10px;
  }

  .sort-icon {
    font-size: 11px;
    margin-left: 4px;
  }

  .spinner {
    border-width: 4px;
    height: 40px;
    width: 40px;
  }

  .status-icon {
    font-size: 18px;
    margin-right: 4px;
  }

  .tablinks {
    font-size: calc(7px * var(--font-scale));
    text-wrap: auto !important;
  }

  .tablinks .calendar-icon-img {
    height: 20px;
    width: 20px;
  }

  .ts-wrapper .item {
    padding: 5px 5px 3px 5px;
  }

  .ts-wrapper .item .ts-remove {
    font-size: 10px;
    padding: 2px 0 0 0;
    width: 16px;
  }

  .ts-wrapper .option {
    font-size: 11px;
    padding: 4px 8px;
  }

  .ts-wrapper .ts-text .birthday-icon,
  .ts-wrapper .ts-text .candle-holder-icon,
  .ts-wrapper .option .birthday-icon,
  .ts-wrapper .option .candle-holder-icon,
  .modal-content .ts-wrapper .ts-text .birthday-icon,
  .modal-content .ts-wrapper .ts-text .candle-holder-icon,
  .modal-content .ts-wrapper .option .birthday-icon,
  .modal-content .ts-wrapper .option .candle-holder-icon {
    font-size: 10px;
    height: 14px;
    width: 14px;
  }
}

/* Media Queries for max-width: 400px */
@media (max-width: 400px) {
  :root {
    --dropdown-height-scale: 1.1;
    --font-scale: 4.0;
    --height-scale: 0.9;
  }

  #detail-modal .form-row {
    gap: 4px;
    margin-bottom: calc(4px * var(--height-scale));
  }

  #detail-modal .form-row label {
    font-size: calc(14px * var(--font-scale));
    margin-right: 4px;
  }

  #detail-modal .modal-content {
    max-height: 90vh;
    max-width: 90vw;
    overflow-y: auto;
    padding: calc(10px * var(--height-scale));
    width: 90vw;
  }

  #filter-search-input {
    font-size: 11px;
  }

  #member-form-modal .form-row {
    gap: 4px;
    margin-bottom: calc(4px * var(--height-scale));
  }

  #member-form-modal .form-row .hebrew-date-editor {
    gap: 2px;
  }

  #member-form-modal .form-row input,
  #member-form-modal .form-row select,
  #member-form-modal .form-row textarea {
    padding: calc(2px * var(--height-scale));
  }

  #member-form-modal .form-row label {
    font-size: calc(14px * var(--font-scale));
    margin-right: 4px;
    width: var(--max-label-width-member-form, 140px);
  }

  #member-form-modal .modal-content {
    max-height: 90vh;
    max-width: 90vw;
    overflow-y: auto;
    padding: calc(10px * var(--height-scale));
    width: 90vw;
  }

  .fc .fc-button {
    padding: 0.1rem 0.3rem !important;
  }

  .fc-header-toolbar .fc-toolbar-chunk:first-child,
  .fc-header-toolbar .fc-toolbar-chunk:last-child {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
  }

  .fc-today-button {
    font-size: 10px;
  }

  .fc-today-button .calendar-icon {
    font-size: 12px;
    color: #3a87ad;
  }

  .filter-search-container {
    max-width: 100%;
  }

  .modal-content {
    height: auto;
    max-height: 90vh;
    max-width: 90vw;
    font-size: calc(10px * var(--font-scale));
    width: 90vw;
  }

  .tablinks .calendar-icon-img {
    height: 16px;
    width: 16px;
  }

  .search-result,
  .no-results {
    font-size: 11px;
    padding: 5px 8px;
  }
}

/* Media Queries for print */
@media print {
  .d-print-none {
    display: none !important;
  }
}