/*
  Atease v3 – Core Style Deck
  Theme tokens, element defaults, Bootstrap theming, and key components.
  Scope: light, clean, modern surfaces with sharp contrast and soft shadows.
*/

/* Tokens */
:root {
  /* Typography */
  --font-sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Palette */
  --brand: #2f5fff;
  --brand-600: #2349cc;
  --brand-700: #1a399f;
  --text: #202123;
  --muted: #6e6e80;
  --bg: #f6f6f6;
  --surface: #ffffff;
  --surface-2: #f7f7f9;
  --border: #e4e5eb;
  --shadow: 0 6px 18px rgba(0,0,0,.06);

  /* Semantic */
  --success: #1f8a5a;
  --danger: #d14343;
  --warning: #cc8b18;
  --info: #2e7ab8;

  /* Radii & spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  /* Focus */
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent);

  /* Button neutrals */
  --btn-bg: #2c3038;
  --btn-bg-hover: #353a43;
  --btn-border: #434955;
  --btn-text: #f2f3f7;
  --btn-shadow: 0 3px 10px rgba(0,0,0,0.18);

  /* Layout dims */
  --nav-h: 56px;
  --aside-w: 222px;
}

/* Reboot / Base */
html { -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video, canvas, audio, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: color-mix(in srgb, var(--brand) 92%, black 0%); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Document elements */
main { display: block; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
pre, code, kbd, samp { font-family: var(--font-mono); font-size: 0.95em; }
pre { background: var(--surface-2); padding: var(--space-4); border-radius: var(--radius-sm); overflow:auto; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
blockquote { border-left: 3px solid var(--border); margin: 1rem 0; padding: .5rem 1rem; color: var(--muted); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: .2em 0 .4em;
  font-weight: 600;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 2.4vw, 2.4rem); }
h2 { font-size: clamp(1.6rem, 2vw, 2rem); }
h3 { font-size: clamp(1.4rem, 1.6vw, 1.6rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .95rem; color: var(--muted); }

p { margin: 0 0 .8rem; }
small, .small { font-size: .875em; color: var(--muted); }

/* Layout chrome used by app layout */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 16px; background: var(--surface); position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
}
.navbar .navbar-brand { display:flex; align-items:center; gap: 6px; }
.navbar .navbar-brand .desktop-logo { height: 22px; width: auto; }
.navbar .nav-link { color: var(--muted); font-size: 14px; font-weight: 400; }
.navbar .nav-link.active { color: var(--text); font-weight: 600; }
.navbar .notification-badge { position:absolute; top:-6px; right:-8px; background:#f04438; color:#fff; font-size:11px; min-width:18px; padding:2px 6px; border-radius:999px; }
.navbar .nav-item { position: relative; }

.menu-btn { background: none; border: 0; font-size: 24px; cursor: pointer; position: relative; }
/* Hide the menu toggle button on desktop */
@media (min-width: 992px) {
  .menu-btn { display: none; }
}
/* Only show the burger icon on mobile/tablet */
.mobile-burger { display: none; }
@media (max-width: 991px) {
  .mobile-burger { display: block; }
}

.has-aside .aside {
  background: #f2f3f6; padding: 10px; width: var(--aside-w); position: fixed; top: var(--nav-h); left: 0;
  height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: left .25s ease; z-index: 900;
  border-right: 1px solid #e7e9ef; box-shadow: 0 2px 18px rgba(0,0,0,.06);
  border-radius: 0 16px 16px 0;
}
.has-aside .aside.active { left: 0; }
.has-aside .side-nav-content { flex-grow: 1; overflow-y: auto; padding-bottom: 20px; }
.side-nav-item {
  display: flex; align-items: center; gap: 10px;
  color: #3b3f4a; font-size: 14px; font-weight: 500;
  padding: 10px 12px; border-radius: 8px; text-decoration: none; margin-bottom: 2px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  position: relative;
}
.side-nav-item .nav-icon { width: 22px; min-width: 22px; display: inline-flex; align-items: center; justify-content: center; color: #4a4e59; }
.side-nav-item:hover { background: #ffffff; color: #111827; box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 0 0 1px #eceef5 inset; }
.side-nav-item.active-exact, .side-nav-item.is-active {
  position: relative; background: #ffffff; color: #111827; font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 0 0 1px #e7e9f0 inset;
}
/* Remove old left accent bar for active; we'll draw a hooked arrow instead */
.side-nav-item.active-exact::before, .side-nav-item.is-active::before { content: none; }
.side-nav-bottom a { opacity: .9; }
.side-nav-bottom a:hover { opacity: 1; }

.main {
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px; margin-top: 10px; min-height: calc(100vh - var(--nav-h) - 20px);
  box-shadow: var(--shadow);
}
.has-aside .main { margin-left: var(--aside-w); width: calc(100% - var(--aside-w)); }

/* Let dropdown menus in responsive tables fully escape vertically while preserving horizontal scroll */
.table-responsive { overflow-x: auto; overflow-y: visible; position: relative; }

@media (max-width: 991px) {
  .menu-btn { display: block; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); }
  .navbar-nav { display: none; }
  .has-aside .aside { left: calc(-1 * var(--aside-w)); top: var(--nav-h); }
  .has-aside .aside.active { left: 0; }
  /* Mobile: main should be full width, not shifted by aside */
  .has-aside .main { width: 100%; margin-left: 0; }
  /* Ensure 10px gap under nav and 10px from bottom on mobile */
  .main { width: 100%; margin-left: 0; margin-top: 10px; min-height: calc(100vh - var(--nav-h) - 20px); }
}

/* Sidebar items */

/* Accordion in sidebar */
.accordion-button { background: transparent; padding: 10px 8px; border: 0; color: #6b6f7b; font-weight: 600; font-size: 12px; box-shadow: none; text-transform: none; letter-spacing: .2px; }
.accordion-button:hover { background: transparent; color: #525762; }
.accordion-button.is-active { color: #202123; }
/* Ensure no bottom border/line under headers */
.accordion-header { border: 0 !important; margin-bottom: 0; }
.accordion-item, .accordion-item .accordion-button, .accordion-button:focus { border: 0 !important; box-shadow: none !important; }
/* Remove focus ring/highlight */
.accordion-button:focus, .accordion-button:focus-visible { box-shadow: none !important; outline: none !important; }
.accordion-item { border: 0; border-radius: 8px; }
.accordion-item:hover { background: transparent; border-radius: 8px; }
.accordion-button { color: #474a57; }
.accordion-button:not(.collapsed) { background: transparent; color:#6b6f7b; }
.accordion-collapse.show { background: transparent; }
.accordion-body { position: relative; padding: 6px 8px 12px 14px; }
.accordion-body::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 10px; width: 2px; background: #e0e4ee; border-radius: 2px; }
.accordion-body .side-nav-item { padding-left: 34px; }
.accordion-body .side-nav-item .nav-icon { margin-left: -6px; }

/* Hooked arrow from the left guideline into the active item */
/* Shopify-like curved elbow from guideline into active item */
.accordion-body .side-nav-item.active-exact,
.accordion-body .side-nav-item.is-active { z-index: 1; }
.accordion-body .side-nav-item.is-active::before {
  /* elbow (quarter circle with a small horizontal run) */
  content: "";
  position: absolute;
  left: 14px; /* slightly left of guideline to center border thickness */
  top: calc(50% - 7px);
  width: 14px; height: 14px;
  border-left: 2px solid #cfd5e4;
  border-top: 2px solid #cfd5e4;
  border-top-left-radius: 10px;
}
.accordion-body .side-nav-item.is-active::after {
  /* short horizontal extension into item */
  content: "";
  position: absolute;
  left: 28px; /* just after the elbow */
  top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 2px;
  background: #cfd5e4;
  border-radius: 2px;
}
/* Disable hook for active-exact items */
.accordion-body .side-nav-item.active-exact::before,
.accordion-body .side-nav-item.active-exact::after { content: none !important; }
/* Remove default chevron arrows */
.accordion-button::after { background-image: none !important; content: none !important; transform: none !important; }

/* Right dropdown (user) */
.user-dropdown { padding: 14px; min-width: 240px; }
.user-dropdown .dropdown-item { padding: 6px 0; font-size: 13px; }
.user-info { border-bottom: 1px solid var(--border); margin-bottom: 8px; padding-bottom: 8px; }
.svg-dark { stroke: #000 !important; stroke-width: 1.6px; height: 26px; width: 26px; }
.user-avatar { height: 30px; width: 30px; border-radius: 50%; border: 1px solid #d9d9e3; object-fit: cover; }
.profile-dropdown { position: relative; top: 5px; margin-left: 10px; }

/* Notification menu */
.notification-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); }

/* Generic dropdown styling (action menus) */
.dropdown { position: relative; }
.dropdown-menu {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 6px 0;
  z-index: 9999 !important; /* ensure above tables and sticky elements */
  background: #fff;
  min-width: 180px;
}
.action-cell .dropdown-menu { z-index: 10000 !important; }
.dropdown-item { font-size: 14px; color: #202123; padding: 8px 12px; }
.dropdown-item:hover, .dropdown-item:focus { background: #f5f6fa; color: #111827; }
.dropdown-divider { margin: 6px 0; }

/* Badges for environment */
.wowpa-badge { display:inline-flex; align-items:center; justify-content:center; padding: 3px 8px; font-size: 10px; border-radius: 20px; text-transform: uppercase; border:1px solid currentColor; background: transparent; }
.wowpa-testing { color:#22b383; }
.wowpa-beta { color:#ffcc00; }

/* Fallbacks for legacy utility classes (Material Dashboard-like) */
.avatar { display:inline-block; width: 36px; height: 36px; border-radius: 50%; overflow:hidden; }
.avatar img { width:100%; height:100%; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }

.badge-sm { font-size: .65rem; padding: .25em .4em; }
.border-radius-sm { border-radius: var(--radius-sm) !important; }
.border-radius-md { border-radius: var(--radius-md) !important; }
.border-radius-lg { border-radius: var(--radius-lg) !important; }
.shadow-blur { box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.blur { backdrop-filter: blur(6px); }
.max-height-vh-70 { max-height: 70vh; }

/* Provide color backgrounds for gradient helpers */
.bg-gradient-dark { background: #343a40 !important; color: #fff !important; }
.bg-gradient-secondary { background: #6c757d !important; color: #fff !important; }
.bg-gradient-primary { background: var(--brand) !important; color: #fff !important; }
.bg-gradient-success { background: var(--success) !important; color: #fff !important; }
.bg-gradient-danger { background: var(--danger) !important; color: #fff !important; }
.bg-gradient-warning { background: var(--warning) !important; color: #111 !important; }
.bg-gradient-info { background: var(--info) !important; color: #fff !important; }

/* Typographic utilities seen across views */
.text-xs { font-size: .75rem !important; }
.text-sm { font-size: .875rem !important; }
.text-md { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-bold { font-weight: 700 !important; }
.font-weight-bolder { font-weight: 800 !important; }

/* Tables */
.table { background: var(--surface); color: inherit; border-color: var(--border); }
.table thead th { color: inherit; border-color: var(--border); }
.table tbody td, .table tbody th { border-color: var(--border); vertical-align: middle; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.card-header, .card-footer { background: var(--surface-2); border-color: var(--border); }

/* Forms */
.form-label { font-weight: 500; color: var(--muted); margin-bottom: .35rem; }
.form-control, .form-select, textarea {
  background: #fff; color: var(--text); border: 1px solid #cfd2d9; border-radius: 10px; padding: 10px 12px; box-shadow: none;
}
.form-control:focus, .form-select:focus, textarea:focus, input:focus { outline: none; border-color: #9aa1b2; box-shadow: var(--focus-ring); }
.form-text { color: var(--muted); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-range::-webkit-slider-thumb { background: var(--brand); }
.form-floating>.form-control:focus~label { color: var(--brand-700); }
.is-valid, .form-control.is-valid, .form-select.is-valid { border-color: var(--success); }
.is-invalid, .form-control.is-invalid, .form-select.is-invalid { border-color: var(--danger); }
.invalid-feedback, .valid-feedback { font-size: .875rem; }

/* Buttons (migrated from buttons.css) */
.atease-btn,
.btn.atease-btn {
  --bg: var(--btn-bg);
  --bg-hover: var(--btn-bg-hover);
  --border: var(--btn-border);
  --text: var(--btn-text);
  --shadow: var(--btn-shadow);

  appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .08s ease;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.atease-btn:hover, .btn.atease-btn:hover { background: var(--bg-hover); }
.atease-btn:active, .btn.atease-btn:active { transform: translateY(1px); }
.atease-btn:focus-visible, .btn.atease-btn:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

/* Variants */
.atease-btn--primary, .btn.atease-btn--primary {
  --bg: linear-gradient(180deg, #1b2030 0%, #171b27 100%);
  --bg-hover: linear-gradient(180deg, #22283a 0%, #1b2030 100%);
  --border: #2a3140;
}
.atease-btn--accent, .btn.atease-btn--accent {
  --bg: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
  --bg-hover: linear-gradient(180deg, color-mix(in srgb, var(--brand) 92%, black 8%) 0%, var(--brand-600) 100%);
  --border: transparent;
}
.atease-btn--secondary, .btn.atease-btn--secondary { --bg: #242932; --bg-hover: #2b303a; --border: #3a4252; }
.atease-btn--success, .btn.atease-btn--success { --bg: #1c2a26; --bg-hover: #22322d; --border: #2f4f44; color: #c7f5df; }
.atease-btn--danger, .btn.atease-btn--danger { --bg: #d14343; --bg-hover: #b83a3a; --border: #a23333; color: #fff; }
.atease-btn--ghost, .btn.atease-btn--ghost {
  --bg: #f7f8fb;
  --bg-hover: #eef0f6;
  --border: #cfd2d9;
  box-shadow: none;
  color: #111827;
}

/* Sizes */
.atease-btn--sm, .btn.atease-btn--sm { padding: 7px 12px; border-radius: 10px; font-size: 13px; }
.atease-btn--lg, .btn.atease-btn--lg { padding: 13px 18px; border-radius: 14px; font-size: 16px; }
.atease-btn__icon { width: 18px; height: 18px; display: inline-block; }
.atease-btn__icon svg { width: 18px; height: 18px; }
.atease-btn--arrow .atease-btn__icon { transition: transform .18s ease; }
.atease-btn--arrow:hover .atease-btn__icon { transform: translateX(2px); }
.atease-btn-group { display: inline-flex; gap: 8px; }

/* Bootstrap buttons baseline (for pages still using .btn) */
.btn { border-radius: 12px; font-weight: 600; padding: 10px 16px; }
.btn-primary { background: #242932; border-color: #3a4252; color: #fff; }
.btn-primary:hover { background: #2b303a; border-color: #444c5e; color: #fff; }
.btn-outline-primary { color: #3C3C43; border-color: #cfd2d9; background: #fff; }
.btn-outline-primary:hover { background: #f5f6fa; border-color: #cfd2d9; color: #111; }
.btn-outline-secondary { color: #3C3C43; border-color: #cfd2d9; background: #fff; }
.btn-outline-secondary:hover { background: #f5f6fa; border-color: #cfd2d9; color: #111; }
.btn-success { background: var(--success); border-color: var(--success); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #111; }
.btn-info { background: var(--info); border-color: var(--info); }
/* neutralize bootstrap gradient helper classes */
[class^="bg-gradient-"], [class*=" bg-gradient-"] { background-image: none !important; }

/* Alerts, Badges */
.alert { border-radius: var(--radius-sm); border: 1px solid var(--border); }
.alert-success { background: #e9fbf1; color: #165b3a; border-color: #b8e9cf; }
.alert-danger { background: #ffeef0; color: #7f1d1d; border-color: #f3c5c8; }
.alert-warning { background: #fff8e6; color: #7a4a00; border-color: #f0ddae; }
.alert-info { background: #e7f3ff; color: #104a75; border-color: #bad8f5; }
.badge { border-radius: 999px; padding: 4px 8px; font-weight: 600; }
.badge-primary { background: var(--brand); color:#fff; }
.badge-secondary { background: #6c757d; color:#fff; }
.badge-success { background: var(--success); color:#fff; }
.badge-danger { background: var(--danger); color:#fff; }
.badge-warning { background: var(--warning); color:#111; }
.badge-info { background: var(--info); color:#fff; }
.badge-dark { background: #343a40; color:#fff; }
.badge-light { background: #f8f9fa; color:#111; }

/* Navbar, Navs & Tabs */
.nav-tabs .nav-link { border: 0; color: var(--muted); }
.nav-tabs .nav-link.active { color: var(--text); border-bottom: 2px solid var(--brand); font-weight: 600; }
.nav-pills .nav-link { border-radius: 999px; }

/* Dropdowns */
.dropdown-menu { border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.dropdown-item { padding: 8px 12px; }
.dropdown-item:hover { background: var(--surface-2); color: #111; }
/* Neutralize Bootstrap blue active styles in dropdowns */
.dropdown-item.active, .dropdown-item:active { background: var(--surface-2) !important; color: #111 !important; }
.dropdown-item.active:hover { background: var(--surface-2) !important; color: #111 !important; }
/* Make status dropdown match search height */
.atease-table__controls .dropdown-toggle.atease-btn { height: 48px; padding: 0 12px; border-radius: 12px; }

/* Modal */
.modal-content { background: var(--surface); color: inherit; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.modal-header, .modal-footer { background: var(--surface-2); border-color: var(--border); }
.btn-close { filter: none; }

/* Pagination */
.pagination .page-link { color: var(--text); border-radius: 10px; border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }

/* List group */
.list-group-item { border-color: var(--border); }
.list-group-item.active { background: var(--brand); border-color: var(--brand); }

/* Breadcrumb */
.breadcrumb { --bs-breadcrumb-divider-color: var(--muted); color: var(--muted); }
.breadcrumb .breadcrumb-item.active { color: var(--text); font-weight: 600; }

/* Utilities */
.shadow-sm { box-shadow: 0 2px 6px rgba(0,0,0,.06) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.rounded { border-radius: var(--radius-sm) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.bg-surface { background: var(--surface) !important; }
.bg-surface-2 { background: var(--surface-2) !important; }
.text-muted { color: var(--muted) !important; }
.border { border-color: var(--border) !important; }

/* Link buttons used in headings */
.btn-link-arrow, .btn-link-back { display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; color: #3C3C43; text-decoration: none; }
.btn-link-arrow svg, .btn-link-back svg { width: 16px; height: 16px; }
.btn-link-arrow svg { margin-left: 3px; transform: rotate(-45deg); transition: transform .2s ease; }
.btn-link-arrow:hover svg { transform: rotate(-45deg) translateX(3px); }
.btn-link-back svg { margin-right: 3px; transform: rotate(135deg); transition: transform .2s ease; }
.btn-link-back:hover svg { transform: rotate(135deg) translateX(3px); }

/* Table control bar */
.atease-table__controls { display:flex; align-items:center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.atease-table__controls .dropdown-toggle::after { margin-left: 8px; }
.atease-table__controls .dropdown-menu { min-width: 260px; }
/* Wider menu for advanced filters */
.filters-dropdown .dropdown-menu { min-width: 520px; }

/* Search field (inline, with icon left and button right inside) */
.atease-search { position: relative; display:flex; align-items:center; width: min(620px, 100%); border:1px solid #d9d9e3; border-radius: 12px; padding: 0 8px; background:#f9f9f9; height: 48px; transition: box-shadow .15s ease, border-color .15s ease, background .15s ease; }
/* Remove blue focus on input; add neutral ring on container */
.atease-search:focus-within { box-shadow: 0 0 0 3px rgba(17,24,39,0.10); border-color: #cfd2d9; background:#fff; }
.atease-search__icon { position:absolute; left: 12px; width: 18px; height: 18px; color: #8d90a0; pointer-events:none; }
.atease-search__input { width: 100%; height: 100%; border:0; outline:0; background:transparent; padding-left: 36px; padding-right: 96px; font-size: 14px; }
.atease-search__input:focus { outline: none; box-shadow: none; }
.atease-search__btn { position:absolute; right: 8px; top: 8px; height: 32px; padding: 0 12px; }

/* Generic table refinements */
.table.atease-table { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm); overflow: visible; position: relative; }
.table.atease-table .action-cell { position: relative; overflow: visible; }
.table.atease-table thead th {
  background: var(--surface-2); font-weight: 600; color: #5b6375; text-transform: uppercase; font-size: 12px; letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
}
.table.atease-table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.table.atease-table thead th:last-child { border-top-right-radius: var(--radius-sm); }
.table.atease-table tbody tr + tr td { border-top: 1px solid var(--border); }
.table.atease-table .avatar { border-radius: 0; }

/* Table spacing */
.table > :not(caption) > * > * { padding: 12px 14px; }
.table { margin-bottom: 0; }
.table-hover tbody tr:hover { background: #f8f9fb; }

/* Standard list thumbnail (rectangular, slightly larger) */
.list-thumb {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: block;
}
/* User avatar in tables */
.list-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: block;
}

/* Accessible helpers */
.is-hidden { display: none !important; }
.is-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding:0; margin:-1px; overflow:hidden; clip: rect(0,0,0,0); white-space: nowrap; border:0; }

/* Pagination (sitewide) */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.page-item .page-link {
  border:1px solid #d9d9e3; background:#fff; color:#3C3C43;
  border-radius: 10px; padding: 8px 12px; min-width: 36px; text-align: center;
}
.page-item.active .page-link { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.page-item.disabled .page-link { color:#9aa1b2; background:#f7f7f9; border-color:#e5e7eb; }
.page-link:hover { background:#f5f6fa; border-color:#cfd2d9; color:#111; text-decoration: none; }
.page-link:focus { box-shadow: none; outline: none; }

@media (max-width: 575.98px) {
  .pagination { gap: 4px; flex-wrap: wrap; }
  .page-item .page-link { padding: 8px 10px; min-width: 34px; font-size: 14px; border-radius: 8px; }
}
.accordion-body .side-nav-item.no-hook.active-exact::before,
.accordion-body .side-nav-item.no-hook.active-exact::after,
.accordion-body .side-nav-item.no-hook.is-active::before,
.accordion-body .side-nav-item.no-hook.is-active::after { content: none !important; }
