/* ─── Design tokens — Microsoft Dynamics 365 inspired ────────────────────────── */
:root {
  /* Topbar (dark navy) */
  --p-topbar-bg:    #1E2D40;
  --p-topbar-text:  #FFFFFF;
  --p-topbar-muted: rgba(255,255,255,.68);
  --p-topbar-hover: rgba(255,255,255,.10);

  /* Sidebar (white) */
  --p-sidebar-bg:     #FFFFFF;
  --p-sidebar-border: #EDEBE9;
  --p-sidebar-label:  #605E5C;

  /* Microsoft Blue */
  --p-blue:       #0078D4;
  --p-blue-hover: #106EBE;
  --p-blue-dark:  #004E8C;
  --p-blue-light: #EFF6FC;

  /* Backward-compat aliases used in views */
  --p-dark:     #1E2D40;
  --p-navy:     #0078D4;
  --p-navy-2:   #106EBE;
  --p-gold:     #f5c842;
  --p-gold-2:   #f7d46a;
  --p-gold-dim:  rgba(245,200,66,.18);
  --p-gold-glow: rgba(245,200,66,.30);

  /* Surfaces */
  --p-bg:      #F3F2F1;
  --p-surface: #FFFFFF;
  --p-border:  #EDEBE9;
  --p-border-2:#D2D0CE;

  /* Text — Dynamics scale */
  --p-t1: #323130;
  --p-t2: #605E5C;
  --p-t3: #A19F9D;

  /* Layout */
  --p-sidebar: 240px;
  --p-topbar:   48px;
  --p-radius:    4px;
  --p-radius-sm: 4px;
  --p-radius-xs: 2px;

  /* Shadows — flat Dynamics style */
  --p-shadow:    0 1px 4px rgba(0,0,0,.08);
  --p-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --p-shadow-md: 0 2px 8px rgba(0,0,0,.12);
  --p-shadow-lg: 0 4px 20px rgba(0,0,0,.16);

  --p-ease: cubic-bezier(.4,0,.2,1);
}

/* ─── Base ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--p-bg);
  font-family: Arial, 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--p-t1);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C8C6C4; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #A19F9D; }

/* ══════════════════════════════════════════════════════════════════════════════
   LAYOUT — topbar full-width, sidebar below it
══════════════════════════════════════════════════════════════════════════════ */

/* Topbar spans 100 % of viewport width */
.porteo-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--p-topbar);
  background: var(--p-topbar-bg);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
}

/* Sidebar starts BELOW the topbar */
.porteo-sidebar {
  position: fixed;
  top: var(--p-topbar);
  left: 0;
  width: var(--p-sidebar);
  height: calc(100vh - var(--p-topbar));
  background: var(--p-sidebar-bg);
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--p-sidebar-border);
  transform: translateX(0);
  transition: transform .25s var(--p-ease);
}

.porteo-main {
  margin-left: var(--p-sidebar);
  padding-top: var(--p-topbar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left .25s var(--p-ease);
}

@media (max-width: 991.98px) {
  .porteo-sidebar { transform: translateX(calc(-1 * var(--p-sidebar))); }
  .porteo-sidebar.sidebar-open { transform: translateX(0); z-index: 45; }
  .porteo-main { margin-left: 0; }
}

/* Desktop collapse — toggled by body.sidebar-collapsed */
@media (min-width: 992px) {
  body.sidebar-collapsed .porteo-sidebar {
    transform: translateX(calc(-1 * var(--p-sidebar)));
  }
  body.sidebar-collapsed .porteo-main {
    margin-left: 0;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════════════════════════════════════════ */

/* Brand block — left of topbar */
.topbar-brand {
  display: flex;
  align-items: center;
  padding: 0 .5rem 0 .25rem;
  flex-shrink: 0;
  height: 100%;
}

.topbar-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: none;
  background: none;
  color: var(--p-topbar-muted);
  border-radius: var(--p-radius-xs);
  cursor: pointer;
  font-size: 14px;
  transition: background .15s, color .15s;
  flex-shrink: 0;
  margin-right: .4rem;
}
.topbar-hamburger:hover {
  background: var(--p-topbar-hover);
  color: var(--p-topbar-text);
}

.topbar-logo-icon {
  font-size: 14px;
  color: var(--p-topbar-text);
  margin-right: .45rem;
}

.topbar-brand-name {
  font-family: Arial, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--p-topbar-text);
  white-space: nowrap;
  letter-spacing: .01em;
}

.topbar-brand-sep {
  color: var(--p-topbar-muted);
  margin: 0 .55rem;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1;
}

.topbar-brand-module {
  font-family: Arial, sans-serif;
  font-size: .82rem;
  font-weight: 400;
  color: var(--p-topbar-muted);
  white-space: nowrap;
}

/* Search */
.topbar-search {
  flex: 1;
  max-width: 340px;
  position: relative;
  margin: 0 1rem;
}
.topbar-search input {
  width: 100%;
  height: 30px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--p-radius-xs);
  padding: 0 .75rem 0 1.9rem;
  font-family: Arial, sans-serif;
  font-size: .82rem;
  color: #fff;
  outline: none;
  transition: background .2s, border-color .2s;
}
.topbar-search input::placeholder { color: rgba(255,255,255,.50); }
.topbar-search input:focus {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.38);
}
.topbar-search-icon {
  position: absolute;
  left: .55rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.55);
  font-size: 11px;
  pointer-events: none;
}

/* Right zone */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  padding-right: .4rem;
}

.topbar-icon-btn {
  position: relative;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--p-radius-xs);
  color: var(--p-topbar-muted);
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.topbar-icon-btn:hover {
  background: var(--p-topbar-hover);
  color: var(--p-topbar-text);
}

.topbar-notif-badge {
  position: absolute;
  top: 5px; right: 5px;
  background: #C50F1F;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 15px; height: 15px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
}

.topbar-sep {
  width: 1px; height: 20px;
  background: rgba(255,255,255,.15);
  margin: 0 .3rem;
}

.topbar-user-btn {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .2rem .5rem;
  border-radius: var(--p-radius-xs);
  cursor: pointer;
  border: none;
  background: none;
  transition: background .15s;
  height: 100%;
}
.topbar-user-btn:hover { background: var(--p-topbar-hover); }

.topbar-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--p-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  overflow: hidden;
}
.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }

.topbar-user-meta { display: none; text-align: left; }
@media (min-width: 992px) { .topbar-user-meta { display: block; } }

.topbar-user-name {
  font-family: Arial, sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: var(--p-topbar-text);
  line-height: 1.2;
  white-space: nowrap;
}
.topbar-user-role {
  font-family: Arial, sans-serif;
  font-size: .67rem;
  color: var(--p-topbar-muted);
  line-height: 1.2;
}

/* Dropdown */
.porteo-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-lg);
  z-index: 200;
  display: none;
  overflow: hidden;
  animation: dropFadeIn .12s var(--p-ease);
}
.porteo-dropdown.open { display: block; }

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-header-area {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--p-border);
  background: var(--p-bg);
}
.dropdown-header-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--p-t1);
}
.dropdown-header-meta { font-size: .72rem; color: var(--p-t3); margin-top: 2px; }

.dropdown-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .42rem .8rem;
  border-radius: var(--p-radius-xs);
  font-family: Arial, sans-serif;
  font-size: .82rem;
  font-weight: 400;
  color: var(--p-t2);
  text-decoration: none;
  transition: background .12s;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.dropdown-link:hover { background: var(--p-bg); color: var(--p-t1); text-decoration: none; }
.dropdown-link.danger { color: #C50F1F; }
.dropdown-link.danger:hover { background: #FEF0F1; }
.dropdown-link-icon { width: 14px; text-align: center; color: var(--p-t3); font-size: 12px; }
.dropdown-link.danger .dropdown-link-icon { color: #C50F1F; }
.dropdown-body { padding: .3rem; }

/* ══════════════════════════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════════════════════════ */

/* Brand section hidden — branding is now in the topbar */
.sidebar-brand { display: none; }

/* Scrollable nav */
.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: .4rem 0;
  scrollbar-width: thin;
  scrollbar-color: #EDEBE9 transparent;
}
.sidebar-scroll::-webkit-scrollbar { width: 3px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: #EDEBE9; border-radius: 4px; }

/* Section labels */
.sidebar-label {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--p-sidebar-label);
  padding: .85rem .85rem .2rem;
  user-select: none;
}
.sidebar-label:first-child { padding-top: .45rem; }

/* Nav items */
.nav-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .45rem .85rem;
  border: none;
  border-left: 3px solid transparent;
  background: none;
  font-family: Arial, sans-serif;
  font-size: .84rem;
  font-weight: 400;
  color: var(--p-t1);
  text-decoration: none;
  transition: background .12s;
  cursor: pointer;
  text-align: left;
  margin-bottom: 1px;
}
.nav-item:hover {
  background: var(--p-bg);
  color: var(--p-t1);
  text-decoration: none;
}
.nav-item.active {
  background: var(--p-blue-light);
  color: var(--p-blue);
  border-left-color: var(--p-blue);
  font-weight: 600;
}
.nav-item .nav-icon {
  width: 16px;
  text-align: center;
  font-size: 13px;
  flex-shrink: 0;
  color: var(--p-t2);
  transition: color .12s;
}
.nav-item:hover .nav-icon { color: var(--p-t1); }
.nav-item.active .nav-icon { color: var(--p-blue); }
.nav-item .nav-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-item .nav-chevron {
  margin-left: auto;
  font-size: 9px;
  color: var(--p-t3);
  transition: transform .2s var(--p-ease);
  flex-shrink: 0;
}
.nav-item.is-open .nav-chevron { transform: rotate(90deg); }

/* Submenus */
.nav-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s var(--p-ease);
}
.nav-subitem {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .85rem .38rem 2.35rem;
  border-left: 3px solid transparent;
  font-family: Arial, sans-serif;
  font-size: .81rem;
  font-weight: 400;
  color: var(--p-t2);
  text-decoration: none;
  transition: background .12s;
  margin-bottom: 1px;
}
.nav-subitem:hover { background: var(--p-bg); color: var(--p-t1); text-decoration: none; }
.nav-subitem.active {
  background: var(--p-blue-light);
  color: var(--p-blue);
  border-left-color: var(--p-blue);
  font-weight: 600;
}
.nav-subitem .sub-icon { font-size: 10px; width: 12px; text-align: center; flex-shrink: 0; color: var(--p-t3); }
.nav-subitem:hover .sub-icon { color: var(--p-t1); }
.nav-subitem.active .sub-icon { color: var(--p-blue); }

/* Sidebar footer — user info */
.sidebar-footer {
  border-top: 1px solid var(--p-sidebar-border);
  padding: .4rem 0;
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem;
}
.sidebar-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--p-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.sidebar-user-name {
  font-family: Arial, sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: var(--p-t1);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user-role {
  font-family: Arial, sans-serif;
  font-size: .67rem;
  color: var(--p-t3);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PAGE BODY
══════════════════════════════════════════════════════════════════════════════ */

.page-body { padding: 1.25rem 1.5rem; }

/* Breadcrumb */
.porteo-breadcrumb {
  display: flex; align-items: center; gap: .4rem;
  margin-bottom: .875rem;
  font-family: Arial, sans-serif;
  font-size: .78rem;
  color: var(--p-t3);
}
.porteo-breadcrumb a {
  color: var(--p-t2);
  text-decoration: none;
  transition: color .15s;
}
.porteo-breadcrumb a:hover { color: var(--p-blue); text-decoration: underline; }
.porteo-breadcrumb-sep { font-size: 8px; opacity: .45; }
.porteo-breadcrumb-active { color: var(--p-t1); font-weight: 600; }

/* Alerts */
.porteo-alert {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem;
  border-radius: var(--p-radius-sm);
  margin-bottom: 1rem;
  font-family: Arial, sans-serif;
  font-size: .84rem;
}
.porteo-alert-success {
  background: #F1FAF1;
  border: 1px solid #9FD89F;
  color: #107C10;
  border-left: 3px solid #107C10;
}
.porteo-alert-danger {
  background: #FEF0F1;
  border: 1px solid #F9B4B7;
  color: #C50F1F;
  border-left: 3px solid #C50F1F;
}
.porteo-alert-close {
  margin-left: auto; background: none; border: none;
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  opacity: .45; color: inherit; padding: 0;
  transition: opacity .15s;
}
.porteo-alert-close:hover { opacity: 1; }

/* Footer */
.porteo-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem 1.5rem;
  border-top: 1px solid var(--p-border);
  background: var(--p-surface);
  margin-top: auto;
  font-family: Arial, sans-serif;
  font-size: .72rem;
  color: var(--p-t3);
}

/* ══════════════════════════════════════════════════════════════════════════════
   BOOTSTRAP COMPONENT OVERRIDES
══════════════════════════════════════════════════════════════════════════════ */

/* --- Cards --- */
.card {
  border: 1px solid var(--p-border) !important;
  border-radius: var(--p-radius) !important;
  box-shadow: var(--p-shadow) !important;
  background: var(--p-surface);
}
.card-header {
  background: var(--p-surface) !important;
  border-bottom: 1px solid var(--p-border) !important;
  padding: .85rem 1.25rem !important;
  font-family: Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: .875rem !important;
  color: var(--p-t1) !important;
  border-radius: var(--p-radius) var(--p-radius) 0 0 !important;
}
.card-body { padding: 1.25rem; }
.card-footer {
  background: var(--p-bg) !important;
  border-top: 1px solid var(--p-border) !important;
  padding: .7rem 1.25rem !important;
  border-radius: 0 0 var(--p-radius) var(--p-radius) !important;
}
.card.bg-primary, .card.bg-success, .card.bg-warning,
.card.bg-danger, .card.bg-info {
  border: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.10) !important;
}

/* --- Tables --- */
.table {
  font-family: Arial, sans-serif;
  font-size: .85rem;
  border-color: var(--p-border);
}
.table th {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--p-t2);
  border-bottom: 1.5px solid var(--p-border) !important;
  padding: .6rem 1rem;
  background: var(--p-bg);
  white-space: nowrap;
}
.table td {
  font-size: .85rem;
  vertical-align: middle;
  padding: .58rem 1rem;
  border-bottom: 1px solid var(--p-border);
  color: var(--p-t2);
}
.table tbody tr:last-child td { border-bottom: none; }
.table-hover tbody tr:hover td { background: var(--p-bg); }
.table-light { background: var(--p-bg) !important; }

/* --- Badges --- */
.badge {
  font-family: Arial, sans-serif;
  font-size: .69rem;
  font-weight: 600;
  padding: .2em .55em;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  font-family: Arial, sans-serif;
  font-weight: 600;
  border-radius: var(--p-radius-sm);
  transition: all .15s;
  font-size: .84rem;
}
.btn-sm { font-size: .79rem; }
.btn-lg { font-size: .9rem; }

.btn-primary {
  background: var(--p-blue);
  border-color: var(--p-blue);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--p-blue-hover);
  border-color: var(--p-blue-hover);
  box-shadow: none;
}

.btn-porteo-primary { background: var(--p-blue); color: #fff; border: none; }
.btn-porteo-primary:hover { background: var(--p-blue-hover); color: #fff; }

.btn-porteo-gold {
  background: var(--p-gold);
  color: #323130;
  border: none;
  font-weight: 600;
}
.btn-porteo-gold:hover { background: #e0b030; color: #323130; }

/* --- Form controls --- */
.form-control, .form-select {
  font-family: Arial, sans-serif;
  font-size: .84rem;
  border-color: var(--p-border-2);
  border-radius: var(--p-radius-sm);
  color: var(--p-t1);
  background: var(--p-surface);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--p-blue);
  box-shadow: 0 0 0 2px rgba(0,120,212,.20);
}
.form-control::placeholder { color: var(--p-t3); }
.form-label {
  font-family: Arial, sans-serif;
  font-weight: 600;
  font-size: .82rem;
  color: var(--p-t2);
  margin-bottom: .35rem;
}

/* --- Modals --- */
.modal-content {
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-lg);
}
.modal-header {
  border-bottom: 1px solid var(--p-border);
  padding: .85rem 1.25rem;
  font-family: Arial, sans-serif;
}
.modal-title { font-weight: 700; font-size: .9rem; color: var(--p-t1); }
.modal-footer {
  border-top: 1px solid var(--p-border);
  padding: .7rem 1.25rem;
}

/* --- Pagination --- */
.page-link {
  font-family: Arial, sans-serif;
  font-size: .82rem;
  font-weight: 400;
  color: var(--p-t2);
  border-color: var(--p-border);
  border-radius: var(--p-radius-xs) !important;
  transition: all .15s;
}
.page-link:hover { background: var(--p-bg); color: var(--p-t1); border-color: var(--p-border-2); }
.page-item.active .page-link { background: var(--p-blue); border-color: var(--p-blue); }

/* --- Tabs --- */
.nav-tabs { border-bottom: 1.5px solid var(--p-border); }
.nav-tabs .nav-link {
  font-family: Arial, sans-serif;
  font-size: .84rem;
  font-weight: 400;
  color: var(--p-t3);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: .5rem 1rem;
  transition: all .15s;
  margin-bottom: -1.5px;
}
.nav-tabs .nav-link:hover { color: var(--p-t1); border-bottom-color: var(--p-border-2); }
.nav-tabs .nav-link.active {
  color: var(--p-blue);
  background: none;
  border: none;
  border-bottom: 2px solid var(--p-blue);
  font-weight: 700;
}

/* --- Alerts (Bootstrap) --- */
.alert { border-radius: var(--p-radius-sm); font-family: Arial, sans-serif; font-size: .84rem; }

/* --- Dropdowns (Bootstrap) --- */
.dropdown-menu {
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  box-shadow: var(--p-shadow-md);
  font-family: Arial, sans-serif;
  font-size: .84rem;
}
.dropdown-item { font-size: .84rem; padding: .4rem .875rem; border-radius: 2px; }
.dropdown-item:hover { background: var(--p-bg); }

/* ─── Page headings ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: Arial, sans-serif;
  font-weight: 700;
  color: var(--p-t1);
}

.page-body h1:not(.display-4) {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--p-t1);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
}

/* Page title icon — blue Dynamics style */
.page-body h1:not(.display-4) i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--p-radius);
  background: var(--p-blue-light);
  color: var(--p-blue) !important;
  font-size: .88rem;
  margin-right: .6rem;
  flex-shrink: 0;
}

.h3, h1.h3 { font-size: 1.1rem; font-weight: 700; }
.page-title { font-size: 1.1rem; font-weight: 700; color: var(--p-t1); }
.text-muted { color: var(--p-t3) !important; }

/* ══════════════════════════════════════════════════════════════════════════════
   KANBAN
══════════════════════════════════════════════════════════════════════════════ */
.kanban-col {
  min-height: 420px;
  background: var(--p-bg);
  border-radius: var(--p-radius);
  border: 1px solid var(--p-border);
}
.kanban-card { cursor: move; transition: box-shadow .2s, transform .15s; }
.kanban-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.12) !important;
  transform: translateY(-1px);
}
.kanban-card.dragging { opacity: .45; transform: rotate(1deg); }

/* ══════════════════════════════════════════════════════════════════════════════
   MISC
══════════════════════════════════════════════════════════════════════════════ */
.progress { border-radius: 50px; height: 6px; background: var(--p-bg); }
.progress-bar { border-radius: 50px; }
.notif-menu { max-height: 390px; overflow-y: auto; }

/* DataTables overrides */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  font-family: Arial, sans-serif;
  border: 1px solid var(--p-border-2);
  border-radius: var(--p-radius-sm);
  padding: .3rem .65rem;
  font-size: .82rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  font-family: Arial, sans-serif;
}

/* ── Section dividers in cards ────────────────────────────────────────── */
.section-divider {
  display: flex; align-items: center; gap: .75rem;
  font-family: Arial, sans-serif;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--p-t3);
  margin: 1.25rem 0 .75rem;
}
.section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--p-border);
}

/* ══════════════════════════════════════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════════════════════════════════════ */
@media print {
  .porteo-sidebar, .porteo-topbar, .card-footer, .btn, .no-print { display: none !important; }
  .porteo-main { margin-left: 0 !important; padding-top: 0 !important; }
  body { background: #fff !important; }
  .card { box-shadow: none !important; border: 1px solid #dee2e6 !important; }
}
