/* T+Manager 4.0.3 — colour on the surface, full opacity for readable text.
   Scoped to the two application shells; exports and standalone documents keep
   their own presentation. Real headings also cover fragments added by AJAX. */
.app-presentation-v403 {
  --presentation-rgb: 86, 150, 226;
  --presentation-ink: #173654;
  --presentation-subtle-ink: #284b68;
  --presentation-focus: #1d5fa8;
  --presentation-radius: .7rem;
}
.app-presentation-v403:is([data-app-module="documents"], [data-app-module="meetings"], [data-app-module="issues"], [data-app-module="contracts"], [data-app-module="finance"], [data-app-module="reports"], [data-app-module="quotations"], [data-app-module="payment_requests"], [data-app-module="teamwork"]) {
  --presentation-rgb: 61, 171, 143;
  --presentation-ink: #11453b;
  --presentation-subtle-ink: #25584d;
  --presentation-focus: #126b56;
}
.app-presentation-v403:is([data-app-module="core"], [data-app-module="personnel"], [data-app-module="accounts"], [data-app-module="audit"], [data-app-module="system_tools"]) {
  --presentation-rgb: 224, 170, 72;
  --presentation-ink: #513607;
  --presentation-subtle-ink: #634b21;
  --presentation-focus: #966019;
}
.app-presentation-v403.app-saas {
  --presentation-rgb: 70, 170, 137;
  --presentation-ink: #153f35;
  --presentation-subtle-ink: #2a5449;
}
html[data-bs-theme="dark"] .app-presentation-v403 {
  --presentation-ink: #f4f7fb;
  --presentation-subtle-ink: #e7edf6;
  --presentation-focus: #a5d0ff;
}

/* Four clear groups. Captions, bars and their icon column share the same edges,
   even for long bilingual labels or the numbered dossier hierarchy. */
.app-presentation-v403 .tplus-sidebar-nav { display:flex; flex-direction:column; gap:1rem; min-width:0; }
.app-presentation-v403 .sidebar-group {
  --sidebar-rgb: 82, 150, 224;
  --sidebar-ink: #153956;
  display:flex;
  flex-direction:column;
  gap:.4rem;
  min-width:0;
}
.app-presentation-v403 .sidebar-group-modules { --sidebar-rgb: 53, 174, 144; --sidebar-ink:#16483c; }
.app-presentation-v403 .sidebar-group-dossier { --sidebar-rgb: 155, 122, 224; --sidebar-ink:#493268; }
.app-presentation-v403 .sidebar-group-admin { --sidebar-rgb: 226, 169, 63; --sidebar-ink:#583d0e; }
.app-presentation-v403 .tplus-sidebar-nav .sidebar-caption {
  box-sizing:border-box;
  width:100%;
  margin:0;
  padding:.55rem .65rem;
  border:1px solid rgba(var(--sidebar-rgb), .38);
  border-radius:var(--presentation-radius);
  background:rgba(var(--sidebar-rgb), .30);
  color:var(--sidebar-ink);
  font-size:max(.88rem, 11px);
  font-weight:750;
  letter-spacing:.035em;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.app-presentation-v403 .tplus-sidebar-nav .nav-link {
  box-sizing:border-box;
  display:grid;
  grid-template-columns:1.2rem minmax(0, 1fr);
  align-items:start;
  column-gap:.45rem;
  width:100%;
  min-width:0;
  margin:0;
  padding:.62rem .65rem;
  border:1px solid rgba(var(--sidebar-rgb), .22);
  border-inline-start:3px solid rgba(var(--sidebar-rgb), .55);
  border-radius:var(--presentation-radius);
  background:rgba(var(--sidebar-rgb), .30);
  color:var(--sidebar-ink);
  font-size:max(1rem, 12px);
  font-weight:550;
  line-height:1.45;
  text-decoration:none;
  transition:background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.app-presentation-v403 .tplus-sidebar-nav .sidebar-icon { display:block; text-align:center; line-height:1.45; }
.app-presentation-v403 .tplus-sidebar-nav .sidebar-link-label { min-width:0; overflow-wrap:anywhere; }
.app-presentation-v403 .tplus-sidebar-nav .sidebar-link-label .small { font-size:.95em; }
.app-presentation-v403 .tplus-sidebar-nav .nav-link:hover { background:rgba(var(--sidebar-rgb), .42); color:var(--sidebar-ink); }
.app-presentation-v403 .tplus-sidebar-nav .nav-link.active {
  background:rgba(var(--sidebar-rgb), .48);
  border-color:rgba(var(--sidebar-rgb), .72);
  border-inline-start-color:var(--sidebar-ink);
  color:var(--sidebar-ink);
  font-weight:750;
  box-shadow:inset 0 0 0 1px rgba(var(--sidebar-rgb), .28);
}
html[data-bs-theme="dark"] .app-presentation-v403 .sidebar-group { --sidebar-ink:#edf5ff; }
html[data-bs-theme="dark"] .app-presentation-v403 .sidebar-group-modules { --sidebar-ink:#e4fff4; }
html[data-bs-theme="dark"] .app-presentation-v403 .sidebar-group-dossier { --sidebar-ink:#f4eaff; }
html[data-bs-theme="dark"] .app-presentation-v403 .sidebar-group-admin { --sidebar-ink:#fff1d0; }

/* Section and page titles, rather than every bold number or body paragraph. */
.app-presentation-v403 .app-content :is(h1, h2, h3, h4, h5, h6, .card-title, .list-group-header, .presentation-title, .finance-project-heading, .project-health-heading) {
  padding:.42rem .65rem;
  border:1px solid rgba(var(--presentation-rgb), .24);
  border-radius:var(--presentation-radius);
  background:rgba(var(--presentation-rgb), .30);
  color:var(--presentation-ink) !important;
  overflow-wrap:anywhere;
}
.app-presentation-v403 .app-content :is(h1, h2, h3, h4, h5, h6, .presentation-title) > .text-secondary { color:inherit !important; }
.app-presentation-v403 .app-content .card-header {
  margin:.5rem .5rem 0;
  padding:.6rem .75rem;
  border:1px solid rgba(var(--presentation-rgb), .24);
  border-radius:var(--presentation-radius);
  background:rgba(var(--presentation-rgb), .30) !important;
  color:var(--presentation-ink);
}
.app-presentation-v403 .app-content :is(.card-header, .file-section-bar) :is(h1, h2, h3, h4, h5, h6, .card-title) {
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:inherit !important;
}
.app-presentation-v403 .app-content .card-header > :is(strong, .fw-semibold, .fw-bold) { color:inherit; }
.app-presentation-v403 .app-content :is(.metric-label, .detail-list > dt, .definition-list dt, .presentation-label, .dashboard-kpi > span:first-child) {
  padding:.25rem .5rem;
  border-radius:.5rem;
  background:rgba(var(--presentation-rgb), .30);
  color:var(--presentation-subtle-ink) !important;
}
.app-presentation-v403 .app-content :is(.metric-label, .dashboard-kpi > span:first-child) { width:100%; }
.app-presentation-v403 .app-content .detail-list > dt { align-self:start; }
.app-presentation-v403 .app-content .finance-project-heading { margin:.5rem .5rem 0; }
.app-presentation-v403 .app-content .finance-project-heading .text-secondary { color:var(--presentation-subtle-ink) !important; }
.app-presentation-v403 .app-content .my-files-project .presentation-title { display:block; }
.app-presentation-v403 .app-content .project-vertical-nav .list-group-item,
.app-presentation-v403 .app-content :is(.nav-tabs, .nav-pills) .nav-link {
  padding:.6rem .75rem;
  border:1px solid rgba(var(--presentation-rgb), .24);
  border-radius:var(--presentation-radius) !important;
  background:rgba(var(--presentation-rgb), .30);
  color:var(--presentation-ink);
}
.app-presentation-v403 .app-content :is(.nav-tabs, .nav-pills) { gap:.35rem; border:0; }
.app-presentation-v403 .app-content .presentation-tabs > a {
  border:1px solid rgba(var(--presentation-rgb), .24);
  border-radius:var(--presentation-radius);
  background:rgba(var(--presentation-rgb), .30) !important;
  color:var(--presentation-ink) !important;
}
.app-presentation-v403 .app-content .presentation-tabs > a[aria-current="page"] {
  border-color:rgba(var(--presentation-rgb), .80);
  background:rgba(var(--presentation-rgb), .48) !important;
  box-shadow:inset 0 0 0 1px rgba(var(--presentation-rgb), .28);
  font-weight:750;
}
.app-presentation-v403 .app-content .project-vertical-nav .list-group-item:hover,
.app-presentation-v403 .app-content :is(.nav-tabs, .nav-pills) .nav-link:hover { background:rgba(var(--presentation-rgb), .42); }
.app-presentation-v403 .app-content .project-vertical-nav .list-group-item.active,
.app-presentation-v403 .app-content :is(.nav-tabs, .nav-pills) .nav-link.active {
  background:rgba(var(--presentation-rgb), .48);
  color:var(--presentation-ink);
  font-weight:750;
  border-color:rgba(var(--presentation-rgb), .70);
  box-shadow:inset 3px 0 0 var(--presentation-focus);
}

/* The customer/service shell uses the same restrained grouping. */
.app-presentation-v403.app-saas .app-content .form-section > legend {
  padding:.4rem .6rem;
  border-radius:var(--presentation-radius);
  background:rgba(var(--presentation-rgb), .30);
  color:var(--presentation-ink);
}
.app-presentation-v403.app-saas .app-content :is(.control-nav, .control-tabs) { background:transparent; gap:.4rem; }
.app-presentation-v403.app-saas .app-content :is(.control-nav, .control-tabs) a {
  padding:.5rem .7rem;
  border-radius:var(--presentation-radius);
  background:rgba(var(--presentation-rgb), .30);
  color:var(--presentation-ink);
  text-decoration:none;
}
.app-presentation-v403.app-saas .app-content .card-dark { --presentation-ink:#f3fff9; --presentation-subtle-ink:#e7f5ed; }

/* Existing file-block colour meanings remain distinct, now with clear glass
   strips instead of opaque blocks. Ordinary table cells are never decorated. */
.app-presentation-v403 .app-content .file-section-bar { background:rgba(68, 146, 228, .30); color:#153956; border:1px solid rgba(68, 146, 228, .30); }
.app-presentation-v403 .app-content .file-section-bar-working { background:rgba(44, 175, 147, .30); color:#12483c; border-color:rgba(44, 175, 147, .30); }
.app-presentation-v403 .app-content .file-section-bar-warning { background:rgba(221, 162, 49, .30); color:#5c410d; border-color:rgba(221, 162, 49, .30); }
.app-presentation-v403 .app-content .file-section-bar .file-section-subtitle { color:inherit; }
html[data-bs-theme="dark"] .app-presentation-v403 .app-content .file-section-bar { color:#edf5ff; }
html[data-bs-theme="dark"] .app-presentation-v403 .app-content .file-section-bar-working { color:#e6fff4; }
html[data-bs-theme="dark"] .app-presentation-v403 .app-content .file-section-bar-warning { color:#fff1d0; }

.app-presentation-v403 .app-avatar-profile { display:flex; align-items:center; gap:.5rem; color:#f4f7fb; text-decoration:none; border-radius:.65rem; }
.app-presentation-v403 .app-avatar-profile:hover { color:#fff; }
.app-presentation-v403 .app-avatar-profile .tiny { font-size:max(.8rem, 10.5px); }
.app-presentation-v403 .app-avatar-initial { display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; border-radius:50%; background:rgba(119, 172, 231, .30); border:1px solid rgba(156, 202, 251, .55); color:#f3f8ff; font-size:.8rem; font-weight:700; }
.app-presentation-v403 :is(.tplus-sidebar-nav .nav-link, .app-avatar-profile, .project-vertical-nav .list-group-item, .nav-tabs .nav-link, .nav-pills .nav-link, .presentation-tabs > a):focus-visible { outline:3px solid var(--presentation-focus); outline-offset:2px; }
.app-presentation-v403 .app-avatar-profile:focus-visible { outline-color:#a5d0ff; }
@media (max-width:767.98px) {
  .app-presentation-v403 .tplus-sidebar-nav .nav-link { font-size:max(1rem, 13px); }
  .app-presentation-v403 .tplus-sidebar-nav .sidebar-caption { font-size:max(.9rem, 11.5px); }
  .app-presentation-v403 .app-content :is(h1, h2, h3, h4, h5, h6, .presentation-title) { padding:.38rem .5rem; }
}
@media (prefers-reduced-motion:reduce) {
  .app-presentation-v403 .tplus-sidebar-nav .nav-link { transition:none; }
}
@media print {
  .app-presentation-v403 .app-content :is(h1, h2, h3, h4, h5, h6, .card-header, .card-title, .metric-label, .list-group-header, .presentation-title, .presentation-label, .detail-list > dt, .definition-list dt, .dashboard-kpi > span:first-child) { background:transparent !important; border-color:transparent; color:#111 !important; }
}
