/* ==================== RESET ==================== */

* {
  padding: 0;
  margin: 0;
  border: 0;
}

*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

:focus,
:active {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

nav,
footer,
header,
aside {
  display: block;
}

html,
body {
  height: 100%;
  width: 100%;
  font-size: 100%;
  line-height: 1;
  font-size: 14px;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

input,
button,
textarea {
  font-family: inherit;
}

input::-ms-clear {
  display: none;
}

button {
  cursor: pointer;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

a,
a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
}

* {
  font-family: "Montserrat", sans-serif;
}

a {
  color: var(--color-dark);
}

img {
  display: block;
  width: 100%;
}

/* ==================== VARIABLES ==================== */

/* VARIABLES */

:root {
  --color-primary: #7380ec;
  --color-secondary: #4db8ff;
  --color-danger: #ff7782;
  --color-success: #41f1b6;
  --color-warning: #ffbb55;
  --color-white: #fff;
  --color-info-dark: #7d8da1;
  --color-info-light: #dce1eb;
  --color-dark: #363949;
  --color-light: rgba(var(--shadow-rgb), 0.18);
  --color-primary-variant: #111e88;
  --color-dark-variant: #677483;
  --color-background: #f6f6f9;
  --color-valid: #339933;
  --color-invalid: #cc0000;
  --color-black: #000;
  --color-tb-light: rgba(var(--shadow-rgb), 0.18);
  --border-table: none;

  --white: #fff;
  --black: #000;

  --card-border-radius: 2rem;
  --border-radius-1: 0.4rem;
  --border-radius-2: 0.8rem;
  --border-radius-3: 1.2rem;

  --card-padding: 1.8rem;
  --padding-1: 1.2rem;

  --box-shadow: 0 2rem 3rem var(--color-light);
}

/* DARK THEME VARIABLES */

.dark-theme-variables {
  --color-background: #181a1e;
  --color-white: #202528;
  --color-dark: #edeffd;
  --color-dark-variant: #a3bdcc;
  --color-light: rgba(0, 0, 0, 0.4);
  --color-info-light: #333333;
  --white: #000;
  --black: #fff;
  --border-table: 1px solid rgb(242, 242, 242);
  --color-tb-light: rgb(242, 242, 242);
  --box-shadow: 0 2rem 3rem var(--color-light);
}

/* ==================== BASE AND UTILITIES ==================== */

/* NULLING STYLES */

/*--------------------*/

h1 {
  display: block;
  font-size: 2em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h2 {
  display: block;
  font-size: 1.5em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h3 {
  display: block;
  font-size: 1.17em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h4 {
  display: block;
  font-size: 1em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h5 {
  display: block;
  font-size: 0.83em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h6 {
  display: block;
  font-size: 0.67em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

._lock {
  overflow: hidden;
}

small {
  font-size: 0.75rem;
  color: var(--color-info-dark);
}

.profile-photo {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
}

.text-muted {
  color: var(--color-info-dark);
}

p {
  color: var(--color-dark-variant);
  margin: 0;
}

b {
  color: var(--color-dark);
}

p.show-ago {
  margin-top: 7px;
}

.primary {
  color: var(--color-primary);
}

.danger {
  color: var(--color-danger);
}

.success {
  color: var(--color-success);
}

.warning {
  color: var(--color-warning);
}

.bg-primary {
  background: var(--color-primary);
}

.bg-danger {
  background: var(--color-danger);
}

.bg-success {
  background: var(--color-success);
}

.color-dark {
  color: var(--color-dark);
}

/* width */

/* Track */

/* Handle */

/* Handle on hover */

/* table.detail-view, */

/* table tbody tr:last-child td {
  border: none;
} */

.breadcrumb {
  background-color: var(--color-info-light);
  padding: 7px;
  border-radius: 15px;
  margin-bottom: 30px;
  margin-left: 3px;
}

.breadcrumb li {
  margin: 5px;
}

.breadcrumb span {
  margin: 5px;
  color: #4da6ff;
  font-size: 15px;
}

.breadcrumb li a {
  font-size: 15px;
  line-height: 26px;
  color: #4da6ff;
}

.breadcrumb li a.innactive-link {
  color: var(--color-dark);
  pointer-events: none;
  font-weight: bold;
}

h2.status-head {
  color: var(--color-valid);
}

/* FILE INPUT */

/***** FIN *****/

/***** End FIN *****/

/* FILE INPUT */

/* PAGINATION */

/* PAGINATION */

/* ACTION BUTTONS */

/* ACTION BUTTONS */

/* Tooltip bubble */

/* Hover state */

/* MODALS */

/* MODALS */

/* ACCOUnt ACTIVATE */

h3 {
  font-size: 22px;
  color: var(--color-dark);
  font-weight: 500;
}

/* ACCOUnt ACTIVATE */

/***** LOADER AJAX *****/

/* Safari */

/***** End LOADER AJAX *****/

/***** Shine Loader *****/

/***** End Shine Loader *****/

/* Modal CSS */

/* .modal_animation {
  animation-duration: 3s;
  animation-name: slidein;
} */

/* @keyframes slidein {
  from {
    margin-left: 100%;
    width: 300%;
  }

  to {
    margin-left: 0%;
    width: 100%;
  }
} */

/* MODAL WIDNOW */

/***** CONTACT MODAL WINDOW *****/

._lock {
  overflow: hidden;
}

/* End Modal CSS  */

/* Start Promo Modal */

/* End Promo Modal */

/* 
.frm-section {
  width: 500px;
}

@media (min-width: 768px) {
  .frm-section {
    width: 270px;
  }
} */

/* ==================== LAYOUT ==================== */

body {
  background-color: var(--color-background);
}

.wrapper {
  position: relative;
}

.main-content {
  /* border: 1px solid red; */
  width: 100%;
  position: relative;
}

main {
  padding: 20px;
}

.items-row {
  width: 125%;
}

/* ==================== HEADER ==================== */

/* ==================== HEADER ==================== */

.admin-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-background);
  padding: 14px 0 8px;
}

.admin-topbar {
  width: 100%;
  min-height: 68px;

  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;

  padding: 0 18px;
  border-radius: var(--border-radius-3);

  background-color: var(--color-white);
  border: 1px solid var(--color-light);
  box-shadow: var(--box-shadow);
}

.admin-topbar-left,
.admin-topbar-right {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
}

.admin-topbar-left {
  flex: 0 0 auto;
}

.admin-topbar-right {
  flex: 0 0 auto;
  gap: 12px;
}

/* Burger */

.admin-topbar .menu-burger {
  width: 42px;
  height: 42px;
  min-width: 42px;

  display: flex !important;
  align-items: center;
  justify-content: center;

  position: relative;
  cursor: pointer;

  border-radius: var(--border-radius-2);
  background-color: var(--color-light);
  color: var(--color-dark);

  transition: all 0.25s ease-in-out;
}

.admin-topbar .menu-burger:hover {
  color: var(--color-primary);
  background-color: rgba(var(--primary-rgb), 0.16);
}

.admin-topbar .menu-burger span,
.admin-topbar .menu-burger::before,
.admin-topbar .menu-burger::after {
  content: "";
  position: absolute;

  width: 18px;
  height: 2px;

  border-radius: 20px;
  background-color: currentColor;

  transition: all 0.25s ease-in-out;
}

.admin-topbar .menu-burger::before {
  transform: translateY(-6px);
}

.admin-topbar .menu-burger::after {
  transform: translateY(6px);
}

.admin-topbar .menu-burger._active span {
  width: 10px;
  transform: translateX(4px);
}

/* Date */

.admin-topbar .date-time {
  min-height: 40px;

  display: inline-flex !important;
  align-items: center;

  padding: 0 14px;
  border-radius: 999px;

  background-color: var(--color-light);
  color: var(--color-dark-variant);

  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* Topbar buttons */

.admin-topbar-btn {
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 0 12px;

  border-radius: 999px;
  background-color: var(--color-light);
  color: var(--color-primary);

  font-size: 13px;
  font-weight: 800;

  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.admin-topbar-btn:hover {
  background-color: rgba(var(--primary-rgb), 0.16);
}

.admin-topbar-btn .material-symbols-outlined {
  font-size: 18px;
}

/* Language dropdown */

.admin-language-switcher,
.admin-helper-dropdown {
  position: relative;
  display: inline-flex;
}

.admin-language-dropdown,
.admin-helper-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  min-width: 110px;

  display: grid;
  gap: 4px;

  padding: 8px;
  border-radius: var(--border-radius-2);

  background-color: var(--color-white);
  border: 1px solid var(--color-light);
  box-shadow: var(--box-shadow);

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);

  transition: all 0.25s ease-in-out;
  z-index: 120;
}

.admin-helper-dropdown-menu {
  min-width: 210px;
}

.admin-language-switcher:hover .admin-language-dropdown,
.admin-helper-dropdown:hover .admin-helper-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.admin-language-dropdown a,
.admin-helper-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 9px 10px;
  border-radius: var(--border-radius-1);

  color: var(--color-dark);
  font-size: 13px;
  font-weight: 700;

  transition: all 0.25s ease-in-out;
}

.admin-language-dropdown a {
  justify-content: center;
}

.admin-language-dropdown a:hover,
.admin-language-dropdown a.active,
.admin-helper-dropdown-menu a:hover {
  background-color: var(--color-light);
  color: var(--color-primary);
}

.admin-helper-dropdown-menu a span {
  font-size: 18px;
}

/* Theme toggler */

.admin-topbar .theme-toggler.night-mode {
  min-height: 40px;

  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;

  gap: 3px;
  padding: 4px;

  border-radius: 999px;
  background-color: var(--color-light);
}

.admin-topbar .theme-toggler.night-mode span {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  padding: 0;
  border-radius: 50%;

  color: var(--color-dark-variant);
  font-size: 18px;

  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.admin-topbar .theme-toggler.night-mode span._active {
  background-color: var(--color-primary);
  color: #fff;
}

/* User */

.admin-user-compact {
  min-height: 42px;

  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;

  padding: 4px 12px 4px 5px;

  border-radius: 999px;
  background-color: var(--color-background);
  border: 1px solid var(--color-light);
}

.admin-user-initials {
  width: 34px;
  height: 34px;
  min-width: 34px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );

  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.admin-user-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.admin-user-text p {
  margin: 0 0 3px;
  font-size: 13px;
  line-height: 1.1;
}

.admin-user-text p b {
  color: var(--color-dark);
  font-weight: 800;
}

.admin-user-text span {
  color: var(--color-info-dark);
  font-size: 12px;
  font-weight: 700;
}

/* Logout */

.admin-logout-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background-color: rgba(255, 119, 130, 0.12);
  color: var(--color-danger);

  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

.admin-logout-btn:hover {
  background-color: var(--color-danger);
  color: #fff;
  transform: translateY(-1px);
}

.admin-logout-btn span {
  font-size: 20px;
}

/* Responsive */

@media screen and (max-width: 970px) {
  .admin-topbar-right {
    gap: 8px;
  }

  .admin-topbar .date-time,
  .admin-helper-dropdown {
    display: none !important;
  }
}

@media screen and (max-width: 700px) {
  .admin-user-text {
    display: none;
  }

  .admin-user-compact {
    padding: 0;
    background: transparent;
    border: none;
  }
}

@media screen and (max-width: 520px) {
  .admin-topbar {
    min-height: 58px;
    padding: 0 10px;
  }

  .admin-topbar-right {
    gap: 6px;
  }

  .admin-topbar .theme-toggler.night-mode {
    display: none !important;
  }

  .admin-topbar .menu-burger,
  .admin-logout-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .admin-topbar-btn {
    height: 36px;
    padding: 0 10px;
  }
}

/* ==================== SIDEBAR ==================== */

.admin-aside,
aside {
  position: sticky;
  top: 0;

  width: 300px;
  height: 100vh;

  padding: 22px 16px;

  background-color: var(--color-background);
  transition: all 0.3s ease-in-out;

  overflow-y: auto;
  overflow-x: hidden;
}

/* Scrollbar */

.admin-aside::-webkit-scrollbar,
aside::-webkit-scrollbar {
  width: 5px;
}

.admin-aside::-webkit-scrollbar-track,
aside::-webkit-scrollbar-track {
  background: transparent;
}

.admin-aside::-webkit-scrollbar-thumb,
aside::-webkit-scrollbar-thumb {
  background: var(--color-light);
  border-radius: 999px;
}

.admin-aside::-webkit-scrollbar-thumb:hover,
aside::-webkit-scrollbar-thumb:hover {
  background: var(--color-info-dark);
}

/* Brand */

.admin-aside-brand {
  margin-bottom: 24px;
  padding: 0 8px;
}

.admin-aside-logo {
  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--color-dark);
  text-decoration: none;
}

.admin-aside-logo:hover {
  color: var(--color-primary);
}

.admin-aside-logo-mark {
  width: 42px;
  height: 42px;
  min-width: 42px;

  display: grid;
  place-items: center;

  border-radius: var(--border-radius-3);
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );

  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.03em;

  box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.22);
}

.admin-aside-logo-text {
  color: var(--color-dark);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Sections */

.admin-aside-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-aside-section {
  width: 100%;
}

.admin-aside-section-title {
  margin-bottom: 9px;
  padding: 0 12px;

  color: var(--color-info-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-aside-section ul,
aside ul {
  width: 100%;
  padding: 0;
  margin: 0;

  display: grid;
  gap: 6px;
}

.admin-aside-section li,
aside ul li {
  width: 100%;
  margin: 0;
}

/* Links */

.admin-aside .aside,
aside ul li a.aside {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 11px 12px;

  border-radius: var(--border-radius-2);
  color: var(--color-dark-variant);
  text-decoration: none;

  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-aside .aside span:last-child,
aside ul li a.aside span:last-child {
  min-width: 0;
}

.admin-aside .aside .material-symbols-outlined,
aside ul li a.aside .material-symbols-outlined {
  width: 24px;
  min-width: 24px;

  margin: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: inherit;
  font-size: 22px;
  font-weight: 400;
}

.admin-aside .aside:hover,
aside ul li a.aside:hover {
  background-color: var(--color-light);
  color: var(--color-primary);
  transform: translateX(4px);
}

/* Active item */

.admin-aside li.active,
aside ul li.active {
  width: 100%;
  margin: 0;

  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.admin-aside li.active .aside,
aside ul li.active a.aside {
  position: relative;

  background-color: var(--color-light);
  color: var(--color-primary);

  font-weight: 800;
  box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.12);
}

.admin-aside li.active .aside::before,
aside ul li.active a.aside::before {
  content: "";

  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;

  width: 4px;
  border-radius: 0 999px 999px 0;

  background-color: var(--color-primary);
}

.admin-aside li.active .aside .material-symbols-outlined,
aside ul li.active a.aside .material-symbols-outlined {
  font-variation-settings:
    "FILL" 1,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

/* Logout */

.admin-aside-section-last {
  padding-top: 8px;
  border-top: 1px solid var(--color-light);
}

.admin-aside .aside-danger,
aside ul li a.aside-danger {
  color: var(--color-danger);
}

.admin-aside .aside-danger:hover,
aside ul li a.aside-danger:hover {
  background-color: rgba(255, 119, 130, 0.12);
  color: var(--color-danger);
}

/* Old active class compatibility */

.aside._active {
  background-color: var(--color-light);
  color: var(--color-primary);
  font-weight: 800;
  border-radius: var(--border-radius-2);
}

.aside._active .material-symbols-outlined {
  color: var(--color-primary);
}

/* Collapsed aside */

aside._active,
.admin-aside._active {
  margin-left: -300px;
}

/* Dark theme adjustments */

.dark-theme-variables .admin-aside-logo-mark {
  box-shadow: none;
}

.dark-theme-variables .admin-aside li.active .aside,
.dark-theme-variables aside ul li.active a.aside {
  box-shadow: none;
}

/* Responsive sidebar */

@media screen and (max-width: 1500px) {
  .admin-aside,
  aside {
    position: fixed;
    top: 75px;
    left: -100%;

    width: 320px;
    max-width: 88vw;

    height: calc(100vh - 75px);

    margin: 0;
    z-index: 111;

    background-color: var(--color-background);
    box-shadow: var(--box-shadow);
  }

  .admin-aside._active,
  aside._active {
    left: 0;
    margin: 0;
  }
}

@media screen and (max-width: 800px) {
  .admin-aside,
  aside {
    width: 100%;
    max-width: 100%;
  }
}

/* ==================== DASHBOARD CARDS ==================== */

.card {
  width: 100%;
  background: var(--color-white);
  border-radius: var(--border-radius-3);
  box-shadow: var(--box-shadow);
  padding: 25px;
  transition: all 0.3s ease-in-out;
  gap: 10px;
  border: none;
  cursor: pointer;
}

.card:hover {
  box-shadow: none;
  background: var(--color-info-light);
  transform: scale(0.95);
}

.card span {
  color: var(--color-primary);
  font-size: 40px;
}

.card .text {
  gap: 10px;
}

.card .text b {
  color: var(--color-dark);
  font-size: 20px;
  line-height: 28px;
}

.card .text h2 {
  color: var(--color-dark);
  font-size: 30px;
}

.card .progress-circle {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
}

.card .progress-circle svg {
  width: 110px;
  height: 110px;
}

.card .progress-circle .data-number {
  position: absolute;
  font-weight: 500;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  -ms-align-items: center;
  align-items: center;
  color: var(--color-dark);
}

.card .progress-circle .data-number .item-precent {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-dark);
  margin-right: 3px;
}

.card .progress-circle svg circle {
  transition: all 1s ease-in-out;
  transform: translate(15px, 15px);
  stroke-linecap: round;
}

.recent-updates {
  width: 40%;
}

h3.sec-head {
  font-size: 22px;
  color: var(--color-dark);
}

.user-updates {
  border-radius: var(--border-radius-3);
  box-shadow: var(--box-shadow);
  padding: 25px;
  transition: all 0.3s ease-in-out;
  gap: 10px;
  border: none;
  cursor: pointer;
  background: var(--color-white);
}

.user-updates:hover {
  box-shadow: none;
  background: var(--color-info-light);
  transform: scale(0.95);
}

.user-updates .item .info {
  color: var(--color-dark);
}

.summary {
  width: 30%;
}

.summary .summary-items .item {
  width: 100%;
  background: var(--color-white);
  border-radius: var(--border-radius-3);
  box-shadow: var(--box-shadow);
  padding: 25px;
  transition: all 0.3s ease-in-out;
  gap: 10px;
  border: none;
  cursor: pointer;
}

.summary .summary-items .item:hover {
  box-shadow: none;
  background: var(--color-info-light);
  transform: scale(0.95);
}

.summary .summary-items .item span {
  font-size: 35px;
  color: var(--color-primary);
}

.summary .summary-items .item h4 {
  font-size: 12px;
  line-height: 28px;
  color: var(--color-dark);
  margin: 0;
}

.summary .summary-items .item .percent {
  font-size: 16px;
  font-weight: 600;
}

.summary .summary-items .item h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--color-info-dark);
}

/* ==================== TABLES ==================== */

.recent-orders {
  margin-bottom: 20px;
  width: 70%;
}

table {
  margin-bottom: 50px;
}

.grid-table {
  width: 100%;
}

.grid-table.min {
  width: 100%;
}

table thead tr th {
  padding: 30px;
  color: var(--color-dark);
}

table thead tr {
  border-bottom: 1px solid var(--color-tb-light) !important;
  cursor: default;
}

.table-actions-symbs {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  /* width: 150px; */
  gap: 20px;
}

.table-actions-symbs a {
  margin: 0px 0px;
}

.table-actions-symbs span {
  color: var(--color-secondary);
  transition: all 0.3s ease-in-out;
  margin: 0px;
}

.table-actions-symbs span:hover {
  color: var(--color-valid);
}

.grid-table table,
.recent-orders table {
  background: var(--color-white);
  width: 100%;
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  text-align: center;
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  /* overflow: hidden; */
}

.grid-table table {
  margin-top: 20px;
}

.nums-wrapper {
  margin-top: 20px;
  width: 100%;
}

.grid-table .counting-nums {
  width: 100%;
  padding-right: 15px;
  font-size: 17px;
  line-height: 24px;
  color: var(--color-dark);
  font-weight: 600;
  width: auto !important;
}

.grid-table .counting-nums span {
  margin: 0 6px;
  font-size: 15px;
  font-weight: 400;
}

table.detail-view {
  border-radius: 10px;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  background: var(--color-white);
  width: 100%;
  padding: var(--card-padding);
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  table-layout: auto;
  margin-bottom: 100px;
  border-radius: 15px;
  overflow: hidden;
  margin-top: 50px;
}

table i {
  font-size: 20px;
}

table.detail-view tr {
  border-bottom: 1px solid var(--color-tb-light);
}

table.detail-view tr:last-child {
  border-bottom: none;
}

table.list-view tr {
  border-bottom: none;
  transition: all 0.2s ease-in;
}

table.list-view tr td {
  line-height: 24px;
}

table.list-view tr:hover {
  background-color: var(--color-info-light);
}

table.detail-view tr td {
  text-align: center;
  border-bottom: none;
  width: 100%;
  padding: 25px;
  font-size: 16px;
  color: var(--color-dark);
  line-height: 26px;
}

table caption.not-found {
  text-align: center;
  padding: 50px 10px;
  font-weight: bold;
  font-size: 20px;
  line-height: 30px;
  color: var(--color-warning);
}

table td.not-found {
  padding: 25px 10px;
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  color: var(--color-invalid);
}

.table-link {
  color: var(--color-primary);
  text-decoration: underline;
}

.title-link {
  text-decoration: none;
  color: var(--color-secondary);
  transition: all 0.3s ease-in-out;
}

.title-link:hover {
  color: var(--color-primary);
}

.st-status {
  font-size: 14px;
  font-weight: bold;
  color: var(--color-dark);
  text-transform: capitalize;
  letter-spacing: 1.15px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

span.circle-status {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 100%;
}

.circle-status.innactive {
  background-color: var(--color-warning);
  font-weight: 500;
}

.circle-status.active {
  background-color: var(--color-valid);
  font-weight: 500;
}

.circle-status.error {
  background-color: var(--color-invalid);
  font-weight: 500;
}

.circle-status.pending {
  background-color: var(--color-primary);
  font-weight: 500;
}

.circle-status.verify {
  background-color: var(--color-primary);
  font-weight: 500;
}

.circle-status.warning {
  background-color: var(--color-warning);
  font-weight: 500;
}

table td a {
  color: var(--color-secondary);
  transition: all 0.2s ease-in-out;
  font-weight: 500;
  line-height: 26px;
}

table td a:hover {
  color: var(--color-valid);
}

table.detail-view tr td .detail-wrapper-img {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
}

table.detail-view tr td .detail-wrapper-img.gallery-img {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  max-width: 300px;
  width: 100%;
  max-height: 400px;
  cursor: zoom-in;
}

table .list-wrapper-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

table.detail-view tr td img {
  max-width: 300px;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 15px;
  filter: brightness(90%);
  cursor: zoom-in;
}

table.detail-view tr td .detail-wrapper-img.gallery-img img {
  max-width: 300px;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 15px;
  filter: brightness(40%);
  cursor: zoom-in;
}

table.detail-view tr td .detail-wrapper-img.gallery-img div {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 36px;
  font-weight: 500;
}

table.detail-view tr td .detail-wrapper-img.gallery-img span {
  color: #fff;
  font-size: 50px;
  margin-left: 10px;
}

table tr td img {
  max-width: 200px;
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 15px;
  filter: brightness(90%);
  padding: 15px;
  cursor: zoom-in;
}

table.detail-view tr th {
  width: 35%;
  text-align: center;
  border-right: 1px solid var(--color-tb-light);
  padding: 25px;
  color: var(--color-dark);
  font-weight: 600;
  font-size: 16px;
}

table.detail-view tr th.success,
b.success {
  color: var(--color-valid);
  font-weight: bold;
}

table.detail-view tr th.secondary,
b.secondary {
  color: var(--color-invalid);
  font-weight: bold;
}

table.detail-view tr th.warning,
b.warning {
  color: var(--color-warning);
  font-weight: bold;
}

.grid-table table:hover,
.recent-orders table:hover {
  box-shadow: none;
}

table tbody td {
  height: 2.8rem;
  border-bottom: 1px solid var(--color-tb-light);
  color: var(--color-dark-variant);
  padding: 15px 10px;
}

.grid-table a,
.recent-orders a {
  text-align: center;
  display: block;
  margin: 1rem auto;
  color: var(--color-primary);
}

.table-status {
  background-color: var(--color-invalid);
  padding: 10px;
  color: var(--color-white) !important;
  border-radius: var(--border-radius-1);
  transition: all 0.3s ease-in-out;
}

.table-status:hover {
  background-color: var(--color-primary);
}

.no-data-symb {
  font-size: 16px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 1.5px;
}

/* ==================== FORMS ==================== */

.grid-wrapper,
.form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  margin: 0 auto;
  position: relative;
}

.grid-wrapper {
  width: 87%;
}

.form-wrapper {
  width: 87%;
}

.group-wrapper {
  -webkit-box-shadow: 0 0 4px var(--color-dark-variant);
  box-shadow: 0 0 4px var(--color-dark-variant);
  border-radius: var(--border-radius-2);
  padding: 40px 30px;
  margin-bottom: 30px;
}

.sub-gr-wrapper {
  border-radius: 20px;
  -webkit-box-shadow: 0 0 4px var(--color-dark-variant);
  box-shadow: 0 0 4px var(--color-dark-variant);
  padding: 30px;
}

.grid-wrapper h2,
.form-wrapper h2 {
  font-size: 27px;
  font-weight: 500;
  line-height: 45px;
  color: var(--color-dark);
  margin-bottom: 15px;
  margin-left: 3px;
  word-break: break-word !important;
}

.grid-wrapper h4,
.form-wrapper h4 {
  font-size: 18px;
  font-weight: 400;
  line-height: 45px;
  color: var(--color-dark);
  margin-bottom: 15px;
  margin-left: 3px;
  word-break: break-word !important;
}

.grid-wrapper p.search-param,
.form-wrapper p.search-param {
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
  color: var(--color-dark);
  margin-bottom: 5px;
  margin-left: 3px;
  background-color: var(--color-info-light);
  padding: 5px 25px;
  margin-top: 10px;
  margin-bottom: 10px;
  max-width: 600px;
  border-radius: var(--border-radius-2);
}

.totals-wrapper {
  background-color: var(--color-info-light);
  padding: 10px 5px;
  border-radius: var(--border-radius-2);
  margin: 10px 5px;
}

.totals-table {
  font-size: 16px;
  line-height: 27px;
  margin: 10px 10px 10px 10px;
  font-weight: 600;
  color: var(--color-dark);
}

.grid-wrapper p.search-param .search-title,
.form-wrapper p.search-param .search-title {
  font-weight: bold;
  margin-right: 5px;
}

form {
  width: 100%;
  align-self: start;
}

.group-form-smm {
  width: 100%;
  background-color: var(--color-white);
  margin: 25px 0px;
  padding: 35px 20px;
  border-radius: var(--border-radius-3);
}

.br-area {
  margin-top: 20px;
}

.checkbox-area {
  background-color: var(--color-info-light);
  border-radius: var(--border-radius-2);
  padding: 30px;
  width: 100%;
  margin-bottom: 40px;
}

.checkbox-area .filter-item {
  padding: 10px 15px;
  border-radius: var(--border-radius-1);
  background-color: var(--color-secondary);
  margin: 15px;
}

.checkbox-area .filter-item label {
  padding: 0px;
  margin-top: 15px;
}

.checkbox-area .filter-item input {
  background-color: var(--color-info-light);
  border-radius: var(--border-radius-2);
  margin-left: 15px;
  margin-top: 13px;
  transform: scale(1.6);
}

form.search-form-admin {
  max-width: 1200px;
  /* width: auto; */
  margin-bottom: 35px;
}

.search-form-admin h4 {
  color: var(--color-dark);
  font-size: 26px;
  line-height: 36px;
  max-width: 300px;
}

.search-form-wrap {
  padding: 18px;
  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: 14px;
}

.search-form-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

.search-form-header p {
  font-size: 13px;
}

.translation-language-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 14px;
  border-radius: 999px;

  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.translation-language-badge .material-symbols-outlined {
  font-size: 18px;
}

.translation-language-badge b {
  font-weight: 800;
}

.translation-missing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 14px;
  border-radius: 999px;

  background: rgba(255, 193, 7, 0.16);
  color: #9a6700;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.translation-missing-badge .material-symbols-outlined {
  font-size: 18px;
}

.translation-missing-badge b {
  font-weight: 800;
}

form .txt-editor {
  width: 100%;
  min-height: 300px;
  /* height: 100%; */
}

.form-group {
  margin-bottom: 15px;
  width: 100%;
}

.form-wrap {
  background: var(--color-white);
  max-width: 1200px;
  width: 100%;
  padding: 50px;
  position: relative;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  -webkit-box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.15);
  box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.15);
}

.btn-area-scs {
  margin-top: 20px;
}

form input:focus,
form textarea:focus {
  border-color: none !important;
  outline: none !important;
}

.frm-group.short {
  max-width: 300px;
  width: 100%;
}

span.valid,
span.warning {
  font-size: 18px;
  font-weight: 600;
  gap: 5px;
}

span.valid {
  color: var(--color-valid);
}

span.warning {
  color: var(--color-warning);
}

._error-form {
  color: var(--color-invalid);
  font-weight: 500;
}

._success-form > input,
._success-form > textarea,
._success-form > select {
  border: 1px solid var(--color-valid);
  -webkit-box-shadow: 0 0 4px var(--color-valid);
  box-shadow: 0 0 4px var(--color-valid);
}

._error-form > input,
._error-form > textarea,
._error-form > select {
  border: 0.5px solid var(--color-invalid);
  -webkit-box-shadow: 0 0 4px var(--color-invalid);
  box-shadow: 0 0 4px var(--color-invalid);
}

form input,
form textarea,
form select {
  padding: 10px !important;
  font-size: 17px !important;
  line-height: 27px !important;
  margin-bottom: 15px;
  border-radius: 6px !important;
}

form label {
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 500;
  color: var(--color-dark);
}

._error-form label {
  color: var(--color-invalid);
}

._success-form label {
  color: var(--color-valid);
}

.form-wrapper-acc {
  min-height: 100vh;
  width: 100%;
}

.form-wrapper-acc form {
  max-width: 350px;
  width: 100%;
  -webkit-box-shadow: 0 0 7px var(--color-info-dark);
  box-shadow: 0 0 7px var(--color-info-dark);
  border-radius: var(--border-radius-2);
  padding: 30px 20px;
  height: auto;
}

.form-wrapper-acc form .fgt {
  color: cornflowerblue;
  margin-top: 15px;
  font-size: 16px;
  line-height: 26px;
  align-self: flex-start;
}

.form-wrapper-acc form h5 {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 18px;
}

.form-wrapper-acc form input {
  padding: 10px 6px;
  font-size: 16px;
  margin-bottom: 7px;
}

.form-wrapper-acc form button {
  padding: 15px 6px;
  max-width: 250px;
  width: 100%;
  color: var(--color-white);
  font-size: 14px;
  margin-bottom: 7px;
  background-color: var(--color-dark);
  transition: all 0.3s ease-in-out;
  border-radius: var(--border-radius-1);
}

.form-wrapper-acc form button:hover {
  background-color: var(--color-primary);
}

.search-form-admin .frm-section {
  margin: 10px;
  width: 300px;
}

/* ==================== BUTTONS ==================== */

.btn-outline-primary.rounded-pill {
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline-primary.rounded-pill:hover {
  transform: translateY(-1px);
}

.btn {
  transition: all 0.2s ease-in-out;
  max-width: 300px;
  width: 100%;
  border-radius: var(--border-radius-2);
  padding: 12px;
  font-size: 16px;
}

.grid-btn {
  margin-bottom: 40px;
}

.btn:hover {
  opacity: 0.7;
}

.img-input-click:hover,
.action-form .submit-button:hover {
  background-color: #0059b3;
}

.action-buttons-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 20px;
}

.btn-action {
  width: 200px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
  padding: 20px 10px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  margin: 20px 6px;
  color: white !important;
}

.btn-action span {
  margin-left: 12px;
}

.btn-success {
  background-color: var(--color-valid);
}

.btn-primary {
  background-color: var(--color-primary);
}

.btn-warning {
  background-color: var(--color-warning);
}

.btn-danger {
  background-color: var(--color-invalid);
}

.btn-success:hover,
.btn-primary:hover,
.btn-warning:hover,
.btn-danger:hover {
  filter: brightness(85%);
}

/* ==================== FILES AND IMAGES ==================== */

img.img-responsive {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
}

.files-area {
  border: 2px dashed #ccc;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  background-color: #f2f2f2;
  transition: all 0.3s ease-in-out;
  margin-bottom: 10px;
  border-radius: var(--border-radius-3);
}

.files-area.dragging,
.files-area:hover,
.files-area:hover .drp-area {
  border-color: #007bff;
  background-color: rgba(0, 123, 255, 0.1);
  cursor: pointer;
}

.file-block {
  border-radius: 10px;
  padding: 20px;
  background-color: #c5edd7;
  margin: 5px;
  color: initial;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.files-names-def .file-block {
  background-color: var(--color-info-light);
}

.file-block > span.name {
  padding: 10px;
  width: max-content;
  line-height: 150%;
  font-size: 10px;
  /* display: inline-flex; */
}

.file-delete {
  display: flex;
  width: 40px;
  height: 40px;
  color: initial;
  background-color: #6eb4ff00;
  justify-content: center;
  margin-right: 3px;
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cc2900;
}

.file-delete:hover {
  background-color: rgba(144, 163, 203, 0.2);
  border-radius: 10px;
}

.file-delete > span {
  transform: rotate(45deg);
}

.drp-area {
  font-size: 16px;
  color: #595959;
  font-weight: 400;
  padding: 20px;
  width: 100%;
  border: 2px dashed #ccc;
  border-radius: var(--border-radius-3);
  transition: all 0.3s ease-in-out;
}

.label-area {
  position: relative;
}

.file-input-client {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
}

.request_img {
  max-width: 200px;
  height: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.img-upload-wrapper-show,
.img-upload-wrapper {
  max-width: 400px;
  width: 100%;
  padding: 20px 30px;
  background: #e6e6e6;
  margin: 10px 0px 50px 0px;
  border-radius: 12px;
}

.img-upload-wrapper-show .prev-area .preview,
.img-upload-wrapper .prev-area .preview {
  max-width: 375px;
  width: 100%;
  height: auto;
  margin: 10px;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  transition: all 0.5s ease-in-out;
}

.img-upload-wrapper-show .prev-area .preview .delete-item {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 30px;
  color: var(--color-danger);
  padding: 5px;
  background-color: var(--color-dark);
  border-bottom-left-radius: 5px;
}

.img-upload-wrapper-show .prev-area img,
.img-upload-wrapper .prev-area img {
  object-fit: cover;
  width: 100%;
  height: 80%;
  border-radius: var(--border-radius-4);
  transition: all 0.5s ease-in-out;
}

.inp-hidden {
  display: none;
}

.img-input-click {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width: 300px;
  width: 100%;
  background-color: #4da6ff;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  border-radius: 12px;
}

.img-input-click span {
  font-size: 18px;
  font-weight: 400;
  color: #fff;
}

.img-input-click span.icon {
  font-size: 35px;
  font-weight: 300;
  margin-left: -2px;
}

.file-name-preview {
  color: var(--color-dark-variant);
  font-size: 14px;
  line-height: 20px;
  font-style: italic;
  text-align: center;
  margin: 10px 5px;
}

.detail-preview-img {
  max-width: 260px;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

/* ==================== PAGINATION ==================== */

.pagination ul {
  background-color: var(--color-secondary);
  padding: 8px;
  border-radius: 50px;
  margin-bottom: 50px;
  margin-top: 50px;
}

.pagination ul li {
  list-style: none;
  line-height: 45px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  color: #fff;
}

.pagination ul li.numb {
  margin: 0 3px;
}

.pagination ul li.numb a {
  height: 45px;
  width: 45px;
  overflow: hidden;
  border-radius: 50%;
  margin: 0 3px;
  color: #fff;
  font-size: 15px;
}

.pagination ul li.btn {
  padding: 0 20px;
}

.pagination ul li.btn a {
  color: #fff;
}

.pagination ul li.prev {
  border-radius: 25px 5px 5px 25px;
}

.pagination ul li.next {
  border-radius: 5px 25px 25px 5px;
}

.pagination ul li.numb.active a,
.pagination ul li.numb a:hover,
.pagination ul li.btn:hover {
  background-color: #fff;
  color: var(--color-black);
  opacity: 1;
}

.pagination ul li.btn:hover > a {
  color: var(--color-black);
}

/* ==================== TOOLTIPS ==================== */

.ttp {
  position: relative;
}

.ttp::after {
  content: attr(tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  opacity: 0;
  pointer-events: none;
  font-family: Arial, sans-serif;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.ttp:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ==================== MODALS ==================== */

.modal-image-slider .sl-nv {
  font-weight: 600 !important;
  color: var(--color-info-dark) !important;
}

.modal-image-slider-wrapper,
.modal-photo-wrapper,
.modal-confirm-wrapper,
.modal-error-wrapper {
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
}

.modal-image-slider-wrapper.active,
.modal-photo-wrapper.active,
.modal-confirm-wrapper.active,
.modal-error-wrapper.active {
  opacity: 1;
  visibility: visible;
}

.modal-confirm,
.modal-error {
  background-color: var(--color-white);
  max-width: 400px;
  width: 100%;
  border-radius: var(--border-radius-2);
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px 30px;
  transition: all 0.6s ease-in-out;
}

.modal-confirm.active,
.modal-error.active {
  top: 50px;
}

.modal-confirm h2 {
  font-size: 22px;
  color: var(--color-secondary);
  line-height: 30px;
  font-weight: 500;
  margin-bottom: 20px;
}

.modal-error h2 {
  font-size: 22px;
  color: var(--color-warning);
  line-height: 30px;
  font-weight: 500;
  margin-bottom: 20px;
}

.modal-confirm h2 span {
  font-size: 30px;
  color: var(--color-secondary);
  margin-right: 10px;
}

.modal-error h2 span {
  font-size: 30px;
  color: var(--color-warning);
  margin-right: 10px;
}

.modal-confirm p,
.modal-error p {
  font-size: 15px;
  color: var(--color-dark);
  line-height: 30px;
  font-weight: 600;
  margin-bottom: 30px;
}

.modal-confirm .buttons {
  gap: 30px;
  width: 100%;
}

.modal-confirm .buttons a,
.modal-error .buttons a {
  max-width: 300px;
  width: 100%;
  padding: 16px 15px;
  font-size: 14px;
  border-radius: var(--border-radius-2);
  color: #fff;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.modal-confirm .buttons a:hover,
.modal-error .buttons a:hover {
  opacity: 0.6;
}

.modal-confirm .buttons a.accept-confirm {
  background-color: var(--color-valid);
}

.modal-confirm .buttons a.cancel-confirm {
  background-color: var(--color-invalid);
}

.modal-error .buttons a.cancel-error {
  background-color: var(--color-warning);
}

.modal-photo-wrapper .modal-window {
  background-color: rgba(300, 300, 300, 0.9);
  position: relative;
  transition: all 0.5s ease-in-out;
  max-width: 1000px;
  height: auto;
  bottom: -100%;
  transform: scale(0.7);
}

.modal-photo-wrapper .modal-window.active {
  bottom: 0;
  transform: scale(1);
}

.modal-photo-wrapper .modal-window img {
  /* position: absolute; */
  width: 100%;
  max-height: 600px;

  /* object-fit: cover; */
  cursor: zoom-out;
}

.modal-photo-wrapper .close-modal-photo {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.close-md:hover,
.modal-photo-wrapper .close-modal-photo:hover {
  color: var(--color-danger);
}

.modal-gallery {
  max-width: 500px;
  max-height: 600px;
  /* border: 1px solid red; */
}

.modal-image-slider .swiper-wrapper .gallery-item {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal-image-slider-wrapper .modal-gallery {
  position: relative;
  transition: all 0.5s ease-in-out;
  bottom: -100%;
  transform: scale(0.7);
}

.modal-image-slider-wrapper .modal-gallery.active {
  bottom: 0;
  transform: scale(1);
}

.modal-image-slider .swiper-wrapper .gallery-item img {
  /* position: absolute; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* border: 1px solid red; */
}

.close-md {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 50px;
  font-weight: 700;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  z-index: 1000;
}

.chb-selected {
  background: rgba(255, 26, 26, 0.1) !important;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s ease-in-out;
}

.modal-overlay._active {
  visibility: visible;
  opacity: 1;
}

.modal-overlay .close-modal-window {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--color-white);
  font-size: 40px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.modal-body {
  transition: all 0.5s ease-in-out;
  top: -100%;
  transition-delay: 0.2s;
  position: absolute;
  opacity: 1;
  visibility: hidden;
}

.modal-overlay._active .modal-body {
  visibility: visible;
  opacity: 1;
  top: 20px;
}

.modal-overlay .close-modal-window:hover {
  transform: rotate(90deg);
  color: #ff8080;
}

.search-modal-body,
.promo-modal-body {
  max-width: 800px;
  width: 100%;
  background-color: var(--color-white);
  border-radius: var(--border-radius-24);
  overflow: hidden;
  margin: 10px;
}

.search-modal-body .img-wrapper,
.promo-modal-body .img-wrapper {
  width: 30%;
  position: relative;
  padding: 0 0 66.25% 0;
}

.search-modal-body .img-wrapper img,
.promo-modal-body .img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-modal-body .text-wrapper,
.promo-modal-body .text-wrapper {
  width: 70%;
  padding: 35px 5px;
  gap: 10px;
}

.search-modal-body .text-wrapper h2,
.promo-modal-body .text-wrapper h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: var(--line-height-150);
  color: var(--color-dark-blue);
}

.search-modal-body .text-wrapper h4,
.promo-modal-body .text-wrapper h4 {
  font-size: 18px;
  font-weight: 300;
  line-height: var(--line-height-150);
  color: var(--text-color);
  margin-bottom: 15px;
}

.contact-form-popup,
.promo-form-popup {
  max-width: 95%;
  width: 100%;
  gap: 20px;
}

.contact-form-popup input,
.promo-form-popup input {
  width: 100%;
  background-color: #f2f2f2;
  border: none;
  padding: 15px 20px;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 400;
  color: var(--black-color);
  outline: none;
}

.contact-form-popup .get-quote,
.promo-form-popup .get-quote {
  border: none;
  outline: none;
  color: #fff;
  background-color: var(--theme-color);
  font-size: 18px;
  line-height: 150%;
  transition: all 0.45s ease-in-out;
  margin-top: 10px;
  border-radius: 12px;
  padding: 10px;
}

.contact-form-popup .get-quote:hover,
.promo-form-popup .get-quote:hover {
  animation: none;
  background-color: var(--theme-color2);
}

.theme-bg-color {
  background-color: #ffffff;
}

.def-border-radius {
  border-radius: 30px;
}

.input-color {
  background-color: #eeeeee;
}

.default-padding {
  padding: 10px;
}

.img-radius-left {
  border-radius: 30px 0px 0px 30px;
}

.img-radius-right {
  border-radius: 0px 30px 30px 0px;
}

.modal-form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.background-color-close-icon {
  background-color: gray;
  border-radius: 30px;
}

.search-modal-widget {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.actions_search {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.title-form {
  margin-bottom: 5%;
  padding-left: 8px !important;
}

/* ==================== ANIMATIONS ==================== */

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ==================== MEDIA QUERIES ==================== */

@media screen and (max-width: 1500px) {
  aside {
    position: fixed;
    top: 75px;
    background-color: var(--color-background);
    left: -100%;
    width: 30%;
    margin: 0;
    z-index: 111;
  }

  aside._active {
    left: 0;
    margin: 0;
  }

  form {
    width: 100%;
    align-self: start;
  }
}

@media screen and (max-width: 1200px) {
  .row-container {
    flex-direction: column !important;
    flex-wrap: wrap;
  }
  /* .flex-row {
    flex-wrap: wrap;
  } */

  .resp {
    width: 100%;
  }
}

@media screen and (max-width: 970px) {
  .items-row {
    flex-direction: column !important;
  }

  /* .header-actions {
    display: none !important;
  } */
}

@media screen and (max-width: 800px) {
  header nav .header-actions {
    gap: 30px;
  }
  .header-actions .date-time {
    display: none;
  }

  aside {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .form-wrapper,
  .grid-wrapper {
    width: 96%;
  }
  table.resp {
    border: none;
    background-color: transparent;
  }

  table.resp caption {
    font-size: 1.3em;
  }

  table.resp thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    margin-bottom: 20px;
    display: none;
  }

  table tr {
    border-bottom: 3px solid #ddd;
    border-top: 3px solid #ddd;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0.625em;
    padding: 20px;
    background-color: var(--color-white);
    margin-bottom: 30px;
  }

  table.detail-view tr {
    border-top: 2px solid #ddd;
    border-bottom: none;
  }

  table tr td {
    font-size: 14px;
    height: auto;
    border: none;
  }

  table.detail-view tr th {
    width: 100%;
    text-align: center;
    border-right: none;
    padding: 25px;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 16px;
    height: auto;
  }

  th input[type="checkbox"] {
    position: relative;
    z-index: 5;
    pointer-events: auto;
  }

  table.resp td {
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    height: auto;
    line-height: 26px;
    text-align: right;
    padding: 30px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  table.resp td a {
    padding: 0;
    margin: 0;
  }

  table.resp td::before {
    content: attr(data-label);
    font-weight: bold;
    text-transform: normal;
  }
}

@media screen and (max-width: 465px) {
  header nav .header-actions {
    gap: 30px;
  }
  header nav .header-actions .profile-header .user-info {
    display: none !important;
  }

  header nav .header-actions .night-mode span {
    padding: 3px 10px;
    font-size: 15px;
    border-radius: 6px;
    color: var(--black);
    cursor: pointer;
  }

  .modal-photo-wrapper .modal-window {
    max-width: 300px;
  }
}

@media (max-width: 992px) {
  .search-modal-body .text-wrapper,
  .promo-modal-body .text-wrapper {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .search-form-admin .frm-section {
    width: 100% !important ;
  }
}

/* ==================== ACCOUNT ACTIVATE ==================== */

.success-flash {
  max-width: 100%;
  padding: 20px 10px;
  background: #339966;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  border-radius: 20px;
  margin-bottom: 20px;
  line-height: 27px;
  text-align: center;
}

.error-flash {
  max-width: 100%;
  padding: 20px 10px;
  background: var(--color-invalid);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  border-radius: 20px;
  margin-bottom: 20px;
  line-height: 27px;
  text-align: center;
}

/* ==================== AJAX LOADER ==================== */

.it-wrp {
  position: relative;
}

.form-area,
.table-area {
  width: 100%;
  position: relative;
  opacity: 1;
  pointer-events: all;
  transition: all 0.5s ease-in-out;
}

.it-wrp.active,
.table-area.active,
.form-area.active {
  opacity: 0.6;
  pointer-events: none;
}

.loader-ajax {
  border: 10px solid #e6e6e6;
  border-radius: 50%;
  border-top: 10px solid #3498db;
  width: 75px;
  height: 75px;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease-in-out;
  visibility: 0;
  opacity: 0;
  z-index: 100;
}

.loader-ajax.active {
  visibility: visible;
  opacity: 1;
}

/* ==================== EDITOR SECTIONS ==================== */

.ckeditor-preview-wrapper {
  max-height: 70vh;
  overflow: auto;
}

.ckeditor-content.web-pages {
  min-height: 220px;
  line-height: 1.7;
}

.section-edit-wrapper {
  background-color: var(--color-white);
  border-radius: var(--border-radius-3);
  padding: 30px;
  margin-bottom: 40px;
}

.sec-lang {
  margin: 20px 0;
}

.lang-section {
  background-color: #f2f2f2;
  border-radius: var(--border-radius-3);
  padding: 30px;
  margin-bottom: 30px;
}

/* ============================= */
/* ADMIN DASHBOARD */
/* ============================= */

.admin-dashboard {
  color: var(--color-dark);
}

/* HERO */

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 24px;
  border-radius: var(--card-border-radius);

  background: var(--color-white);
  border: 1px solid var(--color-light);
  box-shadow: var(--box-shadow);
}

.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;

  margin-bottom: 8px;
  padding: 6px 12px;

  border-radius: 999px;
  background: var(--color-light);
  color: var(--color-primary);

  font-size: 13px;
  font-weight: 700;
}

.dashboard-title {
  margin: 0;

  color: var(--color-dark);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.dashboard-subtitle {
  margin: 8px 0 0;
  max-width: 720px;

  color: var(--color-dark-variant);
  font-size: 15px;
}

.dashboard-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 16px;
}

.dashboard-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 14px;
  border-radius: 999px;

  background: rgba(var(--primary-rgb), 0.12);
  color: var(--color-primary);

  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.dashboard-hero-meta-item .material-symbols-outlined {
  font-size: 19px;
}

.dashboard-hero-meta-item strong {
  font-size: 16px;
  font-weight: 900;
}

/* STAT CARDS */

.dashboard-card {
  display: flex;
  align-items: center;
  gap: 14px;

  height: 100%;
  padding: 18px;

  border-radius: var(--border-radius-3);
  background: var(--color-white);
  border: 1px solid var(--color-light);
  box-shadow: var(--box-shadow);

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

.dashboard-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;

  display: grid;
  place-items: center;

  border-radius: var(--border-radius-3);
  background: var(--color-light);
  color: var(--color-primary);
}

.dashboard-card-icon .material-symbols-outlined {
  font-size: 26px;
}

.dashboard-card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-card-label {
  color: var(--color-dark-variant);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-card-value {
  color: var(--color-dark);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.dashboard-card-meta {
  margin-top: 6px;

  color: var(--color-dark-variant);
  font-size: 13px;
}

.status-dot {
  display: inline-block;

  width: 8px;
  height: 8px;

  border-radius: 50%;
}

.status-dot.active {
  background: var(--color-success);
}

.status-dot.draft {
  background: var(--color-warning);
}

/* PANELS */

.dashboard-panel {
  padding: 20px;

  border-radius: var(--border-radius-3);
  background: var(--color-white);
  border: 1px solid var(--color-light);
  box-shadow: var(--box-shadow);
}

.dashboard-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;

  margin-bottom: 16px;
}

.dashboard-panel-header h3 {
  margin: 0;

  color: var(--color-dark);
  font-size: 18px;
  font-weight: 800;
}

.dashboard-panel-header p {
  margin: 4px 0 0;

  color: var(--color-dark-variant);
  font-size: 13px;
}

/* CONTENT OVERVIEW LIST */

.dashboard-content-list {
  display: grid;
  gap: 12px;
}

.dashboard-content-item {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px;
  border-radius: var(--border-radius-3);

  background: var(--color-background);
  border: 1px solid var(--color-light);

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.dashboard-content-item:hover {
  background: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.dashboard-content-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;

  display: grid;
  place-items: center;

  border-radius: var(--border-radius-3);
  background: var(--color-light);
  color: var(--color-primary);
}

.dashboard-content-icon .material-symbols-outlined {
  font-size: 24px;
}

.dashboard-content-main {
  flex: 1;
  min-width: 0;
}

.dashboard-content-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  margin-bottom: 6px;
}

.dashboard-content-main h4 {
  margin: 0;

  color: var(--color-dark);
  font-size: 15px;
  font-weight: 800;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-content-meta {
  display: flex;
  align-items: center;
  gap: 5px;

  margin-top: 6px;

  color: var(--color-dark-variant);
  font-size: 13px;
  font-weight: 600;
}

.dashboard-content-meta .material-symbols-outlined {
  font-size: 17px;
}

.dashboard-content-action {
  display: flex;
  align-items: center;
}

.dashboard-update-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  border-radius: var(--border-radius-2);
  background: var(--color-light);
  color: var(--color-primary);
  border: none;

  font-weight: 700;
}

.dashboard-update-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.dashboard-update-btn .material-symbols-outlined {
  font-size: 17px;
}

/* EMPTY STATE */

.dashboard-empty-state {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 18px;
  border-radius: var(--border-radius-3);

  background: var(--color-background);
  border: 1px dashed var(--color-light);

  color: var(--color-dark-variant);
}

.dashboard-empty-state > .material-symbols-outlined {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border-radius: var(--border-radius-3);
  background: var(--color-light);
  color: var(--color-primary);

  font-size: 24px;
}

.dashboard-empty-state strong {
  display: block;

  color: var(--color-dark);
  font-size: 15px;
  font-weight: 800;
}

.dashboard-empty-state p {
  margin: 3px 0 0;
  font-size: 13px;
}

/* PILLS / BADGES */

.module-pill {
  display: inline-flex;
  align-items: center;

  padding: 6px 10px;
  border-radius: 999px;

  background: var(--color-light);
  color: var(--color-dark);

  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;

  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(var(--primary-rgb), 0.12);
  color: var(--color-primary);

  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

/* QUICK ACTIONS */

.quick-actions {
  display: grid;
  gap: 10px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: var(--border-radius-3);

  color: var(--color-dark);
  background: var(--color-background);
  text-decoration: none;
  font-weight: 700;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.quick-action:hover {
  background: var(--color-light);
  color: var(--color-primary);
  transform: translateX(3px);
}

.quick-action .material-symbols-outlined {
  font-size: 22px;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-title {
    font-size: 26px;
  }

  .dashboard-content-item {
    align-items: flex-start;
  }

  .dashboard-content-action {
    display: flex;
    width: 100%;
    margin-left: 58px;
    margin-top: 8px;
  }
}

/* Dashboard status badge colors */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background-color: var(--color-info-dark);
}

.status-badge-active {
  color: var(--color-success);
  background: rgba(65, 241, 182, 0.12);
}

.status-badge-active .status-badge-dot {
  background-color: var(--color-success);
}

.status-badge-draft {
  color: var(--color-warning);
  background: rgba(255, 187, 85, 0.14);
}

.status-badge-draft .status-badge-dot {
  background-color: var(--color-warning);
}

.status-badge-inactive {
  color: var(--color-dark-variant);
  background: var(--color-light);
}

.status-badge-inactive .status-badge-dot {
  background-color: var(--color-info-dark);
}

.status-badge-hidden {
  color: var(--color-secondary);
  background: rgba(77, 184, 255, 0.12);
}

.status-badge-hidden .status-badge-dot {
  background-color: var(--color-secondary);
}

.status-badge-deleted {
  color: var(--color-danger);
  background: rgba(255, 119, 130, 0.12);
}

.status-badge-deleted .status-badge-dot {
  background-color: var(--color-danger);
}

/* =========================================================
   PREMIUM ADMIN UI OVERRIDES
   Safe layer: keep old project logic, modernize UI.
   Uses existing variables and supports dark theme.
   ========================================================= */

/* ---------- global polish ---------- */
body {
  background:
    radial-gradient(
      circle at top right,
      rgba(var(--primary-rgb), 0.08),
      transparent 30rem
    ),
    var(--color-background);
  color: var(--color-dark);
}

main {
  padding: 24px;
}

a,
button,
.btn,
.btn-action,
.aside,
.grid-table table,
.form-wrap,
table.detail-view,
.files-area {
  -webkit-tap-highlight-color: transparent;
}

.grid-wrapper,
.form-wrapper {
  width: min(1240px, 92%);
  align-items: flex-start;
}

.page-header {
  width: 100%;
  gap: 10px;
}

.page-title,
.grid-wrapper h2,
.form-wrapper h2 {
  margin: 0 0 10px;
  color: var(--color-dark);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.page-actions {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 22px;
}

/* ---------- breadcrumbs ---------- */
.breadcrumb {
  width: 100%;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;

  margin: 0 0 24px;
  padding: 10px 14px;

  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(var(--shadow-rgb), 0.12);
}

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.breadcrumb span {
  margin: 0 3px;
  color: var(--color-primary);
  font-size: 16px;
}

.breadcrumb li a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;

  border-radius: 999px;
  color: var(--color-primary);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;

  transition: all 0.18s ease;
}

.breadcrumb li a:hover {
  background: var(--color-light);
}

.breadcrumb li a.innactive-link {
  color: var(--color-dark);
  background: var(--color-light);
  pointer-events: none;
}

/* ---------- buttons ---------- */
.btn,
button.btn,
a.btn {
  width: auto;
  max-width: none;
  min-width: 116px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 11px 16px;
  border-radius: var(--border-radius-2);

  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;
  text-align: center;

  box-shadow: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    filter 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-success {
  background-color: var(--color-valid);
  border-color: var(--color-valid);
  color: #fff !important;
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff !important;
}

.btn-warning {
  background-color: var(--color-warning);
  border-color: var(--color-warning);
  color: #fff !important;
}

.btn-danger {
  background-color: var(--color-invalid);
  border-color: var(--color-invalid);
  color: #fff !important;
}

.btn-outline-secondary {
  color: var(--color-dark);
  background: var(--color-light);
  border-color: var(--color-light);
}

.btn-outline-secondary:hover {
  color: var(--color-primary);
  background: rgba(var(--primary-rgb), 0.14);
  border-color: rgba(var(--primary-rgb), 0.22);
}

.btn-action {
  width: auto;
  min-width: 148px;
  max-width: 240px;
  min-height: 44px;

  margin: 0;
  padding: 12px 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border-radius: var(--border-radius-2);
  color: #fff !important;

  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;

  box-shadow: 0 10px 22px rgba(var(--shadow-rgb), 0.16);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.btn-action span {
  margin: 0;
  font-size: 20px;
}

.btn-action:hover {
  opacity: 1;
  filter: brightness(96%);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(var(--shadow-rgb), 0.22);
}

.btn-area-scs {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* ---------- forms ---------- */
.form-wrap,
.search-form-wrap,
.group-form-smm,
.section-edit-wrapper,
.lang-section {
  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: var(--border-radius-3);
  box-shadow: var(--box-shadow);
}

.form-wrap {
  max-width: 1200px;
  padding: clamp(22px, 3vw, 42px);
}

.search-form-wrap {
  max-width: 1200px;
  padding: 22px;
}

.form-section {
  width: 100%;
  padding: 22px;
  margin-bottom: 22px;

  background: var(--color-background);
  border: 1px solid var(--color-light);
  border-radius: var(--border-radius-3);
}

.form-section-title {
  position: relative;
  margin: 0 0 18px !important;
  padding-left: 13px;

  color: var(--color-dark) !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
}

.form-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 999px;
  background: var(--color-primary);
}

form label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--color-dark);
  font-size: 13px;
  font-weight: 850;
}

form input,
form textarea,
form select,
.form-control,
.form-select {
  width: 100%;

  padding: 12px 14px !important;
  margin-bottom: 10px;

  border-radius: var(--border-radius-2) !important;
  border: 1px solid var(--color-light) !important;

  background-color: var(--color-background) !important;
  color: var(--color-dark) !important;

  font-size: 14px !important;
  line-height: 1.45 !important;

  box-shadow: none !important;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form input::placeholder,
form textarea::placeholder {
  color: var(--color-info-dark);
  opacity: 0.72;
}

form input:focus,
form textarea:focus,
form select:focus,
.form-control:focus,
.form-select:focus {
  border-color: rgba(var(--primary-rgb), 0.55) !important;
  background-color: var(--color-white) !important;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12) !important;
}

.help-block,
.invalid-feedback {
  margin-top: -4px;
  margin-bottom: 10px;
  color: var(--color-invalid);
  font-size: 12px;
  font-weight: 800;
}

._error-form {
  color: var(--color-invalid);
}

._error-form > input,
._error-form > textarea,
._error-form > select {
  border-color: rgba(204, 0, 0, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(204, 0, 0, 0.08) !important;
}

._success-form > input,
._success-form > textarea,
._success-form > select {
  border-color: rgba(51, 153, 51, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(51, 153, 51, 0.08) !important;
}

.search-form-admin h4 {
  margin: 0 0 16px;
  color: var(--color-dark);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

/* ---------- translation badges ---------- */
.translation-language-badge,
.translation-missing-badge {
  border: 1px solid var(--color-light);
  box-shadow: 0 10px 22px rgba(var(--shadow-rgb), 0.08);
}

.translation-language-badge {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--color-primary);
}

.translation-missing-badge {
  background: rgba(255, 187, 85, 0.15);
  color: var(--color-warning);
}

/* ---------- file inputs / images ---------- */
.files-area {
  min-height: 150px;
  padding: 18px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border: 1.5px dashed rgba(var(--primary-rgb), 0.35);
  border-radius: var(--border-radius-3);

  background:
    radial-gradient(
      circle at top right,
      rgba(var(--primary-rgb), 0.08),
      transparent 12rem
    ),
    var(--color-background);

  color: var(--color-dark);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.files-area.dragging,
.files-area:hover,
.files-area:hover .drp-area {
  border-color: var(--color-primary);
  background-color: rgba(var(--primary-rgb), 0.08);
}

.drp-area {
  min-height: 70px;
  padding: 15px;

  border: 1px dashed rgba(var(--primary-rgb), 0.35);
  border-radius: var(--border-radius-2);

  color: var(--color-primary);
  background: rgba(var(--primary-rgb), 0.08);

  font-size: 14px;
  font-weight: 850;
}

.drp-area .material-symbols-outlined {
  font-size: 22px;
}

.file-block {
  width: 100%;
  padding: 14px;

  border-radius: var(--border-radius-2);
  background: var(--color-white);
  border: 1px solid var(--color-light);
  color: var(--color-dark);

  box-shadow: 0 10px 22px rgba(var(--shadow-rgb), 0.08);
}

.file-block b {
  font-size: 13px;
}

.file-block > span.name {
  max-width: 100%;
  width: auto;
  padding: 6px 10px;

  border-radius: 999px;
  background: var(--color-light);

  color: var(--color-dark-variant);
  font-size: 11px;
  font-weight: 750;
  word-break: break-all;
}

.request_img,
.detail-preview-img {
  max-width: 220px;
  max-height: 170px;
  object-fit: cover;
  border-radius: var(--border-radius-2);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

/* ---------- tables ---------- */
.table-area {
  width: 100%;
}

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

.grid-table table,
.recent-orders table,
table.detail-view {
  width: 100%;

  margin: 20px 0 40px;
  border-collapse: separate;
  border-spacing: 0;

  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: var(--card-border-radius);

  box-shadow: var(--box-shadow);
  overflow: hidden;
}

table thead tr {
  border-bottom: 1px solid var(--color-light) !important;
  background: var(--color-background);
}

table thead tr th {
  padding: 18px 16px;

  color: var(--color-dark);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

table tbody td {
  height: auto;
  padding: 16px 14px;

  border-bottom: 1px solid var(--color-light);
  color: var(--color-dark-variant);

  font-size: 14px;
  line-height: 1.45;
  vertical-align: middle;
}

table tbody tr:last-child td {
  border-bottom: none;
}

table.list-view tr {
  transition:
    background-color 0.16s ease,
    transform 0.16s ease;
}

table.list-view tr:hover {
  background-color: rgba(var(--primary-rgb), 0.06);
}

table td a {
  color: var(--color-primary);
  font-weight: 850;
}

table td a:hover {
  color: var(--color-secondary);
}

.table-actions-symbs {
  gap: 10px;
}

.table-actions-symbs a {
  width: 34px;
  height: 34px;

  display: inline-grid !important;
  place-items: center;

  margin: 0;
  border-radius: 50%;
  background: var(--color-light);

  transition:
    transform 0.18s ease,
    background-color 0.18s ease;
}

.table-actions-symbs a:hover {
  transform: translateY(-1px);
  background: rgba(var(--primary-rgb), 0.16);
}

.table-actions-symbs span {
  color: var(--color-primary);
  font-size: 19px;
}

.table-actions-symbs span:hover {
  color: var(--color-primary);
}

table .list-wrapper-img img,
table tr td img {
  max-width: 120px;
  max-height: 90px;
  padding: 0;
  border-radius: var(--border-radius-2);
  object-fit: cover;
  filter: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

table.detail-view {
  margin-top: 20px;
  table-layout: fixed;
}

table.detail-view tr {
  border-bottom: 1px solid var(--color-light);
}

table.detail-view tr th {
  width: 28%;
  padding: 18px 20px;

  border-right: 1px solid var(--color-light);
  color: var(--color-dark);

  font-size: 14px;
  font-weight: 900;
  text-align: left;
  background: var(--color-background);
}

table.detail-view tr td {
  width: 72%;
  padding: 18px 20px;

  color: var(--color-dark-variant);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

table.detail-view tr td img {
  max-width: 280px;
  max-height: 220px;
  padding: 0;
  border-radius: var(--border-radius-2);
}

table caption.not-found,
table td.not-found {
  color: var(--color-warning);
  background: rgba(255, 187, 85, 0.1);
}

/* ---------- statuses ---------- */
.st-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 7px 10px;
  border-radius: 999px;

  background: var(--color-light);
  color: var(--color-dark);

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

span.circle-status {
  width: 9px;
  height: 9px;
  min-width: 9px;
}

/* ---------- pagination ---------- */
.pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 28px 0 46px;
}

.pagination ul {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;

  padding: 8px;
  margin: 0;

  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid var(--color-light);
  box-shadow: var(--box-shadow);
}

.pagination ul li {
  min-width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;

  border-radius: 999px;
  color: var(--color-dark);
  font-size: 14px;
  font-weight: 900;
}

.pagination ul li a {
  min-width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0 12px;

  border-radius: 999px;
  color: var(--color-dark);
  font-size: 14px;
  font-weight: 900;

  transition: all 0.18s ease;
}

.pagination ul li.numb.active a,
.pagination ul li.active a,
.pagination ul li a:hover,
.pagination ul li.btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.pagination ul li.prev,
.pagination ul li.next {
  border-radius: 999px;
}

.pagination ul li.btn {
  padding: 0;
  max-width: none;
}

/* ---------- modals ---------- */
.modal-confirm,
.modal-error {
  max-width: 440px;
  padding: 24px;
  border-radius: var(--border-radius-3);
  border: 1px solid var(--color-light);
  box-shadow: var(--box-shadow);
}

.modal-confirm.active,
.modal-error.active {
  top: 70px;
}

.modal-confirm h2,
.modal-error h2 {
  margin-bottom: 14px;
  color: var(--color-dark);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

.modal-confirm p,
.modal-error p {
  margin-bottom: 24px;
  color: var(--color-dark-variant);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 750;
}

.modal-confirm .buttons {
  gap: 10px;
}

.modal-confirm .buttons a,
.modal-error .buttons a {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--border-radius-2);
  font-size: 14px;
  font-weight: 900;
}

/* ---------- tooltip ---------- */
.ttp::after {
  border-radius: var(--border-radius-1);
  background: var(--color-dark);
  color: var(--color-white);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
  font-size: 12px;
  font-weight: 800;
}

/* ---------- ajax loader ---------- */
.loader-ajax {
  border: 8px solid var(--color-light);
  border-top: 8px solid var(--color-primary);
  width: 64px;
  height: 64px;
  z-index: 300;
}

/* ---------- dashboard status badge fix ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background-color: var(--color-info-dark);
}

.status-badge-active {
  color: var(--color-success);
  background: rgba(65, 241, 182, 0.12);
}

.status-badge-active .status-badge-dot {
  background-color: var(--color-success);
}

.status-badge-draft {
  color: var(--color-warning);
  background: rgba(255, 187, 85, 0.14);
}

.status-badge-draft .status-badge-dot {
  background-color: var(--color-warning);
}

.status-badge-inactive {
  color: var(--color-dark-variant);
  background: var(--color-light);
}

.status-badge-inactive .status-badge-dot {
  background-color: var(--color-info-dark);
}

.status-badge-hidden {
  color: var(--color-secondary);
  background: rgba(77, 184, 255, 0.12);
}

.status-badge-hidden .status-badge-dot {
  background-color: var(--color-secondary);
}

.status-badge-deleted {
  color: var(--color-danger);
  background: rgba(255, 119, 130, 0.12);
}

.status-badge-deleted .status-badge-dot {
  background-color: var(--color-danger);
}

/* ---------- dark theme fixes ---------- */
.dark-theme-variables body {
  background:
    radial-gradient(
      circle at top right,
      rgba(var(--primary-rgb), 0.12),
      transparent 30rem
    ),
    var(--color-background);
}

.dark-theme-variables .breadcrumb,
.dark-theme-variables .form-wrap,
.dark-theme-variables .search-form-wrap,
.dark-theme-variables .grid-table table,
.dark-theme-variables .recent-orders table,
.dark-theme-variables table.detail-view,
.dark-theme-variables .modal-confirm,
.dark-theme-variables .modal-error,
.dark-theme-variables .pagination ul {
  border-color: rgba(255, 255, 255, 0.06);
}

.dark-theme-variables form input,
.dark-theme-variables form textarea,
.dark-theme-variables form select,
.dark-theme-variables .form-control,
.dark-theme-variables .form-select {
  background-color: var(--color-background) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.dark-theme-variables form input:focus,
.dark-theme-variables form textarea:focus,
.dark-theme-variables form select:focus,
.dark-theme-variables .form-control:focus,
.dark-theme-variables .form-select:focus {
  background-color: var(--color-white) !important;
}

.dark-theme-variables table thead tr,
.dark-theme-variables table.detail-view tr th,
.dark-theme-variables .form-section {
  background: var(--color-background);
}

/* ---------- responsive fixes ---------- */
@media screen and (max-width: 800px) {
  main {
    padding: 14px;
  }

  .grid-wrapper,
  .form-wrapper {
    width: 96%;
  }

  .page-actions {
    gap: 8px;
  }

  .btn-action {
    width: auto;
    min-width: 135px;
    flex: 1 1 auto;
  }
}

@media screen and (max-width: 600px) {
  .form-wrap {
    padding: 20px;
  }

  .form-section {
    padding: 16px;
  }

  .breadcrumb {
    border-radius: var(--border-radius-2);
  }

  table.resp tr {
    padding: 14px;
    border: 1px solid var(--color-light);
    border-radius: var(--border-radius-3);
    background: var(--color-white);
    box-shadow: var(--box-shadow);
  }

  table.resp td {
    padding: 14px 4px;
    text-align: left;
    align-items: flex-start;
    border-bottom: 1px solid var(--color-light);
  }

  table.resp td::before {
    margin-bottom: 8px;
    color: var(--color-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  table.detail-view tr {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid var(--color-light);
    border-radius: var(--border-radius-3);
    overflow: hidden;
  }

  table.detail-view tr th,
  table.detail-view tr td {
    width: 100%;
    padding: 14px;
    text-align: left;
    border-right: none;
  }

  .pagination ul {
    border-radius: var(--border-radius-3);
  }
}

@media screen and (max-width: 465px) {
  .btn,
  .btn-action {
    width: 100%;
    max-width: none;
  }

  .btn-area-scs {
    flex-direction: column;
  }

  .pagination ul li,
  .pagination ul li a {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

/* =========================================================
   PREMIUM FIX V2 - ACTION BUTTON GAPS + DETAIL VIEW
   ========================================================= */

/* ---------- action buttons spacing fix ---------- */

.action-buttons-area,
.page-actions,
.page-header .page-actions,
.form-wrapper .page-actions,
.grid-wrapper .page-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  row-gap: 12px !important;
  width: 100%;
}

.action-buttons-area .btn-action,
.page-actions .btn-action,
.page-header .btn-action,
.form-wrapper .btn-action,
.grid-wrapper .btn-action {
  margin: 0 !important;
}

.action-buttons-area > *,
.page-actions > * {
  margin-right: 0 !important;
}

/* If ActionsButtonsWidget outputs links directly without wrapper spacing */
.page-header .btn-action + .btn-action,
.form-wrapper .btn-action + .btn-action,
.grid-wrapper .btn-action + .btn-action {
  margin-left: 0 !important;
}

/* Safer compact action buttons */
.btn-action {
  min-width: 145px;
  min-height: 44px;
  padding: 12px 16px;
  gap: 8px;
}

.btn-action .material-symbols-outlined {
  margin: 0 !important;
  font-size: 20px;
}

/* ---------- premium detail view table ---------- */

table.detail-view {
  width: 100%;
  margin: 22px 0 44px !important;

  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed;

  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: var(--card-border-radius);
  box-shadow: var(--box-shadow);

  overflow: hidden;
}

/* make rows clean, not heavy */
table.detail-view tr {
  display: table-row;
  border: none !important;
  background: transparent;
}

table.detail-view tr:nth-child(even) {
  background: rgba(var(--shadow-rgb), 0.045);
}

.dark-theme-variables table.detail-view tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

/* label column */
table.detail-view tr th {
  width: 260px !important;

  padding: 18px 22px !important;

  background: var(--color-background);
  border-right: 1px solid var(--color-light) !important;
  border-bottom: 1px solid var(--color-light) !important;

  color: var(--color-dark);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: left !important;
  vertical-align: middle;
}

/* value column */
table.detail-view tr td {
  width: auto !important;

  padding: 18px 22px !important;

  background: transparent;
  border-bottom: 1px solid var(--color-light) !important;

  color: var(--color-dark-variant);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
  text-align: left !important;
  vertical-align: middle;

  word-break: break-word;
}

table.detail-view tr:last-child th,
table.detail-view tr:last-child td {
  border-bottom: none !important;
}

/* links inside detail view */
table.detail-view tr td a {
  display: inline-flex;
  align-items: center;

  color: var(--color-primary);
  font-weight: 850;
  line-height: 1.45;
  text-decoration: none;

  border-bottom: 1px dashed rgba(var(--primary-rgb), 0.45);
}

table.detail-view tr td a:hover {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

/* dates / strong values */
table.detail-view tr td b {
  color: var(--color-dark);
  font-weight: 850;
}

/* status inside detail */
table.detail-view .st-status {
  justify-content: flex-start;
}

/* image wrappers inside detail */
table.detail-view tr td .detail-wrapper-img,
table.detail-view tr td .detail-preview-img-wrapper,
table.detail-view
  tr
  td
  .d-flex.align-items-center.justify-content-center {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* images inside detail */
table.detail-view tr td img,
table.detail-view tr td .detail-preview-img {
  width: auto;
  max-width: min(320px, 100%);
  max-height: 240px;

  padding: 0 !important;

  object-fit: cover;
  border-radius: var(--border-radius-3);
  filter: none !important;
  cursor: zoom-in;

  border: 1px solid var(--color-light);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* gallery image overlay detail */
table.detail-view tr td .detail-wrapper-img.gallery-img {
  max-width: 320px;
  max-height: 240px;
  border-radius: var(--border-radius-3);
  overflow: hidden;
}

table.detail-view tr td .detail-wrapper-img.gallery-img img {
  max-width: 320px;
  max-height: 240px;
  border-radius: var(--border-radius-3);
  filter: brightness(55%) !important;
}

/* long text values */
table.detail-view tr td p,
table.detail-view tr td div {
  line-height: 1.65;
}

/* make empty values softer */
table.detail-view tr td:empty::after {
  content: "—";
  color: var(--color-info-dark);
}

/* ---------- mobile detail view ---------- */

@media screen and (max-width: 700px) {
  table.detail-view {
    border-radius: var(--border-radius-3);
  }

  table.detail-view tbody,
  table.detail-view tr,
  table.detail-view th,
  table.detail-view td {
    display: block;
    width: 100% !important;
  }

  table.detail-view tr {
    border-bottom: 1px solid var(--color-light) !important;
  }

  table.detail-view tr:last-child {
    border-bottom: none !important;
  }

  table.detail-view tr th {
    padding: 14px 16px 6px !important;

    background: transparent;
    border-right: none !important;
    border-bottom: none !important;

    color: var(--color-primary);
    font-size: 12px;
    text-transform: uppercase;
  }

  table.detail-view tr td {
    padding: 6px 16px 16px !important;
    border-bottom: none !important;
    font-size: 14px;
  }

  table.detail-view tr:nth-child(even) {
    background: transparent;
  }

  table.detail-view tr td .detail-wrapper-img,
  table.detail-view tr td .detail-preview-img-wrapper,
  table.detail-view
    tr
    td
    .d-flex.align-items-center.justify-content-center {
    justify-content: center !important;
  }

  table.detail-view tr td img,
  table.detail-view tr td .detail-preview-img {
    max-width: 100%;
    max-height: 260px;
  }
}

@media screen and (max-width: 480px) {
  .page-actions,
  .action-buttons-area {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .page-actions .btn-action,
  .action-buttons-area .btn-action {
    width: 100% !important;
    max-width: none !important;
  }
}

/* =========================================================
   PREMIUM FIX V3 - PAGINATION ALWAYS VISIBLE
   ========================================================= */

.pagination {
  width: 100%;
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 28px 0 46px;
}

.pagination ul {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;

  padding: 8px;
  margin: 0;

  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid var(--color-light);
  box-shadow: var(--box-shadow);
}

.pagination ul li {
  min-width: 40px;
  height: 40px;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  margin: 0 !important;
  padding: 0 !important;

  border-radius: 999px;

  background: transparent;
  color: var(--color-dark) !important;

  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  opacity: 1 !important;
  visibility: visible !important;
}

.pagination ul li a,
.pagination ul li span {
  min-width: 40px;
  height: 40px;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  margin: 0 !important;
  padding: 0 13px !important;

  border-radius: 999px;

  background: transparent;
  color: var(--color-dark) !important;

  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;

  opacity: 1 !important;
  visibility: visible !important;

  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.pagination ul li a:hover,
.pagination ul li span:hover {
  background: var(--color-light);
  color: var(--color-primary) !important;
  transform: translateY(-1px);
}

/* Yii2 active page */
.pagination ul li.active,
.pagination ul li.numb.active {
  background: transparent !important;
}

.pagination ul li.active a,
.pagination ul li.active span,
.pagination ul li.numb.active a,
.pagination ul li.numb.active span {
  background: var(--color-primary) !important;
  color: #fff !important;
}

/* Yii2 disabled prev/next */
.pagination ul li.disabled,
.pagination ul li.disabled a,
.pagination ul li.disabled span {
  color: var(--color-info-dark) !important;
  background: transparent !important;
  opacity: 0.55 !important;
  pointer-events: none;
}

/* Prev/next buttons */
.pagination ul li.prev,
.pagination ul li.next,
.pagination ul li.btn {
  width: auto !important;
  max-width: none !important;
  border-radius: 999px !important;
}

.pagination ul li.prev a,
.pagination ul li.next a,
.pagination ul li.btn a,
.pagination ul li.prev span,
.pagination ul li.next span,
.pagination ul li.btn span {
  width: auto !important;
  min-width: 40px;
  padding: 0 15px !important;
  color: var(--color-dark) !important;
}

/* Fix Bootstrap .btn conflict inside pagination */
.pagination ul li.btn {
  display: inline-flex !important;
  padding: 0 !important;
  font-size: 14px !important;
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
  color: var(--color-dark) !important;
}

/* Dark theme */
.dark-theme-variables .pagination ul {
  background: var(--color-white);
  border-color: rgba(255, 255, 255, 0.06);
}

.dark-theme-variables .pagination ul li,
.dark-theme-variables .pagination ul li a,
.dark-theme-variables .pagination ul li span {
  color: var(--color-dark) !important;
}

.dark-theme-variables .pagination ul li a:hover,
.dark-theme-variables .pagination ul li span:hover {
  background: var(--color-light);
  color: var(--color-primary) !important;
}

/* Mobile */
@media screen and (max-width: 465px) {
  .pagination ul {
    gap: 5px;
    padding: 7px;
    border-radius: var(--border-radius-3);
  }

  .pagination ul li,
  .pagination ul li a,
  .pagination ul li span {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .pagination ul li.prev a,
  .pagination ul li.next a,
  .pagination ul li.btn a,
  .pagination ul li.prev span,
  .pagination ul li.next span,
  .pagination ul li.btn span {
    min-width: 36px;
    padding: 0 11px !important;
  }
}

/* =========================================================
   PREMIUM FIX V4 - DASHBOARD CONTENT OVERVIEW MOBILE BUTTON
   ========================================================= */

.dashboard-content-item {
  position: relative;
}

.dashboard-content-action {
  position: static !important;
  inset: auto !important;
  transform: none !important;
}

/* Desktop/tablet: button stays on the right */
@media screen and (min-width: 769px) {
  .dashboard-content-item {
    display: flex;
    align-items: center;
  }

  .dashboard-content-main {
    flex: 1 1 auto;
  }

  .dashboard-content-action {
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
  }
}

/* Mobile: clean stacked layout */
@media screen and (max-width: 768px) {
  .dashboard-content-item {
    display: grid !important;
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "icon main"
      "action action";
    align-items: start !important;
    gap: 12px !important;
  }

  .dashboard-content-icon {
    grid-area: icon;
  }

  .dashboard-content-main {
    grid-area: main;
    min-width: 0;
    width: 100%;
    flex: initial !important;
  }

  .dashboard-content-action {
    grid-area: action;
    width: 100% !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center;
    justify-content: flex-start;
  }

  .dashboard-content-action .dashboard-update-btn {
    width: 100% !important;
    max-width: none !important;
    min-height: 40px;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    margin: 0 !important;
  }

  .dashboard-content-main h4 {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }

  .dashboard-content-meta {
    flex-wrap: wrap;
  }
}

/* Very small mobile */
@media screen and (max-width: 480px) {
  .dashboard-content-item {
    grid-template-columns: 38px 1fr;
    gap: 10px !important;
    padding: 12px;
  }

  .dashboard-content-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: var(--border-radius-2);
  }

  .dashboard-content-icon .material-symbols-outlined {
    font-size: 21px;
  }
}

/* ==========================================
   NEW REUSABLE COMPONENTS (v2)
   ========================================== */

/* ── Statistic Cards ── */

.admin-stat-card {
  background: var(--color-white);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  position: relative;
  overflow: hidden;
  min-height: 100px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2.5rem 4rem var(--color-light);
  color: inherit;
}

.admin-stat-card-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-card-icon .material-symbols-outlined {
  font-size: 26px;
  color: #fff;
}

.admin-stat-card-icon.primary   { background: var(--color-primary); }
.admin-stat-card-icon.success   { background: var(--color-success); }
.admin-stat-card-icon.danger    { background: var(--color-danger); }
.admin-stat-card-icon.warning   { background: var(--color-warning); }
.admin-stat-card-icon.secondary { background: var(--color-secondary); }
.admin-stat-card-icon.info      { background: var(--color-info-dark); }

.admin-stat-card-body {
  flex: 1;
  min-width: 0;
}

.admin-stat-card-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: 3px;
}

.admin-stat-card-title {
  font-size: 0.84rem;
  color: var(--color-info-dark);
  font-weight: 500;
}

.admin-stat-card-subtitle {
  font-size: 0.75rem;
  color: var(--color-info-dark);
  margin-top: 3px;
}

.admin-stat-card-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.74rem;
  margin-top: 4px;
  font-weight: 600;
}

.admin-stat-card-trend.trend-up   { color: var(--color-success); }
.admin-stat-card-trend.trend-down { color: var(--color-danger); }

.admin-stat-card-trend .material-symbols-outlined { font-size: 15px; }

.admin-stat-card-link-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light);
  border-radius: 50%;
  color: var(--color-info-dark);
  transition: background 0.2s, color 0.2s;
}

.admin-stat-card:hover .admin-stat-card-link-icon {
  background: var(--color-primary);
  color: #fff;
}

.admin-stat-card-link-icon .material-symbols-outlined { font-size: 17px; }

/* ── Widget Card wrapper ── */

.admin-widget-card {
  background: var(--color-white);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  box-shadow: var(--box-shadow);
  height: 100%;
}

.admin-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-light);
  gap: 0.5rem;
}

.admin-widget-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

.admin-widget-link {
  font-size: 0.8rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  transition: color 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.admin-widget-link:hover { color: var(--color-primary-variant); }
.admin-widget-link .material-symbols-outlined { font-size: 15px; }

/* ── Quick Actions ── */

.admin-quick-actions {
  background: var(--color-white);
  border-radius: var(--card-border-radius);
  padding: 1.2rem var(--card-padding);
  box-shadow: var(--box-shadow);
}

.admin-quick-actions-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-info-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.admin-quick-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.42rem 0.9rem;
  border-radius: var(--border-radius-2);
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.admin-quick-action-btn .material-symbols-outlined { font-size: 17px; }

.admin-quick-action-btn.primary   { background: rgba(var(--primary-rgb),0.11); color: var(--color-primary);   border-color: rgba(var(--primary-rgb),0.2); }
.admin-quick-action-btn.success   { background: rgba(65,241,182,0.11);  color: #1a9e6f;                border-color: rgba(65,241,182,0.2); }
.admin-quick-action-btn.danger    { background: rgba(255,119,130,0.11); color: var(--color-danger);    border-color: rgba(255,119,130,0.2); }
.admin-quick-action-btn.warning   { background: rgba(255,187,85,0.11);  color: #d49600;                border-color: rgba(255,187,85,0.2); }
.admin-quick-action-btn.secondary { background: rgba(77,184,255,0.11);  color: #0d92d6;                border-color: rgba(77,184,255,0.2); }
.admin-quick-action-btn.info      { background: rgba(125,141,161,0.11); color: var(--color-info-dark); border-color: rgba(125,141,161,0.2); }

.admin-quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ── Recent Records Table ── */

.admin-recent-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-recent-table th {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-info-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--color-light);
  text-align: left;
  white-space: nowrap;
}

.admin-recent-table td {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--color-light);
  font-size: 0.85rem;
  color: var(--color-dark);
  vertical-align: middle;
}

.admin-recent-table tr:last-child td { border-bottom: none; }

.admin-recent-table tbody tr:hover td { background: var(--color-light); }

.admin-recent-empty,
.admin-calendar-empty,
.admin-activity-empty {
  text-align: center;
  color: var(--color-info-dark);
  padding: 2rem 1rem;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* ── Activity History Widget ── */

.admin-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-light);
}

.admin-activity-item:last-child { border-bottom: none; }

.admin-activity-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.admin-activity-icon .material-symbols-outlined { font-size: 15px; color: #fff; }

.admin-activity-icon.success   { background: var(--color-success); }
.admin-activity-icon.primary   { background: var(--color-primary); }
.admin-activity-icon.danger    { background: var(--color-danger); }
.admin-activity-icon.warning   { background: var(--color-warning); }
.admin-activity-icon.secondary { background: var(--color-info-dark); }

.admin-activity-body { flex: 1; min-width: 0; }

.admin-activity-body strong {
  font-size: 0.83rem;
  color: var(--color-dark);
  font-weight: 600;
  display: block;
}

.admin-activity-body p {
  font-size: 0.78rem;
  color: var(--color-info-dark);
  margin-top: 1px;
  line-height: 1.4;
}

.admin-activity-time {
  font-size: 0.73rem;
  color: var(--color-info-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Calendar Preview Widget ── */

.admin-calendar-event-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-light);
}

.admin-calendar-event-item:last-child { border-bottom: none; }

.admin-calendar-event-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.admin-calendar-event-info { flex: 1; min-width: 0; }

.admin-calendar-event-title {
  font-size: 0.85rem;
  color: var(--color-dark);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-calendar-event-time {
  font-size: 0.74rem;
  color: var(--color-info-dark);
  margin-top: 1px;
}

/* ── Chart Card ── */

.admin-chart-card {
  background: var(--color-white);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  box-shadow: var(--box-shadow);
  height: 100%;
}

.admin-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-light);
}

.admin-chart-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

.admin-chart-canvas-wrapper {
  position: relative;
}

/* ── Status Badges ── */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}

.status-badge.active,
.status-badge.completed,
.status-badge.published  { background: rgba(65,241,182,0.15);  color: #1a9e6f; }
.status-badge.inactive,
.status-badge.hidden     { background: rgba(125,141,161,0.15); color: var(--color-info-dark); }
.status-badge.draft,
.status-badge.pending    { background: rgba(255,187,85,0.15);  color: #d49600; }
.status-badge.danger,
.status-badge.deleted,
.status-badge.banned,
.status-badge.error      { background: rgba(255,119,130,0.15); color: #cc3a47; }
.status-badge.primary,
.status-badge.created    { background: rgba(var(--primary-rgb),0.15); color: var(--color-primary); }
.status-badge.secondary,
.status-badge.updated    { background: rgba(77,184,255,0.15);  color: #0d92d6; }
.status-badge.warning,
.status-badge.status_changed { background: rgba(255,187,85,0.15); color: #d49600; }
.status-badge.success,
.status-badge.restored   { background: rgba(65,241,182,0.15);  color: #1a9e6f; }

/* ── Full Calendar Page ── */

.admin-calendar-page {
  background: var(--color-white);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  box-shadow: var(--box-shadow);
}

.admin-calendar-page .fc {
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
}

.admin-calendar-page .fc-toolbar-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
}

.admin-calendar-page .fc-button-primary {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
}

.admin-calendar-page .fc-button-primary:hover,
.admin-calendar-page .fc-button-primary:not(:disabled):active,
.admin-calendar-page .fc-button-primary:not(:disabled).fc-button-active {
  background: var(--color-primary-variant) !important;
  border-color: var(--color-primary-variant) !important;
}

.admin-calendar-page .fc-col-header-cell-cushion,
.admin-calendar-page .fc-daygrid-day-number { color: var(--color-dark); text-decoration: none; }

.admin-calendar-page .fc-daygrid-day.fc-day-today { background: rgba(var(--primary-rgb),0.07); }

/* ── Activity History Page ── */

.activity-history-view-card {
  background: var(--color-white);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  box-shadow: var(--box-shadow);
}

.activity-data-block {
  background: var(--color-background);
  border-radius: var(--border-radius-2);
  padding: 1rem;
  margin-top: 0.4rem;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  color: var(--color-dark);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--color-light);
  line-height: 1.6;
}

/* ── Example Pages ── */

.example-section {
  background: var(--color-white);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
}

.example-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--color-light);
}

.example-section-subtitle {
  font-size: 0.82rem;
  color: var(--color-info-dark);
  margin-bottom: 0.8rem;
}

/* ── Dark theme adjustments ── */

.dark-theme-variables .admin-stat-card,
.dark-theme-variables .admin-widget-card,
.dark-theme-variables .admin-chart-card,
.dark-theme-variables .admin-quick-actions,
.dark-theme-variables .admin-calendar-page,
.dark-theme-variables .activity-history-view-card,
.dark-theme-variables .example-section {
  background: var(--color-white);
  border: 1px solid rgba(255,255,255,0.05);
}

.dark-theme-variables .activity-data-block {
  background: rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.08);
  color: var(--color-dark);
}

/* ── Responsive ── */

@media screen and (max-width: 768px) {
  .admin-stat-card {
    padding: 1.2rem;
    gap: 1rem;
    min-height: 80px;
  }

  .admin-stat-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .admin-stat-card-value { font-size: 1.5rem; }

  .admin-quick-action-btn {
    padding: 0.38rem 0.75rem;
    font-size: 0.82rem;
  }
}

/* =========================================================
   DESIGN REFRESH v3
   Token-level restyle. Nothing structural changes — this layer
   only re-tunes the palette, radii, shadows and typography that
   the whole panel already reads from, plus a few component
   polish rules that could not be expressed as tokens.
   ========================================================= */

/* ---------- tokens: light ---------- */
:root {
  /* RGB triplets — the tint/shadow rgba() calls above resolve through these,
     so re-theming the panel is a two-line change. */
  --primary-rgb: 91, 91, 214;
  --shadow-rgb: 19, 25, 51;

  --color-primary: #5b5bd6;
  --color-primary-variant: #3e3ea8;
  --color-secondary: #0f9dd6;

  --color-success: #0f9d76;
  --color-valid: #0f9d76;
  --color-danger: #e5484d;
  --color-invalid: #d3383d;
  --color-warning: #e8930c;

  --color-background: #f6f7fb;
  --color-white: #ffffff;

  --color-dark: #171a21;
  --color-dark-variant: #5a6070;
  --color-info-dark: #8b90a0;
  --color-info-light: #e7e9f1;
  --color-light: rgba(var(--shadow-rgb), 0.08);
  --color-tb-light: rgba(var(--shadow-rgb), 0.08);

  /* Radii — the old 2rem card radius read as a bubble next to 999px pills.
     One 18px card / 12px control scale keeps the panel coherent. */
  --card-border-radius: 18px;
  --border-radius-1: 8px;
  --border-radius-2: 12px;
  --border-radius-3: 16px;

  --card-padding: 24px;
  --padding-1: 16px;

  /* Layered shadow instead of one 3rem blur — reads as elevation, not fog. */
  --box-shadow:
    0 1px 2px rgba(var(--shadow-rgb), 0.05),
    0 8px 24px rgba(var(--shadow-rgb), 0.06);
  --shadow-sm: 0 1px 2px rgba(var(--shadow-rgb), 0.06);
  --shadow-md:
    0 2px 4px rgba(var(--shadow-rgb), 0.04),
    0 12px 32px rgba(var(--shadow-rgb), 0.08);
  --focus-ring: 0 0 0 3px rgba(var(--primary-rgb), 0.22);
}

/* ---------- tokens: dark ---------- */
.dark-theme-variables {
  --shadow-rgb: 0, 0, 0;

  --color-background: #0e1015;
  --color-white: #171a21;

  --color-dark: #e8eaf2;
  --color-dark-variant: #a2a8b8;
  --color-info-dark: #7f8698;
  --color-info-light: #242833;
  --color-light: rgba(255, 255, 255, 0.08);
  --color-tb-light: rgba(255, 255, 255, 0.1);
  --border-table: none;

  --white: #171a21;
  --black: #e8eaf2;

  --box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 12px 32px rgba(0, 0, 0, 0.45);
}

/* ---------- typography ---------- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 850/900 weights on every heading and button made the panel shout.
   Drop to a normal editorial scale and let size carry the hierarchy. */
.page-title,
.grid-wrapper h2,
.form-wrapper h2 {
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.grid-wrapper h4,
.form-wrapper h4 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}

/* ---------- content column ---------- */
/* 1240px wrapped 8-column tables into a narrow strip on a 1440+ screen
   while two thirds of the viewport sat empty. */
.grid-wrapper,
.form-wrapper {
  width: min(1520px, 94%);
}

/* ---------- surfaces ---------- */
body,
.dark-theme-variables body {
  background: var(--color-background);
}

.breadcrumb {
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-2);
}

.breadcrumb li a {
  font-weight: 600;
  font-size: 12.5px;
}

.breadcrumb span {
  font-size: 14px;
  color: var(--color-info-dark);
}

/* ---------- buttons ---------- */
.btn,
button.btn,
a.btn,
.btn-action {
  font-weight: 600;
  letter-spacing: 0;
}

.btn,
button.btn,
a.btn {
  min-width: 0;
  padding: 10px 18px;
}

.btn-action {
  min-width: 0;
  min-height: 40px;
  padding: 10px 18px;
  box-shadow: var(--shadow-sm);
}

.btn-action span {
  font-size: 18px;
}

.btn-action:hover {
  filter: none;
  box-shadow: var(--shadow-md);
}

/* The "Create" and "Search" buttons were emerald while every other accent in
   the panel was indigo — two competing primaries on the same screen.
   Primary action = indigo; green stays for genuinely positive state only. */
.grid-wrapper .btn-action.btn-success,
.form-wrapper .btn-action.btn-success,
form .btn.btn-success,
.search-form-wrap .btn-success {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn:focus-visible,
.btn-action:focus-visible,
a.aside:focus-visible,
.admin-topbar-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---------- forms ---------- */
form input,
form textarea,
form select,
.form-control,
.form-select {
  border-radius: var(--border-radius-2) !important;
  font-size: 14px;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

form input:focus,
form textarea:focus,
form select:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: var(--focus-ring) !important;
}

form label,
.control-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-dark-variant);
}

/* ---------- tables ---------- */
.grid-table table,
.recent-orders table,
table.detail-view {
  margin: 16px 0 28px;
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-sm);
}

table thead tr th {
  padding: 13px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-info-dark);
}

table tbody td {
  padding: 12px 16px;
  font-size: 13.5px;
}

/* Sticky header so the column names survive a long list. */
.grid-table table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-background);
}

table.list-view tr:hover {
  background-color: rgba(var(--primary-rgb), 0.04);
}

table td a {
  font-weight: 600;
}

.table-actions-symbs a {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-1);
  background: transparent;
}

.table-actions-symbs a:hover {
  transform: none;
  background: rgba(var(--primary-rgb), 0.12);
}

.table-actions-symbs span {
  font-size: 18px;
  color: var(--color-info-dark);
}

.table-actions-symbs a:hover span {
  color: var(--color-primary);
}

table .list-wrapper-img img,
table tr td img {
  max-width: 72px;
  max-height: 54px;
  border-radius: var(--border-radius-1);
  box-shadow: var(--shadow-sm);
}

table.detail-view tr th {
  font-size: 13px;
  font-weight: 650;
  padding: 14px 20px;
}

table.detail-view tr td {
  padding: 14px 20px;
  font-size: 13.5px;
}

/* ---------- status badges ---------- */
.st-status {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}

/* ---------- sidebar ---------- */
/* 28 entries overflowed the viewport, so Logout sat below an invisible fold.
   A flex column with the last section pinned keeps it reachable at any height. */
.admin-aside,
aside {
  width: 264px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--color-light);
}

.admin-aside-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.admin-aside-section-last {
  flex: 0 0 auto;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--color-light);
}

.admin-aside-section-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-info-dark);
}

.admin-aside .aside {
  padding: 8px 12px;
  border-radius: var(--border-radius-2);
  font-size: 13.5px;
  font-weight: 550;
}

.admin-aside .aside .material-symbols-outlined {
  font-size: 19px;
}

.admin-aside li.active .aside {
  font-weight: 650;
}

.admin-aside-logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- topbar ---------- */
.admin-topbar {
  min-height: 56px;
  border-radius: var(--border-radius-3);
  box-shadow: var(--shadow-sm);
}

.admin-header {
  padding: 12px 0 4px;
}

.admin-topbar .menu-burger,
.admin-topbar-btn,
.admin-logout-btn {
  border-radius: var(--border-radius-2);
}

.admin-topbar .menu-burger {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: transparent;
}

.admin-topbar .date-time {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-info-dark);
}

.admin-user-initials {
  border-radius: var(--border-radius-2);
  font-size: 12.5px;
  font-weight: 650;
}

/* ---------- pagination ---------- */
.pagination {
  margin: 20px 0 32px;
}

.pagination ul {
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-2);
}

/* ---------- empty state ---------- */
table caption.not-found,
table td.not-found {
  padding: 40px 16px;
  color: var(--color-info-dark);
  background: transparent;
  font-size: 14px;
  text-align: center;
}

/* ---------- cards ---------- */
.card,
.admin-stat-card,
.form-wrap,
.search-form-wrap,
.group-wrapper,
.sub-gr-wrapper {
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-sm);
}

.group-wrapper,
.sub-gr-wrapper {
  border: 1px solid var(--color-light);
}

/* ---------- refresh v3: width + wrapping fixes ---------- */
/* form-wrap and search-form-wrap were pinned to 1200px, so they stopped short
   of the (now wider) table below them and the column looked ragged. */
.form-wrap,
.search-form-wrap {
  max-width: none;
}

/* Long entries ("Project Challenges") wrapped to two lines and broke the
   even rhythm of the nav. */
.admin-aside .aside span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- refresh v3: dark-theme separation ---------- */
/* Surface (#171a21) sits only a few steps above the page (#0e1015), so in dark
   mode the cards need a hairline to read as separate planes. */
.dark-theme-variables .form-wrap,
.dark-theme-variables .search-form-wrap,
.dark-theme-variables .breadcrumb,
.dark-theme-variables .admin-topbar,
.dark-theme-variables .grid-table table,
.dark-theme-variables .recent-orders table,
.dark-theme-variables table.detail-view,
.dark-theme-variables .card,
.dark-theme-variables .admin-stat-card,
.dark-theme-variables .pagination ul {
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.dark-theme-variables table thead tr,
.dark-theme-variables table.detail-view tr th {
  background: rgba(255, 255, 255, 0.03);
}

.dark-theme-variables .grid-table table thead th {
  background: #1c202a;
}

/* =========================================================
   ADMIN FEATURES
   Dashboard, global search, trash, activity log, translations
   overview, profile, bulk actions, reorder, SEO meters and the
   admin error page. Uses only the tokens from DESIGN REFRESH v3,
   so all of it follows the theme in both light and dark.
   ========================================================= */

.page-subtitle {
  margin: 0;
  color: var(--color-info-dark);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---------- shared widget card ---------- */
.admin-widget-card {
  width: 100%;
  margin-bottom: 24px;
  padding: 24px 26px;

  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-sm);
}

.admin-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-widget-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--color-dark);
}

.admin-widget-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  color: var(--color-primary);
  font-size: 12.5px;
  font-weight: 600;
}

.admin-widget-link .material-symbols-outlined {
  font-size: 16px;
}

/* ---------- dashboard ---------- */
.dashboard-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;

  padding: 18px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-sm);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-stat-card.has-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.admin-stat-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;

  display: grid;
  place-items: center;
  border-radius: var(--border-radius-2);

  background: rgba(var(--primary-rgb), 0.12);
  color: var(--color-primary);
}

.admin-stat-card-icon .material-symbols-outlined {
  font-size: 22px;
}

.admin-stat-card-icon.success {
  background: rgba(15, 157, 118, 0.14);
  color: var(--color-success);
}

.admin-stat-card-icon.warning {
  background: rgba(232, 147, 12, 0.15);
  color: var(--color-warning);
}

.admin-stat-card-icon.danger {
  background: rgba(229, 72, 77, 0.14);
  color: var(--color-danger);
}

.admin-stat-card-icon.secondary {
  background: var(--color-light);
  color: var(--color-dark-variant);
}

.admin-stat-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-stat-card-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}

.admin-stat-card-title {
  margin-top: 2px;
  color: var(--color-info-dark);
  font-size: 12.5px;
  font-weight: 600;
}

.admin-stat-card-link-icon {
  color: var(--color-info-dark);
}

.admin-stat-card-link-icon .material-symbols-outlined {
  font-size: 18px;
}

/* The cards inside this row are stretched with height:100%, which swallows
   their own margin-bottom — without a margin on the row itself, "Content
   overview" sat flush against "Needs attention". */
.dashboard-columns {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-attention-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-attention-list a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 9px 10px;
  border-radius: var(--border-radius-2);
  color: var(--color-dark);
  font-size: 13.5px;

  transition: background-color 0.16s ease;
}

.dashboard-attention-list a:hover {
  background: rgba(var(--primary-rgb), 0.08);
}

.dashboard-attention-list .material-symbols-outlined {
  font-size: 19px;
  color: var(--color-info-dark);
}

.dashboard-attention-label {
  flex: 1 1 auto;
}

.dashboard-attention-count {
  min-width: 26px;
  padding: 2px 8px;

  border-radius: 999px;
  background: rgba(232, 147, 12, 0.16);
  color: var(--color-warning);

  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

.dashboard-overview-item {
  display: flex;
  flex-direction: column;
  gap: 4px;

  padding: 16px 18px;
  border: 1px solid var(--color-light);
  border-radius: var(--border-radius-2);
  color: var(--color-dark);

  transition:
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.dashboard-overview-item:hover {
  border-color: rgba(var(--primary-rgb), 0.4);
  background: rgba(var(--primary-rgb), 0.05);
}

.dashboard-overview-item > .material-symbols-outlined {
  font-size: 19px;
  color: var(--color-info-dark);
}

.dashboard-overview-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-dark-variant);
}

.dashboard-overview-total {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

.dashboard-overview-sub {
  font-size: 11.5px;
  color: var(--color-info-dark);
}

/* ---------- quick actions ---------- */
.admin-quick-actions {
  width: 100%;
  margin-bottom: 20px;
}

.admin-quick-actions-title {
  margin-bottom: 10px;
  color: var(--color-info-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-quick-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 9px 14px;
  border: 1px solid var(--color-light);
  border-radius: var(--border-radius-2);

  background: var(--color-white);
  color: var(--color-dark);
  font-size: 13px;
  font-weight: 600;

  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}

.admin-quick-action-btn .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-primary);
}

.admin-quick-action-btn:hover {
  border-color: rgba(var(--primary-rgb), 0.45);
  background: rgba(var(--primary-rgb), 0.07);
  color: var(--color-primary);
}

/* ---------- activity list ---------- */
.admin-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-light);
}

.admin-activity-item:last-child {
  border-bottom: none;
}

.admin-activity-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;

  display: grid;
  place-items: center;
  border-radius: var(--border-radius-1);

  background: var(--color-light);
  color: var(--color-dark-variant);
}

.admin-activity-icon .material-symbols-outlined {
  font-size: 17px;
}

.admin-activity-icon.success {
  background: rgba(15, 157, 118, 0.14);
  color: var(--color-success);
}

.admin-activity-icon.primary {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--color-primary);
}

.admin-activity-icon.danger {
  background: rgba(229, 72, 77, 0.14);
  color: var(--color-danger);
}

.admin-activity-icon.warning {
  background: rgba(232, 147, 12, 0.15);
  color: var(--color-warning);
}

.admin-activity-body {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-activity-body strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--color-dark);
}

.admin-activity-body p {
  margin: 0;
  font-size: 12.5px;
  color: var(--color-info-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-activity-time {
  flex: 0 0 auto;
  color: var(--color-info-dark);
  font-size: 11.5px;
  white-space: nowrap;
}

.admin-activity-empty,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  width: 100%;
  padding: 32px 16px;
  color: var(--color-info-dark);
  text-align: center;
}

.admin-activity-empty .material-symbols-outlined,
.empty-state .material-symbols-outlined {
  font-size: 32px;
  opacity: 0.4;
}

.admin-activity-empty p,
.empty-state p {
  margin: 0;
  font-size: 13.5px;
  color: var(--color-info-dark);
}

/* ---------- activity log table ---------- */
.activity-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 650;
}

.activity-action .material-symbols-outlined {
  font-size: 17px;
}

.activity-action.success { color: var(--color-success); }
.activity-action.primary { color: var(--color-primary); }
.activity-action.danger { color: var(--color-danger); }
.activity-action.warning { color: var(--color-warning); }
.activity-action.secondary { color: var(--color-dark-variant); }

.activity-changes {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}

.activity-changes li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 2px 0;
}

.activity-changes .material-symbols-outlined {
  font-size: 15px;
  color: var(--color-info-dark);
}

.activity-old,
.activity-new {
  max-width: 220px;
  padding: 1px 6px;
  border-radius: var(--border-radius-1);

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-old {
  background: rgba(229, 72, 77, 0.1);
  color: var(--color-danger);
  text-decoration: line-through;
}

.activity-new {
  background: rgba(15, 157, 118, 0.12);
  color: var(--color-success);
}

/* ---------- global search palette ---------- */
.admin-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  height: 36px;
  margin-left: 8px;
  padding: 0 12px;

  border: 1px solid var(--color-light);
  border-radius: var(--border-radius-2);
  background: var(--color-background);
  color: var(--color-info-dark);

  font-size: 13px;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    color 0.16s ease;
}

.admin-search-trigger:hover {
  border-color: rgba(var(--primary-rgb), 0.4);
  color: var(--color-primary);
}

.admin-search-trigger .material-symbols-outlined {
  font-size: 18px;
}

.admin-search-kbd {
  padding: 1px 6px;
  border: 1px solid var(--color-light);
  border-radius: 5px;

  background: var(--color-white);
  color: var(--color-info-dark);

  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
}

.admin-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding: 12vh 16px 16px;
  background: rgba(10, 12, 18, 0.55);
  backdrop-filter: blur(3px);
}

.admin-search-overlay[hidden] {
  display: none;
}

.admin-search-panel {
  width: min(640px, 100%);
  max-height: 70vh;

  display: flex;
  flex-direction: column;
  overflow: hidden;

  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: var(--card-border-radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.admin-search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px 16px;
  border-bottom: 1px solid var(--color-light);
}

.admin-search-input-row .material-symbols-outlined {
  font-size: 20px;
  color: var(--color-info-dark);
}

.admin-search-input {
  flex: 1 1 auto;
  min-width: 0;

  border: none !important;
  outline: none;
  background: transparent !important;
  box-shadow: none !important;

  color: var(--color-dark);
  font-size: 15px;
}

.admin-search-results {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 6px;
}

.admin-search-group {
  padding: 10px 10px 4px;
  color: var(--color-info-dark);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-search-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 9px 10px;
  border-radius: var(--border-radius-2);
  color: var(--color-dark);
  font-size: 13.5px;
}

.admin-search-item .material-symbols-outlined {
  font-size: 19px;
  color: var(--color-info-dark);
}

.admin-search-item.active,
.admin-search-item:hover {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--color-primary);
}

.admin-search-item.active .material-symbols-outlined,
.admin-search-item:hover .material-symbols-outlined {
  color: var(--color-primary);
}

.admin-search-item-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-search-item-meta {
  flex: 0 0 auto;
  color: var(--color-info-dark);
  font-size: 11.5px;
}

.admin-search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px 16px;
  color: var(--color-info-dark);
}

.admin-search-empty .material-symbols-outlined {
  font-size: 30px;
  opacity: 0.4;
}

/* ---------- trash ---------- */
.trash-tabs {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.trash-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 7px 12px;
  border: 1px solid var(--color-light);
  border-radius: 999px;

  background: var(--color-white);
  color: var(--color-dark-variant);
  font-size: 12.5px;
  font-weight: 600;

  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}

.trash-tab .material-symbols-outlined {
  font-size: 17px;
}

.trash-tab:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  color: var(--color-primary);
}

.trash-tab.active {
  border-color: var(--color-primary);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--color-primary);
}

.trash-tab.is-empty {
  opacity: 0.55;
}

.trash-tab-count {
  min-width: 20px;
  padding: 0 6px;

  border-radius: 999px;
  background: var(--color-light);
  color: inherit;

  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.trash-bulk {
  width: 100%;
  margin-bottom: 14px;
}

/* ---------- translations overview ---------- */
.coverage-bar {
  width: 120px;
  height: 6px;
  display: inline-block;
  vertical-align: middle;

  border-radius: 999px;
  background: var(--color-light);
  overflow: hidden;
}

.coverage-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--color-primary);
}

.coverage-fill.success { background: var(--color-success); }
.coverage-fill.warning { background: var(--color-warning); }
.coverage-fill.danger { background: var(--color-danger); }

.coverage-value {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--color-dark-variant);
}

.lang-flag {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.lang-flag .material-symbols-outlined {
  font-size: 16px;
}

.lang-flag.present {
  background: rgba(15, 157, 118, 0.14);
  color: var(--color-success);
}

.lang-flag.missing {
  background: rgba(229, 72, 77, 0.14);
  color: var(--color-danger);
}

tr.row-focused {
  background: rgba(var(--primary-rgb), 0.05);
}

/* ---------- profile ---------- */
.profile-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  align-items: start;
}

.profile-card {
  padding: 22px 24px !important;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-light);
}

.profile-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;

  display: grid;
  place-items: center;
  border-radius: var(--border-radius-3);

  background: rgba(var(--primary-rgb), 0.12);
  color: var(--color-primary);

  font-size: 18px;
  font-weight: 700;
}

.profile-name {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--color-dark);
}

.profile-email {
  margin: 0;
  font-size: 13px;
  color: var(--color-info-dark);
}

.profile-facts {
  margin: 16px 0 0;
}

.profile-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-light);
}

.profile-facts > div:last-child {
  border-bottom: none;
}

.profile-facts dt {
  margin: 0;
  color: var(--color-info-dark);
  font-size: 12.5px;
  font-weight: 600;
}

.profile-facts dd {
  margin: 0;
  color: var(--color-dark);
  font-size: 13px;
  text-align: right;
}

.profile-hint {
  margin: 4px 0 0;
  color: var(--color-info-dark);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- bulk actions ---------- */
.list-toolbar {
  width: 100%;
  margin-bottom: 12px;
}

.list-toolbar-hint {
  color: var(--color-info-dark);
  font-size: 12.5px;
}

.bulk-bar {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;

  margin-bottom: 12px;
  padding: 10px 14px;

  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: var(--border-radius-2);
  background: rgba(var(--primary-rgb), 0.07);
}

.bulk-bar.is-visible {
  display: flex;
}

.bulk-bar-count {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
}

.bulk-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-bar-actions .btn {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12.5px;
}

.bulk-bar-actions .material-symbols-outlined {
  font-size: 16px;
}

table.list-view th.col-check,
table.list-view td.col-check,
table.list-view th.col-drag,
table.list-view td.col-drag {
  width: 40px;
  text-align: center;
}

table.list-view input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ---------- reorder ---------- */
.drag-handle {
  color: var(--color-info-dark);
  font-size: 19px;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.16s ease;
}

table.is-reordering .drag-handle {
  opacity: 1;
}

table.is-reordering tbody tr {
  cursor: grab;
}

table.is-reordering tbody tr.is-dragging {
  opacity: 0.5;
  background: rgba(var(--primary-rgb), 0.1);
}

[data-reorder-toggle].active {
  border-color: var(--color-primary);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--color-primary);
}

[data-reorder-save].is-dirty {
  animation: reorder-pulse 1.4s ease-in-out infinite;
}

@keyframes reorder-pulse {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50% { box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2); }
}

/* ---------- SEO meters ---------- */
.seo-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.seo-meter-bar {
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: var(--color-light);
  overflow: hidden;
}

.seo-meter-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--color-info-dark);
  transition: width 0.16s ease, background-color 0.16s ease;
}

.seo-meter-text {
  flex: 0 0 auto;
  color: var(--color-info-dark);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.seo-meter.tone-good .seo-meter-fill { background: var(--color-success); }
.seo-meter.tone-short .seo-meter-fill { background: var(--color-warning); }
.seo-meter.tone-long .seo-meter-fill { background: var(--color-danger); }
.seo-meter.tone-long .seo-meter-text { color: var(--color-danger); }

.seo-preview {
  width: 100%;
  margin: 6px 0 18px;
}

.seo-preview-label {
  margin-bottom: 6px;
  color: var(--color-info-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.seo-preview-card {
  padding: 14px 16px;
  border: 1px solid var(--color-light);
  border-radius: var(--border-radius-2);
  background: var(--color-background);
}

.seo-preview-url {
  color: var(--color-dark-variant);
  font-size: 12px;
}

.seo-preview-title {
  margin-top: 2px;
  color: #1a0dab;
  font-size: 17px;
  line-height: 1.3;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark-theme-variables .seo-preview-title {
  color: #8ab4f8;
}

.seo-preview-desc {
  margin-top: 3px;
  color: var(--color-dark-variant);
  font-size: 12.5px;
  line-height: 1.5;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- media library ---------- */
.media-frame {
  width: 100%;
  min-height: 640px;

  border: 1px solid var(--color-light);
  border-radius: var(--card-border-radius);
  background: var(--color-white);
  overflow: hidden;
}

.media-frame .elfinder {
  border: none !important;
}

/* ---------- admin error page ---------- */
.admin-error {
  width: 100%;
  max-width: 540px;
  margin: 8vh auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.admin-error-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;

  border-radius: var(--border-radius-3);
  background: rgba(229, 72, 77, 0.12);
  color: var(--color-danger);
}

.admin-error-icon .material-symbols-outlined {
  font-size: 30px;
}

.admin-error-code {
  color: var(--color-info-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.admin-error-title {
  margin: 0;
  color: var(--color-dark);
  font-size: 22px;
  font-weight: 700;
}

.admin-error-message {
  margin: 0;
  color: var(--color-dark-variant);
  font-size: 14px;
  line-height: 1.6;
}

.admin-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

/* ---------- responsive ---------- */
@media screen and (max-width: 900px) {
  .admin-search-trigger-label,
  .admin-search-trigger .admin-search-kbd {
    display: none;
  }

  .admin-search-trigger {
    padding: 0 9px;
  }
}

@media screen and (max-width: 800px) {
  .dashboard-stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .admin-stat-card {
    padding: 14px;
    gap: 12px;
  }

  .admin-stat-card-value {
    font-size: 22px;
  }

  .admin-search-overlay {
    padding: 6vh 12px 12px;
  }

  .bulk-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .coverage-bar {
    width: 80px;
  }
}

/* ---------- bulk bar: escape the global `form { width: 100% }` ---------- */
/* Each bulk action is its own POST form, and the panel-wide form rule at
   line ~1796 stretched every one of them to the container width, so three
   buttons stacked instead of sitting in a row. */
.bulk-bar-actions form {
  width: auto;
  flex: 0 0 auto;
}

/* ---------- media library: give the elFinder wrapper a real height ---------- */
.media-frame {
  height: calc(100vh - 220px);
  min-height: 520px;
  display: flex;
}

.media-frame .media-frame-inner {
  flex: 1 1 auto;
  min-height: 0;
}

.media-frame .media-frame-inner iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ==================== TOOLTIPS IN THE ACTIONS COLUMN ==================== */
/* `.ttp::after` centres the bubble on its icon (translateX(-50%)). In the last
   column that pushes half of it past the table's right edge, where
   `.grid-table table { overflow: hidden }` (and the scroll container's
   overflow-x) cut it off — the tooltip rendered half-visible. Anchoring it to
   the icon's right edge makes it grow leftwards, so it always stays inside the
   table and no overflow rule has to change. */
.table-actions .ttp::after {
  left: auto;
  right: 0;
  transform: translateX(0) scale(0.8);
  transform-origin: bottom right;
  z-index: 5;
}

.table-actions .ttp:hover::after {
  transform: translateX(0) scale(1);
}