/* EDHH institutional theme for Vikunja (taches.edhh.ma) — injected by nginx */
@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

:root {
  --edhh-green: #0E543C;
  --edhh-green-dark: #0A3F2D;
  --edhh-gold: #A68A4E;
  --edhh-paper: #F7F6F2;
  --edhh-line: #E6E1D6;

  --primary-h: 159deg;
  --primary-s: 71%;
  --primary-l: 25%;
  --site-background: var(--edhh-paper);
  --grey-100: var(--edhh-paper);
  --link: var(--edhh-green);
  --text: #2B2F36;
}

html, body, button, input, select, textarea,
.button, .input, .textarea, .menu, .navbar, .title, .subtitle {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif !important;
}
h1, h2, h3, .title {
  font-family: "Amiri", "IBM Plex Sans Arabic", serif !important;
  color: var(--edhh-green-dark);
}

/* ---- Logo: replace the Vikunja wordmark with the EDHH logo ---- */
.logo-link > div, a.logo > div, .no-auth-wrapper > .logo {
  background: url("/edhh-brand/edhh-logo.png") center / contain no-repeat;
  width: 150px !important; height: 56px !important;
}
.logo-link svg, a.logo svg, .no-auth-wrapper > .logo svg { visibility: hidden; }

/* ---- Top bar ---- */
header.navbar {
  background: #fff !important;
  border-bottom: 3px solid var(--edhh-gold);
  box-shadow: 0 2px 10px rgba(14, 84, 60, .06);
}
header.navbar .project-title, header.navbar .title { color: var(--edhh-green-dark); }

/* ---- Sidebar ---- */
aside.menu-container {
  background: #fff;
  border-inline-end: 1px solid var(--edhh-line);
}
aside.menu-container .menu-list a.router-link-exact-active,
aside.menu-container .menu-list a.router-link-active {
  color: var(--edhh-green) !important;
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--edhh-gold);
  background: #EEF5F1;
}

/* ---- Buttons & accents ---- */
.button.is-primary {
  background: linear-gradient(180deg, #145f45, var(--edhh-green-dark)) !important;
  border-color: var(--edhh-green-dark) !important;
  color: #fff !important;
  border-radius: 8px;
  text-transform: none;
  font-weight: 600;
}
.button.is-primary:hover { filter: brightness(1.08); }
.input:focus, .textarea:focus, select:focus { border-color: var(--edhh-gold) !important; box-shadow: 0 0 0 3px rgba(166, 138, 78, .18) !important; }

.card, .box {
  border: 1px solid var(--edhh-line);
  box-shadow: 0 6px 22px rgba(10, 63, 45, .06) !important;
  border-radius: 10px;
}

/* Project view tabs */
.switch-view .switch-view-button.is-active,
.switch-view .is-active { background: var(--edhh-green) !important; color: #fff !important; }

/* Kanban buckets */
.kanban .bucket { background: #fff; border: 1px solid var(--edhh-line); }

/* ---- Login (only seen briefly before the EDHH sign-in page) ---- */
.no-auth-wrapper { background: var(--edhh-paper) !important; }
/* while redirecting to the EDHH sign-in page */
html.edhh-sso .no-auth-wrapper .noauth-container { visibility: hidden; }
.no-auth-wrapper .image { background: linear-gradient(160deg, var(--edhh-green), var(--edhh-green-dark)) !important; }
.no-auth-wrapper .image-title { font-family: "Amiri", serif !important; }
.no-auth-wrapper .noauth-container { border-top: 4px solid var(--edhh-gold); border-radius: 12px; overflow: hidden; }
.no-auth-wrapper .api-config { display: none; }
img[alt="llama"], .llama-cool, .llama { display: none !important; }

/* Excel export button */
.edhh-export { margin-inline-start: .75rem; font-size: .85rem; height: auto; padding: .45rem .9rem; }
.switch-view-container { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }

/* ---- Contrast (2026-11-27): always the light EDHH theme, readable colours ---- */
:root { color-scheme: light; }
.priority-label.not-so-high { color: #9A4A00 !important; }           /* was #FF851B (2.3:1) -> 6.6:1 */
.priority-label.high-priority { color: #B00A00 !important; }
aside.menu-container .menu-list a, aside.menu-container a { color: #2B2F36; }
aside.menu-container .menu-list a .icon, aside.menu-container .icon { color: var(--edhh-green); }
.switch-view .switch-view-button { color: var(--edhh-green-dark) !important; font-weight: 600; }
.tasks .task .project-title, .task .different-project, .subtitle, .help, .is-muted, .has-text-grey { color: #4B5563 !important; }
.input::placeholder, .textarea::placeholder { color: #6B7280; }
.button:disabled, .button[disabled] { opacity: .55; }
a.menu-bottom-link, .menu-bottom-link { color: #6B7280 !important; }
