/* ========================================
   Task Follow-Up Management System
   Arabic RTL + Modern UI Stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  --odoo-primary: #714b67;
  --odoo-primary-dark: #4f3149;
  --odoo-primary-soft: #f4edf2;
  --odoo-accent: #00a09d;
  --odoo-accent-soft: #e6f7f6;
  --odoo-ink: #1f2937;
  --odoo-muted: #667085;
  --odoo-border: #e6e9ef;
  --odoo-surface: #ffffff;
  --odoo-canvas: #f6f7fb;
  --odoo-shadow: 0 18px 45px rgba(37, 39, 51, 0.08);
  --odoo-radius: 1.1rem;
}

/* === Base === */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  direction: rtl;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  font-family: 'Tajawal', sans-serif;
  margin-bottom: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 160, 157, 0.08), transparent 32rem),
    linear-gradient(135deg, #f8f9fc 0%, #eef1f6 100%);
  color: var(--odoo-ink);
  direction: rtl;
  text-align: right;
}

/* === Focus === */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus, .form-select:focus {
  box-shadow: 0 0 0 0.15rem rgba(113, 75, 103, 0.22);
}

/* === Cards === */
.card {
  border: none;
  border-radius: var(--odoo-radius);
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--odoo-shadow);
}
.card-header {
  border-bottom: 1px solid var(--odoo-border);
  font-weight: 600;
}

/* === Stat Cards === */
.stat-card {
  border-radius: 1rem;
  border: none;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.stat-card .card-body { position: relative; z-index: 1; }
.stat-card .stat-icon { font-size: 2.5rem; opacity: 0.85; }
.stat-card .stat-number { font-size: 2rem; font-weight: 800; margin: 0.5rem 0 0.25rem; }
.stat-card .stat-label { font-size: 0.85rem; opacity: 0.9; margin-bottom: 0; }

/* === Badges === */
.badge {
  font-weight: 500;
  padding: 0.45em 0.75em;
  border-radius: 0.5rem;
  font-size: 0.8rem;
}

/* === Tables === */
.table { margin-bottom: 0; text-align: right; }
.table th {
  font-weight: 600;
  font-size: 0.85rem;
  color: #495057;
  border-bottom: 2px solid #e9ecef;
  white-space: nowrap;
}
.table-hover tbody tr:hover { background-color: rgba(13, 110, 253, 0.04); }
.table td { vertical-align: middle; padding: 0.85rem 0.75rem; }

/* === Navbar === */
.navbar { padding: 0.6rem 1rem; }
.navbar-brand { font-size: 1.35rem; font-weight: 700; }
.navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
  margin: 0 2px;
}
.navbar .nav-link:hover { background-color: rgba(255,255,255,0.15); }
.navbar .nav-link i { margin-left: 0.35rem; }

/* === Odoo Inspired App Shell === */
.odoo-shell-body {
  background:
    radial-gradient(circle at top right, rgba(113, 75, 103, 0.09), transparent 26rem),
    linear-gradient(135deg, #f8f8fb 0%, #eef1f6 100%);
}
.odoo-app-shell {
  min-height: 100vh;
}
.odoo-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 286px;
  padding: 1.15rem;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.18), transparent 18rem),
    linear-gradient(180deg, var(--odoo-primary) 0%, var(--odoo-primary-dark) 100%);
  box-shadow: -16px 0 44px rgba(40, 28, 46, 0.16);
  overflow-y: auto;
  z-index: 1030;
}
.odoo-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}
.odoo-brand:hover {
  color: inherit;
}
.odoo-brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 18px rgba(14, 24, 39, 0.16);
  overflow: hidden;
}
.brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.odoo-brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
}
.odoo-brand small {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255,255,255,0.68);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}
.app-version-inline {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.odoo-workspace-card {
  margin: 1.2rem 0 1.4rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
}
.odoo-workspace-kicker {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255,255,255,0.66);
  font-size: 0.78rem;
  font-weight: 700;
}
.odoo-workspace-card strong,
.odoo-workspace-card small {
  display: block;
}
.odoo-workspace-card small {
  margin-top: 0.25rem;
  color: rgba(255,255,255,0.72);
}
.odoo-nav {
  display: grid;
  gap: 0.35rem;
}
.odoo-nav-section {
  margin: 0.9rem 0 0.35rem;
  color: rgba(255,255,255,0.52);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.odoo-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.78rem;
  border-radius: 0.85rem;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.odoo-nav-link i {
  width: 1.2rem;
  text-align: center;
  font-size: 1.05rem;
}
.odoo-nav-link:hover,
.odoo-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.14);
  transform: translateX(-2px);
}
.odoo-nav-link.active::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  right: -1.15rem;
  width: 4px;
  height: calc(100% - 1.5rem);
  border-radius: 999px;
  background: var(--odoo-accent);
}
.odoo-sidebar-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  color: rgba(255,255,255,0.72);
  background: rgba(0,0,0,0.12);
  font-size: 0.82rem;
}
.app-version-footer {
  margin-inline-start: auto;
  color: rgba(255,255,255,0.82);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.odoo-main {
  min-height: 100vh;
  margin-right: 286px;
}
.odoo-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 78px;
  padding: 0.9rem 1.6rem;
  background: rgba(255,255,255,0.86);
  border-bottom: 1px solid rgba(230, 233, 239, 0.82);
  backdrop-filter: blur(16px);
}
.odoo-topbar h1 {
  margin: 0;
  color: var(--odoo-ink);
  font-size: 1.25rem;
  font-weight: 800;
}
.odoo-breadcrumb {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--odoo-muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.odoo-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.odoo-notification-link {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--odoo-primary);
  background: var(--odoo-primary-soft);
  text-decoration: none;
}
.odoo-notification-link:hover {
  color: var(--odoo-primary-dark);
}
.odoo-notification-link #notificationBadge {
  position: absolute;
  top: -0.3rem;
  left: -0.25rem;
}
.odoo-user-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--odoo-border);
  border-radius: 999px;
  padding: 0.35rem 0.55rem 0.35rem 0.9rem;
  background: #fff;
  color: var(--odoo-ink);
}
.odoo-user-chip strong,
.odoo-user-chip small {
  display: block;
  text-align: right;
  line-height: 1.25;
}
.odoo-user-chip small {
  color: var(--odoo-muted);
  font-size: 0.75rem;
}
.odoo-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--odoo-primary), var(--odoo-accent));
  color: #fff;
  font-weight: 800;
}
.odoo-content {
  padding: 1.4rem 1.6rem 2.2rem;
}
.odoo-public-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 1.2rem auto 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(230, 233, 239, 0.9);
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 12px 34px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(16px);
}
.guest-body .odoo-brand {
  color: var(--odoo-ink);
}
.guest-body .odoo-brand-mark {
  background: #fff;
}
.guest-body .odoo-brand small {
  color: var(--odoo-muted);
}
.guest-body .app-version-inline,
.otp-brand .app-version-inline {
  background: rgba(47, 111, 237, 0.1);
  color: #2f5bb8;
}
.odoo-public-content {
  max-width: 1180px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
}
.odoo-shell-body .footer {
  display: none;
}
.odoo-shell-body .card:hover {
  transform: translateY(-1px);
}

/* === Notification Badge === */
#notificationBadge {
  font-size: 0.6rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* === Footer === */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #e9ecef;
}

/* === Forms === */
.form-control, .form-select {
  border-radius: 0.5rem;
  border: 1.5px solid #dee2e6;
  padding: 0.6rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: right;
}
.form-control:focus, .form-select:focus { border-color: #86b7fe; }
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #495057;
  margin-bottom: 0.4rem;
}
.form-check { padding-right: 1.5em; padding-left: 0; }
.form-check .form-check-input { float: right; margin-right: -1.5em; margin-left: 0; }

/* === Buttons === */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  transition: all 0.2s ease;
}
.btn i { margin-left: 0.35rem; }
.btn-group .btn i { margin-left: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--odoo-primary) 0%, var(--odoo-primary-dark) 100%);
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #805a76 0%, var(--odoo-primary-dark) 100%);
  transform: translateY(-1px);
}
.btn-success {
  background: linear-gradient(135deg, #198754 0%, #146c43 100%);
  border: none;
}
.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
  border: none;
}

/* === Alerts === */
.alert {
  border-radius: 0.75rem;
  border: none;
  padding: 1rem 1.25rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.alert-success { background: linear-gradient(135deg, #d1e7dd 0%, #badbcc 100%); color: #0f5132; }
.alert-danger { background: linear-gradient(135deg, #f8d7da 0%, #f1c2c6 100%); color: #842029; }
.alert-warning { background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%); color: #664d03; }
.alert-info { background: linear-gradient(135deg, #cff4fc 0%, #9eeaf9 100%); color: #055160; }
.alert .btn-close { float: left; }
.app-feedback-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.app-feedback-alert i {
  font-size: 1.1rem;
  margin-top: 0.15rem;
}
.app-feedback-alert strong {
  display: block;
  margin-bottom: 0.15rem;
}
.app-toast-region {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 1085;
  display: grid;
  gap: 0.65rem;
  width: min(360px, calc(100vw - 2rem));
}
.app-toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid #d9e4f1;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 16px 40px rgba(17, 36, 59, 0.18);
  color: #18324c;
}
.app-toast i {
  font-size: 1.1rem;
  margin-top: 0.1rem;
}
.app-toast strong {
  display: block;
  margin-bottom: 0.1rem;
}
.app-toast p {
  margin: 0;
  color: #60758d;
  line-height: 1.6;
}
.app-toast button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  line-height: 1;
}
.app-toast-success {
  border-color: #b8ddca;
  background: linear-gradient(180deg, rgba(240, 253, 245, 0.98) 0%, rgba(224, 247, 235, 0.98) 100%);
}
.app-toast-success i,
.app-toast-success strong {
  color: #1c7a52;
}
.app-toast-danger {
  border-color: #efc5cb;
  background: linear-gradient(180deg, rgba(255, 246, 246, 0.98) 0%, rgba(252, 233, 236, 0.98) 100%);
}
.app-toast-danger i,
.app-toast-danger strong {
  color: #b4233d;
}
.app-toast-warning {
  border-color: #ecd689;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98) 0%, rgba(255, 243, 205, 0.98) 100%);
}
.app-toast-warning i,
.app-toast-warning strong {
  color: #946200;
}
.app-toast-info {
  border-color: #b9ddf2;
  background: linear-gradient(180deg, rgba(241, 250, 255, 0.98) 0%, rgba(223, 244, 255, 0.98) 100%);
}
.app-toast-info i,
.app-toast-info strong {
  color: #0a6a92;
}
.note-counter-text {
  margin-top: 0.45rem;
  color: #6b7f96;
  font-size: 0.82rem;
}
.note-counter-text.is-near-limit {
  color: #b45309;
  font-weight: 700;
}

/* === Progress === */
.progress { border-radius: 10px; height: 8px; background-color: #e9ecef; }
.progress-bar { border-radius: 10px; }

/* === List Groups === */
.list-group-item {
  transition: background-color 0.15s ease;
  border-color: #f0f0f0;
  padding: 0.85rem 1.1rem;
}
.list-group-item:hover { background-color: #f8f9fa; }

/* === Empty State === */
.empty-state { padding: 3rem 2rem; text-align: center; }
.empty-state .empty-icon { font-size: 4rem; color: #adb5bd; margin-bottom: 1rem; }
.empty-state .empty-title { font-size: 1.15rem; font-weight: 600; color: #6c757d; margin-bottom: 0.5rem; }
.empty-state .empty-text { color: #adb5bd; font-size: 0.9rem; }

/* === Auth Pages === */
.auth-card { border-radius: 1.25rem; overflow: hidden; max-width: 450px; margin: 0 auto; }
.auth-card .card-header {
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  padding: 2rem; text-align: center; border: none;
}
.auth-card .card-header h4 { margin-bottom: 0; font-weight: 700; }
.auth-card .card-header i { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; opacity: 0.9; }
.auth-card .card-body { padding: 2rem; }

.auth-only-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 160, 157, 0.16), transparent 26rem),
    radial-gradient(circle at 78% 4%, rgba(113, 75, 103, 0.17), transparent 24rem),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 52%, #f7f2f6 100%);
}
.auth-only-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-only-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
}
.auth-shell-alert {
  max-width: 720px;
  margin: 0 auto 1rem;
}
.auth-only-orb {
  position: fixed;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.3;
  pointer-events: none;
}
.auth-only-orb-one {
  right: -5rem;
  top: 4rem;
  background: var(--odoo-accent);
}
.auth-only-orb-two {
  left: -4rem;
  bottom: 6rem;
  background: var(--odoo-primary);
}
.otp-auth-card {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 2.25rem;
  border: 1px solid rgba(255,255,255,0.72);
  border-top: 6px solid #f1cf45;
  border-radius: 2rem;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 26px 70px rgba(37, 39, 51, 0.12);
  backdrop-filter: blur(18px);
}
.otp-auth-card-compact {
  max-width: 500px;
}
.auth-form-card {
  max-width: 520px;
}
.auth-stage-card {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 2rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}
.auth-stage-card-compact {
  width: min(100%, 640px);
}
.auth-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin: 1.5rem 0;
}
.auth-flow-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.auth-flow-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(113, 75, 103, 0.18);
  background: rgba(255,255,255,0.86);
  color: #667085;
  font-size: 0.88rem;
  font-weight: 700;
}
.auth-flow-pill-active {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.14), rgba(113, 75, 103, 0.14));
  border-color: rgba(13, 110, 253, 0.35);
  color: #0f172a;
}
.auth-callout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(248, 250, 252, 0.98));
  color: #1d2939;
}
.auth-compact-actions {
  justify-content: center;
}
.recovery-code-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.recovery-code-list code {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
}
.otp-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  text-align: right;
}
.otp-brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(113, 75, 103, 0.2);
  overflow: hidden;
}
.otp-brand strong,
.otp-brand small {
  display: block;
}
.otp-brand strong {
  font-weight: 800;
}
.otp-brand small {
  color: var(--odoo-muted);
  font-size: 0.76rem;
}
.home-hero-logo {
  width: min(520px, 92vw);
  height: min(292px, 52vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,249,253,0.96) 100%);
  box-shadow: 0 22px 48px rgba(23, 42, 72, 0.12);
  padding: 1rem;
}
.home-hero-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 1.35rem;
}
.app-version-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.1);
  color: #1f4c94;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.otp-hero-icon {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.15rem;
  border-radius: 999px;
  color: #2f62df;
  background:
    radial-gradient(circle, rgba(47, 98, 223, 0.12) 0%, rgba(47, 98, 223, 0.06) 68%, transparent 70%);
  font-size: 2.45rem;
}
.otp-kicker {
  margin-bottom: 0.35rem;
  color: var(--odoo-accent);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.otp-auth-card h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  color: #1d2939;
}
.otp-provider-switch {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.otp-box-row {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}
.otp-box {
  width: 4rem;
  height: 4.25rem;
  border: 1.5px solid #d9e0ea;
  border-radius: 0.85rem;
  background: #fff;
  color: #1f2937;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.otp-box:focus {
  outline: none;
  border-color: #2f62df;
  box-shadow: 0 0 0 0.2rem rgba(47, 98, 223, 0.16);
  transform: translateY(-2px);
}
.otp-secondary-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  font-weight: 700;
}
.otp-secondary-actions a {
  color: var(--odoo-primary);
  text-decoration: none;
}
.otp-secondary-actions a:hover {
  text-decoration: underline;
}
.otp-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  color: #475467;
  background: #f8fafc;
  font-size: 0.9rem;
}

/* === Page Header === */
.page-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.page-header h2 { font-weight: 700; color: #2c3e50; margin-bottom: 0; font-size: 1.5rem; }
.page-header h2 i { margin-left: 0.5rem; color: var(--odoo-primary); }

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #adb5bd; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6c757d; }

/* === RTL Overrides === */
.dropdown-menu { text-align: right; }
.btn-group { direction: ltr; }
.pagination { direction: ltr; }
.page-link { border-radius: 0.4rem; margin: 0 2px; }
.text-center { text-align: center !important; }
.position-relative .badge.position-absolute { right: auto; left: 0; }

/* === Follow-Up Thread === */
.followup-thread {
  border-right: 3px solid #0d6efd; border-left: none;
  padding: 1rem 1.25rem; margin-bottom: 1rem;
  border-radius: 0 0.75rem 0.75rem 0;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.followup-response {
  background: #f0f7ff; border-radius: 0.75rem;
  padding: 0.85rem 1rem; margin-top: 0.75rem;
  margin-right: 1.5rem; margin-left: 0;
  border-right: 3px solid #198754; border-left: none;
}

/* === Info Row === */
.info-row { display: flex; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; }
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 600; color: #6c757d; min-width: 140px; font-size: 0.9rem; }
.info-value { flex: 1; color: #2c3e50; }

/* === Quick Action === */
.quick-action {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 0.75rem;
  transition: all 0.2s ease; text-decoration: none;
  color: inherit; margin-bottom: 0.5rem; border: 1.5px solid #e9ecef;
}
.quick-action:hover { background: #f8f9fa; border-color: #0d6efd; color: #0d6efd; }
.quick-action i { font-size: 1.3rem; }
.ai-health-card {
  border: 1px solid #e4ebf5;
}
.ai-health-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.ai-health-meta-item {
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid #e8eef7;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(246,249,253,0.96) 100%);
}
.ai-health-meta-item-wide {
  grid-column: 1 / -1;
}
.ai-health-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #70849b;
  font-size: 0.78rem;
  font-weight: 700;
}
.ai-health-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.ai-health-pill.is-ready {
  background: #e8f7ef;
  color: #198754;
}
.ai-health-pill.is-missing {
  background: #fff3cd;
  color: #946200;
}
.ai-health-result {
  padding: 1rem 1.05rem;
  border-radius: 0.9rem;
  border: 1px solid #e7edf6;
}
.ai-health-result.is-success {
  background: linear-gradient(135deg, #eefaf3 0%, #daf4e4 100%);
  color: #145a37;
}
.ai-health-result.is-error {
  background: linear-gradient(135deg, #fff1f2 0%, #ffd9de 100%);
  color: #9f2230;
}
.ai-health-result.is-neutral {
  background: linear-gradient(135deg, #f6f9fd 0%, #edf3fb 100%);
  color: #35506e;
}

/* === Demo Box === */
.demo-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 0.75rem; padding: 1rem;
  border: 1px dashed #adb5bd; font-size: 0.85rem;
}
.demo-box strong { color: #0d6efd; }

/* === AI Assistant === */
.ai-hero-card {
  border: 1px solid rgba(113, 75, 103, 0.12);
  background:
    radial-gradient(circle at top left, rgba(113, 75, 103, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0, 160, 157, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8f4f7 100%);
}
.ai-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(113, 75, 103, 0.09);
  color: var(--odoo-primary);
  font-weight: 700;
  font-size: 0.85rem;
}
.ai-hero-title {
  font-size: 2rem;
  line-height: 1.35;
  font-weight: 800;
  max-width: 22ch;
}
.ai-hero-text {
  max-width: 60ch;
  color: #5f6f82;
  line-height: 1.9;
}
.ai-hero-stats {
  display: grid;
  gap: 0.9rem;
}
.ai-hero-stat {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid #e4edf8;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 8px 24px rgba(33, 56, 82, 0.06);
}
.ai-hero-stat-label {
  display: block;
  font-size: 0.82rem;
  color: #6b7b8f;
  margin-bottom: 0.35rem;
}
.ai-hero-stat-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1f3650;
}
.ai-helper-alert {
  border-right: 4px solid #0d6efd;
  border-left: none;
}
.ai-jump-card {
  border: 1px solid #e8eef7;
  background: rgba(255,255,255,0.88);
}
.ai-jump-label {
  font-weight: 700;
  color: #56687d;
}
.ai-tool-card {
  border: 1px solid rgba(113, 75, 103, 0.1);
}
.ai-tool-card-active {
  border-color: rgba(113, 75, 103, 0.35);
  box-shadow: 0 10px 30px rgba(113, 75, 103, 0.12);
}
.ai-tool-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--odoo-primary-soft);
  color: var(--odoo-primary);
  font-size: 0.78rem;
  font-weight: 700;
}
.ai-tool-form {
  display: grid;
  gap: 0.25rem;
}
.ai-tool-card .card-header h5 i,
.ai-result-section h5 i {
  margin-left: 0.4rem;
  color: var(--odoo-primary);
}
.ai-result-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b7b8f;
}
.ai-result-card .card-body {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.85) 0%, rgba(255, 255, 255, 1) 100%);
}
.ai-result-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ai-result-section {
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.75);
  border: 1px solid #eef2f7;
  border-radius: 0.9rem;
}
.ai-result-section h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.ai-result-list {
  margin: 0;
  padding-right: 1.25rem;
}
.ai-result-list li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.ai-followup-message {
  background-color: #f8fbff;
  border-color: #d8e7ff;
  line-height: 1.85;
}
.ai-followup-form {
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid #e3edf9;
  border-radius: 1rem;
}
.ai-followup-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.ai-followup-context span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ai-followup-message-editing {
  background-color: #fffef5;
  border-color: #f2c66d;
  box-shadow: 0 0 0 0.2rem rgba(242, 198, 109, 0.18);
}
.ai-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  color: var(--odoo-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ai-role-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.ai-role-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(113, 75, 103, 0.14);
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #fff 0%, var(--odoo-primary-soft) 100%);
  box-shadow: 0 12px 28px rgba(49, 39, 54, 0.06);
}
.ai-role-card-agent {
  border-color: rgba(0, 160, 157, 0.2);
  background: linear-gradient(135deg, #fff 0%, var(--odoo-accent-soft) 100%);
}
.ai-role-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: #fff;
  background: var(--odoo-primary);
  box-shadow: 0 10px 20px rgba(113, 75, 103, 0.18);
}
.ai-role-card-agent .ai-role-icon {
  background: var(--odoo-accent);
  box-shadow: 0 10px 20px rgba(0, 160, 157, 0.18);
}
.ai-role-kicker {
  display: block;
  color: var(--odoo-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ai-role-card h5 {
  margin: 0.25rem 0 0.35rem;
  font-weight: 800;
}
.ai-role-card p {
  margin: 0;
  color: var(--odoo-muted);
  line-height: 1.75;
}
.ai-tool-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.925fr 0.925fr;
  gap: 1rem;
  align-items: stretch;
}
.ai-primary-tool {
  border-color: rgba(113, 75, 103, 0.24);
  background:
    radial-gradient(circle at top left, rgba(113, 75, 103, 0.08), transparent 18rem),
    #fff;
}
.ai-tool-card .card-body {
  display: flex;
  flex-direction: column;
}
.ai-tool-card .ai-tool-form {
  margin-top: auto;
}
.ai-result-shell {
  border: 1px solid rgba(113, 75, 103, 0.12);
}
.ai-followup-section {
  border-color: rgba(0, 160, 157, 0.24);
  background:
    radial-gradient(circle at top left, rgba(0, 160, 157, 0.08), transparent 20rem),
    rgba(255,255,255,0.88);
}
.ai-advanced-details {
  border: 1px solid #e5ebf3;
  border-radius: 1rem;
  background: rgba(255,255,255,0.7);
  overflow: hidden;
}
.ai-advanced-details summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  color: #365472;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.ai-advanced-details summary::-webkit-details-marker {
  display: none;
}
.ai-advanced-body {
  padding: 0 1.1rem 1.1rem;
}

/* === Account Security / 2FA === */
.security-status-card {
  border: 1px solid rgba(113, 75, 103, 0.14);
  background:
    radial-gradient(circle at top left, rgba(113, 75, 103, 0.12), transparent 18rem),
    #fff;
}
.security-kicker {
  color: var(--odoo-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.security-meta-list {
  display: grid;
  gap: 0.85rem;
}
.security-meta-list div {
  padding: 0.85rem;
  border: 1px solid #edf0f5;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.78);
}
.security-meta-list span {
  display: block;
  color: var(--odoo-muted);
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}
.security-meta-list strong {
  overflow-wrap: anywhere;
}
.security-step-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-right: 1.25rem;
  line-height: 1.8;
}
.security-secret-box {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px dashed rgba(113, 75, 103, 0.35);
  border-radius: 1rem;
  background: var(--odoo-primary-soft);
}
.security-qr-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(0, 160, 157, 0.2);
  border-radius: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--odoo-accent-soft) 100%);
}
.security-qr-code {
  width: 184px;
  height: 184px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 43, 68, 0.08);
}
.security-qr-code svg {
  width: 100%;
  height: 100%;
}
.security-secret-box span {
  color: var(--odoo-muted);
  font-weight: 700;
}
.security-manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.security-manual-grid div {
  padding: 0.8rem;
  border: 1px solid rgba(113, 75, 103, 0.14);
  border-radius: 0.85rem;
  background: rgba(255,255,255,0.7);
}
.security-manual-grid small {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--odoo-muted);
  font-weight: 800;
}
.security-secret-box code,
.security-uri-details code,
.recovery-code-grid code {
  direction: ltr;
  text-align: left;
  overflow-wrap: anywhere;
}
.security-code-input {
  direction: ltr;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.35rem;
}
.security-uri-details {
  padding: 0.9rem 1rem;
  border: 1px solid #e7edf5;
  border-radius: 0.9rem;
  background: #fbfcfe;
}
.security-uri-details summary {
  cursor: pointer;
  font-weight: 700;
}
.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.recovery-code-grid code {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid #dfe7f2;
  border-radius: 0.8rem;
  background: #f8fbff;
  font-size: 1rem;
  font-weight: 800;
}

/* === Role Guide === */
.role-guide-card {
  border: 1px solid rgba(113, 75, 103, 0.12);
}
.role-guide-list {
  display: grid;
  gap: 0.7rem;
}
.role-guide-list div {
  padding: 0.85rem 0.95rem;
  border: 1px solid #edf0f5;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #fff 0%, #fbfcfe 100%);
}
.role-guide-list strong,
.role-guide-list span {
  display: block;
}
.role-guide-list strong {
  color: var(--odoo-ink);
  font-weight: 800;
}
.role-guide-list span {
  margin-top: 0.25rem;
  color: var(--odoo-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* === Notion Task Page === */
.notion-task-page {
  display: grid;
  gap: 1.25rem;
}
.notion-task-hero {
  position: relative;
  overflow: hidden;
  padding: 1.8rem 1.9rem;
  border: 1px solid #ebe7e4;
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at top left, rgba(244, 240, 255, 0.95) 0%, rgba(244, 240, 255, 0) 35%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
  box-shadow: 0 20px 44px rgba(30, 41, 59, 0.06);
}
.notion-task-hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -2rem;
  top: -2.5rem;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(229, 231, 235, 0.75) 0%, rgba(229, 231, 235, 0) 72%);
  pointer-events: none;
}
.notion-task-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 62rem;
}
.notion-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f4f1fb;
  color: #6d4ea0;
  font-size: 0.78rem;
  font-weight: 800;
}
.notion-task-hero h1 {
  margin: 1rem 0 0.45rem;
  color: #191919;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.notion-task-hero p {
  max-width: 52rem;
  color: #5f6368;
  font-size: 1rem;
  line-height: 1.8;
}
.notion-task-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}
.notion-task-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #ece8e4;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #525866;
  font-size: 0.84rem;
  font-weight: 600;
}
.notion-task-page .page-header {
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}
.notion-task-page .page-header > div:first-child {
  display: none;
}
.notion-task-page .page-header .btn {
  border-radius: 0.95rem;
  padding: 0.72rem 1rem;
  font-weight: 700;
}
.notion-task-page .page-header .btn-primary {
  background: #191919;
  border-color: #191919;
}
.notion-task-page .page-header .btn-outline-primary {
  border-color: #d6d3d1;
  color: #3f3f46;
}
.notion-stats-grid {
  --bs-gutter-y: 1rem;
}
.notion-task-page .stat-card {
  color: #111827 !important;
  border: 1px solid #ebe7e4;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}
.notion-task-page .stat-card .card-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
}
.notion-task-page .stat-card .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #f3f4f6;
  color: #374151;
}
.notion-task-page .text-bg-primary .stat-icon {
  background: #eef2ff;
  color: #4f46e5;
}
.notion-task-page .text-bg-danger .stat-icon {
  background: #fff1f2;
  color: #e11d48;
}
.notion-task-page .text-bg-warning .stat-icon {
  background: #fffbeb;
  color: #d97706;
}
.notion-task-page .text-bg-success .stat-icon {
  background: #ecfdf5;
  color: #059669;
}
.notion-task-page .stat-number {
  color: #111827;
  font-size: 1.9rem;
  line-height: 1.1;
}
.notion-task-page .stat-label {
  margin: 0.35rem 0 0;
  color: #6b7280;
  font-size: 0.86rem;
}
.notion-filter-panel {
  border: 1px solid #ebe7e4;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.04);
}
.notion-filter-panel-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, #fcfcfb 0%, #fafaf9 100%) !important;
  border-bottom: 1px solid #efebe8;
}
.notion-filter-grid .form-label {
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.notion-filter-grid .form-control,
.notion-filter-grid .form-select {
  min-height: 3rem;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: none;
}
.notion-filter-grid .form-control:focus,
.notion-filter-grid .form-select:focus {
  border-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.18);
}
.notion-database-shell {
  padding: 1rem;
  border: 1px solid #ebe7e4;
  border-radius: 1.6rem;
  background: linear-gradient(180deg, #fcfcfb 0%, #ffffff 100%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.04);
}
.notion-view-toolbar {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.notion-task-page .odoo-view-switcher {
  background: #f2f2f0;
  border-color: #e7e5e4;
}
.notion-task-page .odoo-view-pill {
  color: #6b7280;
  font-weight: 700;
}
.notion-task-page .odoo-view-pill.active {
  color: #111827;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.notion-task-page .odoo-view-summary {
  color: #6b7280;
}
.notion-task-page .odoo-view-summary strong {
  color: #111827;
}
.notion-task-board {
  padding-top: 0.2rem;
  grid-auto-columns: minmax(300px, 1fr);
}
.notion-task-column {
  min-height: 24rem;
  border-top-width: 1px;
  background: linear-gradient(180deg, #f8f8f7 0%, #ffffff 100%);
  box-shadow: none;
}
.notion-task-card {
  border-color: #ece8e4;
  border-radius: 1.1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}
.notion-task-card .task-kanban-title {
  color: #111827;
}
.notion-task-card .task-kanban-title:hover {
  color: #000;
}
.notion-task-card .task-kanban-actions .btn {
  border-radius: 0.85rem;
}
.notion-list-panel {
  border: 1px solid #ebe7e4;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: none;
}
.notion-list-panel .card-header {
  background: #fafaf9 !important;
  border-bottom: 1px solid #efebe8;
}
.notion-task-table thead th {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid #efebe8;
  background: #fafaf9;
  color: #71717a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.notion-task-table tbody td {
  padding: 1rem 0.95rem;
  border-color: #f2f1ef;
  background: #fff;
  vertical-align: top;
}
.notion-task-table tbody tr:hover td {
  background: #fcfcfb;
}
.notion-task-table .badge {
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  font-weight: 700;
}
.notion-task-page .task-table-count {
  background: #f4f4f5;
  color: #3f3f46;
}
.notion-task-page .task-title-link {
  color: #111827;
}
.notion-task-page .task-title-link:hover {
  color: #000;
}
.notion-task-page .btn-group-sm > .btn,
.notion-task-page .task-mobile-actions .btn,
.notion-task-page .task-kanban-actions .btn {
  border-radius: 0.85rem;
}
.notion-mobile-card {
  border: 1px solid #ebe7e4;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.notion-task-page .task-filter-tag {
  background: #f7f7f5;
  border-color: #ece8e4;
  color: #525866;
}

/* === Task List === */
.task-filters-card {
  border: 1px solid #e7edf5;
}
.task-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.task-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #f4f8fd;
  border: 1px solid #dfe9f5;
  color: #4f647c;
  font-size: 0.82rem;
  font-weight: 600;
}
.task-table-count {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #eef5ff;
  color: #0d6efd;
  font-weight: 700;
  font-size: 0.82rem;
}
.task-title-cell {
  display: grid;
  gap: 0.35rem;
}
.task-title-link {
  color: #213952;
  font-weight: 700;
  text-decoration: none;
}
.task-title-link:hover {
  color: #0d6efd;
}
.task-title-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #75869a;
  font-size: 0.8rem;
}
.task-title-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.task-due-cell {
  display: grid;
  gap: 0.2rem;
}
.task-mobile-list {
  display: grid;
  gap: 1rem;
}
.task-mobile-card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid #e7edf5;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,253,0.96) 100%);
  box-shadow: 0 10px 24px rgba(28, 52, 81, 0.06);
}
.task-mobile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.9rem 0;
  color: #64768b;
  font-size: 0.86rem;
}
.task-mobile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.task-mobile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.odoo-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--odoo-border);
  border-radius: var(--odoo-radius);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.05);
}
.odoo-view-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--odoo-muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.odoo-view-switcher {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: #f0f2f6;
  border: 1px solid #e3e7ee;
}
.odoo-view-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.odoo-view-pill:not(.active):hover {
  background: rgba(255,255,255,0.92);
  color: #344054;
}
.odoo-view-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(113, 75, 103, 0.18);
}
.odoo-view-pill.active {
  color: #fff;
  background: var(--odoo-primary);
  box-shadow: 0 8px 16px rgba(113, 75, 103, 0.22);
}
[data-view-panel][hidden] {
  display: none !important;
}
.odoo-view-summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--odoo-muted);
  font-size: 0.86rem;
}
.odoo-view-summary span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.odoo-view-summary i {
  color: var(--odoo-accent);
}
.odoo-view-summary strong {
  color: var(--odoo-primary);
}
.task-kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(282px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.45rem;
  scroll-snap-type: x proximity;
}
.task-kanban-column {
  min-height: 320px;
  padding: 0.85rem;
  border: 1px solid var(--odoo-border);
  border-top: 4px solid var(--stage-color, var(--odoo-primary));
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,249,252,0.94) 100%);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
  scroll-snap-align: start;
}
.task-kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.task-kanban-column-header > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.task-stage-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--stage-color, var(--odoo-primary));
  box-shadow: 0 0 0 4px var(--stage-soft, var(--odoo-primary-soft));
}
.task-stage-count {
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--stage-soft, var(--odoo-primary-soft));
  color: var(--stage-color, var(--odoo-primary));
  font-weight: 800;
}
.task-kanban-list {
  display: grid;
  gap: 0.75rem;
}
.task-kanban-card {
  padding: 0.85rem;
  border: 1px solid #edf0f5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.05);
}
.task-kanban-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.task-kanban-title {
  display: block;
  color: var(--odoo-ink);
  font-weight: 800;
  line-height: 1.55;
  text-decoration: none;
}
.task-kanban-title:hover {
  color: var(--odoo-primary);
}
.task-kanban-meta {
  display: grid;
  gap: 0.38rem;
  margin: 0.7rem 0;
  color: var(--odoo-muted);
  font-size: 0.82rem;
}
.task-kanban-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.task-kanban-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.task-kanban-actions .btn-light {
  border: 1px solid var(--odoo-border);
  background: #f8fafc;
}
.task-priority-pill,
.task-due-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.task-priority-pill.priority-low {
  color: #475467;
  background: #f2f4f7;
}
.task-priority-pill.priority-medium {
  color: #175cd3;
  background: #eff6ff;
}
.task-priority-pill.priority-high {
  color: #93370d;
  background: #fff4e5;
}
.task-priority-pill.priority-critical {
  color: #b42318;
  background: #fff0ee;
}
.task-due-pill.is-safe {
  color: #027a48;
  background: #ecfdf3;
}
.task-due-pill.is-near {
  color: #b54708;
  background: #fffaeb;
}
.task-due-pill.is-overdue {
  color: #b42318;
  background: #fff0ee;
}
.task-kanban-more,
.task-kanban-empty {
  padding: 0.9rem;
  border-radius: 0.9rem;
  text-align: center;
  color: var(--odoo-muted);
  background: rgba(255,255,255,0.62);
  border: 1px dashed #d7dce5;
  font-size: 0.84rem;
  font-weight: 700;
}
.task-kanban-empty {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  min-height: 112px;
}
.task-kanban-empty i {
  color: #98a2b3;
  font-size: 1.4rem;
}
.stage-new {
  --stage-color: #667085;
  --stage-soft: #f2f4f7;
}
.stage-assigned {
  --stage-color: #714b67;
  --stage-soft: #f4edf2;
}
.stage-progress {
  --stage-color: #0e9384;
  --stage-soft: #e6f7f6;
}
.stage-review {
  --stage-color: #dc6803;
  --stage-soft: #fff4e5;
}
.stage-overdue {
  --stage-color: #d92d20;
  --stage-soft: #fff0ee;
}
.stage-completed {
  --stage-color: #16a34a;
  --stage-soft: #ecfdf3;
}
.stage-closed {
  --stage-color: #344054;
  --stage-soft: #eef2f6;
}

/* === Projects === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1rem;
}
.project-card {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--odoo-border);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at top left, rgba(0, 160, 157, 0.08), transparent 13rem),
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,249,252,0.95) 100%);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.07);
}
.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.project-card h3 {
  margin: 0.3rem 0 0;
  color: var(--odoo-ink);
  font-size: 1.1rem;
  font-weight: 800;
}
.project-code {
  display: inline-flex;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--odoo-primary);
  background: var(--odoo-primary-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.project-status {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}
.project-status-active {
  color: #027a48;
  background: #ecfdf3;
}
.project-status-planned {
  color: #175cd3;
  background: #eff6ff;
}
.project-status-hold {
  color: #b54708;
  background: #fffaeb;
}
.project-status-completed {
  color: #344054;
  background: #eef2f6;
}
.project-status-archived {
  color: #667085;
  background: #f2f4f7;
}
.project-meta {
  display: grid;
  gap: 0.45rem;
  color: var(--odoo-muted);
  font-size: 0.86rem;
}
.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.project-progress {
  padding: 0.85rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid #eef1f6;
}
.project-progress .progress {
  height: 0.55rem;
}
.project-progress .progress-bar {
  background: linear-gradient(90deg, var(--odoo-primary), var(--odoo-accent));
}
.project-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.project-kpis span {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem;
  border-radius: 0.85rem;
  text-align: center;
  color: var(--odoo-muted);
  background: #fff;
  border: 1px solid #eef1f6;
  font-size: 0.8rem;
}
.project-kpis strong {
  color: var(--odoo-ink);
  font-size: 1.05rem;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* === Task Agent === */
.agent-suggestion-list {
  display: grid;
  gap: 1rem;
}
.agent-suggestion-card {
  border: 1px solid #e7eef6;
  border-radius: 1rem;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,251,255,0.88) 100%);
}
.agent-suggestion-section {
  margin-bottom: 0.85rem;
  padding: 0.9rem 1rem;
  background: rgba(245, 248, 252, 0.9);
  border-radius: 0.85rem;
  border: 1px solid #eef2f7;
}
.agent-decision-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #dfeaf6;
  border-radius: 1rem;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(244,248,253,0.94) 100%);
}
.agent-primary-actions,
.agent-action-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.agent-primary-actions form,
.agent-action-cluster form {
  margin: 0;
}
.agent-primary-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}
.agent-secondary-actions {
  padding-top: 0.85rem;
  border-top: 1px dashed #d5e1ee;
}
.agent-actions-label {
  display: block;
  width: 100%;
  margin-bottom: 0.55rem;
  color: #667b91;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* === AI Insights === */
.ai-insight-strip {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.ai-insight-tile {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid #e4ebf5;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(245,249,255,0.94) 100%);
  box-shadow: 0 10px 22px rgba(18, 38, 63, 0.05);
}
.ai-insight-tile-wide {
  grid-column: span 2;
}
.ai-insight-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #70849b;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ai-insight-value {
  display: block;
  color: #1d3552;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}
.ai-signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.ai-signal-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #edf5ff;
  border: 1px solid #d8e6fb;
  color: #365472;
  font-size: 0.84rem;
  font-weight: 600;
}

/* === Dashboard Attention === */
.ai-attention-card {
  border: 1px solid #e4ebf5;
}
.attention-task-list {
  display: grid;
  gap: 1rem;
}
.attention-task-card {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid #e6edf5;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,251,255,0.94) 100%);
  box-shadow: 0 10px 26px rgba(24, 43, 68, 0.05);
}
.attention-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #6f8297;
  font-size: 0.84rem;
}
.attention-task-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.attention-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* === Audit Trail === */
.audit-trail {
  display: grid;
  gap: 0.9rem;
}
.audit-trail-item {
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid #e9eef5;
  border-right: 3px solid #6c757d;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* === Management Readiness === */
.management-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  border-radius: 1.4rem;
  border: 1px solid #e6edf5;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,254,0.94) 100%);
  box-shadow: 0 18px 40px rgba(18, 38, 63, 0.08);
}
.management-hero-copy {
  display: grid;
  gap: 0.35rem;
}
.management-hero-copy h2 {
  margin: 0;
  color: #1b3652;
  font-size: 1.75rem;
}
.management-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #5a7391;
  font-size: 0.82rem;
  font-weight: 700;
}
.management-hero-copy p {
  color: #5f738a;
  max-width: 760px;
}
.management-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.management-mini-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.management-mini-card {
  --management-tone-accent: #94a3b8;
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid #e3ebf4;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(246,249,253,0.95) 100%);
  box-shadow: 0 10px 24px rgba(21, 43, 68, 0.05);
  position: relative;
  overflow: hidden;
}
.management-mini-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--management-tone-accent);
}
.management-mini-card strong {
  font-size: 1.4rem;
  color: #17314b;
}
.management-mini-card small {
  color: #73859a;
  line-height: 1.6;
}
.management-mini-label {
  color: #6e8298;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.management-stat-card {
  --management-card-accent: #6b7a90;
  --management-card-soft: rgba(148, 163, 184, 0.16);
  color: #17314b;
  border: 1px solid #dfebf7;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,248,253,0.96) 100%);
  box-shadow: 0 16px 38px rgba(18, 38, 63, 0.08);
}
.management-stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--management-card-accent) 0%, rgba(255,255,255,0) 100%);
}
.management-stat-card .card-body {
  display: grid;
  gap: 0.7rem;
}
.management-stat-card .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 1.05rem;
  background: var(--management-card-soft);
  color: var(--management-card-accent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}
.management-stat-card .stat-number {
  color: #17314b;
}
.management-stat-card .stat-label {
  color: #698099;
  opacity: 1;
}
.management-stat-primary {
  --management-card-accent: #2f6fed;
  --management-card-soft: rgba(47, 111, 237, 0.14);
  border-color: #d7e4ff;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(241, 247, 255, 0.96) 100%);
}
.management-stat-success {
  --management-card-accent: #1f9367;
  --management-card-soft: rgba(31, 147, 103, 0.14);
  border-color: #d4efe3;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(241, 252, 247, 0.96) 100%);
}
.management-stat-secondary {
  --management-card-accent: #6b7280;
  --management-card-soft: rgba(107, 114, 128, 0.14);
  border-color: #dfe4ec;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247, 249, 252, 0.96) 100%);
}
.management-stat-danger {
  --management-card-accent: #cc465b;
  --management-card-soft: rgba(204, 70, 91, 0.14);
  border-color: #f4d7dd;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255, 244, 246, 0.96) 100%);
}
.management-stat-warning {
  --management-card-accent: #c28a18;
  --management-card-soft: rgba(194, 138, 24, 0.16);
  border-color: #f0e0b6;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255, 250, 239, 0.96) 100%);
}
.management-stat-info {
  --management-card-accent: #0f7da8;
  --management-card-soft: rgba(15, 125, 168, 0.15);
  border-color: #cfe9f5;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(240, 250, 255, 0.96) 100%);
}
.management-tone-primary {
  --management-tone-accent: #2f6fed;
  border-color: #d7e4ff;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(243, 248, 255, 0.97) 100%);
}
.management-tone-success {
  --management-tone-accent: #1f9367;
  border-color: #d5eee4;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(243, 252, 247, 0.97) 100%);
}
.management-tone-danger {
  --management-tone-accent: #cc465b;
  border-color: #f3d8de;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255, 244, 246, 0.97) 100%);
}
.management-tone-warning {
  --management-tone-accent: #c28a18;
  border-color: #efdfb6;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255, 249, 238, 0.97) 100%);
}
.management-tone-info {
  --management-tone-accent: #0f7da8;
  border-color: #d3e9f2;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(240, 250, 255, 0.97) 100%);
}
.management-tone-secondary {
  --management-tone-accent: #6b7280;
  border-color: #e3e8ef;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(247, 249, 252, 0.97) 100%);
}
.management-inline-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-radius: 0.95rem;
  background: #f6f9fd;
  border: 1px solid #e1ebf5;
  color: #48627d;
}
.management-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: #f2f7ff;
  border: 1px solid #dbe7f8;
  color: #325170;
  font-size: 0.82rem;
  font-weight: 600;
}
.project-card-phase-two {
  gap: 1rem;
}
.project-card-description {
  margin: 0.55rem 0 0;
  color: #60758d;
  line-height: 1.8;
}
.project-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.security-badge-stack {
  display: grid;
  gap: 0.4rem;
}
.role-matrix-table {
  background: #13161c;
  color: #f6f8fb;
}
.role-matrix-table thead th {
  background: #1a1e26;
  color: #fff;
  border-color: rgba(255,255,255,0.08);
}
.role-matrix-table tbody td {
  border-color: rgba(255,255,255,0.08);
  vertical-align: top;
}
.role-matrix-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}
.role-matrix-table .text-muted {
  color: rgba(255,255,255,0.58) !important;
}
.project-form-shell .form-label {
  font-weight: 700;
}

/* === Follow-Up Attachments === */
.attachment-upload-hint {
  color: #6b7d92;
}
.attachment-section {
  display: grid;
  gap: 0.75rem;
}
.attachment-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #26456b;
  font-size: 0.92rem;
  font-weight: 800;
}
.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.95rem;
  border: 1px solid #dce6f3;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,249,255,0.96) 100%);
  color: #24405f;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(19, 37, 60, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.attachment-pill:hover {
  transform: translateY(-1px);
  color: #1d4e9e;
  border-color: #bfd5f5;
  box-shadow: 0 16px 28px rgba(31, 76, 148, 0.12);
}
.attachment-name {
  max-width: min(28rem, 48vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.attachment-meta {
  color: #6f8298;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.attachment-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.1);
  color: #2f5bb8;
  font-weight: 800;
}

/* === Error Experience === */
.app-error-shell {
  min-height: calc(100vh - 9rem);
  display: grid;
  place-items: center;
  padding: 2rem 0 3rem;
}
.app-error-card {
  width: min(100%, 760px);
  padding: 2.2rem 2rem;
  border-radius: 1.8rem;
  border: 1px solid #e1e9f4;
  background:
    radial-gradient(circle at top right, rgba(47, 111, 237, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(247, 250, 254, 0.97) 100%);
  box-shadow: 0 22px 54px rgba(19, 37, 60, 0.1);
  text-align: center;
}
.app-error-badge {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(47,111,237,0.14) 0%, rgba(98, 62, 192, 0.14) 100%);
  color: #355fd6;
  font-size: 2rem;
}
.app-error-code {
  color: #6b7f96;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.app-error-card h1 {
  margin: 0 0 0.85rem;
  color: #152e48;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.app-error-message {
  margin: 0 auto;
  max-width: 560px;
  color: #62778f;
  font-size: 1.02rem;
  line-height: 1.9;
}
.app-error-request {
  margin: 1.4rem auto 0;
  padding: 0.85rem 1rem;
  max-width: 520px;
  border-radius: 1rem;
  background: rgba(243, 247, 252, 0.95);
  border: 1px solid #e1e9f3;
  color: #536a83;
}
.app-error-request code {
  direction: ltr;
  unicode-bidi: plaintext;
}
.app-error-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* === Responsive === */
@media (max-width: 992px) {
  .odoo-app-shell {
    padding: 0.75rem;
  }
  .odoo-sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    max-height: none;
    border-radius: 1.25rem;
  }
  .odoo-main {
    margin-right: 0;
  }
  .odoo-topbar {
    position: relative;
    margin-top: 0.75rem;
    border-radius: 1.25rem;
    flex-direction: column;
    align-items: stretch;
  }
  .odoo-topbar-actions,
  .odoo-public-navbar {
    justify-content: space-between;
  }
  .odoo-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .odoo-sidebar-footer {
    margin-top: 1rem;
  }
  .odoo-content {
    padding: 1rem 0 1.5rem;
  }
  .management-hero {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .stat-card .stat-number { font-size: 1.5rem; }
  .stat-card .stat-icon { font-size: 2rem; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .notion-task-hero { padding: 1.4rem 1.2rem; }
  .notion-task-hero-meta { flex-direction: column; align-items: stretch; }
  .notion-task-page .page-header { align-items: stretch; }
  .notion-task-page .page-header .d-flex { width: 100%; }
  .notion-task-page .page-header .btn { flex: 1 1 auto; justify-content: center; }
  .ai-hero-title { max-width: none; font-size: 1.65rem; }
  .ai-role-split,
  .ai-tool-grid { grid-template-columns: 1fr; }
  .ai-role-card { grid-template-columns: 1fr; }
  .security-qr-panel { grid-template-columns: 1fr; }
  .ai-insight-tile-wide { grid-column: span 1; }
  .ai-health-meta { grid-template-columns: 1fr; }
  .ai-health-meta-item-wide { grid-column: auto; }
  .odoo-public-navbar,
  .odoo-view-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .management-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .task-kanban-board {
    grid-auto-columns: minmax(260px, 88vw);
  }
}
@media (max-width: 576px) {
  .card-body { padding: 1rem; }
  .notion-task-hero { border-radius: 1.3rem; }
  .notion-database-shell { padding: 0.75rem; border-radius: 1.25rem; }
  .notion-task-page .stat-card { border-radius: 1.1rem; }
  .auth-card .card-body { padding: 1.5rem; }
  .auth-only-shell { padding: 1rem; }
  .otp-auth-card { padding: 1.5rem 1rem; border-radius: 1.5rem; }
  .auth-stage-card { padding: 1.25rem; border-radius: 1.5rem; }
  .auth-stage-header { flex-direction: column; }
  .auth-flow-pills { gap: 0.35rem; }
  .otp-box-row { gap: 0.35rem; }
  .otp-box {
    width: 2.9rem;
    height: 3.25rem;
    border-radius: 0.65rem;
    font-size: 1.25rem;
  }
  .otp-note {
    align-items: flex-start;
    text-align: right;
  }
  .odoo-nav {
    grid-template-columns: 1fr;
  }
  .odoo-topbar-actions .btn,
  .odoo-user-chip {
    width: 100%;
    justify-content: center;
  }
  .task-mobile-actions .btn { flex: 1 1 calc(50% - 0.5rem); justify-content: center; }
  .agent-primary-actions form,
  .agent-action-cluster form,
  .agent-primary-actions .btn,
  .agent-action-cluster .btn {
    width: 100%;
  }
  .app-toast-region {
    top: auto;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
  }
  .app-error-card {
    padding: 1.7rem 1.25rem;
    border-radius: 1.4rem;
  }
  .app-error-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.task-assignee-picker {
  border: 1px solid rgba(128, 142, 166, 0.28);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.98));
  padding: 1rem;
}

.task-assignee-picker-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.task-assignee-picker-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.task-assignee-selected {
  margin-bottom: 0.75rem;
  color: #5f6b85;
  font-size: 0.95rem;
}

.task-assignee-selected strong {
  color: #24426b;
}

.task-assignee-list {
  max-height: 18rem;
  overflow-y: auto;
  border: 1px solid rgba(128, 142, 166, 0.18);
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.4rem;
}

.task-assignee-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.task-assignee-option:hover {
  background: rgba(53, 99, 233, 0.08);
  transform: translateX(-2px);
}

.task-assignee-option .form-check-input {
  margin-top: 0;
  flex: 0 0 auto;
}

.task-assignee-option-text {
  color: #1c2f4e;
  font-weight: 500;
}

.task-assignee-empty {
  margin-top: 0.75rem;
  border: 1px dashed rgba(128, 142, 166, 0.35);
  border-radius: 0.85rem;
  padding: 0.9rem;
  text-align: center;
  color: #72809a;
  background: rgba(248, 250, 252, 0.8);
}

@media (max-width: 768px) {
  .task-assignee-picker-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .task-assignee-picker-actions .btn {
    flex: 1 1 auto;
  }
}
