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

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

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

  --fl-ghost-bg: #f1f5f9;
  --fl-ghost-color: #374151;
  --fl-ghost-border: #e0e7ef;
  --fl-ghost-hover-bg: #e2e8f0;
  --fl-ghost-hover-border: #0a4a8c;
  --fl-ghost-hover-color: #0a4a8c;

  --fl-muted-color: #9ca3af;

  --fl-item-hover-bg: #eef4fb;
  --fl-item-hover-border: #c5d8f0;
  --fl-item-name-color: #1a1a2e;
  --fl-item-value-color: #0a4a8c;

  --fl-table-header-bg: #f1f5f9;
  --fl-table-header-color: #374151;
  --fl-table-border: #e4eaf0;
  --fl-table-row-hover: #eef4fb;
  --fl-table-cell-color: #1a1a2e;

  --fl-badge-bg: #dbeafe;
  --fl-badge-color: #1e40af;
  --fl-badge-border: #bfdbfe;

  --fl-divider: #e4eaf0;

  --fl-no-perm-title: #1a1a2e;
  --fl-no-perm-desc: #6b7280;
}
[data-theme="dark"] {
  --fl-card-bg: #16213e;
  --fl-card-border: #2d3748;
  --fl-card-shadow: rgba(0, 0, 0, 0.25);
  --fl-gold: #FFB830;
  --fl-gold-light: rgba(255, 184, 48, 0.10);
  --fl-gold-border: rgba(255, 184, 48, 0.28);
  --fl-page-title: #e2e8f0;
  --fl-page-subtitle: #a0aec0;

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

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

  --fl-ghost-bg: #1a2744;
  --fl-ghost-color: #cbd5e0;
  --fl-ghost-border: #3a4a6b;
  --fl-ghost-hover-bg: #243358;
  --fl-ghost-hover-border: #5aadff;
  --fl-ghost-hover-color: #5aadff;

  --fl-muted-color: #718096;

  --fl-item-hover-bg: #243358;
  --fl-item-hover-border: #3a4a6b;
  --fl-item-name-color: #e2e8f0;
  --fl-item-value-color: #5aadff;

  --fl-table-header-bg: #1a2744;
  --fl-table-header-color: #cbd5e0;
  --fl-table-border: #2d3748;
  --fl-table-row-hover: #243358;
  --fl-table-cell-color: #e2e8f0;

  --fl-badge-bg: #1e3a5f;
  --fl-badge-color: #93c5fd;
  --fl-badge-border: #2a4a7f;

  --fl-divider: #2d3748;

  --fl-no-perm-title: #e2e8f0;
  --fl-no-perm-desc: #a0aec0;
}
.fl-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;
  -webkit-animation: fl-fadeSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
          animation: fl-fadeSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  -webkit-animation-delay: 0.05s;
          animation-delay: 0.05s;
}
.fl-header-bar {
  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;
  width: 100%;
  gap: 12px;
}
.fl-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--fl-page-title);
  margin: 0 0 4px 0;
  border-left: 4px solid var(--fl-gold);
  padding-left: 10px;
}
.fl-page-title-sm {
  font-size: 18px;
}
.fl-page-subtitle {
  font-size: 13px;
  color: var(--fl-page-subtitle);
  margin: 0;
  padding-left: 14px;
}
.fl-card {
  background: var(--fl-card-bg);
  border: 1px solid var(--fl-card-border);
  border-radius: 6px;
  -webkit-box-shadow: 0 2px 12px var(--fl-card-shadow);
          box-shadow: 0 2px 12px var(--fl-card-shadow);
  padding: 20px 22px;
  margin-bottom: 20px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  position: relative;
}
.fl-toolbar-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  gap: 16px;
  width: 100%;
}
.fl-toolbar-col {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0%;
          flex: 1 1 0%;
  min-width: 0;
}
.fl-row-item {
  -webkit-animation: fl-fadeSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
          animation: fl-fadeSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fl-row-item:nth-child(1) {
  -webkit-animation-delay: 0.10s;
          animation-delay: 0.10s;
}
.fl-row-item:nth-child(2) {
  -webkit-animation-delay: 0.14s;
          animation-delay: 0.14s;
}
.fl-row-item:nth-child(3) {
  -webkit-animation-delay: 0.18s;
          animation-delay: 0.18s;
}
.fl-row-item:nth-child(4) {
  -webkit-animation-delay: 0.22s;
          animation-delay: 0.22s;
}
.fl-row-item:nth-child(5) {
  -webkit-animation-delay: 0.26s;
          animation-delay: 0.26s;
}
.fl-row-item:nth-child(6) {
  -webkit-animation-delay: 0.30s;
          animation-delay: 0.30s;
}
.fl-row-item:nth-child(7) {
  -webkit-animation-delay: 0.34s;
          animation-delay: 0.34s;
}
.fl-row-item:nth-child(8) {
  -webkit-animation-delay: 0.38s;
          animation-delay: 0.38s;
}
.fl-row-item:nth-child(n+9) {
  -webkit-animation-delay: 0.40s;
          animation-delay: 0.40s;
}
@-webkit-keyframes fl-fadeSlideUp {
from {
    opacity: 0;
    -webkit-transform: translateY(16px);
            transform: translateY(16px);
}
to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
}
}
@keyframes fl-fadeSlideUp {
from {
    opacity: 0;
    -webkit-transform: translateY(16px);
            transform: translateY(16px);
}
to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
}
}
@-webkit-keyframes fl-fadeSlideDown {
from {
    opacity: 0;
    -webkit-transform: translateY(-12px);
            transform: translateY(-12px);
}
to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
}
}
@keyframes fl-fadeSlideDown {
from {
    opacity: 0;
    -webkit-transform: translateY(-12px);
            transform: translateY(-12px);
}
to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
}
}
.fl-sec-block {
  background: var(--fl-sec-bg);
  border: 1px solid var(--fl-sec-border);
  border-radius: 6px;
  padding: 14px 16px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  width: 100%;
}
.fl-sec-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fl-sec-title-color);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--fl-sec-border);
}
.fl-sec-title-split {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.fl-sec-title-left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}
.fl-sec-icon {
  opacity: 0.7;
}
.fl-count-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--fl-gold);
  text-transform: none;
  letter-spacing: 0;
  background: var(--fl-gold-light);
  border: 1px solid var(--fl-gold-border);
  padding: 2px 9px;
  border-radius: 20px;
}
.fl-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  gap: 12px;
  width: 100%;
}
.fl-field {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 6px;
  min-width: 0;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 160px;
          flex: 1 1 160px;
}
.fl-field-search {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 160px;
          flex: 1 1 160px;
}
.fl-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fl-label-color);
  margin: 0;
}
.fl-input {
  border: 1.5px solid var(--fl-input-border);
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--fl-input-color);
  background: var(--fl-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: 38px;
  min-height: 38px;
  max-height: 38px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.fl-input:focus {
  border-color: var(--fl-input-focus-border);
  -webkit-box-shadow: 0 0 0 3px var(--fl-input-focus-shadow);
          box-shadow: 0 0 0 3px var(--fl-input-focus-shadow);
  outline: none;
}
.fl-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fl-search-wrap {
  position: relative;
  width: 100%;
}
.fl-input-search {
  padding-left: 32px;
}
.fl-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  color: var(--fl-muted-color);
  font-size: 12px;
  pointer-events: none;
}
.fl-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.fl-btn-icon {
  font-size: 12px;
}
.fl-btn-submit {
  background: #0a4a8c;
  color: #ffffff;
  -webkit-box-shadow: 0 2px 8px rgba(10, 74, 140, 0.25);
          box-shadow: 0 2px 8px rgba(10, 74, 140, 0.25);
}
.fl-btn-submit: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);
}
.fl-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.fl-btn-load {
  background: #0a4a8c;
  color: #ffffff;
  -webkit-box-shadow: 0 2px 8px rgba(10, 74, 140, 0.25);
          box-shadow: 0 2px 8px rgba(10, 74, 140, 0.25);
}
.fl-btn-load:hover:not(:disabled) {
  background: #073a70;
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-box-shadow: 0 4px 14px rgba(10, 74, 140, 0.35);
          box-shadow: 0 4px 14px rgba(10, 74, 140, 0.35);
}
.fl-btn-clear {
  background: var(--fl-ghost-bg);
  color: var(--fl-ghost-color);
  border: 1.5px solid var(--fl-ghost-border);
}
.fl-btn-clear:hover:not(:disabled) {
  background: var(--fl-ghost-hover-bg);
  border-color: var(--fl-ghost-hover-border);
  color: var(--fl-ghost-hover-color);
}
.fl-btn-clear:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fl-btn-edit {
  background: var(--fl-item-hover-bg);
  color: #0a4a8c;
  border: 1.5px solid var(--fl-item-hover-border);
  font-size: 12px;
  padding: 0 14px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
}
.fl-btn-edit:hover:not(:disabled) {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-box-shadow: 0 3px 8px rgba(10, 74, 140, 0.18);
          box-shadow: 0 3px 8px rgba(10, 74, 140, 0.18);
}
.fl-btn-edit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
[data-theme="dark"] .fl-btn-edit {
  background: #1a2744;
  color: #5aadff;
  border-color: #2a3f5f;
}
[data-theme="dark"] .fl-btn-edit:hover:not(:disabled) {
  background: #243358;
  border-color: #5aadff;
  color: #93c5fd;
}
.fl-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;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 40px 16px;
  text-align: center;
  min-height: 180px;
}
.fl-empty-icon {
  font-size: 40px;
  color: rgb(167, 167, 167);
  margin-bottom: 12px;
  opacity: 0.6;
}
.fl-empty-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fl-muted-color);
  margin: 0 0 4px 0;
}
.fl-empty-desc {
  font-size: 11.5px;
  color: var(--fl-muted-color);
  opacity: 0.7;
  margin: 0;
}
.fl-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
  border: 1px solid var(--fl-table-border);
}
.fl-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
  background: var(--fl-card-bg);
}
.fl-table thead tr {
  background: var(--fl-table-header-bg);
}
.fl-table thead th {
  padding: 12px 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fl-table-header-color);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1.5px solid var(--fl-table-border);
  white-space: nowrap;
  text-align: left;
}
.fl-table thead th:nth-child(1),
.fl-table tbody td:nth-child(1) {
  width: 35%;
}
.fl-table thead th:nth-child(2),
.fl-table tbody td:nth-child(2) {
  width: 40%;
}
.fl-table thead th:nth-child(3),
.fl-table tbody td:nth-child(3) {
  width: 140px;
  position: sticky;
  right: 0;
  background: var(--fl-card-bg);
  -webkit-box-shadow: -4px 0 8px -4px rgba(0, 0, 0, 0.08);
          box-shadow: -4px 0 8px -4px rgba(0, 0, 0, 0.08);
}
.fl-table thead th:nth-child(3) {
  background: var(--fl-table-header-bg);
  z-index: 2;
}
.fl-table tbody td:nth-child(3) {
  z-index: 1;
}
.fl-table tbody tr:hover td:nth-child(3) {
  background: var(--fl-table-row-hover);
}
.fl-table tbody tr {
  border-bottom: 1px solid var(--fl-table-border);
  -webkit-transition: background 0.15s ease;
  transition: background 0.15s ease;
}
.fl-table tbody tr:last-child {
  border-bottom: none;
}
.fl-table tbody tr:hover {
  background: var(--fl-table-row-hover);
}
.fl-table tbody td {
  padding: 13px 16px;
  color: var(--fl-table-cell-color);
  vertical-align: middle;
  overflow: hidden;
}
.fl-truncate {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}
.fl-cell-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--fl-item-name-color);
}
.fl-cell-value {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fl-item-value-color);
  white-space: nowrap;
}
.fl-options {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}
.fl-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;
}
.fl-no-perm-icon {
  font-size: 56px;
  color: #cbd5e0;
  margin-bottom: 20px;
}
.fl-no-perm-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--fl-no-perm-title);
  margin: 0 0 8px 0;
}
.fl-no-perm-desc {
  font-size: 14px;
  color: var(--fl-no-perm-desc);
  margin: 0;
}
@media (max-width: 900px) {
.fl-card {
    padding: 16px 14px;
}
.fl-toolbar-grid {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
}
.fl-toolbar-col {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 100%;
            flex: 1 1 100%;
}
}
@media (max-width: 600px) {
.fl-header-bar {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 12px;
}
}

