/* FUEC UI — modern shell for CI4 + GroceryCRUD (transcar / maadexpress / cootransrio) */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap');

:root {
  --fuec-ink: #102a43;
  --fuec-muted: #627d98;
  --fuec-surface: #eef2f6;
  --fuec-panel: #ffffff;
  --fuec-accent: #1e40af;
  --fuec-accent-hover: #1e3a8a;
  --fuec-accent-soft: rgba(30, 64, 175, 0.12);
  --fuec-warn: #c2410c;
  --fuec-line: #d9e2ec;
  --fuec-sidebar: #0b1f33;
  --fuec-sidebar-2: #14344f;
  --fuec-sidebar-text: #d9e2ec;
  --fuec-radius: 14px;
  --fuec-shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
  --bs-primary: #1e40af;
  --bs-primary-rgb: 30, 64, 175;
  --bs-body-font-family: "IBM Plex Sans", system-ui, sans-serif;
  --bs-heading-font-family: "Sora", "IBM Plex Sans", sans-serif;
}

html, body {
  font-family: var(--bs-body-font-family) !important;
  color: var(--fuec-ink);
  background: var(--fuec-surface) !important;
}

h1,h2,h3,h4,h5,.app-brand-text,.menu-header,.card-header {
  font-family: var(--bs-heading-font-family) !important;
  letter-spacing: -0.02em;
}

/* ---------- LOGIN ---------- */
body.fuec-auth {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15,118,110,.22), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(194,65,12,.14), transparent 50%),
    linear-gradient(160deg, #0b1f33 0%, #14344f 42%, #eef2f6 42.1%, #eef2f6 100%) !important;
}

body.fuec-auth .container-xxl,
body.fuec-auth .authentication-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  width: 100%;
  max-width: none !important;
}

body.fuec-auth .authentication-inner {
  width: 100%;
  max-width: 420px;
}

body.fuec-auth .card {
  border: 0;
  border-radius: 20px;
  box-shadow: var(--fuec-shadow);
  overflow: hidden;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
}

body.fuec-auth .card-body { padding: 2rem 1.75rem 1.75rem; }

body.fuec-auth .fuec-mark {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #2563eb, #1e3a8a);
  color: #fff; font-weight: 700; font-family: "Sora", sans-serif;
  box-shadow: 0 8px 18px rgba(15,118,110,.35);
}

body.fuec-auth .app-brand { margin-bottom: .75rem !important; }
body.fuec-auth .app-brand-text {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  color: var(--fuec-ink) !important;
}
body.fuec-auth .fuec-auth-kicker {
  color: var(--fuec-muted);
  font-size: .92rem;
  margin: 0 0 1.25rem;
}
body.fuec-auth h4 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: .35rem !important;
}
body.fuec-auth .form-label {
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fuec-muted);
}
body.fuec-auth .form-control,
body.fuec-auth .input-group-text {
  border-radius: 12px !important;
  border-color: var(--fuec-line) !important;
  min-height: 48px;
  background: #f8fafc;
}
body.fuec-auth .input-group .form-control { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
body.fuec-auth .input-group .input-group-text { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
body.fuec-auth .form-control:focus {
  border-color: var(--fuec-accent) !important;
  box-shadow: 0 0 0 .2rem var(--fuec-accent-soft) !important;
  background: #fff;
}
body.fuec-auth .btn-primary {
  background: #111827 !important;
  border-color: #111827 !important;
  border-radius: 12px !important;
  min-height: 48px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .15s ease, background .15s ease;
}
body.fuec-auth .btn-primary:hover {
  background: #1f2937 !important;
  border-color: #1f2937 !important;
  transform: translateY(-1px);
}
body.fuec-auth .text-danger { font-size: .92rem; }

@media (max-width: 575.98px) {
  body.fuec-auth {
    background: linear-gradient(180deg, #0b1f33 0%, #14344f 28%, #eef2f6 28%) !important;
  }
  body.fuec-auth .card-body { padding: 1.5rem 1.15rem; }
}

/* ---------- APP SHELL ---------- */
body.fuec-app .layout-wrapper,
body.fuec-app .layout-container { background: var(--fuec-surface) !important; }

body.fuec-app .bg-menu-theme,
body.fuec-app #layout-menu {
  background: linear-gradient(180deg, var(--fuec-sidebar) 0%, var(--fuec-sidebar-2) 100%) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.04);
}

body.fuec-app .menu-vertical .menu-inner > .menu-item .menu-link {
  color: var(--fuec-sidebar-text) !important;
  border-radius: 10px;
  margin: 2px 10px;
  transition: background .15s ease, color .15s ease;
}
body.fuec-app .menu-vertical .menu-item.active > .menu-link,
body.fuec-app .menu-vertical .menu-item.open > .menu-link,
body.fuec-app .menu-vertical .menu-link:hover {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}
body.fuec-app .menu-vertical .menu-sub .menu-link {
  color: #9fb3c8 !important;
  margin-left: 10px;
}
body.fuec-app .menu-vertical .menu-sub .menu-link:hover,
body.fuec-app .menu-vertical .menu-sub .menu-item.active > .menu-link {
  color: #fff !important;
  background: var(--fuec-accent-soft) !important;
}
body.fuec-app .menu-icon { color: #93c5fd !important; }
body.fuec-app .app-brand .app-brand-text {
  color: #fff !important;
  text-transform: none !important;
  font-size: 1.05rem !important;
}
body.fuec-app .app-brand { padding: 1rem 1rem .5rem !important; }
body.fuec-app .fuec-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #2563eb, #1e3a8a);
  color: #fff; font-weight: 700; font-size: .85rem;
  font-family: "Sora", sans-serif;
}

body.fuec-app .layout-navbar,
body.fuec-app .layout-navbar.fuec-topbar,
body.fuec-app #layout-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0.35rem 1.25rem !important;
  min-height: 48px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  align-items: center !important;
  background: #fff !important;
  backdrop-filter: none !important;
  border: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.fuec-app .layout-navbar.navbar-detached,
body.fuec-app .navbar-detached {
  /* override Sneat floating card if class remains */
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
body.fuec-app .layout-navbar #navbar-collapse,
body.fuec-app .layout-navbar .navbar-nav-right,
body.fuec-app .layout-navbar .navbar-nav {
  align-items: center !important;
  min-height: 0 !important;
}
body.fuec-app .layout-navbar .nav-item {
  line-height: 1.25 !important;
}

body.fuec-app .fuec-topbar-brand {
  display: flex !important;
  flex-direction: row;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0 !important;
  min-height: 0;
  line-height: 1.2;
}
body.fuec-app .fuec-topbar-title {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #111827;
  margin: 0 !important;
  line-height: 1.2 !important;
  overflow: visible !important;
  white-space: nowrap;
}
body.fuec-app .fuec-topbar-sub {
  color: #6b7280 !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  overflow: visible !important;
  white-space: nowrap;
  opacity: 1 !important;
}
body.fuec-app .fuec-topbar-sub::before {
  content: "·";
  margin-right: 0.5rem;
  color: #9ca3af;
}
body.fuec-app .layout-navbar .avatar {
  width: 32px !important;
  height: 32px !important;
}
body.fuec-app .layout-navbar .avatar img {
  width: 32px !important;
  height: 32px !important;
  object-fit: cover;
}
body.fuec-app .layout-page {
  padding-top: 0 !important;
}


/* Profile dropdown */
body.fuec-app .layout-wrapper,
body.fuec-app .layout-container,
body.fuec-app .layout-page,
body.fuec-app .layout-navbar,
body.fuec-app .layout-navbar .navbar-nav-right,
body.fuec-app .layout-navbar .navbar-nav,
body.fuec-app .layout-navbar .dropdown,
body.fuec-app .content-wrapper {
  overflow: visible !important;
}
body.fuec-app #fuec-user-menu,
body.fuec-app #fuec-user-menu * {
  cursor: pointer !important;
  pointer-events: auto !important;
}
body.fuec-app #fuec-user-menu {
  display: inline-flex !important;
  align-items: center;
  padding: 0.15rem !important;
  position: relative;
  z-index: 1090;
}
body.fuec-app .layout-navbar .dropdown-menu,
body.fuec-app #fuec-user-dropdown {
  z-index: 2000 !important;
  min-width: 250px;
  padding: 0.45rem 0;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16) !important;
  background: #fff !important;
}
body.fuec-app #fuec-user-dropdown.show {
  display: block !important;
}
body.fuec-app .layout-navbar .dropdown-item {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  color: #111827;
}
body.fuec-app .layout-navbar .dropdown-item:hover,
body.fuec-app .layout-navbar .dropdown-item:focus {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

body.fuec-app .content-wrapper,
body.fuec-app .container-p-y {
  padding-top: 1rem !important;
}
body.fuec-app .container-xxl.flex-grow-1 {
  max-width: 1440px;
}

body.fuec-app .content-footer {
  background: transparent !important;
  border-top: 1px solid var(--fuec-line);
  color: var(--fuec-muted);
}
body.fuec-app .footer-link { color: var(--fuec-accent) !important; }

body.fuec-app .btn-primary,
body.fuec-app .btn-primary:focus {
  background-color: #111827 !important;
  border-color: #111827 !important;
}
body.fuec-app .btn-primary:hover {
  background-color: #1f2937 !important;
  border-color: #1f2937 !important;
}

/* ---------- GROCERY CRUD / DATATABLES ---------- */
body.fuec-app .flexigrid,
body.fuec-app .dataTables_wrapper,
body.fuec-app #groceryCrudTable_wrapper,
body.fuec-app .card,
body.fuec-app form.form-horizontal {
  background: var(--fuec-panel);
  border: 1px solid var(--fuec-line);
  border-radius: var(--fuec-radius);
  box-shadow: var(--fuec-shadow);
}

body.fuec-app .dataTables_wrapper,
body.fuec-app .flexigrid {
  padding: 1rem 1rem 1.25rem;
  overflow: hidden;
}

body.fuec-app .tDiv,
body.fuec-app .sDiv,
body.fuec-app .pDiv,
body.fuec-app .dataTables_length,
body.fuec-app .dataTables_filter,
body.fuec-app .dataTables_info,
body.fuec-app .dataTables_paginate {
  background: transparent !important;
  border: 0 !important;
  color: var(--fuec-muted) !important;
  font-family: var(--bs-body-font-family) !important;
}

body.fuec-app .dataTables_filter input,
body.fuec-app .sDiv input,
body.fuec-app .form-control,
body.fuec-app select.form-control,
body.fuec-app .chosen-container-single .chosen-single,
body.fuec-app .select2-container .select2-selection--single {
  border: 1px solid var(--fuec-line) !important;
  border-radius: 10px !important;
  min-height: 40px;
  padding: .45rem .75rem;
  background: #fff !important;
}

body.fuec-app table.display,
body.fuec-app table.datatables,
body.fuec-app #groceryCrudTable,
body.fuec-app .flexigrid table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

body.fuec-app table thead th,
body.fuec-app .flexigrid thead th,
body.fuec-app .ui-widget-header {
  background: #f8fafc !important;
  color: var(--fuec-muted) !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--fuec-line) !important;
  border-top: 0 !important;
  padding: .85rem .75rem !important;
  white-space: nowrap;
}

body.fuec-app table tbody td,
body.fuec-app .flexigrid tbody td {
  border-bottom: 1px solid #eef2f6 !important;
  padding: .85rem .75rem !important;
  vertical-align: middle !important;
  color: var(--fuec-ink);
  font-size: .92rem;
  background: #fff !important;
}

body.fuec-app table tbody tr:hover td {
  background: #f8fafc !important;
}

body.fuec-app .btn,
body.fuec-app a.btn,
body.fuec-app .add-anchor,
body.fuec-app .edit-anchor,
body.fuec-app .delete-anchor,
body.fuec-app .read-anchor,
body.fuec-app .tDiv2 a {
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
body.fuec-app .add-anchor,
body.fuec-app .tDiv2 .add-anchor,
body.fuec-app a.add-anchor {
  background: #111827 !important;
  color: #fff !important;
  border: 0 !important;
  padding: .55rem 1rem !important;
  display: inline-flex !important;
  align-items: center;
  gap: .35rem;
  text-decoration: none !important;
}
body.fuec-app .add-anchor:hover { background: #1f2937 !important; color:#fff !important; }

/* Legacy action anchors only — never fight .fuec-link-action */
body.fuec-app .actions a.edit-anchor,
body.fuec-app .actions a.read-anchor,
body.fuec-app .actions a.delete-anchor,
body.fuec-app a.edit-anchor,
body.fuec-app a.read-anchor,
body.fuec-app a.delete-anchor {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  margin: 0 2px;
  border: 1px solid var(--fuec-line) !important;
  background: #fff !important;
  color: var(--fuec-ink) !important;
  text-decoration: none !important;
}
body.fuec-app .actions a.edit-anchor:hover,
body.fuec-app .actions a.read-anchor:hover {
  border-color: #9ca3af !important;
  color: #111827 !important;
}

/* Forms (CRUD add/edit) */
body.fuec-app .form-div,
body.fuec-app form {
  padding: .25rem;
}
body.fuec-app .form-field-box,
body.fuec-app .control-group {
  margin-bottom: 1rem !important;
  padding: .25rem 0 !important;
  border: 0 !important;
}
body.fuec-app .form-display-as-box,
body.fuec-app label.control-label {
  font-weight: 600 !important;
  color: var(--fuec-muted) !important;
  font-size: .82rem !important;
  text-transform: uppercase;
  letter-spacing: .03em;
  float: none !important;
  width: auto !important;
  display: block !important;
  margin-bottom: .35rem !important;
  text-align: left !important;
}
body.fuec-app .form-input-box,
body.fuec-app .controls {
  float: none !important;
  width: 100% !important;
  max-width: 720px;
}
body.fuec-app .form-input-box input[type=text],
body.fuec-app .form-input-box input[type=password],
body.fuec-app .form-input-box input[type=email],
body.fuec-app .form-input-box input[type=number],
body.fuec-app .form-input-box input[type=date],
body.fuec-app .form-input-box textarea,
body.fuec-app .form-input-box select,
body.fuec-app .controls input,
body.fuec-app .controls textarea,
body.fuec-app .controls select {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid var(--fuec-line) !important;
  border-radius: 10px !important;
  min-height: 42px;
  padding: .55rem .8rem !important;
  background: #fff !important;
}
body.fuec-app .form-button-box,
body.fuec-app .form-actions {
  padding-top: .75rem !important;
  border-top: 1px solid var(--fuec-line);
  margin-top: 1rem;
}
body.fuec-app .form-button-box input[type=submit],
body.fuec-app .form-button-box input[type=button],
body.fuec-app .btn-large,
body.fuec-app .form-button-box .ui-button,
body.fuec-app .ui-dialog .ui-button {
  background: #111827 !important;
  border: 0 !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: .65rem 1.2rem !important;
  font-weight: 600 !important;
}

/* Horizontal scroll tables on mobile */
body.fuec-app .dataTables_wrapper,
body.fuec-app .bDiv,
body.fuec-app .flexigrid .bDiv {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1199.98px) {
  body.fuec-app .layout-menu-fixed .layout-navbar-full .layout-menu,
  body.fuec-app .layout-menu {
    width: 280px !important;
  }
}

@media (max-width: 767.98px) {
  body.fuec-app .container-p-y { padding-left: .75rem !important; padding-right: .75rem !important; }
  body.fuec-app .dataTables_wrapper,
  body.fuec-app .flexigrid { padding: .75rem; border-radius: 12px; }
  body.fuec-app .dataTables_filter,
  body.fuec-app .dataTables_length { float: none !important; text-align: left !important; width: 100%; margin-bottom: .5rem; }
  body.fuec-app .dataTables_filter input { width: 100% !important; }
  body.fuec-app table thead th,
  body.fuec-app table tbody td { padding: .65rem .5rem !important; font-size: .85rem !important; }
  body.fuec-app .form-display-as-box,
  body.fuec-app .form-input-box { width: 100% !important; }
}

/* Hide legacy github buttons noise if any */
body.fuec-app iframe.social-count,
body.fuec-auth iframe { display: none !important; }

/* Select2 */
body.fuec-app .select2-container--default .select2-selection--single {
  height: 42px !important;
  border-radius: 10px !important;
  border-color: var(--fuec-line) !important;
}
body.fuec-app .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px !important;
}
body.fuec-app .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
}

/* Extra polish */
body.fuec-app .layout-menu-toggle .menu-link,
body.fuec-app #layout-menu .layout-menu-toggle i {
  color: #fff !important;
}
body.fuec-app .menu-vertical .menu-inner > .menu-item.active > .menu-link {
  background: rgba(30, 64, 175, 0.35) !important;
  box-shadow: inset 3px 0 0 #60a5fa;
}
body.fuec-app .avatar img {
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--fuec-accent-soft);
}
body.fuec-app .dropdown-menu {
  border-radius: 12px !important;
  border: 1px solid var(--fuec-line) !important;
  box-shadow: var(--fuec-shadow) !important;
}
/* GroceryCRUD paging buttons */
body.fuec-app .dataTables_paginate .paginate_button,
body.fuec-app .pDiv .pPageStat,
body.fuec-app .pDiv .pcontrol input {
  border-radius: 8px !important;
}
body.fuec-app .dataTables_paginate .paginate_button.current {
  background: #111827 !important;
  color: #fff !important;
  border: 0 !important;
}
/* Widen content comfort */
@media (min-width: 1400px) {
  body.fuec-app .container-xxl { max-width: 1320px; }
}

/* GroceryCRUD toolbar — override legacy tab look */
body.fuec-app .tDiv,
body.fuec-app .tDiv2,
body.fuec-app .tDiv3,
body.fuec-app .ftitle-left,
body.fuec-app .ftitle-right {
  background: transparent !important;
  border: 0 !important;
  height: auto !important;
  padding: .35rem 0 .85rem !important;
}
body.fuec-app .tDiv2 a,
body.fuec-app .tDiv3 a,
body.fuec-app a.add-anchor,
body.fuec-app .add_button {
  background: #111827 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: .55rem 1rem !important;
  margin: 0 .35rem .35rem 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  background-image: none !important;
  text-decoration: none !important;
  float: none !important;
}
body.fuec-app a.export-anchor,
body.fuec-app a.print-anchor {
  background: #fff !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: .55rem 0.9rem !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 .35rem .35rem 0 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}
body.fuec-app .tDiv2 a:hover,
body.fuec-app a.add-anchor:hover { background: #1f2937 !important; color:#fff !important; }

body.fuec-app .dataTables_wrapper > .row,
body.fuec-app .dataTables_length,
body.fuec-app .dataTables_filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: center;
  margin-bottom: .75rem !important;
}
body.fuec-app .filtering_form,
body.fuec-app .filter-row {
  background: #f8fafc !important;
  border: 1px solid var(--fuec-line) !important;
  border-radius: 10px !important;
  padding: .5rem !important;
  margin-bottom: .75rem !important;
}

/* ===== FUEC LISTS — dense admin tables ===== */
body.fuec-app .grocerycrud-container.fuec-list,
body.fuec-app .fuec-list .dataTablesContainer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-family: "IBM Plex Sans", sans-serif !important;
}

body.fuec-app .fuec-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  min-height: 40px;
}
body.fuec-app .fuec-list-toolbar-spacer { display: none !important; }
body.fuec-app .fuec-list-toolbar-tools {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 0 0 !important;
  margin-left: auto !important;
  height: auto !important;
  width: auto !important;
  flex: 0 1 auto !important;
}
body.fuec-app .fuec-list-toolbar-tools .DTTT_container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem;
  align-items: center;
  float: none !important;
  position: static !important;
  margin: 0 !important;
  height: auto !important;
  width: auto !important;
  max-width: none !important;
}
body.fuec-app .fuec-list .DTTT_container,
body.fuec-app .fuec-list div.DTTT_container {
  width: auto !important;
  max-width: none !important;
  float: none !important;
}

body.fuec-app .fuec-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.45rem 0.95rem !important;
  border-radius: 9px !important;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  box-shadow: none !important;
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
}
body.fuec-app .fuec-btn-primary {
  background: #111827 !important;
  color: #fff !important;
}
body.fuec-app .fuec-btn-primary:hover {
  background: #1f2937 !important;
  color: #fff !important;
}
body.fuec-app .fuec-btn-plus {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}
body.fuec-app .fuec-btn-ghost,
body.fuec-app .fuec-list-toolbar-tools .DTTT_button,
body.fuec-app .fuec-list-toolbar-tools a.DTTT_button,
body.fuec-app .fuec-list .DTTT_button,
body.fuec-app .fuec-list a.DTTT_button {
  background: #fff !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: none !important;
  background-image: none !important;
  float: none !important;
  position: static !important;
  height: auto !important;
  min-height: 38px !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: 9px !important;
  margin: 0 !important;
  filter: none !important;
  font-weight: 600 !important;
  font-size: 0.84rem !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem;
}
body.fuec-app .fuec-list-toolbar-tools .DTTT_button:hover,
body.fuec-app .fuec-list .DTTT_button:hover {
  border-color: #9ca3af !important;
  color: #111827 !important;
  background: #f9fafb !important;
}
body.fuec-app .fuec-list-toolbar-tools .ui-icon,
body.fuec-app .fuec-list-toolbar-tools .DTTT_button span[style],
body.fuec-app .fuec-list-toolbar-tools .DTTT_button span,
body.fuec-app .fuec-list .DTTT_button .ui-icon {
  background-image: none !important;
  background: none !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  text-indent: 0 !important;
  margin: 0 !important;
}

body.fuec-app .fuec-list .datatables-add-button { display: none !important; }
body.fuec-app .fuec-list div.DTTT_container { float: none !important; position: static !important; margin: 0 !important; }
body.fuec-app .fuec-list .dataTables_wrapper > .clear { display: none !important; height: 0 !important; }

/* Panel card around table only */
body.fuec-app .fuec-list .dataTables_wrapper {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
}

body.fuec-app .fuec-list .dataTables_length,
body.fuec-app .fuec-list .dataTables_filter {
  float: none !important;
  margin: 0 !important;
  color: #6b7280 !important;
  font-size: 0.84rem !important;
  text-transform: none !important;
  padding: 0 !important;
}
body.fuec-app .fuec-list .fuec-list-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}
body.fuec-app .fuec-list .dataTables_length label,
body.fuec-app .fuec-list .dataTables_filter label {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  margin: 0 !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  white-space: nowrap;
}
body.fuec-app .fuec-list .dataTables_length select {
  min-height: 36px !important;
  min-width: 72px !important;
  width: auto !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 0.3rem 0.5rem !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.fuec-app .fuec-list .dataTables_filter input,
body.fuec-app .fuec-list .fuec-list-controls .dataTables_filter input {
  min-height: 36px !important;
  width: 260px !important;
  min-width: 260px !important;
  max-width: min(260px, 100%) !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 0.35rem 0.75rem !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 0.875rem !important;
  box-sizing: border-box !important;
}
body.fuec-app .fuec-list .dataTables_filter input:focus {
  outline: none !important;
  border-color: #9ca3af !important;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08) !important;
}

/* Dense modern table */
body.fuec-app .fuec-list table.fuec-table,
body.fuec-app .fuec-list table.display {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 0 !important;
  margin: 0 !important;
}
body.fuec-app .fuec-list table thead th,
body.fuec-app .fuec-list table.display thead th {
  background: #fff !important;
  color: #6b7280 !important;
  font-size: 0.7rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #e5e7eb !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  padding: 0.55rem 1rem !important;
  white-space: nowrap;
}
body.fuec-app .fuec-list table tbody td,
body.fuec-app .fuec-list table.display tbody td {
  padding: 0.58rem 1rem !important;
  border-top: 1px solid #f3f4f6 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  color: #111827 !important;
  font-size: 0.9rem !important;
  background: #fff !important;
  vertical-align: middle !important;
}
body.fuec-app .fuec-list table tbody tr:hover td {
  background: #f9fafb !important;
}
body.fuec-app .fuec-list table tbody td:first-child {
  font-weight: 650 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
body.fuec-app .fuec-list table th.actions,
body.fuec-app .fuec-list table td.actions {
  text-align: right !important;
  width: 1%;
  white-space: nowrap;
}

/* Soft pill actions — beat any leftover .actions a rules */
body.fuec-app .fuec-list td.actions .fuec-row-actions,
body.fuec-app td.actions .fuec-row-actions {
  display: inline-flex !important;
  flex-wrap: nowrap;
  gap: 0.3rem;
  justify-content: flex-end;
  align-items: center;
}
body.fuec-app .fuec-list td.actions a.fuec-link-action,
body.fuec-app td.actions a.fuec-link-action,
body.fuec-app a.fuec-link-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 28px !important;
  min-width: 0 !important;
  padding: 0.15rem 0.55rem !important;
  border-radius: 6px !important;
  border: 0 !important;
  background: #f3f4f6 !important;
  color: #374151 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  background-image: none !important;
  margin: 0 !important;
  float: none !important;
  line-height: 1.2 !important;
}
body.fuec-app .fuec-list td.actions a.fuec-link-action:hover,
body.fuec-app td.actions a.fuec-link-action:hover,
body.fuec-app a.fuec-link-action:hover {
  background: #e5e7eb !important;
  color: #111827 !important;
  border-color: transparent !important;
}
body.fuec-app .fuec-list td.actions a.fuec-link-danger,
body.fuec-app td.actions a.fuec-link-danger,
body.fuec-app a.fuec-link-action.fuec-link-danger {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}
body.fuec-app .fuec-list td.actions a.fuec-link-danger:hover,
body.fuec-app td.actions a.fuec-link-danger:hover {
  background: #fee2e2 !important;
  color: #991b1b !important;
}
body.fuec-app td.actions .ui-button,
body.fuec-app td.actions .ui-icon { display: none !important; }

/* Footer filters */
body.fuec-app .fuec-list tfoot th {
  background: #fafafa !important;
  border-top: 1px solid #e5e7eb !important;
  padding: 0.55rem 0.75rem !important;
}
body.fuec-app .fuec-list tfoot input[type=text] {
  width: 100% !important;
  min-height: 34px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 0.3rem 0.55rem !important;
  box-shadow: none !important;
  font-size: 0.82rem !important;
  background: #fff !important;
}

/* Pagination footer strip */
body.fuec-app .fuec-list .dataTables_info,
body.fuec-app .fuec-list .dataTables_paginate {
  float: none !important;
  padding: 0.75rem 1rem !important;
  color: #6b7280 !important;
  font-size: 0.8rem !important;
  display: inline-block;
  vertical-align: middle;
}
body.fuec-app .fuec-list .dataTables_info { width: 48%; }
body.fuec-app .fuec-list .dataTables_paginate { width: 48%; text-align: right; }
body.fuec-app .fuec-list .dataTables_paginate .paginate_button,
body.fuec-app .fuec-list .dataTables_paginate .fg-button {
  border: 0 !important;
  border-radius: 7px !important;
  padding: 0.28rem 0.5rem !important;
  margin: 0 0.08rem !important;
  background: transparent !important;
  background-image: none !important;
  color: #374151 !important;
  box-shadow: none !important;
}
body.fuec-app .fuec-list .dataTables_paginate .paginate_button.current,
body.fuec-app .fuec-list .dataTables_paginate .fg-button.ui-state-disabled,
body.fuec-app .fuec-list .dataTables_paginate .ui-state-disabled {
  background: #111827 !important;
  color: #fff !important;
  opacity: 1 !important;
}

body.fuec-auth .btn-primary,
body.fuec-auth .fuec-mark,
body.fuec-app .fuec-mark {
  background: #111827 !important;
  border-color: #111827 !important;
}
body.fuec-auth .fuec-mark,
body.fuec-app .fuec-mark {
  background: linear-gradient(145deg, #1f2937, #111827) !important;
}
body.fuec-app .menu-vertical .menu-item.active > .menu-link {
  background: rgba(255,255,255,0.1) !important;
  box-shadow: inset 3px 0 0 #e5e7eb !important;
}
body.fuec-app .menu-icon { color: #9ca3af !important; }
body.fuec-app .menu-vertical .menu-item.active > .menu-link .menu-icon { color: #fff !important; }

@media (max-width: 575.98px) {
  body.fuec-app .fuec-list-toolbar-tools { margin-left: 0 !important; width: 100%; }
  body.fuec-app .fuec-btn-primary { width: 100%; }
  body.fuec-app .fuec-list-toolbar-tools .DTTT_button,
  body.fuec-app .fuec-list-toolbar-tools a.DTTT_button {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
  }
}
@media (max-width: 767.98px) {
  body.fuec-app .fuec-list-toolbar {
    flex-wrap: wrap;
  }
  body.fuec-app .fuec-list .fuec-list-controls {
    flex-direction: column;
    align-items: stretch;
  }
  body.fuec-app .fuec-list .dataTables_filter input {
    width: 100% !important;
    min-width: 0 !important;
  }
  body.fuec-app .fuec-list .dataTables_info,
  body.fuec-app .fuec-list .dataTables_paginate {
    width: 100%;
    text-align: left;
  }
}

/* ===== FUEC DETAIL / READ VIEW ===== */
body.fuec-app .fuec-detail,
body.fuec-app .datatables.ui-widget-content,
body.fuec-app div.datatables {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
  overflow: hidden !important;
  padding: 0 !important;
  font-family: "IBM Plex Sans", sans-serif !important;
  color: #111827 !important;
}
body.fuec-app .fuec-detail .ui-accordion-header,
body.fuec-app .datatables .form-title,
body.fuec-app .datatables h3.form-title {
  display: none !important;
}
body.fuec-app .fuec-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}
body.fuec-app .fuec-detail-eyebrow {
  margin: 0 0 0.15rem !important;
  font-size: 0.72rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280 !important;
}
body.fuec-app .fuec-detail-title {
  margin: 0 !important;
  font-family: "Sora", "IBM Plex Sans", sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 650 !important;
  color: #111827 !important;
  line-height: 1.3 !important;
}
body.fuec-app .fuec-detail-body,
body.fuec-app .datatables .form-content,
body.fuec-app .datatables .form-div {
  padding: 1.15rem 1.25rem 1.25rem !important;
  background: #fff !important;
  border: 0 !important;
}
body.fuec-app .fuec-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
}
@media (max-width: 767.98px) {
  body.fuec-app .fuec-detail-grid {
    grid-template-columns: 1fr;
  }
}
body.fuec-app .fuec-detail-field,
body.fuec-app .fuec-detail .form-field-box,
body.fuec-app .datatables .form-field-box {
  background: #f9fafb !important;
  border: 1px solid #eef2f6 !important;
  border-radius: 10px !important;
  padding: 0.85rem 1rem !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}
body.fuec-app .datatables .form-field-box.odd,
body.fuec-app .datatables .form-field-box.even {
  background: #f9fafb !important;
}
body.fuec-app .fuec-detail-label,
body.fuec-app .fuec-detail .form-display-as-box,
body.fuec-app .datatables .form-display-as-box {
  float: none !important;
  width: auto !important;
  display: block !important;
  margin: 0 0 0.35rem !important;
  padding: 0 !important;
  font-size: 0.72rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280 !important;
  background: transparent !important;
  border: 0 !important;
}
body.fuec-app .fuec-detail-value,
body.fuec-app .fuec-detail .form-input-box,
body.fuec-app .datatables .form-input-box {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.fuec-app .fuec-detail .readonly_label,
body.fuec-app .datatables .readonly_label,
body.fuec-app .fuec-detail-value,
body.fuec-app .fuec-detail-value .readonly_label {
  display: block;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 550 !important;
  color: #111827 !important;
  line-height: 1.45 !important;
  word-break: break-word;
  min-height: 1.25rem;
}
body.fuec-app .fuec-detail .readonly_label:empty::after,
body.fuec-app .fuec-detail-value:empty::after {
  content: "—";
  color: #9ca3af;
  font-weight: 500;
}
body.fuec-app .fuec-detail .clear,
body.fuec-app .fuec-detail .line-1px {
  display: none !important;
}
body.fuec-app .fuec-detail-actions,
body.fuec-app .datatables .buttons-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.15rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid #f3f4f6 !important;
  background: transparent !important;
}
body.fuec-app .fuec-detail-actions .form-button-box,
body.fuec-app .datatables .form-button-box {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body.fuec-app .fuec-detail .fuec-btn,
body.fuec-app .datatables .fuec-btn,
body.fuec-app .datatables .ui-input-button,
body.fuec-app .datatables input[type=button],
body.fuec-app .datatables input[type=submit] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.95rem !important;
  border-radius: 9px !important;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border: 1px solid transparent !important;
  cursor: pointer;
  box-shadow: none !important;
  background-image: none !important;
  width: auto !important;
}
body.fuec-app .fuec-detail .fuec-btn-primary,
body.fuec-app .datatables .fuec-btn-primary,
body.fuec-app .datatables .ui-input-button,
body.fuec-app .datatables input[type=submit] {
  background: #111827 !important;
  color: #fff !important;
}
body.fuec-app .fuec-detail .fuec-btn-ghost,
body.fuec-app .datatables .fuec-btn-ghost {
  background: #fff !important;
  color: #374151 !important;
  border-color: #e5e7eb !important;
}
body.fuec-app .fuec-detail .fuec-btn-ghost:hover {
  border-color: #9ca3af !important;
  color: #111827 !important;
}
body.fuec-app .fuec-detail img,
body.fuec-app .datatables .form-input-box img {
  max-width: 220px;
  max-height: 140px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
/* When add/edit pages still use old title header, restyle it */
body.fuec-app .datatables:not(.fuec-detail) > h3.form-title {
  display: block !important;
  background: #fafafa !important;
  border: 0 !important;
  border-bottom: 1px solid #f3f4f6 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 1rem 1.25rem !important;
  color: #111827 !important;
}
body.fuec-app .datatables:not(.fuec-detail) > h3.form-title a {
  font-family: "Sora", sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 650 !important;
  color: #111827 !important;
  text-decoration: none !important;
}
