/* Optional: Roboto 500 local font */

:root {
  --surface-a: #ffffff;
  --surface-b: #efefef;
  --surface-c: #e9ecef;
  --surface-d: #dee2e6;
  --surface-e: #ffffff;
  --surface-f: #ffffff;
  --text-color: #212529;
  --text-color-secondary: #6c757d;
  --primary-color: #1F3042;
  --primary-color-text: #ffffff;
  --stroke-color-primary: #e2e8f0;
  --font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
  --surface-0: #ffffff;
  --surface-50: #f9fafb;
  --surface-100: #f8f9fa;
  --surface-200: #e9ecef;
  --surface-300: #dee2e6;
  --surface-400: #ced4da;
  --surface-500: #adb5bd;
  --surface-600: #6c757d;
  --surface-700: #495057;
  --surface-800: #343a40;
  --surface-900: #212529;
  --gray-50: #f9fafb;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --content-padding: 1.25rem;
  --inline-spacing: 0.5rem;
  --border-radius: 4px;
  --surface-ground: #f0f0f0;
  --surface-section: #ffffff;
  --surface-card: #ffffff;
  --surface-overlay: #ffffff;
  --surface-border: #dee2e6;
  --surface-hover: #e9ecef;
  --maskbg: rgba(0, 0, 0, 0.4);
  --focus-ring: 0 0 0 0.2rem #336699;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

.p-component {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1rem;
  font-weight: normal;
}

.p-component-overlay {
  background-color: rgba(0, 0, 0, 0.4);
  transition-duration: 0.15s;
}

.p-disabled,
.p-component:disabled {
  opacity: 0.65;
}

.p-error {
  color: #dc3545;
}

.p-text-secondary {
  color: #6c757d;
}

.pi {
  font-size: 1rem;
}

.p-link {
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  border-radius: 4px;
}

.p-link:focus {
  outline: 0 none;
  outline-offset: 0;
  box-shadow: 0 0 0 0.2rem var(--focus-ring);
}

.p-component-overlay-enter {
  animation: p-component-overlay-enter-animation 150ms forwards;
}

.p-component-overlay-leave {
  animation: p-component-overlay-leave-animation 150ms forwards;
}

@keyframes p-component-overlay-enter-animation {
  from {
    background-color: transparent;
  }

  to {
    background-color: var(--maskbg);
  }
}

@keyframes p-component-overlay-leave-animation {
  from {
    background-color: var(--maskbg);
  }

  to {
    background-color: transparent;
  }
}

:root {
  --blue-50: #f3f8ff;
  --blue-100: #c5dcff;
  --blue-200: #97c1fe;
  --blue-300: #69a5fe;
  --blue-400: #3b8afd;
  --blue-500: #0d6efd;
  --blue-600: #0b5ed7;
  --blue-700: #094db1;
  --blue-800: #073d8b;
  --blue-900: #052c65;
  --green-50: #f4f9f6;
  --green-100: #c8e2d6;
  --green-200: #9ccbb5;
  --green-300: #70b595;
  --green-400: #459e74;
  --green-500: #198754;
  --green-600: #157347;
  --green-700: #125f3b;
  --green-800: #0e4a2e;
  --green-900: #0a3622;
  --yellow-50: #fffcf3;
  --yellow-100: #fff0c3;
  --yellow-200: #ffe494;
  --yellow-300: #ffd965;
  --yellow-400: #ffcd36;
  --yellow-500: #ffc107;
  --yellow-600: #d9a406;
  --yellow-700: #b38705;
  --yellow-800: #8c6a04;
  --yellow-900: #664d03;
  --cyan-50: #f3fcfe;
  --cyan-100: #c5f2fb;
  --cyan-200: #97e8f9;
  --cyan-300: #69def6;
  --cyan-400: #3bd4f3;
  --cyan-500: #0dcaf0;
  --cyan-600: #0baccc;
  --cyan-700: #098da8;
  --cyan-800: #076f84;
  --cyan-900: #055160;
  --pink-50: #fdf5f9;
  --pink-100: #f5cee1;
  --pink-200: #eda7ca;
  --pink-300: #e681b3;
  --pink-400: #de5a9b;
  --pink-500: #d63384;
  --pink-600: #b62b70;
  --pink-700: #96245c;
  --pink-800: #761c49;
  --pink-900: #561435;
  --indigo-50: #f7f3fe;
  --indigo-100: #dac6fc;
  --indigo-200: #bd98f9;
  --indigo-300: #a06bf7;
  --indigo-400: #833df4;
  --indigo-500: #6610f2;
  --indigo-600: #570ece;
  --indigo-700: #470ba9;
  --indigo-800: #380985;
  --indigo-900: #290661;
  --teal-50: #f4fcfa;
  --teal-100: #c9f2e6;
  --teal-200: #9fe8d2;
  --teal-300: #75debf;
  --teal-400: #4ad3ab;
  --teal-500: #20c997;
  --teal-600: #1bab80;
  --teal-700: #168d6a;
  --teal-800: #126f53;
  --teal-900: #0d503c;
  --orange-50: #fff9f3;
  --orange-100: #ffe0c7;
  --orange-200: #fec89a;
  --orange-300: #feaf6d;
  --orange-400: #fd9741;
  --orange-500: #fd7e14;
  --orange-600: #d76b11;
  --orange-700: #b1580e;
  --orange-800: #8b450b;
  --orange-900: #653208;
  --bluegray-50: #f8f9fb;
  --bluegray-100: #e0e4ea;
  --bluegray-200: #c7ced9;
  --bluegray-300: #aeb9c8;
  --bluegray-400: #95a3b8;
  --bluegray-500: #7c8ea7;
  --bluegray-600: #69798e;
  --bluegray-700: #576375;
  --bluegray-800: #444e5c;
  --bluegray-900: #323943;
  --purple-50: #f8f6fc;
  --purple-100: #dcd2f0;
  --purple-200: #c1aee4;
  --purple-300: #a68ad9;
  --purple-400: #8a66cd;
  --purple-500: #6f42c1;
  --purple-600: #5e38a4;
  --purple-700: #4e2e87;
  --purple-800: #3d246a;
  --purple-900: #2c1a4d;
  --red-50: #fdf5f6;
  --red-100: #f7cfd2;
  --red-200: #f0a8af;
  --red-300: #e9828c;
  --red-400: #e35b68;
  --red-500: #dc3545;
  --red-600: #bb2d3b;
  --red-700: #9a2530;
  --red-800: #791d26;
  --red-900: #58151c;
  --primary-50: #f2f8ff;
  --primary-100: #c2dfff;
  --primary-200: #91c6ff;
  --primary-300: #61adff;
  --primary-400: #3094ff;
  --primary-500: #1F3042;
  --primary-600: #0069d9;
  --primary-700: #0056b3;
  --primary-800: #00448c;
  --primary-900: #003166;
}

.p-checkbox {
  width: 20px;
  height: 20px;
}

.p-checkbox .p-checkbox-box {
  border: 2px solid #ced4da;
  background: #ffffff;
  width: 20px;
  height: 20px;
  color: #212529;
  border-radius: 4px;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.p-checkbox .p-checkbox-box .p-checkbox-icon {
  transition-duration: 0.15s;
  color: #ffffff;
  font-size: 14px;
}

.p-checkbox .p-checkbox-box.p-highlight {
  border-color: #1F3042;
  background: #1F3042;
}

.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box:hover {
  border-color: #ced4da;
}

.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-focus {
  outline: 0 none;
  outline-offset: 0;
  box-shadow: 0 0 0 0.2rem #336699;
  border-color: #1F3042;
}

.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-highlight:hover {
  border-color: #0062cc;
  background: #0062cc;
  color: #ffffff;
}

p-checkbox.ng-dirty.ng-invalid>.p-checkbox>.p-checkbox-box {
  border-color: #dc3545;
}

.p-checkbox-label {
  margin-left: 0.5rem;
}

.p-highlight .p-checkbox .p-checkbox-box {
  border-color: #ffffff;
}

.p-inputswitch {
  width: 3rem;
  height: 1.75rem;
}

.p-inputswitch .p-inputswitch-slider {
  background: #ced4da;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
  border-radius: 4px;
}

.p-inputswitch .p-inputswitch-slider:before {
  background: #ffffff;
  width: 1.25rem;
  height: 1.25rem;
  left: 0.25rem;
  margin-top: -0.625rem;
  border-radius: 4px;
  transition-duration: 0.15s;
}

.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before {
  transform: translateX(1.25rem);
}

.p-inputswitch.p-focus .p-inputswitch-slider {
  outline: 0 none;
  outline-offset: 0;
  box-shadow: 0 0 0 0.2rem #336699;
}

.p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider {
  background: #ced4da;
}

.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider {
  background: #1F3042;
}

.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before {
  background: #ffffff;
}

.p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider {
  background: #1F3042;
}

p-inputswitch.ng-dirty.ng-invalid>.p-inputswitch {
  border-color: #dc3545;
}

.p-inputtext {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1rem;
  color: #495057;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  border-radius: 4px;
}

.p-inputtext:enabled:hover {
  border-color: #ced4da;
}

.p-inputtext:enabled:focus {
  outline: 0 none;
  outline-offset: 0;
  box-shadow: 0 0 0 0.2rem #336699;
  border-color: #1F3042;
}

.p-inputtext.ng-dirty.ng-invalid {
  border-color: #dc3545;
}

.p-inputtext.p-inputtext-sm {
  font-size: 0.875rem;
  padding: 0.4375rem 0.65625rem;
}

.p-inputtext.p-inputtext-lg {
  font-size: 1.25rem;
  padding: 0.625rem 0.9375rem;
}

.p-float-label>label {
  left: 0.75rem;
  color: #6c757d;
  transition-duration: 0.15s;
}

.p-float-label>.ng-invalid.ng-dirty+label {
  color: #dc3545;
}

.p-input-icon-left>i:first-of-type {
  left: 0.75rem;
  color: #495057;
}

.p-input-icon-left>.p-inputtext {
  padding-left: 2.5rem;
}

.p-input-icon-left.p-float-label>label {
  left: 2.5rem;
}

.p-input-icon-right>i:last-of-type {
  right: 0.75rem;
  color: #495057;
}

.p-input-icon-right>.p-inputtext {
  padding-right: 2.5rem;
}

::-webkit-input-placeholder {
  color: #6c757d;
}

:-moz-placeholder {
  color: #6c757d;
}

::-moz-placeholder {
  color: #6c757d;
}

:-ms-input-placeholder {
  color: #6c757d;
}

.p-inputtext-sm .p-inputtext {
  font-size: 0.875rem;
  padding: 0.4375rem 0.65625rem;
}

.p-inputtext-lg .p-inputtext {
  font-size: 1.25rem;
  padding: 0.625rem 0.9375rem;
}

.p-button {
  color: #ffffff;
  background: #1F3042;
  border: 1px solid #1F3042;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
  border-radius: 4px;
}

.p-button:enabled:hover {
  background: #0069d9;
  color: #ffffff;
  border-color: #0069d9;
}

.p-button:enabled:active {
  background: #0062cc;
  color: #ffffff;
  border-color: #0062cc;
}

.p-button.p-button-outlined {
  background-color: transparent;
  color: #1F3042;
  border: 1px solid;
}

.p-button.p-button-outlined:enabled:hover {
  background: rgba(0, 123, 255, 0.04);
  color: #1F3042;
  border: 1px solid;
}

.p-button.p-button-outlined:enabled:active {
  background: rgba(0, 123, 255, 0.16);
  color: #1F3042;
  border: 1px solid;
}

.p-button.p-button-outlined.p-button-plain {
  color: #6c757d;
  border-color: #6c757d;
}

.p-button.p-button-outlined.p-button-plain:enabled:hover {
  background: #e9ecef;
  color: #6c757d;
}

.p-button.p-button-outlined.p-button-plain:enabled:active {
  background: #dee2e6;
  color: #6c757d;
}

.p-button.p-button-text {
  background-color: transparent;
  color: #1F3042;
  border-color: transparent;
}

.p-button.p-button-text:enabled:hover {
  background: rgba(0, 123, 255, 0.04);
  color: #1F3042;
  border-color: transparent;
}

.p-button.p-button-text:enabled:active {
  background: rgba(0, 123, 255, 0.16);
  color: #1F3042;
  border-color: transparent;
}

.p-button.p-button-text.p-button-plain {
  color: #6c757d;
}

.p-button.p-button-text.p-button-plain:enabled:hover {
  background: #e9ecef;
  color: #6c757d;
}

.p-button.p-button-text.p-button-plain:enabled:active {
  background: #dee2e6;
  color: #6c757d;
}

.p-button:focus {
  outline: 0 none;
  outline-offset: 0;
  /* box-shadow: 0 0 0 0.2rem #336699; */
}

.p-button .p-button-icon-left {
  margin-right: 0.5rem;
}

.p-button .p-button-icon-right {
  margin-left: 0.5rem;
}

.p-button .p-button-icon-bottom {
  margin-top: 0.5rem;
}

.p-button .p-button-icon-top {
  margin-bottom: 0.5rem;
}

.p-button .p-badge {
  margin-left: 0.5rem;
  min-width: 1rem;
  height: 1rem;
  line-height: 1rem;
  color: #1F3042;
  background-color: #ffffff;
}

.p-button.p-button-raised {
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.p-button.p-button-rounded {
  border-radius: 2rem;
}

.p-button.p-button-icon-only {
  width: 2.357rem;
  padding: 0.5rem 0;
}

.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
  margin: 0;
}

.p-button.p-button-icon-only.p-button-rounded {
  border-radius: 50%;
  height: 2.357rem;
}

.p-button.p-button-sm {
  font-size: 0.875rem;
  padding: 0.4375rem 0.65625rem;
}

.p-button.p-button-sm .p-button-icon {
  font-size: 0.875rem;
}

.p-button.p-button-lg {
  font-size: 1.25rem;
  padding: 0.625rem 0.9375rem;
}

.p-button.p-button-lg .p-button-icon {
  font-size: 1.25rem;
}

.p-button.p-button-loading-label-only .p-button-label {
  margin-left: 0.5rem;
}

.p-button.p-button-loading-label-only .p-button-loading-icon {
  margin-right: 0;
}

.p-fluid .p-button {
  width: 100%;
}

.p-fluid .p-button-icon-only {
  width: 2.357rem;
}

.p-fluid .p-buttonset {
  display: flex;
}

.p-fluid .p-buttonset .p-button {
  flex: 1;
}

.p-button.p-button-link {
  color: #1F3042;
  background: transparent;
  border: transparent;
}

.p-button.p-button-link:enabled:hover {
  background: transparent;
  color: #0069d9;
  border-color: transparent;
}

.p-button.p-button-link:enabled:hover .p-button-label {
  text-decoration: underline;
}

.p-button.p-button-link:enabled:focus {
  background: transparent;
  box-shadow: 0 0 0 0.2rem #336699;
  border-color: transparent;
}

.p-button.p-button-link:enabled:active {
  background: transparent;
  color: #1F3042;
  border-color: transparent;
}

.p-card {
  background: #ffffff;
  color: #212529;
  border-radius: 4px;
}

.p-card .p-card-body {
  padding: 1.5rem;
}

.p-card .p-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.p-card .p-card-subtitle {
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: #6c757d;
}

.p-card .p-card-content {
  padding: 1rem 0;
}

.p-card .p-card-footer {
  padding: 1rem 0 0 0;
}

.p-divider .p-divider-content {
  background-color: #ffffff;
}

.p-divider.p-divider-horizontal {
  margin: 1rem 0;
  padding: 0 1rem;
}

.p-divider.p-divider-horizontal:before {
  border-top: 1px #dee2e6;
}

.p-divider.p-divider-horizontal .p-divider-content {
  padding: 0 0.5rem;
}

.p-divider.p-divider-vertical {
  margin: 0 1rem;
  padding: 1rem 0;
}

.p-divider.p-divider-vertical:before {
  border-left: 1px #dee2e6;
}

.p-divider.p-divider-vertical .p-divider-content {
  padding: 0.5rem 0;
}

.p-fieldset {
  border: 1px solid #dee2e6;
  background: #ffffff;
  color: #212529;
  border-radius: 4px;
}

.p-fieldset .p-fieldset-legend {
  padding: 1rem 1.25rem;
  border: 1px solid #dee2e6;
  color: #212529;
  background: #efefef;
  font-weight: 600;
  border-radius: 4px;
}

.p-fieldset.p-fieldset-toggleable .p-fieldset-legend {
  padding: 0;
  transition: box-shadow 0.15s;
}

.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a {
  padding: 1rem 1.25rem;
  color: #212529;
  border-radius: 4px;
  transition: box-shadow 0.15s;
}

.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a .p-fieldset-toggler {
  margin-right: 0.5rem;
}

.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a:focus {
  outline: 0 none;
  outline-offset: 0;
  box-shadow: 0 0 0 0.2rem #336699;
}

.p-fieldset.p-fieldset-toggleable .p-fieldset-legend:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  color: #212529;
}

.p-fieldset .p-fieldset-content {
  padding: 1.25rem;
}

.p-panel .p-panel-header {
  border: 1px solid #dee2e6;
  padding: 1rem 1.25rem;
  background: #efefef;
  color: #212529;
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
}

.p-panel .p-panel-header .p-panel-title {
  font-weight: 600;
}

.p-panel .p-panel-header .p-panel-header-icon {
  width: 2rem;
  height: 2rem;
  color: #6c757d;
  border: 0 none;
  background: transparent;
  border-radius: 50%;
  transition: box-shadow 0.15s;
}

.p-panel .p-panel-header .p-panel-header-icon:enabled:hover {
  color: #495057;
  border-color: transparent;
  background: transparent;
}

.p-panel .p-panel-header .p-panel-header-icon:focus {
  outline: 0 none;
  outline-offset: 0;
  box-shadow: 0 0 0 0.2rem #336699;
}

.p-panel.p-panel-toggleable .p-panel-header {
  padding: 0.5rem 1.25rem;
}

.p-panel .p-panel-content {
  padding: 1.25rem;
  border: 1px solid #dee2e6;
  background: #ffffff;
  color: #212529;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  border-top: 0 none;
}

.p-panel .p-panel-footer {
  padding: 0.5rem 1.25rem;
  border: 1px solid #dee2e6;
  background: #ffffff;
  color: #212529;
  border-top: 0 none;
}

.p-panel .p-panel-icons-end {
  order: 2;
  margin-left: auto;
}

.p-panel .p-panel-icons-start {
  order: 0;
  margin-right: 0.5rem;
}

.p-panel .p-panel-icons-center {
  order: 2;
  width: 100%;
  text-align: center;
}

.p-toolbar {
  padding: 1rem 1.25rem;
  border-radius: 4px;
}

.p-toolbar .p-toolbar-separator {
  margin: 0 0.5rem;
}

.p-fileupload .p-fileupload-buttonbar {
  background: #efefef;
  padding: 1rem 1.25rem;
  border: 1px solid #dee2e6;
  color: #212529;
  border-bottom: 0 none;
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
}

.p-fileupload .p-fileupload-buttonbar .p-button {
  margin-right: 0.5rem;
}

.p-fileupload .p-fileupload-buttonbar .p-button.p-fileupload-choose.p-focus {
  outline: 0 none;
  outline-offset: 0;
  box-shadow: 0 0 0 0.2rem #336699;
}

.p-fileupload .p-fileupload-content {
  background: #ffffff;
  padding: 2rem 1rem;
  border: 1px solid #dee2e6;
  color: #212529;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
}

.p-fileupload .p-progressbar {
  height: 0.25rem;
}

.p-fileupload .p-fileupload-row>div {
  padding: 1rem 1rem;
}

.p-fileupload.p-fileupload-advanced .p-message {
  margin-top: 0;
}

.p-fileupload-choose:not(.p-disabled):hover {
  background: #0069d9;
  color: #ffffff;
  border-color: #0069d9;
}

.p-fileupload-choose:not(.p-disabled):active {
  background: #0062cc;
  color: #ffffff;
  border-color: #0062cc;
}

/* Customizations to the designer theme should be defined here */
p-card {
  width: 100%;
}

.tooltip-custom {
  background-color: var(--text-color);
  color: var(--gray-50);
  padding: 4px 10px;
  border: none;
  border-radius: 6px;
  z-index: 99999;
  position: absolute;
  display: none;
}

.tooltip-custom.visible {
  animation: 0.5s fadeIn;
  animation-fill-mode: forwards;
  display: block;
}

.badge {
  background-color: #DF1500;
  color: white;
  text-align: center;
  font-weight: 600;
  line-height: 19px;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
  height: 20px;
  max-height: 25px;
  min-width: 20px;
  padding: 0px 5px;
}

@media screen and (min-width: 1920px) {
  .badge {
    height: 23px;
    min-width: 23px;
    line-height: 22px;
  }
}

.prettyprint {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow-x: auto;
  padding: 10px;

  max-width: 100%;
  height: calc(100% - 1rem);
  overflow: auto;
}

/* General */
.preloader {
  position: fixed;
  z-index: 999999;
  background: #edf1f5;
  width: 100%;
  height: 100%;
}

.preloader-content {
  border: 0 solid transparent;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  position: absolute;
  top: calc(50vh - 75px);
  left: calc(50vw - 75px);
}

.preloader-content:before,
.preloader-content:after {
  content: "";
  border: 1em solid var(--primary-color);
  border-radius: 50%;
  width: inherit;
  height: inherit;
  position: absolute;
  top: 0;
  left: 0;
  animation: loader 2s linear infinite;
  opacity: 0;
}

.preloader-content:before {
  animation-delay: 0.5s;
}

@keyframes loader {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  font-size: 10px;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--surface-ground);
  margin: 0;
  padding: 0;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

.layout-wrapper {
  min-height: 100vh;
  overflow-x: hidden;
}

.layout-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 5rem;
  z-index: 997;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 1rem;
  background-color: var(--surface-card);

  transition: left 0.2s;
}

.layout-topbar .layout-topbar-logo {
  display: flex;
  align-items: center;
  color: var(--surface-900);
  font-size: 2.2rem;
  font-weight: 800;
  width: 300px;
  border-radius: 4px;
}

.layout-topbar .layout-topbar-logo img {
  height: 2.5rem;
  margin-right: 0.5rem;
}

.layout-topbar .layout-topbar-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: var(--text-color-secondary);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.layout-topbar .layout-topbar-button:hover {
  color: var(--text-color);
  background-color: var(--surface-hover);
}

.layout-topbar .layout-topbar-button:focus {
  outline: 0 none;
  outline-offset: 0;
  transition: box-shadow 0.2s;
}

.layout-topbar .layout-topbar-button i {
  font-size: 1.5rem;
}

.layout-topbar .layout-topbar-button span {
  font-size: 1rem;
  display: none;
}

.layout-topbar .layout-menu-button {
  margin-left: 2rem;
}

.layout-topbar .layout-topbar-menu-button {
  display: none;
}

.layout-topbar .layout-topbar-menu-button i {
  font-size: 1.25rem;
}

.layout-topbar .layout-topbar-menu {
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
}

.layout-topbar .layout-topbar-menu .layout-topbar-button {
  margin-left: 1rem;
}

@media (max-width: 991px) {
  .layout-topbar {
    justify-content: space-between;
  }

  .layout-topbar .layout-topbar-logo {
    width: auto;
    order: 2;
  }

  .layout-topbar .layout-menu-button {
    margin-left: 0;
    order: 1;
  }

  .layout-topbar .layout-topbar-menu-button {
    display: inline-flex;
    margin-left: 0;
    order: 3;
  }

  .layout-topbar .layout-topbar-menu {
    margin-left: 0;
    position: absolute;
    flex-direction: column;
    background-color: var(--surface-overlay);
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 1rem;
    right: 2rem;
    top: 5rem;
    min-width: 15rem;
    display: none;
    -webkit-animation: scalein 0.15s linear;
    animation: scalein 0.15s linear;
  }

  .layout-topbar .layout-topbar-menu.layout-topbar-menu-mobile-active {
    display: block;
  }

  .layout-topbar .layout-topbar-menu .layout-topbar-button {
    margin-left: 0;
    display: flex;
    width: 100%;
    height: auto;
    justify-content: flex-start;
    border-radius: 4px;
    padding: 1rem;
  }

  .layout-topbar .layout-topbar-menu .layout-topbar-button i {
    font-size: 1rem;
    margin-right: 0.5rem;
  }

  .layout-topbar .layout-topbar-menu .layout-topbar-button span {
    font-weight: medium;
    display: block;
  }
}

.layout-sidebar {
  position: fixed;
  width: 230px;
  height: 100%;
  z-index: 999;
  overflow-y: auto;
  user-select: none;
  top: 6rem;
  transition: transform 0.2s, left 0.2s;
  background-color: var(--surface-overlay);
  border-radius: 0px 4px 4px 0px;
  padding: 0.5rem 1.5rem;
}

.layout-menu {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.layout-menu .layout-root-menuitem>.layout-menuitem-root-text {
  font-size: 0.857rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--surface-900);
  margin: 0.75rem 0;
}

.layout-menu .layout-root-menuitem>a {
  display: none;
}

.layout-menu a {
  user-select: none;
}

.layout-menu a.active-menuitem>.layout-submenu-toggler {
  transform: rotate(-180deg);
}

.layout-menu li.active-menuitem>a .layout-submenu-toggler {
  transform: rotate(-180deg);
}

.layout-menu ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.layout-menu ul a {
  display: flex;
  align-items: center;
  position: relative;
  outline: 0 none;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.layout-menu ul a .layout-menuitem-icon {
  margin-right: 0.5rem;
}

.layout-menu ul a .layout-submenu-toggler {
  font-size: 75%;
  margin-left: auto;
  transition: transform 0.2s;
}

.layout-menu ul a.rotated-icon .layout-menuitem-icon {
  transform: rotate(90deg);
}

.layout-menu ul a.active-route {
  font-weight: 700;
  color: var(--primary-color);
}

.layout-menu ul a:hover {
  background-color: var(--surface-hover);
}

.layout-menu ul a:focus {
  outline: 0 none;
  outline-offset: 0;
  transition: box-shadow 0.2s;
}

.layout-menu ul ul {
  overflow: hidden;
  border-radius: 4px;
}

.layout-menu ul ul li a {
  margin-left: 1rem;
}

.layout-menu ul ul li li a {
  margin-left: 2rem;
}

.layout-menu ul ul li li li a {
  margin-left: 2.5rem;
}

.layout-menu ul ul li li li li a {
  margin-left: 3rem;
}

.layout-menu ul ul li li li li li a {
  margin-left: 3.5rem;
}

.layout-menu ul ul li li li li li li a {
  margin-left: 4rem;
}

.layout-config-button {
  display: block;
  position: fixed;
  width: 3rem;
  height: 3rem;
  line-height: 3rem;
  background: var(--primary-color);
  color: var(--primary-color-text);
  text-align: center;
  top: 50%;
  right: 0;
  margin-top: -1.5rem;
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  transition: background-color var(--transition-duration);
  overflow: hidden;
  cursor: pointer;
  z-index: 999;
  box-shadow: -0.25rem 0 1rem rgba(0, 0, 0, 0.15);
}

.layout-config-button i {
  font-size: 2rem;
  line-height: inherit;
  transform: rotate(0deg);
  transition: transform 1s;
}

.layout-config-button:hover {
  background: var(--primary-400);
}

.layout-config-sidebar.p-sidebar .p-sidebar-content {
  padding-left: 2rem;
  padding-right: 2rem;
}

.layout-main-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  transition: margin-left 0.2s;
}

.layout-main {
  flex: 1 1 auto;
  width: 100% !important;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.layout-footer {
  transition: margin-left 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
}

@media screen and (min-width: 1729px) {

  .layout-main,
  .landing-wrapper {
    width: 1504px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 992px) {
  .layout-wrapper.layout-overlay .layout-main-container {
    margin-left: 0;
    padding-left: 1rem;
  }

  .layout-wrapper.layout-overlay .layout-sidebar {
    transform: translateX(-100%);
    left: 0;
    top: 0;
    height: 100vh;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .layout-wrapper.layout-overlay.layout-overlay-active .layout-sidebar {
    transform: translateX(0);
  }

  .layout-wrapper.layout-static .layout-main-container {
    margin-left: 190px;
  }

  .layout-wrapper.layout-static.layout-static-inactive .layout-sidebar {
    transform: translateX(-100%);
    left: 0;
  }

  .layout-wrapper.layout-static.layout-static-inactive .layout-main-container {
    margin-left: 0;
    padding-left: 1rem;
  }

  .layout-wrapper .layout-mask {
    display: none;
  }
}

@media (max-width: 991px) {
  .blocked-scroll {
    overflow: hidden;
  }

  .layout-wrapper .layout-main-container {
    margin-left: 0;
    padding-left: 1rem;
  }

  .layout-wrapper .layout-sidebar {
    transform: translateX(-100%);
    left: 0;
    top: 0;
    height: 100vh;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .layout-wrapper .layout-mask {
    z-index: 998;
    background-color: var(--mask-bg);
  }

  .layout-wrapper .layout-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998;
    width: 100%;
    height: 100%;
    background-color: var(--maskbg);
  }

  .layout-wrapper.layout-mobile-active .layout-sidebar {
    transform: translateX(0);
  }

  .layout-wrapper.layout-mobile-active .layout-mask {
    display: block;
  }
}

/* Utils */
.clearfix:after {
  content: " ";
  display: block;
  clear: both;
}

.card {
  background: var(--surface-card);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
  border-radius: 4px;
}

.card:last-child {
  margin-bottom: 0;
}

.p-toast.p-toast-top-right,
.p-toast.p-toast-top-left,
.p-toast.p-toast-top-center {
  top: 75px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1.5rem 0 1rem 0;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

mark {
  background: #FFF8E1;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

blockquote {
  margin: 1rem 0;
  padding: 0 2rem;
  border-left: 4px solid #90A4AE;
}

hr {
  border-top: solid var(--surface-border);
  border-width: 1px 0 0 0;
  margin: 1rem 0;
}

p {
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

p:last-child {
  margin-bottom: 0;
}

/* General */
:host {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, max-content));
  grid-auto-rows: minmax(0, max-content);
  grid-gap: 20px;
  grid-auto-flow: dense;
  margin: 0px;
  justify-content: flex-start;
  min-height: max(60vh, 400px);
}

.image-wrapper {
  position: relative;
  border-radius: 4px;
  min-height: 50px;
  height: 100%;
  width: 100%;
}

.image-wrapper:hover:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  z-index: 2;
}

.image-wrapper:hover {
  cursor: pointer;
}

.image-container {
  background-color: #f9f9f9;
  border: 1px solid var(--stroke-color-primary);
  border-radius: 4px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 400px;
  max-height: 600px;
  position: relative;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  position: sticky;
  z-index: 1;
}

.border-radius-default {
  border-radius: 4px;
}

.gallery-footer {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.image-count {
  margin-right: 10px;
  color: var(--text-color-secondary);
}

.paginator-wrapper {
  display: flex;
  align-items: center;
}

.select-project {
  max-width: 400px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay.underlay {
  z-index: 0;
}

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 3px solid;
  border-color: #FFF #FFF transparent transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.spinner::after,
.spinner::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent #FF3D00 #FF3D00;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

.filters-bar {
  flex-flow: wrap;
  -ms-flex-flow: wrap;
  margin-bottom: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
  padding: 10px;
  border: 1px solid var(--stroke-color-primary);
  gap: 10px;
}

.btn-download {
  align-self: right;
  border-radius: 4px;
  border: 1px solid var(--stroke-color-primary);
  cursor: pointer;
  background-color: var(--primary-color);
  color: white;
  height: 35px;
  padding: 0px 10px;
}

#card-models {
  min-width: 400px;
  max-width: 500px;
}

@media screen and (max-width: 1800px) {
  #card-models {
    min-width: 300px;
    max-width: 400px;
  }
}

/* General */
.ref-link {
  color: #1e88e5;
  /* blue color */
  text-decoration: none;
  /* remove underline */
  font-weight: 500;
  /* slightly bolder */
}

.ref-link:hover {
  text-decoration: underline;
  /* underline on hover */
  color: #1565c0;
  /* darker blue */
}

:host {
  display: block;
  height: 100vh;
  width: 100vw;
  margin: 0;
}

.window {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.container {
  flex: 1;
  min-height: 0;
  width: 100%;
}

/* App B -> App A adapter layer */

.layout-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.layout-topbar-logo {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.layout-topbar-title {

  font-size: 1.5rem;
}

/* Control bar spacing like a "toolbar" */
.appb-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.appb-field {
  display: grid;
  gap: 0.25rem;
}

.appb-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Progress line */
.appb-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.appb-progress progress {
  width: min(520px, 100%);
  height: 0.75rem;
}

/* Results grid */
.appb-results {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

/* Result cards */
.appb-result-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.appb-result-card .images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.appb-result-card .imgWrap {
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
}

.appb-result-card img {
  width: 100%;
  display: block;
}

.appb-result-card .fsBtn {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  border: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.9;
}

/* Make textarea feel like a styled input block */
.appb-result-card textarea {
  width: 100%;
  min-height: 140px;
  margin-top: 0.75rem;
  resize: vertical;
}

/* Badge look */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.layout-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-user {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.05rem;
}

.topbar-logout {
  border: 0;
  background: transparent;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.topbar-logout:hover {
  background: var(--surface-hover);
}

/* ========== Burger menu (topbar) ========== */
.burger-menu {
  position: relative;
}

.burger-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  line-height: 0;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition: background-color 0.15s;
}

.burger-btn:hover {
  background: var(--surface-hover);
}

.burger-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0.4rem 0;
  z-index: 1000;
  animation: burger-in 0.12s ease-out;
}

@keyframes burger-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.burger-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.12s;
}

.burger-item:hover {
  background: var(--surface-hover);
}

.burger-item svg {
  flex-shrink: 0;
}

.burger-item--danger {
  color: #dc3545;
}

.burger-divider {
  border: none;
  border-top: 1px solid var(--surface-border);
  margin: 0.3rem 0;
}

/* ========== Fullscreen button (topbar) ========== */
/* Ensure right side never squashes the button */
.layout-topbar-right {
  flex-wrap: nowrap;
}

#fullscreenBtn {
  flex: 0 0 auto;
}

/* Fullscreen button: make it immune to baseline/linebox quirks */
.topbar-icon-btn.fs-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  /* important */
  line-height: 0;
  /* important: removes inline baseline weirdness */
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition: background .15s ease, transform .06s ease, box-shadow .15s ease, border-color .15s ease;
}

.topbar-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-right: 0.5rem;
}

@media (min-width: 1600px) {
  .topbar-logo-img {
    height: 36px;
  }
}

.topbar-icon-btn.fs-btn:hover {
  background: var(--surface-hover);
  border-color: var(--stroke-color-primary);
}

.topbar-icon-btn.fs-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.topbar-icon-btn.fs-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* The stable icon stack */
.fs-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.fs-icon .fs-ico {
  grid-area: 1 / 1;
  /* both occupy same cell */
  width: 22px;
  height: 22px;
  display: block;
  overflow: visible;
  fill: none !important;
  stroke: var(--primary-color) !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  /* stroke stays crisp if scaled */
  vector-effect: non-scaling-stroke;

  transition: opacity .15s ease, transform .15s ease;
}

/* Default state */
.fs-ico-exit {
  opacity: 0;
  transform: scale(0.96);
}

.fs-ico-enter {
  opacity: 1;
  transform: scale(1);
}

/* Fullscreen state swap */
body.is-fullscreen .fs-ico-enter {
  opacity: 0;
  transform: scale(0.96);
}

body.is-fullscreen .fs-ico-exit {
  opacity: 1;
  transform: scale(1);
}

/* Hover micro-interaction */
.topbar-icon-btn.fs-btn:hover .fs-icon .fs-ico {
  transform: scale(1.04);
}

/* Optional: slightly different tone in fullscreen */
body.is-fullscreen .fs-icon .fs-ico {
  stroke: var(--text-color) !important;
}

/* Fullscreen mode: keep chrome visible (topbar stays) */
body.is-fullscreen .layout-main-container,
body.is-fullscreen .layout-main {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Make the SPA area take full viewport */
body.is-fullscreen #app-root {
  min-height: calc(100vh - 5rem);
  /* subtract topbar height */
}

/* Keep topbar visible, optionally tighten it a bit */
body.is-fullscreen .layout-topbar {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* above everything */
}

/* Optional: footer hidden in fullscreen (usually desired) */
body.is-fullscreen .layout-footer {
  display: none !important;
}

/* Mask should not show in fullscreen */
body.is-fullscreen .layout-mask {
  display: none !important;
}

/* Ensure main content starts under topbar */
body.is-fullscreen .layout-main-container {
  padding-top: 6rem !important;
  /* 5rem topbar + 1rem breathing room */
}

/* =======================
   Fullscreen (keep topbar)
   ======================= */

/* keep document stable */
body.is-fullscreen {
  margin: 0;
}

/* keep topbar exactly as designed */
body.is-fullscreen .layout-topbar {
  height: 5rem !important;
  padding: 0 1rem !important;
  /* match your adapter layer */
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;

  z-index: 1000 !important;
  background: var(--surface-card) !important;
}

/* content sits under topbar */
body.is-fullscreen .layout-main-container {
  margin: 0 !important;
  padding: 6rem 1rem 0 1rem !important;
  /* topbar + spacing */
  min-height: 100vh !important;
}

/* allow app to grow naturally */
body.is-fullscreen #app-root {
  min-height: calc(100vh - 6rem);
}

/* ---- Confirmation modal (global, reused by reports + uploads) ---- */
.confirm-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
}

.confirm-modal-overlay--visible {
  display: flex;
}

.confirm-modal {
  background: var(--surface-card, #fff);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  animation: pdf-modal-in 0.18s ease-out;
}

.confirm-modal-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
}

.confirm-modal-subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-color-secondary);
  line-height: 1.4;
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.confirm-modal-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
}

.confirm-modal-btn--cancel {
  background: var(--surface-200);
  color: var(--text-color);
}

.confirm-modal-btn--cancel:hover {
  background: var(--surface-300, #d4d4d8);
}

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

.confirm-modal-btn--danger:hover {
  background: #b91c1c;
}

/* optional: hide footer only */
body.is-fullscreen .layout-footer {
  display: none !important;
}

/* don't show mobile overlay mask in fullscreen */
body.is-fullscreen .layout-mask {
  display: none !important;
}

.layout-topbar-right {
  flex-wrap: nowrap;
}

#fullscreenBtn {
  flex: 0 0 auto;
}

/* ensure SVG never collapses or inherits weird defaults */
#fullscreenBtn svg {
  display: block;
}

#fullscreenBtn .fs-ico {
  pointer-events: none;
}

/* prevents weird hit testing */
#fullscreenBtn .fs-ico path {
  fill: none !important;
  stroke: var(--primary-color) !important;
  stroke-width: 2 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================
   APP SHELL (sanitized / single source)
   ========================================= */

/* Core document */
html {
  height: 100%;
  font-size: 10px;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--surface-ground);
  margin: 0;
  padding: 0;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout wrapper */
.layout-wrapper {
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Topbar ---------- */
.layout-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 5rem;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 1rem;
  background-color: var(--surface-card);
}

/* left side */
.layout-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.layout-topbar-logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--surface-900);
}

.layout-topbar-title {
  font-size: 1.5rem;
  color: var(--text-color);
}

/* right side */
.layout-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  /* important: keep controls stable */
}

/* Logged in label */
.topbar-user {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.05rem;
  white-space: nowrap;
}

/* Logout */
.topbar-logout {
  border: 0;
  background: transparent;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
}

.topbar-logout:hover {
  background: var(--surface-hover);
}

/* Optional: don't let hidden elements cause layout surprises */
.topbar-logout[hidden],
.topbar-user:empty {
  display: none !important;
}

/* ---------- Sidebar / main container ---------- */
.layout-sidebar {
  position: fixed;
  width: 230px;
  height: 100%;
  z-index: 999;
  overflow-y: auto;
  user-select: none;

  /* Keep aligned with topbar */
  top: 5rem;

  transition: transform 0.2s, left 0.2s;
  background-color: var(--surface-overlay);
  border-radius: 0 4px 4px 0;
  padding: 0.5rem 1.5rem;
}

.layout-main-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  transition: margin-left 0.2s;
}

.layout-main {
  flex: 1 1 auto;
  width: 100% !important;
  display: flex;
  flex-direction: column;
}

.layout-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
}

/* ---------- Responsive behavior ---------- */
@media (min-width: 992px) {
  .layout-wrapper.layout-overlay .layout-main-container {
    margin-left: 0;
    padding-left: 1rem;
  }

  .layout-wrapper.layout-overlay .layout-sidebar {
    transform: translateX(-100%);
    left: 0;
    top: 0;
    height: 100vh;
    border-radius: 0;
  }

  .layout-wrapper.layout-overlay.layout-overlay-active .layout-sidebar {
    transform: translateX(0);
  }

  /* IMPORTANT: keep this consistent with sidebar width.
     If sidebar is 230px, use 230px. */
  .layout-wrapper.layout-static .layout-main-container {
    margin-left: 230px;
  }

  .layout-wrapper.layout-static.layout-static-inactive .layout-sidebar {
    transform: translateX(-100%);
    left: 0;
  }

  .layout-wrapper.layout-static.layout-static-inactive .layout-main-container {
    margin-left: 0;
    padding-left: 1rem;
  }

  .layout-wrapper .layout-mask {
    display: none;
  }
}

@media (max-width: 991px) {
  .blocked-scroll {
    overflow: hidden;
  }

  .layout-wrapper .layout-main-container {
    margin-left: 0;
    padding-left: 1rem;
  }

  .layout-wrapper .layout-sidebar {
    transform: translateX(-100%);
    left: 0;
    top: 0;
    height: 100vh;
    border-radius: 0;
  }

  .layout-wrapper .layout-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background-color: var(--maskbg);
  }

  .layout-wrapper.layout-mobile-active .layout-sidebar {
    transform: translateX(0);
  }

  .layout-wrapper.layout-mobile-active .layout-mask {
    display: block;
  }
}

/* =========================================
   FULLSCREEN BUTTON (stable SVG)
   ========================================= */

#fullscreenBtn {
  flex: 0 0 auto;
}

/* Button baseline reset (important for SVG stability) */
.topbar-icon-btn.fs-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  line-height: 0;

  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--surface-card);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition: background .15s ease, transform .06s ease, box-shadow .15s ease, border-color .15s ease;
}

.topbar-icon-btn.fs-btn:hover {
  background: var(--surface-hover);
  border-color: var(--stroke-color-primary);
}

.topbar-icon-btn.fs-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.topbar-icon-btn.fs-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Icon stack wrapper */
.fs-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

/* SVG base */
.fs-icon .fs-ico {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  display: block;

  fill: none !important;
  stroke: var(--primary-color) !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  vector-effect: non-scaling-stroke;
  pointer-events: none;

  transition: opacity .15s ease, transform .15s ease;
}

/* Default state (enter visible) */
.fs-ico-exit {
  opacity: 0;
  transform: scale(0.96);
}

.fs-ico-enter {
  opacity: 1;
  transform: scale(1);
}

/* Fullscreen state swap */
body.is-fullscreen .fs-ico-enter {
  opacity: 0;
  transform: scale(0.96);
}

body.is-fullscreen .fs-ico-exit {
  opacity: 1;
  transform: scale(1);
}

/* Hover micro feel */
.topbar-icon-btn.fs-btn:hover .fs-icon .fs-ico {
  transform: scale(1.04);
}

/* =========================================
   FULLSCREEN MODE (keep topbar; no conflicts)
   ========================================= */

/* Body state only — do NOT set height:100% on header/footer here */
body.is-fullscreen {
  margin: 0;
}

/* Keep topbar consistent in fullscreen */
body.is-fullscreen .layout-topbar {
  height: 5rem;
  padding: 0 1rem;
  background: var(--surface-card);
  z-index: 1000;
}

/* Optional: hide footer in fullscreen */
body.is-fullscreen .layout-footer {
  display: none !important;
}

/* Mask off in fullscreen */
body.is-fullscreen .layout-mask {
  display: none !important;
}

/* Content should sit under topbar */
body.is-fullscreen .layout-main-container {
  margin: 0;
  padding: 6rem 1rem 0 1rem;
  min-height: 100vh;
}

/* App root fills remaining height */
body.is-fullscreen #app-root {
  min-height: calc(100vh - 6rem);
}

/* ===========================
   Defensive: prevent flip on FS icon
   =========================== */

/* Keep the button + SVG from inheriting weird transforms */
#fullscreenBtn,
#fullscreenBtn .fs-icon,
#fullscreenBtn svg,
#fullscreenBtn .fs-ico,
#fullscreenBtn .fs-ico path {
  transform: none !important;
  transform-origin: center !important;
}