
:root,
[data-theme="light"] {
  --eof-card-bg: #ffffff;
  --eof-card-border: #e4eaf0;
  --eof-card-shadow: rgba(0, 0, 0, 0.05);
  --eof-gold: #F5A623;
  --eof-page-title: #1a1a2e;
  --eof-page-subtitle: #6b7280;

  --eof-field-label: #374151;
  --eof-input-bg: #ffffff;
  --eof-input-border: #e0e7ef;
  --eof-input-color: #333;
  --eof-input-focus-border: #0a4a8c;
  --eof-input-focus-shadow: rgba(10, 74, 140, 0.1);

  --eof-muted-text: #3a3e46;

  --eof-item-hover-bg: #eef4fb;
  --eof-item-hover-border: #c5d8f0;
  --eof-item-value-color: #0a4a8c;

  --eof-table-header-bg: #eaf2fb;
  --eof-table-header-color: #0a4a8c;
  --eof-table-header-border: #c5d8f0;
  --eof-table-row-hover: #eef4fb;
  --eof-table-border: #e4eaf0;

  --eof-no-perm-title: #1a1a2e;
  --eof-no-perm-desc: #6b7280;

  --eofsec-bg: #f8fafc;
  --eofsec-border: #e8ecf2;
  --eofsec-title-color: #0a4a8c;

  --eof-switch-on: #16a34a;
  --eof-switch-on-shadow: rgba(22, 163, 74, 0.25);
  --eof-switch-off-track: #e2e8f0;
  --eof-switch-off-border: #cbd5e0;

  --eof-msg-info-bg: #eef4fb;
  --eof-msg-info-border: #c5d8f0;
  --eof-msg-info-accent: #0a4a8c;
  --eof-msg-success-bg: #f0fdf4;
  --eof-msg-success-border: #bbf7d0;
  --eof-msg-success-accent: #16a34a;
  --eof-msg-error-bg: #fef2f2;
  --eof-msg-error-border: #fecaca;
  --eof-msg-error-accent: #dc2626;
  --eof-msg-text: #4b5563;

  --eof-radius: 6px;
  /* action bar */
  --eof-actionbar-shadow: rgba(10, 74, 140, 0.14);
  --eof-save-from: #22a559;
  --eof-save-to: #15803d;
  --eof-save-hover-from: #1b8f4c;
  --eof-save-hover-to: #116a32;
  --eof-save-color: #ffffff;
  --eof-save-shadow: rgba(21, 128, 61, 0.30);
  --eof-save-shadow-hover: rgba(21, 128, 61, 0.42);
}
[data-theme="dark"] {
  --eof-card-bg: #16213e;
  --eof-card-border: #2d3748;
  --eof-card-shadow: rgba(0, 0, 0, 0.25);
  --eof-gold: #FFB830;
  --eof-page-title: #e2e8f0;
  --eof-page-subtitle: #a0aec0;

  --eof-field-label: #cbd5e0;
  --eof-input-bg: #1a2744;
  --eof-input-border: #3a4a6b;
  --eof-input-color: #e2e8f0;
  --eof-input-focus-border: #5aadff;
  --eof-input-focus-shadow: rgba(90, 173, 255, 0.15);

  --eof-muted-text: #718096;

  --eof-item-hover-bg: #243358;
  --eof-item-hover-border: #3a4a6b;
  --eof-item-value-color: #5aadff;

  --eof-table-header-bg: #1a2744;
  --eof-table-header-color: #5aadff;
  --eof-table-header-border: #3a4a6b;
  --eof-table-row-hover: #243358;
  --eof-table-border: #2d3748;

  --eof-no-perm-title: #e2e8f0;
  --eof-no-perm-desc: #a0aec0;

  --eofsec-bg: #1a2744;
  --eofsec-border: #2d3748;
  --eofsec-title-color: #93c5fd;

  --eof-switch-on: #22c55e;
  --eof-switch-on-shadow: rgba(34, 197, 94, 0.25);
  --eof-switch-off-track: #374151;
  --eof-switch-off-border: #4b5563;

  --eof-msg-info-bg: #1e2f55;
  --eof-msg-info-border: #3a4a6b;
  --eof-msg-info-accent: #5aadff;
  --eof-msg-success-bg: rgba(34, 197, 94, 0.12);
  --eof-msg-success-border: rgba(34, 197, 94, 0.4);
  --eof-msg-success-accent: #22c55e;
  --eof-msg-error-bg: rgba(220, 38, 38, 0.12);
  --eof-msg-error-border: rgba(252, 129, 129, 0.4);
  --eof-msg-error-accent: #fc8181;
  --eof-msg-text: #cbd5e0;
  /* action bar */
  --eof-actionbar-shadow: rgba(0, 0, 0, 0.4);
  --eof-save-from: #34d399;
  --eof-save-to: #16a34a;
  --eof-save-hover-from: #4ade80;
  --eof-save-hover-to: #22a559;
  --eof-save-color: #052e16;
  --eof-save-shadow: rgba(52, 211, 153, 0.25);
  --eof-save-shadow-hover: rgba(52, 211, 153, 0.38);
}
.eof-page-header {
  -webkit-animation: eof-fadeSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
          animation: eof-fadeSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
@-webkit-keyframes eof-fadeSlideUp {
from {
    opacity: 0;
    -webkit-transform: translateY(16px);
            transform: translateY(16px);
}
to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
}
}
@keyframes eof-fadeSlideUp {
from {
    opacity: 0;
    -webkit-transform: translateY(16px);
            transform: translateY(16px);
}
to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
}
}
@-webkit-keyframes eof-fadeSlideDown {
from {
    opacity: 0;
    -webkit-transform: translateY(-12px);
            transform: translateY(-12px);
}
to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
}
}
@keyframes eof-fadeSlideDown {
from {
    opacity: 0;
    -webkit-transform: translateY(-12px);
            transform: translateY(-12px);
}
to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
.eof-page-header,
  .eof-block {
    -webkit-animation: none !important;
            animation: none !important;
}
}
.eof-wrapper {
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.eof-page-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin-bottom: 20px;
}
.eof-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--eof-page-title);
  margin: 0 0 4px 0;
  border-left: 4px solid var(--eof-gold);
  padding-left: 10px;
}
.eof-page-subtitle {
  font-size: 13px;
  color: var(--eof-page-subtitle);
  margin: 0;
  padding-left: 14px;
}
.eof-container {
  width: 100%;
  max-width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
}
.eof-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* HALF / HALF rows (used for all 3 rows) */
.eof-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}
.eof-block {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background: var(--eof-card-bg);
  border: 1px solid var(--eofsec-border);
  border-radius: var(--eof-radius);
  -webkit-box-shadow: 0 2px 10px var(--eof-card-shadow);
          box-shadow: 0 2px 10px var(--eof-card-shadow);
  padding: 18px 20px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  width: 100%;
  min-width: 0;
  -webkit-animation: eof-fadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
          animation: eof-fadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.eof-block-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--eofsec-title-color);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--eofsec-border);
}
.eof-icon {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 28px;
  height: 28px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  border-radius: 6px;
  background: var(--eof-item-hover-bg);
  color: var(--eofsec-title-color);
  font-size: 13px;
}
.eof-title-right {
  margin-left: auto;
}
.eof-count {
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--eof-item-hover-bg);
  border: 1px solid var(--eof-item-hover-border);
  color: var(--eof-item-value-color);
  font-size: 11.5px;
  font-weight: 700;
}

/* ===== MESSAGE BANNER (same as Comments page) ===== */
.eof-message {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: var(--eof-radius);
  border: 1px solid var(--eof-msg-info-border);
  border-left: 4px solid var(--eof-msg-info-accent);
  background: var(--eof-msg-info-bg);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  width: 100%;
}
.eof-message__icon {
  font-size: 16px;
  line-height: 20px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  color: var(--eof-msg-info-accent);
}
.eof-message__body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}
.eof-message__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  color: var(--eof-field-label);
}
.eof-message__text {
  font-size: 12.5px;
  line-height: 18px;
  color: var(--eof-msg-text);
}
.eof-message__close {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border: none;
  border-radius: var(--eof-radius);
  background: transparent;
  color: var(--eof-msg-text);
  font-size: 12px;
  cursor: pointer;
  -webkit-transition: background 0.15s ease;
  transition: background 0.15s ease;
}
.eof-message__close:hover {
  background: rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .eof-message__close:hover {
  background: rgba(255, 255, 255, 0.08);
}
.eof-message--success {
  background: var(--eof-msg-success-bg);
  border-color: var(--eof-msg-success-border);
  border-left-color: var(--eof-msg-success-accent);
}
.eof-message--success .eof-message__icon {
  color: var(--eof-msg-success-accent);
}
.eof-message--error {
  background: var(--eof-msg-error-bg);
  border-color: var(--eof-msg-error-border);
  border-left-color: var(--eof-msg-error-accent);
}
.eof-message--error .eof-message__icon {
  color: var(--eof-msg-error-accent);
}
.eof-msg-enter-active,
.eof-msg-leave-active {
  -webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transition: opacity 0.25s ease, transform 0.25s ease, -webkit-transform 0.25s ease;
}
.eof-msg-enter,
.eof-msg-leave-to {
  opacity: 0;
  -webkit-transform: translateY(-8px);
          transform: translateY(-8px);
}
@media (prefers-reduced-motion: reduce) {
.eof-msg-enter-active,
  .eof-msg-leave-active {
    -webkit-transition: none;
    transition: none;
}
}
.eof-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.eof-field {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-width: 0;
}
.eof-field--wide {
  grid-column: 1 / -1;
}
.eof-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--eof-field-label);
  margin-bottom: 6px;
}
.eof-input {
  border: 1.5px solid var(--eof-input-border);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--eof-input-color);
  background: var(--eof-input-bg);
  -webkit-transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s, -webkit-box-shadow 0.2s;
  width: 100%;
  height: 40px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-family: inherit;
}
.eof-input:focus {
  border-color: var(--eof-input-focus-border);
  -webkit-box-shadow: 0 0 0 3px var(--eof-input-focus-shadow);
          box-shadow: 0 0 0 3px var(--eof-input-focus-shadow);
  outline: none;
}
.eof-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
select.eof-input {
  cursor: pointer;
  -webkit-appearance: auto;
     -moz-appearance: auto;
          appearance: auto;
}
.eof-select-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  gap: 14px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.eof-select-field {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 280px;
          flex: 1 1 280px;
  min-width: 200px;
  max-width: 420px;
}
.eof-select-btn {
  height: 40px;
}
.eof-add-row {
  margin-bottom: 14px;
}
.eof-empty {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 18px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--eof-muted-text);
  border: 1.5px dashed var(--eof-input-border);
  border-radius: 6px;
  background: var(--eofsec-bg);
}
.eof-empty__icon {
  font-size: 22px;
  opacity: 0.4;
}
.eof-dynamic-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.eof-dynamic-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.eof-dynamic-row .eof-input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}
.eof-row-idx {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 26px;
  height: 26px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  border-radius: 6px;
  background: var(--eof-item-hover-bg);
  color: var(--eof-item-value-color);
  font-size: 11.5px;
  font-weight: 700;
}
.eof-dynamic-list::-webkit-scrollbar {
  width: 6px;
}
.eof-dynamic-list::-webkit-scrollbar-thumb {
  background-color: var(--eof-table-border);
  border-radius: 4px;
}
.eof-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  height: 40px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-family: inherit;
}
.eof-btn:focus-visible,
.eof-icon-btn:focus-visible {
  outline: 2px solid var(--eof-input-focus-border);
  outline-offset: 2px;
}
.eof-btn--sm {
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
}
.eof-btn--primary {
  background: #0a4a8c;
  color: #fff;
  -webkit-box-shadow: 0 2px 8px rgba(10, 74, 140, 0.25);
          box-shadow: 0 2px 8px rgba(10, 74, 140, 0.25);
}
.eof-btn--primary:hover:not(:disabled) {
  background: #073a70;
  -webkit-box-shadow: 0 4px 14px rgba(10, 74, 140, 0.35);
          box-shadow: 0 4px 14px rgba(10, 74, 140, 0.35);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}
.eof-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.eof-btn--danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1.5px solid #fecaca;
}
.eof-btn--danger:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #fca5a5;
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}
[data-theme="dark"] .eof-btn--danger {
  color: #fc8181;
  border-color: #7f1d1d;
  background: transparent;
}
[data-theme="dark"] .eof-btn--danger:hover:not(:disabled) {
  background: rgba(127, 29, 29, 0.2);
}
.eof-icon-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #fef2f2;
  color: #dc2626;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  font-size: 13px;
}
.eof-icon-btn i {
  font-family: 'FontAwesome' !important;
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}
.eof-icon-btn:hover {
  background: #fee2e2;
  -webkit-transform: scale(1.08);
          transform: scale(1.08);
}
[data-theme="dark"] .eof-icon-btn {
  background: rgba(127, 29, 29, 0.2);
  color: #fc8181;
}
.eof-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid var(--eof-table-border);
  max-height: 320px;
  overflow-y: auto;
}
.eof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--eof-card-bg);
}
.eof-table thead tr {
  background: var(--eof-table-header-bg);
}
.eof-table thead th {
  padding: 11px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--eof-table-header-color);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 2px solid var(--eof-table-header-border);
  white-space: nowrap;
  text-align: left;
}
.eof-table tbody tr {
  border-bottom: 1px solid var(--eof-table-border);
  -webkit-transition: background 0.15s ease;
  transition: background 0.15s ease;
}
.eof-table tbody tr:last-child {
  border-bottom: none;
}
.eof-table tbody tr:hover {
  background: var(--eof-table-row-hover);
}
.eof-table tbody td {
  padding: 10px 14px;
  vertical-align: middle;
}
.eof-table .eof-input {
  min-width: 140px;
}
.eof-switch-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 12px;
}
.eof-switch-row--footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--eofsec-border);
}
.eof-field-grid+.eof-switch-row--footer {
  margin-top: 18px;
}
.eof-switch-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.eof-switch-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--eof-field-label);
}
.eof-switch-hint {
  font-size: 12px;
  color: var(--eof-page-subtitle);
}
.eof-switch-wrap {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}
.eof-switch-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--eof-page-subtitle);
}
.eof-switch-input {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  position: relative;
  width: 48px;
  height: 26px;
  min-width: 48px;
  margin: 0;
  border-radius: 999px;
  background: var(--eof-switch-off-track);
  border: 1px solid var(--eof-switch-off-border);
  cursor: pointer;
  -webkit-transition: background-color 0.2s ease, border-color 0.2s ease;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.eof-switch-input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}
.eof-switch-input:checked {
  background: var(--eof-switch-on);
  border-color: var(--eof-switch-on);
  -webkit-box-shadow: 0 0 0 2px var(--eof-switch-on-shadow);
          box-shadow: 0 0 0 2px var(--eof-switch-on-shadow);
}
.eof-switch-input:checked::after {
  -webkit-transform: translateX(22px);
          transform: translateX(22px);
}
.eof-switch-input:focus-visible {
  outline: 2px solid var(--eof-input-focus-border);
  outline-offset: 2px;
}
.eof-actionbar {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: var(--eof-card-bg);
  border: 1px solid var(--eof-card-border);
  border-radius: 6px;
  -webkit-box-shadow: 0 6px 24px rgba(10, 74, 140, 0.14);
          box-shadow: 0 6px 24px rgba(10, 74, 140, 0.14);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  width: 100%;
}
.eof-card {
  background: var(--eof-card-bg);
}
.eof-no-permission {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-height: 60vh;
  text-align: center;
}
.eof-no-permission__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--eof-no-perm-title);
  margin: 0 0 8px 0;
}
.eof-no-permission__desc {
  font-size: 14px;
  color: var(--eof-no-perm-desc);
  margin: 0;
}
.eof-table .switch {
  width: 48px !important;
  height: 26px !important;
}
.eof-table .switch-slider {
  background-color: var(--eof-switch-off-track) !important;
  border: 1px solid var(--eof-switch-off-border) !important;
  border-radius: 999px !important;
  -webkit-transition: background-color 0.2s ease, border-color 0.2s ease !important;
  transition: background-color 0.2s ease, border-color 0.2s ease !important;
}
.eof-table .switch-slider::before {
  content: '' !important;
  background-color: #ffffff !important;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  top: 2px !important;
  left: 2px !important;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  -webkit-transition: -webkit-transform 0.2s ease !important;
  transition: -webkit-transform 0.2s ease !important;
  transition: transform 0.2s ease !important;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease !important;
}
.eof-table .switch-outline-primary-alt .switch-input:checked~.switch-slider,
.eof-table .switch-outline-primary-alt .switch-input:checked+.switch-slider,
.eof-table .switch-input:checked~.switch-slider,
.eof-table .switch-input:checked+.switch-slider {
  background-color: var(--eof-switch-on) !important;
  border-color: var(--eof-switch-on) !important;
  -webkit-box-shadow: 0 0 0 2px var(--eof-switch-on-shadow) !important;
          box-shadow: 0 0 0 2px var(--eof-switch-on-shadow) !important;
}
.eof-table .switch-input:checked~.switch-slider::before,
.eof-table .switch-input:checked+.switch-slider::before {
  -webkit-transform: translateX(22px) !important;
          transform: translateX(22px) !important;
  background-color: #ffffff !important;
}
.eof-table .switch-3d .switch-slider {
  border-radius: 999px !important;
}
.eof-table .switch-slider::before,
.eof-table .switch-slider::after,
.eof-table .switch-label,
.eof-table .switch-label::before,
.eof-table .switch-label::after {
  color: #ffffff !important;
}
@media (max-width: 900px) {
.eof-two-col {
    grid-template-columns: 1fr;
}
}
@media (max-width: 600px) {
.eof-field-grid {
    grid-template-columns: 1fr;
}
.eof-block {
    padding: 16px 14px;
}
.eof-actionbar .eof-btn {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}
}
.eof-actionbar {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: var(--eof-card-bg);
  border: 1px solid var(--eof-card-border);
  border-radius: 6px;
  -webkit-box-shadow: 0 6px 24px var(--eof-actionbar-shadow);
          box-shadow: 0 6px 24px var(--eof-actionbar-shadow);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  width: 100%;
}
.eof-btn-ico {
  width: 15px;
  height: 15px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}

/* Green Submit button */
.eof-btn--save {
  background: linear-gradient(135deg, var(--eof-save-from), var(--eof-save-to));
  color: var(--eof-save-color);
  border: 1.5px solid transparent;
  -webkit-box-shadow: 0 2px 8px var(--eof-save-shadow);
          box-shadow: 0 2px 8px var(--eof-save-shadow);
  letter-spacing: 0.2px;
}
.eof-btn--save:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--eof-save-hover-from), var(--eof-save-hover-to));
  -webkit-box-shadow: 0 4px 14px var(--eof-save-shadow-hover);
          box-shadow: 0 4px 14px var(--eof-save-shadow-hover);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}
.eof-btn--save:active:not(:disabled) {
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-box-shadow: 0 2px 6px var(--eof-save-shadow);
          box-shadow: 0 2px 6px var(--eof-save-shadow);
}
.eof-btn--save:focus-visible {
  outline: 2px solid var(--eof-save-to);
  outline-offset: 2px;
}
.eof-btn--save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-filter: saturate(0.7);
          filter: saturate(0.7);
}

/* Light yellow Reset button */
.eof-btn--clear {
  background: #fff8e1;
  color: #8a5a00;
  border: 1.5px solid #f6d98a;
}
.eof-btn--clear:hover:not(:disabled) {
  background: #ffefb8;
  border-color: #f5a623;
  color: #7a4e00;
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-box-shadow: 0 4px 12px rgba(245, 166, 35, 0.25);
          box-shadow: 0 4px 12px rgba(245, 166, 35, 0.25);
}
.eof-btn--clear:active:not(:disabled) {
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-box-shadow: none;
          box-shadow: none;
}
.eof-btn--clear:focus-visible {
  outline: 2px solid #f5a623;
  outline-offset: 2px;
}
.eof-btn--clear:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
[data-theme="dark"] .eof-btn--clear {
  background: rgba(255, 184, 48, 0.12);
  color: #ffd27a;
  border-color: rgba(255, 184, 48, 0.35);
}
[data-theme="dark"] .eof-btn--clear:hover:not(:disabled) {
  background: rgba(255, 184, 48, 0.2);
  border-color: #ffb830;
  color: #ffe0a3;
  -webkit-box-shadow: 0 4px 12px rgba(255, 184, 48, 0.2);
          box-shadow: 0 4px 12px rgba(255, 184, 48, 0.2);
}


/* ---------- Audit info (left of action bar) ---------- */
.eof-audit-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px 16px;
  margin-right: auto;
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--eof-page-subtitle);
}
.eof-audit-item {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.eof-audit-label {
  font-weight: 700;
  color: var(--eof-field-label);
}
.eof-audit-value {
  font-weight: 500;
  color: var(--eof-page-title);
}
@media (max-width: 700px) {
.eof-audit-info {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 100%;
            flex: 1 1 100%;
}
}

