/* SYNERA brand for Desk and website, from the official synera.dk identity.
   Colours only: layout, permissions and behaviour are unchanged. */
:root {
  --synera-navy: #102835;
  --synera-navy-dark: #0b1e29;
  --synera-ink: #172a35;
  --synera-teal: #006c60;
  --synera-gold: #c18c3f;
  --synera-lime: #bddf72;
  --primary: var(--synera-navy);
  --primary-color: var(--synera-navy);
  --btn-primary: var(--synera-navy);
}
.btn-primary,
.btn-primary:focus { background-color: var(--synera-navy); border-color: var(--synera-navy); color: #fff; }
.btn-primary:hover,
.btn-primary:active { background-color: var(--synera-navy-dark); border-color: var(--synera-navy-dark); color: #fff; }
.navbar .app-logo,
.navbar-brand img { max-height: 22px; width: auto; }

/* ---------------------------------------------------------------------------------------------
   SYNERA Desk theme: the look of synera.dk (navy shell, lime accent, rounded buttons, soft cards).
   Light theme only, so Frappe's dark mode keeps its own tested colours. Pure CSS: no layout,
   permission or behaviour change. Selectors follow Frappe 16 (body-sidebar, page-head, btn).
   --------------------------------------------------------------------------------------------- */
[data-theme="light"] {
  --synera-shell-text: #d7e3e7;
  --synera-surface: #f3f7f8;
  --synera-card-border: #dfe7ea;
  --desk-sidebar-bg: var(--synera-navy);
  --bg-color: var(--synera-surface);
}

/* Sidebar: the navy band of the site header, with a lime marker on the page you are on. */
[data-theme="light"] .body-sidebar { background: var(--synera-navy); border-right: 0; }
[data-theme="light"] .body-sidebar .item-anchor,
[data-theme="light"] .body-sidebar .sidebar-item-label,
[data-theme="light"] .body-sidebar .header-title,
[data-theme="light"] .body-sidebar .header-subtitle,
[data-theme="light"] .body-sidebar .drop-icon,
[data-theme="light"] .body-sidebar .sidebar-user-button,
[data-theme="light"] .body-sidebar .avatar-name-email { color: var(--synera-shell-text) !important; }
[data-theme="light"] .body-sidebar .standard-sidebar-item:not(.active-sidebar):hover {
  background: rgba(255, 255, 255, .08) !important;
}
[data-theme="light"] .body-sidebar .active-sidebar {
  background: var(--synera-navy-dark) !important;
  box-shadow: inset 3px 0 0 var(--synera-lime) !important;
}
[data-theme="light"] .body-sidebar .active-sidebar .item-anchor,
[data-theme="light"] .body-sidebar .active-sidebar .sidebar-item-label { color: #fff !important; font-weight: 600; }
[data-theme="light"] .body-sidebar .section-break .sidebar-item-label {
  color: var(--synera-lime) !important; text-transform: uppercase; letter-spacing: .06em; font-size: 11px;
}
[data-theme="light"] .body-sidebar .divider { border-color: rgba(255, 255, 255, .12); }
[data-theme="light"] .body-sidebar .header-logo,
[data-theme="light"] .body-sidebar .header-logo .icon-container { background: transparent !important; box-shadow: none !important; }
[data-theme="light"] .body-sidebar .header-logo img { filter: brightness(0) invert(1); object-fit: contain; }
[data-theme="light"] .body-sidebar .body-sidebar-bottom,
[data-theme="light"] .body-sidebar .body-sidebar-bottom *:not(.avatar-frame):not(.standard-image) {
  color: var(--synera-shell-text) !important;
}

/* Page head and titles in brand navy, like the site's headings. */
[data-theme="light"] .page-head { background: #fff; border-bottom: 1px solid var(--synera-card-border); }
[data-theme="light"] .page-head .title-text,
[data-theme="light"] .page-title .title-text { color: var(--synera-navy); font-weight: 700; }

/* Buttons: rounded like the site's; primary navy, secondary white with a navy outline. */
[data-theme="light"] .btn { border-radius: 10px; }
[data-theme="light"] .btn.btn-default,
[data-theme="light"] .btn.btn-secondary {
  background: #fff; color: var(--synera-navy); border: 1px solid var(--synera-card-border); box-shadow: none;
}
[data-theme="light"] .btn.btn-default:hover,
[data-theme="light"] .btn.btn-secondary:hover { background: #eef4f3; border-color: #c9d6da; }
[data-theme="light"] .btn:focus-visible,
[data-theme="light"] .form-control:focus { box-shadow: 0 0 0 3px rgba(189, 223, 114, .55) !important; }

/* Cards and widgets: soft white panels with the site's rounded corners. */
[data-theme="light"] .frappe-card,
[data-theme="light"] .widget,
[data-theme="light"] .form-page .form-section.card-section {
  border-radius: 14px; border: 1px solid var(--synera-card-border); box-shadow: 0 6px 22px rgba(16, 40, 53, .06);
}
[data-theme="light"] .modal-content { border-radius: 16px; }
[data-theme="light"] .modal-header .modal-title { color: var(--synera-navy); font-weight: 700; }

/* Links in the site's teal; indicator for "open/in progress" stays Frappe's. */
[data-theme="light"] .page-container a:not(.btn):not(.item-anchor):not(.indicator-pill) { color: var(--synera-teal); }
