:root {
  --font-heading: "Manrope", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --bg-page: #f3f6fb;
  --bg-panel: #0f172a;
  --bg-card: #ffffff;
  --line: #dbe3ef;
  --text: #1e293b;
  --muted: #64748b;
  --menu-text: #d3deef;
  --menu-active: rgba(148, 163, 184, 0.24);
  --primary: #0f766e;
  --primary-strong: #0b5d57;
  --radius: 14px;
  --shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  --sidebar-width: 272px;
  --header-height: 66px;
}

body.app-shell.role-admin {
  --primary: #0f766e;
  --primary-strong: #0b5d57;
}

body.app-shell.role-user {
  --primary: #0a6e96;
  --primary-strong: #085a7b;
}

body.app-shell.role-firma {
  --primary: #166534;
  --primary-strong: #14532d;
}

body.app-shell.role-osgb {
  --primary: #1d4ed8;
  --primary-strong: #1e40af;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 0 0, rgba(14, 116, 144, 0.1), transparent 32%),
    radial-gradient(circle at 100% 0, rgba(22, 163, 74, 0.1), transparent 28%),
    var(--bg-page);
}

a,
a:hover,
a:focus {
  text-decoration: none;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1050;
}

.headerbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.headerbar-left,
.headerbar-right,
.header-nav {
  display: flex;
  align-items: center;
}

.header-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 12px;
}

.brand-holder .text-lg {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text) !important;
  letter-spacing: -0.02em;
}

.brand-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-passive {
  background: #fee2e2;
  color: #991b1b;
}

.status-warning {
  background: #ffedd5;
  color: #b91c1c;
}

/* DataTable readability balance */
table.dataTable {
  table-layout: auto;
}

table.dataTable th,
table.dataTable td {
  white-space: nowrap;
}

table.dataTable th:first-child,
table.dataTable td:first-child,
table.dataTable th:nth-child(6),
table.dataTable td:nth-child(6),
table.dataTable th:nth-child(7),
table.dataTable td:nth-child(7) {
  white-space: normal;
  word-break: break-word;
}

.btn-icon-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: #ecf1f8;
}

.btn-icon-toggle:hover {
  background: #dfe8f4;
}

#base {
  min-height: 100vh;
}

#content {
  margin-top: var(--header-height);
  margin-left: var(--sidebar-width);
  min-width: 0;
  padding: 22px;
}

#menubar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: linear-gradient(180deg, #0f172a 0%, #111f3f 100%);
  color: var(--menu-text);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1040;
}

.menubar-fixed-panel {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.menubar-fixed-panel .expanded .text-primary,
.menubar-fixed-panel .expanded a {
  color: #f8fafc !important;
  font-family: var(--font-heading);
  font-weight: 700;
}

.menubar-scroll-panel {
  height: calc(100vh - var(--header-height) - 64px);
  overflow-y: auto;
  padding: 10px;
}

#main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

#main-menu > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  color: var(--menu-text);
  padding: 11px 12px;
  margin: 2px 0;
  font-weight: 500;
}

#main-menu > li > a.active,
#main-menu > li > a:hover {
  color: #ffffff;
  background: var(--menu-active);
}

.gui-folder > a::after {
  content: "\203A";
  margin-left: auto;
  transition: transform 0.2s ease;
}

.gui-folder.open > a::after {
  transform: rotate(90deg);
}

.gui-folder > ul {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 34px;
  display: none;
}

.gui-folder.open > ul {
  display: block;
}

.gui-folder > ul a {
  display: block;
  color: #bac7de;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 2px 0;
}

.gui-folder > ul a.active,
.gui-folder > ul a:hover {
  color: #ffffff;
  background: rgba(148, 163, 184, 0.18);
}

.menubar-foot-panel {
  margin: 10px;
  border-radius: 10px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.42);
  color: #d6e0f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-footnote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: 12px;
}

.app-footnote-logo {
  width: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-info {
  display: inline-flex;
  flex-direction: column;
  text-align: right;
  color: var(--text);
}

.profile-info small {
  color: var(--muted);
}

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.headerbar,
.headerbar-right,
.header-nav-profile,
.header-nav-profile .dropdown {
  overflow: visible;
}

.profile-dropdown-menu {
  left: auto !important;
  right: 0 !important;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 6px 0;
  z-index: 1200;
}

.profile-dropdown-menu > li > a {
  padding: 10px 14px;
  font-weight: 500;
}

.flatpickr-calendar {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-family: var(--font-base);
  z-index: 1200;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.flatpickr-day.today {
  border-color: #60a5fa;
}

.flatpickr-day.today:hover {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #1e3a8a;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month {
  color: #0f172a;
  font-family: var(--font-heading);
  font-weight: 700;
}

.flatpickr-weekday {
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
}

.flatpickr-input[readonly] {
  background: #fff;
  cursor: pointer;
}

.input-group.date-input-group .flatpickr-input {
  height: 40px;
}

/* Inline SVG icon host */
.icon {
  font-style: normal;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.icon svg g {
  stroke-width: 2;
}

.btn .icon,
.btn-icon-toggle .icon {
  width: 1.15em;
  height: 1.15em;
}

.table .btn .icon,
.tile-actions .btn .icon {
  width: 1.05em;
  height: 1.05em;
}

@media (max-width: 640px) {
  .profile-dropdown-menu {
    right: -8px !important;
    min-width: 200px;
    max-width: calc(100vw - 16px);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #f8fafc 0%, #edf3fb 100%);
}

.card-head header {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.card-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-body {
  padding: 18px;
}

.card .table,
.card .table-responsive {
  margin-bottom: 0;
}

.table {
  background: #fff;
}

.table > thead > tr > th {
  border-bottom: 2px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-heading);
}

.table > tbody > tr > td {
  border-top: 1px solid #e8eef7;
  vertical-align: middle;
}

.table > tbody > tr:hover > td {
  background: #f8fbff;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label,
.floating-label .form-group label,
.floating-label label {
  position: static;
  display: inline-block;
  margin-bottom: 6px;
  color: #334155;
  font-weight: 600;
  opacity: 1;
  transform: none;
}

.floating-label .form-control,
.floating-label .form-control:focus,
.floating-label .form-control.dirty,
.floating-label .form-control.static {
  padding-top: 10px;
}

textarea.form-control {
  min-height: 96px;
  height: auto;
}

select.form-control {
  padding-right: 28px;
}

.help-block {
  color: var(--muted);
  font-size: 12px;
}

.list-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.list-group-item {
  border-color: #e8eef7;
  padding: 12px 14px;
}

.list-group-item:first-child,
.list-group-item:last-child {
  border-radius: 0;
}

.section-header {
  margin-top: 4px;
  margin-bottom: 12px;
}

.breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
}

.breadcrumb > .active {
  font-family: var(--font-heading);
  color: #0f172a;
}

.list.divider-full-bleed {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list.divider-full-bleed .tile {
  border-bottom: 1px solid #e8eef7;
}

.list.divider-full-bleed .tile:last-child {
  border-bottom: 0;
}

.tile-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px;
  color: #0f172a;
}

.tile-text {
  color: #334155;
  font-weight: 500;
}

.tile-text small {
  display: block;
  color: #64748b;
  margin-top: 2px;
}

.tile-icon {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #0f172a;
}

.danger-note {
  color: #b91c1c !important;
  font-size: 10px;
}

.upload-progress-wrap {
  width: min(100%, 360px);
  height: 24px;
  border: 1px solid #cbd5e1;
  margin-top: 12px;
  position: relative;
  background: #f8fafc;
  border-radius: 999px;
  overflow: hidden;
}

.upload-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  transition: width 0.2s;
}

.upload-progress-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.upload-status {
  margin-top: 8px;
  color: #334155;
  font-weight: 600;
}

.upload-new-btn {
  visibility: hidden;
}

.upload-new-btn.is-visible {
  visibility: visible;
}

.action-row-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tile-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.loading-screen {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.loading-screen-box {
  max-width: 420px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  padding: 18px;
  text-align: center;
}

.loading-screen-box h2 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 22px;
}

.loading-screen-box p {
  margin: 0;
  color: #cbd5e1;
}

.date-input-group {
  border: 1px solid #cdd8e7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.input-group .datepicker.form-control {
  border-color: #cdd8e7;
}

.input-group .datepicker.form-control:focus {
  border-color: #14b8a6;
}

.date-input-group .input-group-content {
  width: calc(100% - 42px);
}

.date-input-group .form-control {
  border: 0;
  border-radius: 0;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.date-input-group .input-group-addon {
  min-width: 36px;
  border: 0;
  border-left: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.picker {
  z-index: 1085 !important;
}

.picker__holder {
  border: 1px solid #dbe3ef !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12) !important;
}

.picker__frame {
  margin: 0 !important;
  min-width: 276px !important;
  max-width: 304px !important;
}

.picker__box {
  padding: 6px !important;
  background: #fff !important;
}

.picker__header {
  margin-top: 0;
  margin-bottom: 4px;
  position: relative;
  padding: 0 28px;
  overflow: hidden;
}

.picker__month,
.picker__year {
  font-family: var(--font-heading);
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 5px !important;
}

.picker__select--month,
.picker__select--year {
  height: 28px !important;
  font-size: 5px !important;
  font-weight: 600;
  border: 1px solid #d8e2ef;
  border-radius: 6px;
  padding: 2px 22px 2px 8px;
  background-color: #fff;
}

.picker__select--month {
  width: 48% !important;
}

.picker__select--year {
  width: 35% !important;
}

.picker__nav--prev,
.picker__nav--next {
  border-radius: 2px;
  transition: background 0.2s ease;
  width: 14px !important;
  height: 24px !important;
  min-width: 14px !important;
  min-height: 24px !important;
}

.picker__nav--prev {
  left: 2px !important;
}

.picker__nav--next {
  right: 2px !important;
}

.picker__nav--prev:hover,
.picker__nav--next:hover {
  background: #ecf1f8;
}

.picker__nav--prev:before {
  border-width: 5px 7px 5px 0 !important;
}

.picker__nav--next:before {
  border-width: 5px 0 5px 7px !important;
}

.picker__weekday {
  color: #64748b !important;
  font-weight: 700 !important;
  font-size: 5px !important;
}

.picker__table {
  font-size: 5px !important;
}

.picker__day {
  border-radius: 6px !important;
  color: #1e293b !important;
  padding: 0.34em 0 !important;
}

.picker__day:hover {
  background: #e0f2fe !important;
  color: #0c4a6e !important;
}

.picker__day--today {
  color: var(--primary) !important;
}

.picker__day--selected,
.picker__day--selected:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.picker__footer {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.picker__button--today,
.picker__button--clear,
.picker__button--close {
  border: 1px solid #dbe3ef !important;
  border-radius: 6px !important;
  color: #334155 !important;
  background: #fff !important;
  padding: 4px 6px !important;
  font-size: 5px !important;
}

.picker__button--today:hover,
.picker__button--clear:hover,
.picker__button--close:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.dataTables_wrapper {
  margin-top: 2px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #cdd8e7;
  border-radius: 8px;
  min-height: 34px;
  padding: 5px 10px;
  background: #fff;
  color: #1f2937;
}

.dataTables_wrapper .dataTables_info {
  color: #64748b;
  padding-top: 10px;
}

.dataTables_wrapper .dataTables_paginate {
  padding-top: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 1px solid #d8e2ef !important;
  background: #fff !important;
  color: #334155 !important;
  border-radius: 8px;
  padding: 4px 10px !important;
  margin-left: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #fff !important;
}

.dataTables_wrapper .dataTables_processing {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dt-button,
button.dt-button,
div.dt-button,
a.dt-button {
  border: 1px solid #d8e2ef !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #334155 !important;
  padding: 6px 11px !important;
}

.dt-button:hover,
button.dt-button:hover,
div.dt-button:hover,
a.dt-button:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.btn,
.btn:focus {
  border-radius: 10px;
  border-color: transparent;
  transition: 0.2s ease;
  min-height: 36px;
  padding: 8px 14px;
  font-weight: 600;
}

.btn-sm {
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
}

.btn-primary,
.btn-success,
.btn-info {
  background: var(--primary);
}

.btn-default {
  background: #e7edf7;
  color: #334155;
}

.btn-default:hover {
  background: #d7e2f1;
  color: #1e293b;
}

.btn:not(.btn-icon-toggle) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Legacy layout compatibility layer */
.section-header {
  background: transparent;
}

.section-header .breadcrumb .active[style*="color:red"],
.section-header .breadcrumb .active[style*="color: red"] {
  color: #0f172a !important;
}

.card-head.style-primary,
.card-head.card-head-xs.style-primary,
.card-head.style-primary.card-head-xs {
  background: linear-gradient(120deg, #f8fafc 0%, #edf3fb 100%) !important;
  border-bottom: 1px solid var(--line);
  color: #0f172a;
}

.card-head.style-primary header,
.card-head.card-head-xs.style-primary header,
.card-head.style-primary.card-head-xs header {
  color: #0f172a !important;
  font-family: var(--font-heading);
  font-weight: 700;
}

.btn-flat.btn-primary,
.btn-flat.btn-success,
.btn-flat.btn-info {
  background: var(--primary);
  color: #fff;
}

.btn-flat.btn-warning {
  background: #f59e0b;
  color: #fff;
}

.btn-flat.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-flat.btn-default,
.btn-default-light {
  background: #e7edf7;
  color: #334155;
}

.btn-floating-action {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e2ef;
}

.tools .btn-group {
  display: inline-flex;
  align-items: center;
}

.card-actionbar {
  border-top: 1px solid #e8eef7;
  background: #fbfdff;
}

.card-actionbar-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
}

.card-actionbar-row .btn,
.card-actionbar-row a.btn,
.card-actionbar-row .btn-flat,
.card-actionbar-row .btn-block {
  float: none !important;
}

.card-actionbar-row .btn-block {
  width: auto;
  min-width: 160px;
  flex: 1 1 220px;
}

.card-actionbar-row > .btn-block:only-child,
.card-actionbar-row > a.btn-block:only-child {
  flex: 1 1 100%;
  width: 100%;
}

.card-actionbar-row a > .btn.btn-block {
  width: 100%;
}

.card-actionbar-row .btn-icon-toggle,
.card-actionbar-row .btn-floating-action {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
}

.tile-actions .btn,
.tools .btn {
  min-width: 34px;
}

@media (max-width: 767px) {
  .card-actionbar-row {
    justify-content: stretch;
  }

  .card-actionbar-row .btn,
  .card-actionbar-row a.btn,
  .card-actionbar-row a > .btn {
    width: 100%;
    flex: 1 1 100%;
  }
}

.alert-callout {
  border-left: 4px solid #cbd5e1;
  border-radius: 10px;
}

.alert-callout.alert-success {
  border-left-color: #22c55e;
}

.alert-callout.alert-danger,
.alert-callout.alert-warning {
  border-left-color: #ef4444;
}

.height-12.scroll {
  max-height: 68vh;
  overflow: auto;
}

.table td[style*="color:red"],
.table td[style*="color: red"] {
  color: #b91c1c !important;
  font-weight: 600;
}

.table span[style*="color:red"],
.table span[style*="color: red"] {
  color: #b91c1c !important;
}

.section-body > .row {
  margin-bottom: 12px;
}

.section-body > .row:last-child {
  margin-bottom: 0;
}

.form-group.control-width-normal .input-group {
  border: 1px solid #cdd8e7;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.form-group.control-width-normal .input-group .input-group-content {
  width: calc(100% - 42px);
}

.form-group.control-width-normal .input-group .form-control {
  border: 0;
  border-radius: 0;
}

.form-group.control-width-normal .input-group .input-group-addon {
  min-width: 42px;
  border: 0;
  border-left: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.checkbox-styled input[type="checkbox"] + span {
  color: #334155;
}

.checkbox-styled input[type="checkbox"]:checked + span {
  color: #0f172a;
  font-weight: 600;
}

.main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #d8e2ef;
  background: #fff;
  color: #334155;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 600;
}

.main-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.photo-wrapper {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
  background: #fff;
}

.photo-wrapper img {
  width: 100%;
  border-radius: 8px;
}

.photo-wrapper .controls {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}

.photo-wrapper .controls .sort-btn,
.photo-wrapper .controls .delete-btn {
  border: 1px solid #d8e2ef;
  background: #f8fafc;
  color: #334155;
  border-radius: 8px;
  padding: 4px 8px;
}

.reveal-auto {
  animation: revealUp 0.42s ease both;
}

.notes-body {
  padding: 8px 10px 10px;
}

.notes-list .note-item {
  margin: 6px 0;
  border: 1px solid #e5edf8;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 10px 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.notes-list .note-item .tile-text {
  flex: 1;
}

.note-text {
  display: block;
  color: #1f2937;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}

.note-text-done {
  text-decoration: line-through;
  color: #64748b;
}

.note-date {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d9e6f8;
  background: #f3f8ff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
}

.notes-list .note-item.is-done {
  background: #f8fafc;
}

.note-helper-card {
  border-style: dashed;
}

.note-helper-list {
  margin: 0;
  padding-left: 18px;
  color: #475569;
}

.note-helper-list li {
  margin-bottom: 8px;
}


.btn-primary:hover,
.btn-success:hover,
.btn-info:hover {
  background: var(--primary-strong);
}

.section-account {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.img-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.img-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.76), rgba(15, 118, 110, 0.66));
}

.section-account .card {
  width: 100%;
  max-width: 460px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
}

.dashboard-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-intro h1 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.dashboard-intro p {
  margin: 0;
  color: #475569;
  max-width: 720px;
}

.dashboard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.chip-info {
  background: #e0ecff;
  color: #1e3a8a;
  border-color: #bfd7ff;
}

.chip-success {
  background: #dbf8e8;
  color: #065f46;
  border-color: #a7e8c6;
}

.chip-warning {
  background: #fff3da;
  color: #854d0e;
  border-color: #f7d6a3;
}

.kpi-grid {
  margin-bottom: 16px;
}

.kpi-card {
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 14px;
  min-height: 96px;
}

.kpi-label {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  display: block;
  margin-top: 6px;
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1;
  color: #0f172a;
}

.tehlike-badge {
  display: inline-flex;
  min-width: 32px;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge-a {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.badge-t {
  color: #92400e;
  background: #fef3c7;
  border-color: #fcd34d;
}

.badge-c {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.firm-header-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

.firm-header-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.firm-header-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.firm-kpi-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.status-ok {
  color: #166534;
  background: #dcfce7;
}

.status-wait {
  color: #991b1b;
  background: #fee2e2;
}

.empty-cell {
  color: #64748b;
}

.inline-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fbff;
  font-weight: 600;
  color: #334155;
}

.inline-metric-value {
  min-width: 36px;
  text-align: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
}

.reveal-up {
  animation: revealUp 0.42s ease both;
}

.reveal-up-delay {
  animation: revealUp 0.52s ease both;
}

.reveal-up-delay-2 {
  animation: revealUp 0.62s ease both;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #cdd8e7;
  box-shadow: none;
}

.form-control:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

body.menubar-collapsed #content {
  margin-left: 0;
}

body.menubar-collapsed #menubar {
  transform: translateX(-100%);
}

@media (max-width: 991px) {
  #content {
    margin-left: 0;
    padding: 16px;
  }

  .dashboard-intro {
    flex-direction: column;
  }

  .dashboard-intro h1 {
    font-size: 24px;
  }

  .dashboard-chips {
    justify-content: flex-start;
  }

  .firm-header-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .firm-header-title {
    font-size: 20px;
  }

  .firm-kpi-inline {
    justify-content: flex-start;
  }

  #menubar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  body.menubar-open #menubar {
    transform: translateX(0);
  }
}
