
:root {
    --fs-scale: 1;
    --app-brand: #007db9;
    --app-accent: #00a082;
    --app-nav-badge: #e16446;
    --card-radius: 0.75rem;
    --fs-14: calc(.875rem * var(--fs-scale));
    --fs-18: calc(1.125rem * var(--fs-scale));
}

.segment-header:not([style*="background-color"]):not(:has(> .dividing.header)) {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 !important;
  padding: 1rem 1.5rem !important;
  border: none !important;
  box-shadow: none !important;
  border-top-left-radius: var(--card-radius) !important;
  border-top-right-radius: var(--card-radius) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  color: #ffffff !important;
  background: linear-gradient(100deg, #00a082 0%, #0e7f80 32%, #007db9 100%) !important;
}

.segment-header:not([style*="background-color"]):not(:has(> .dividing.header)) > h3,
.segment-header:not([style*="background-color"]):not(:has(> .dividing.header)) > .header,
.segment-header:not([style*="background-color"]):not(:has(> .dividing.header)) .segment-header__title {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.segment-header:not([style*="background-color"]):not(.segment-header--pending):has(> .dividing.header) {
  color: #ffffff !important;
  background: linear-gradient(100deg, #00a082 0%, #0e7f80 32%, #007db9 100%) !important;
}

.segment-header:not([style*="background-color"]):not(.segment-header--pending):has(> .dividing.header) > .dividing.header {
  color: #ffffff !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.segment-header.segment-header--pending {
    color: rgb(75, 68, 55) !important;
    background: rgb(255, 251, 243) !important;
}
.segment-header.segment-header--pending > .dividing.header,
.segment-header.segment-header--pending > h3,
.segment-header.segment-header--pending > .header {
  color: rgb(75, 68, 55) !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.segment-header.segment-header--pending .statistic-white > .value,
.segment-header.segment-header--pending .statistic-white > .label {
  color: rgb(75, 68, 55) !important;
}

.segment-header[style*="background-color"] > h3,
.segment-header[style*="background-color"] > .header {
  color: #ffffff !important;
}

.segment-header:has(.statistics) {
  display: block !important;
}

.segment-header__action {
  flex-shrink: 0;
  padding: 0.625rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: #ffffff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.segment-header__action:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  padding: 0.75rem 2rem;
  border: 1px solid #00a082;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #00a082;
  font-family: "Noto Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 8px 20px -12px rgba(0, 160, 130, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.2s ease, transform 0.12s ease, filter 0.15s ease;
}
.btn:hover:not(:disabled):not(.disabled) {
  background: #f0faf7;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(0, 160, 130, 0.4);
}
.btn:active:not(:disabled):not(.disabled) {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px -8px rgba(0, 160, 130, 0.35);
}
.btn + .btn {
  margin-left: 0.25rem;
}
[style*="gap"] > .btn + .btn,
.main-content .ui.buttons > .btn + .btn {
  margin-left: 0;
}
.btn > i.icon {
  margin: 0;
  height: auto;
  font-size: 1em;
}
.btn.btn-icon {
  padding: 0.625rem;
  gap: 0;
}
.btn.btn-success {
  background: #00a082 !important;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px -10px rgba(0, 160, 130, 0.7);
}
.btn.btn-success:hover:not(:disabled):not(.disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(0, 160, 130, 0.75);
}
.btn.btn-success:active:not(:disabled):not(.disabled) {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px -8px rgba(0, 160, 130, 0.7);
}
.btn.btn-red {
  background: #ffffff;
  border-color: #e16446;
  color: #e16446;
  box-shadow: none;
}
.btn.btn-red:hover:not(:disabled):not(.disabled) {
  background: #fef2f2;
}
.btn.btn-red:active:not(:disabled):not(.disabled) {
  background: #fee2e2;
  transform: scale(0.98);
}
.btn.btn-white {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}
.btn.btn-white:hover:not(:disabled):not(.disabled) {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  transform: none;
}
.btn:focus-visible {
  outline: 2px solid rgba(0, 125, 185, 0.4);
  outline-offset: 2px;
}
.btn:disabled,
.btn.disabled {
  cursor: default;
  transform: none;
  filter: none;
  box-shadow: none;
  pointer-events: none;
  opacity: 0.6;
}
.btn.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 12px;
  border-radius: 0.5rem;
  box-shadow: 0 3px 8px -6px rgba(0, 160, 130, 0.35);
}
.btn.btn-sm.btn-success {
  box-shadow: 0 3px 8px -5px rgba(0, 160, 130, 0.55);
}
.btn.btn-sm.btn-icon {
  padding: 0.375rem;
}
.btn.btn-fluid {
  width: 100%;
}
.btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  cursor: default;
}
.btn.loading > * {
  visibility: hidden;
}
.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1em;
  height: 1.1em;
  margin: -0.55em 0 0 -0.55em;
  border-radius: 50%;
  border: 2px solid rgba(0, 160, 130, 0.25);
  border-top-color: #00a082;
  animation: btn-spin 0.6s linear infinite;
}
.btn.btn-success.loading::after {
  border-color: rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
}
.btn.btn-red.loading::after {
  border-color: rgba(225, 100, 70, 0.25);
  border-top-color: #e16446;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.main-content .float-right {
  float: right;
}
.main-content .ui.buttons {
  display: inline-flex;
  gap: 0.25rem;
  background: none;
  box-shadow: none;
}

.main-content .ui.segments {
  border-radius: var(--card-radius) !important;
}

.main-content .ui.segments > *:last-child {
  border-bottom-left-radius: var(--card-radius) !important;
  border-bottom-right-radius: var(--card-radius) !important;
}

.main-content .segment-header + .ui.segment {
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

@media only screen and (min-width: 940px) {
  .app-viewport {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }

  .app-viewport > .app-header {
    flex: 0 0 auto;
  }

  .app-viewport > .app-shell {
    flex: 1 1 auto;
    min-height: 0;
  }
}

.app-shell {
  display: flex;
  align-items: stretch;
  background: #ffffff;
}

.main-content {
  flex: 1 1 auto;
  min-width: 0;
  overflow: auto;
  padding: 1.75rem 1.5rem;
}

.main-content .ui.grid {
  margin: 0 !important;
  padding:  0 !important;
}

.login-desktop.ui.grid {
  margin: 0 !important;
}

.fullscreen-toggle {
  position: fixed;
  bottom: 30px;
  z-index: 99999;
  display: flex;
  color: #6b7077;
}

.fullscreen-toggle:hover {
  color: #1f2226;
}

.fullscreen-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-header {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  padding: 0.625rem 1.5rem 0.625rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  font-family: -apple-system, system-ui, sans-serif;
}

.app-header__logo {
  flex-shrink: 0;
  height: 2.25rem;
  width: auto;
  display: block;
}

.app-header__divider {
  flex-shrink: 0;
  align-self: stretch;
  width: 1px;
  background: #e2e8f0;
}

.app-header__spacer {
  flex: 1 1 0;
  min-width: 0;
}

.app-header__impersonate {
  flex-shrink: 0;
  margin: 0;
}

.app-header__group {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.app-header__radios {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 12px;
  color: #475569;
}

.app-header__radio {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  cursor: pointer;
}

.app-header__radio input {
  margin: 0;
  accent-color: var(--app-brand);
  cursor: pointer;
}

.app-header__impersonating {
  font-size: 12.5px;
  color: #475569;
}

.app-header__greeting {
  flex-shrink: 0;
  font-size: 12.5px;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
}

.app-header__greeting strong {
  font-weight: 500;
  color: #0f172a;
}

.app-header__greeting:hover strong {
  text-decoration: underline;
}

.app-header a:not(.app-btn) {
  transition: none !important;
}

.app-header a:not(.app-btn):hover,
.app-header a:not(.app-btn):focus,
.app-header a:not(.app-btn):active {
  background: transparent !important;
}

.app-header__logout {
  flex-shrink: 0;
  margin: 0;
}

.app-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    filter 0.15s ease,
    border-color 0.15s ease;
}

.app-btn:hover {
  filter: brightness(1.05);
}

.app-btn:disabled {
  opacity: 0.6;
  cursor: default;
  filter: none;
}

.app-btn__icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-btn--ghost {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-weight: 500;
  color: #334155;
}

.app-btn--ghost:hover {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
  filter: none;
}

.app-btn--ghost:focus,
.app-btn--ghost:active {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: none !important;
  filter: none;
}

.app-btn--ghost:focus-visible {
  outline: 2px solid rgba(0, 125, 185, 0.35);
  outline-offset: 1px;
}

.app-btn--brand {
  padding: 0.625rem 0.875rem;
  background: var(--app-brand);
  color: #ffffff;
}

.app-btn--accent {
  background: var(--app-accent);
  color: #ffffff;
}

@media only screen and (max-width: 1180px) {
  .app-btn--collapsible {
    padding: 0.625rem;
  }

  .app-btn--collapsible .app-btn__label {
    display: none;
  }
}

.app-header .app-header__select.ui.selection.dropdown {
  min-width: 150px;
  min-height: 0;
  margin: 0;
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 12.5px;
  line-height: 1.35;
  color: #334155;
}

.app-header .app-header__select.ui.selection.dropdown:hover {
  border-color: #cbd5e1;
}

.app-header .app-header__select.ui.selection.dropdown.active:not(.error),
.app-header .app-header__select.ui.selection.dropdown:focus-within {
  border-color: rgba(0, 125, 185, 0.4);
  box-shadow: 0 0 0 2px rgba(0, 125, 185, 0.15);
}

.app-header .app-header__select.ui.selection.dropdown > .dropdown.icon {
  top: 50%;
  right: 0.625rem;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  color: #94a3b8;
}

.app-header .app-header__select.ui.selection.dropdown > input.search {
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  line-height: 1.35;
}

.app-header .app-header__select.ui.selection.dropdown > .text {
  line-height: 1.35;
}

.app-header .app-header__select.ui.selection.dropdown > .default.text {
  color: #94a3b8;
}

.app-header .app-header__select.ui.selection.dropdown > .menu {
  border-color: #e2e8f0;
  border-radius: 0 0 0.5rem 0.5rem;
  font-size: 12.5px;
}

.main-nav {
  display: flex;
  flex-direction: column;
  flex: 0 0 248px;
  width: 248px;
  min-height: 0;
  align-self: stretch;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  overflow: hidden;
}

.nav-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.main-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.75rem 0.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.main-nav__list::-webkit-scrollbar {
  display: none;
}

.main-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 13.5px;
  line-height: 1.35;
  color: #3a3d42;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.main-nav .nav-item:hover {
  background: #f8fafc;
  color: #1f2226;
}

.main-nav .nav-item.active {
  background: #f1f5f9;
  color: #2c2f33;
  font-weight: 600;
}

.main-nav .nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.375rem;
  bottom: 0.375rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--app-accent);
}

.main-nav .nav-item__icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #6b7077;
  transition: color 0.15s ease;
}

.main-nav .nav-item.active .nav-item__icon {
  color: var(--app-accent);
}

.main-nav .nav-item__label {
  flex: 1;
  min-width: 0;
}

.main-nav .nav-item__badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--app-nav-badge);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .625rem
}

.modal-btn {
    border-radius: .75rem;
    cursor: pointer;
    height: 44px;
    font-size: var(--fs-14);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    -webkit-tap-highlight-color: transparent
}

.modal-btn--secondary {
    border: 1px solid #e2e8f0;
    background: transparent;
    color: #45556c;
    font-weight: 500
}

    .modal-btn--secondary:hover {
        background: #f8fafc
    }

.modal-btn--primary {
    background: #00a082;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 20px -10px #00a082b3;
    border: 0px white solid
}

    .modal-btn--primary:hover {
        box-shadow: 0 12px 24px -10px #00a082bf
    }

.modal-btn:focus, .modal-btn:focus-visible, .modal-header__close:focus, .modal-header__close:focus-visible {
    outline: none
}

.modal-btn, .modal-header__close {
    transition: transform .12s ease,box-shadow .2s ease,background-color .2s ease
}

    .modal-btn:active {
        transform: scale(.98)
    }

.modal-btn--primary:active {
    box-shadow: 0 4px 12px -8px #00a082b3
}

.modal-header__close:active {
    transform: scale(.9)
}

.modal-actions--single {
    grid-template-columns: 1fr
}

.modal-btn.disabled, .modal-btn:disabled {
    opacity: .6;
    pointer-events: none
}

.modal-header__close {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #fff;
    border-radius: 9999px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.modal-header__close::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background-color: rgba(255, 255, 255, 0.18);
    opacity: 0;
    transform: scale(0.4);
    transition: transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.15s ease;
}

.modal-header__close:hover::before,
.modal-header__close:focus-visible::before {
    opacity: 1;
    transform: scale(1);
}

.modal-header__close > * {
    position: relative;
    z-index: 1;
}

.modal-header__close svg {
    width: var(--icon-20);
    height: var(--icon-20);
}

/* No focus outline on any modal button (matches the design). */
.modal-btn:focus,
.modal-btn:focus-visible,
.modal-header__close:focus,
.modal-header__close:focus-visible {
    outline: none;
}

.modal-header__close:active {
    transform: scale(0.9);
}


.ui.table.kanadevia > thead {
    background-image: linear-gradient(100deg, #00a082 0%, #0e7f80 32%, #007db9 100%) !important;
}
.ui.table.kanadevia > thead th {
    color: #fff;
    background: none;
}

@media print {
    .app-viewport {
        display: block;
        height: auto;
        overflow: visible;
    }

    .main-content {
        overflow: visible;
        padding: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .modal-btn,
    .modal-header__close,
    .modal-header__close::before {
        transition: none;
    }

        .modal-btn:active,
        .modal-header__close:active {
            transform: none;
        }
}