/* Blintzar Modern Tech - Proportional Scale, Layout Spacing, Hidden Drawers, Themes & Animations */
html {
  font-size: 14.5px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

body {
  overflow-x: hidden;
}

.font-mono {
  font-family: inherit !important;
  font-variant-numeric: tabular-nums;
}

form .grid>*,
.portal-card .grid>*,
main .grid>* {
  min-width: 0;
}

select,
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea {
  max-width: 100%;
  box-sizing: border-box;
}

select {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.shrink-0 {
  flex-shrink: 0;
}

.h-8 {
  height: 2rem;
}

.min-w-\[40px\] {
  min-width: 40px;
}

.min-w-\[38px\] {
  min-width: 38px;
}

.min-h-\[34px\] {
  min-height: 34px;
}

.min-h-\[32px\] {
  min-height: 32px;
}

.min-h-\[30px\] {
  min-height: 30px;
}

.text-\[17px\] {
  font-size: 17px;
}

.p-2\.5 {
  padding: 0.625rem;
}

@media (min-width: 640px) {
  .sm\:p-4 {
    padding: 1rem;
  }

  .sm\:w-52 {
    width: 13rem;
  }
}

@media (min-width: 1280px) {
  .xl\:inline-flex {
    display: inline-flex;
  }
}

.w-\[285px\] {
  width: 285px;
}

.w-\[300px\] {
  width: 300px;
}

.max-w-\[calc\(100vw-20px\)\] {
  max-width: calc(100vw - 20px);
}

.rounded-\[22px\] {
  border-radius: 22px;
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(11, 42, 111, 0.25);
}

@keyframes blintzarFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blintzarSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes blintzarFloatSlow {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes blintzarPulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 191, 52, 0.55);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(245, 191, 52, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 191, 52, 0);
  }
}

@keyframes blintzarPulseLive {

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

  50% {
    opacity: 0.45;
    transform: scale(1.25);
  }
}

.blintzar-fade-up {
  animation: blintzarFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.blintzar-drawer-panel {
  animation: blintzarSlideInLeft 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.blintzar-float-slow {
  animation: blintzarFloatSlow 4.5s ease-in-out infinite;
}

.blintzar-wa-pulse {
  animation: blintzarPulseRing 2.8s ease-out infinite;
}

.blintzar-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #22c55e;
  display: inline-block;
  animation: blintzarPulseLive 1.8s ease-in-out infinite;
}

.blintzar-card-hover {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.blintzar-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(11, 42, 111, 0.12);
}

.blintzar-img-zoom {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.group:hover .blintzar-img-zoom,
.blintzar-card-hover:hover .blintzar-img-zoom {
  transform: scale(1.06);
}

.material-fill {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* Explicit utility helpers omitted from prebuilt static CSS */
.object-cover {
  object-fit: cover;
}

.h-36 {
  height: 9rem;
}

.h-44 {
  height: 11rem;
}

.h-52 {
  height: 13rem;
}

.h-56 {
  height: 14rem;
}

.h-60 {
  height: 15rem;
}

.h-64 {
  height: 16rem;
}

.w-11 {
  width: 2.75rem;
}

.h-11 {
  height: 2.75rem;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-\[256px\] {
  width: 256px;
}

.w-\[290px\] {
  width: 290px;
}

.bottom-3 {
  bottom: 0.75rem;
}

.bottom-4 {
  bottom: 1rem;
}

.left-0 {
  left: 0;
}

.left-3 {
  left: 0.75rem;
}

.right-3 {
  right: 0.75rem;
}

.top-3 {
  top: 0.75rem;
}

.top-16 {
  top: 4rem;
}

.left-1\/2 {
  left: 50%;
}

.-translate-x-1\/2 {
  transform: translateX(-50%);
}

.bg-\[\#0B1220\] {
  background-color: #0b1220 !important;
}

.bg-\[\#00174C\]\/90 {
  background-color: rgba(0, 23, 76, 0.90) !important;
}

@media (min-width: 1280px) {
  .xl\:flex {
    display: flex;
  }

  .xl\:pl-\[256px\] {
    padding-left: 256px;
  }

  .xl\:ml-\[128px\] {
    margin-left: 128px;
  }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.blintzar-pc-dock {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(11, 42, 111, 0.14);
  box-shadow: 0 12px 36px rgba(11, 42, 111, 0.16);
}

/* Portal Staff Background Themes */
body.portal-theme-light {
  background: linear-gradient(135deg, #f3f7ff 0%, #eaf0ff 100%);
  color: #171c21;
}

body.portal-theme-dark {
  background: radial-gradient(circle at top right, #162447 0%, #0b1220 65%);
  color: #f1f5f9;
}

body.portal-theme-neon {
  background: linear-gradient(135deg, #060b19 0%, #0d1f4d 50%, #102a72 100%);
  color: #f8fafc;
}

body.portal-theme-emerald {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #064e3b;
}

body.portal-theme-amber {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #451a03;
}

body.portal-theme-dark .portal-card,
body.portal-theme-neon .portal-card,
body.portal-theme-dark main .bg-surface-container-lowest,
body.portal-theme-neon main .bg-surface-container-lowest,
body.portal-theme-dark #portal-mobile-drawer aside,
body.portal-theme-neon #portal-mobile-drawer aside {
  background-color: rgba(17, 27, 49, 0.94) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #f8fafc !important;
}

body.portal-theme-dark main input:not([type="checkbox"]):not([type="radio"]),
body.portal-theme-dark main select,
body.portal-theme-dark main textarea,
body.portal-theme-dark .portal-card input:not([type="checkbox"]):not([type="radio"]),
body.portal-theme-dark .portal-card select,
body.portal-theme-dark .portal-card textarea,
body.portal-theme-neon main input:not([type="checkbox"]):not([type="radio"]),
body.portal-theme-neon main select,
body.portal-theme-neon main textarea,
body.portal-theme-neon .portal-card input:not([type="checkbox"]):not([type="radio"]),
body.portal-theme-neon .portal-card select,
body.portal-theme-neon .portal-card textarea {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.4) !important;
}

body.portal-theme-dark main input::placeholder,
body.portal-theme-dark main textarea::placeholder,
body.portal-theme-neon main input::placeholder,
body.portal-theme-neon main textarea::placeholder {
  color: #94a3b8 !important;
}

body.portal-theme-dark main select option,
body.portal-theme-neon main select option {
  background-color: #0f172a;
  color: #f8fafc;
}

body.portal-theme-dark main .text-on-surface,
body.portal-theme-dark main .text-navy,
body.portal-theme-neon main .text-on-surface,
body.portal-theme-neon main .text-navy {
  color: #f1f5f9 !important;
}

body.portal-theme-dark main .text-on-surface-variant,
body.portal-theme-neon main .text-on-surface-variant {
  color: #cbd5e1 !important;
}

body.portal-theme-dark main .text-primary,
body.portal-theme-neon main .text-primary {
  color: #60a5fa !important;
}

body.portal-theme-dark .bg-surface-container-low,
body.portal-theme-dark .bg-surface-container,
body.portal-theme-dark .bg-surface-container-high,
body.portal-theme-neon .bg-surface-container-low,
body.portal-theme-neon .bg-surface-container,
body.portal-theme-neon .bg-surface-container-high {
  background-color: rgba(30, 41, 59, 0.85) !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}

body.portal-theme-dark .bg-secondary-fixed,
body.portal-theme-dark .bg-secondary-fixed *,
body.portal-theme-neon .bg-secondary-fixed,
body.portal-theme-neon .bg-secondary-fixed * {
  color: #0b2a6f !important;
}

body.portal-theme-dark main .bg-primary,
body.portal-theme-dark main .bg-primary *,
body.portal-theme-dark main .bg-navy,
body.portal-theme-dark main .bg-navy *,
body.portal-theme-neon main .bg-primary,
body.portal-theme-neon main .bg-primary *,
body.portal-theme-neon main .bg-navy,
body.portal-theme-neon main .bg-navy * {
  color: #ffffff !important;
}

body.portal-theme-dark main .bg-tertiary-fixed-dim,
body.portal-theme-dark main .bg-tertiary-fixed-dim *,
body.portal-theme-neon main .bg-tertiary-fixed-dim,
body.portal-theme-neon main .bg-tertiary-fixed-dim * {
  color: #261a00 !important;
}

body.portal-theme-dark main .border-navy\/10,
body.portal-theme-dark main .border-navy\/15,
body.portal-theme-dark main .border-navy\/20,
body.portal-theme-neon main .border-navy\/10,
body.portal-theme-neon main .border-navy\/15,
body.portal-theme-neon main .border-navy\/20 {
  border-color: rgba(148, 163, 184, 0.25) !important;
}

body.portal-theme-dark .portal-sidebar-link:not(.bg-primary),
body.portal-theme-neon .portal-sidebar-link:not(.bg-primary) {
  color: #e2e8f0 !important;
}

/* Service Progress Pipeline Track */
.srv-step-line {
  height: 4px;
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* Staff Organizational Tree Diagram */
.org-tree-trunk {
  width: 3px;
  height: 26px;
  background: linear-gradient(180deg, #1e5bff 0%, #f5bf34 100%);
  margin: 0 auto;
  border-radius: 999px;
}

.org-tree-stem {
  width: 2px;
  height: 18px;
  background: linear-gradient(180deg, #1e5bff 0%, rgba(30, 91, 255, 0.35) 100%);
  margin: 0 auto;
}

.org-tree-hbar {
  height: 3px;
  background: linear-gradient(90deg, rgba(30, 91, 255, 0.2) 5%, #1e5bff 20%, #f5bf34 50%, #1e5bff 80%, rgba(30, 91, 255, 0.2) 95%);
  border-radius: 999px;
  margin: 0 auto;
  width: 82%;
}

.org-tree-node {
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.org-tree-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(11, 42, 111, 0.14);
}

.org-tree-dot {
  width: 11px;
  height: 11px;
  border-radius: 9999px;
  background-color: #1e5bff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(30, 91, 255, 0.25);
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {

  .blintzar-fade-up,
  .blintzar-drawer-panel,
  .blintzar-float-slow,
  .blintzar-wa-pulse,
  .blintzar-live-dot {
    animation: none !important;
  }
}