/* ─── Google Font (за потреби замінити на локальний) ─── */
/*@import url('fonts.css');*/

/* ─── CSS Variables ─── */
:root {
    --ro-deep:       #0a2540;
    --ro-ocean:      #0d6efd;
    --ro-sky:        #4db8ff;
    --ro-foam:       #e8f4fd;
    --ro-glass:      rgba(255,255,255,0.72);
    --ro-shadow:     0 8px 32px rgba(13,110,253,.18);
    --ro-success-bg: #d1fae5;
    --ro-error-bg:   #fee2e2;

    /* Brand Colors */
    --color-brand-primary:      #093983; /* Catalina Blue (основной Akvantis) */
    --color-brand-accent:       #0d6efd; /* Ocean Blue */
    --color-brand-light:        #4db8ff; /* Sky Blue */

    /* Neutral / Surface */
    --color-surface-night:      #0a2540; /* Глубокий синий для хедера/карточек */
    --color-surface-arctic:     #f8fafc; /* Светлый фон (Arctic White) */
    --color-surface-slate:      #1e293b; /* Тёмный текст или акценты */
    --color-surface-foam:       #e8f4fd; /* Очень светлый голубой для выделения */

    /* Utility */
    --color-glass-white:        rgba(255, 255, 255, 0.72);
    --color-border-subtle:      rgba(13, 110, 253, 0.15);
    --color-status-success:     #d1fae5;
    --color-status-error:       #fee2e2;
    --color-text-main:          #334155;
    --color-text-muted:         #64748b;

    /* Shadows & Effects */
    --shadow-premium:           0 8px 32px rgba(9, 57, 131, 0.12);
    --radius-standard:          12px;
}
/* 
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
} */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/inter:vf@latest/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html{/*
    background:
            radial-gradient(ellipse 80% 60% at 20% 10%, rgba(77,184,255,.22) 0%, transparent 70%),
            radial-gradient(ellipse 70% 80% at 85% 90%, rgba(13,110,253,.18) 0%, transparent 65%),
            linear-gradient(160deg, #e8f4fd 0%, #c8e6f8 35%, #a0cff0 70%, #79b8ea 100%);*/
}

body {
    background: #d1d1d1;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    /*display: flex;*/
    /*flex-direction: column;*/
    margin: 0;
    background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0,0,0,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 70% 80% at 85% 90%, rgba(0,0,0,0.05) 0%, transparent 65%),
    linear-gradient(160deg, #f3f4f6 0%, #e5e7eb 35%, #d1d5db 70%, #cbd5e1 100%);
    overflow-x: hidden;
    z-index: 0;
    position: relative;
}

/* ─── Animated bubbles ─── */
.bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.bubble {
    position: absolute;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(2px);
    animation: rise linear infinite;
}
@keyframes rise {
    0%   { transform: translateY(0) scale(1);      opacity: .7; }
    100% { transform: translateY(-110vh) scale(1.1); opacity: 0; }
}

.product-image {
    margin: 0;
    display: inline-block;
    text-align: right;
}

.product-image img {
    display: block;
}

.product-image figcaption {
    margin-top: -2px;
    font-size: 0.70rem;
    color: #666;
}

/* Language switcher */
.lang-switcher { display: flex; gap: 7px; min-width: 180px; }
.lang-switcher .lang-btn {
    font-size: .78rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1.5px solid rgba(13,110,253,.3);
}

.logout .btn {
    font-size: .80rem;
}

/* ─── CARD ─── */
.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--ro-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 24px;
    box-shadow: var(--ro-shadow), inset 0 1px 0 rgba(255,255,255,0.8);
    padding: 2.5rem 2.25rem 2rem;
    animation: cardIn .55s cubic-bezier(.22,1,.36,1) both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(28px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    color: var(--ro-deep);
    letter-spacing: -.3px;
}
.card-subtitle {
    font-size: .85rem;
    color: #5a7fa0;
    margin-bottom: 1.6rem;
}

/* ─── Alerts ─── */
.alert-ro {
    border-radius: 12px;
    font-size: .875rem;
    border: none;
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: .75rem 1rem;
    animation: fadeSlide .3s ease both;
}
.alert-ro.show { display: flex; }
@keyframes fadeSlide {
    from { opacity:0; transform: translateY(-6px); }
    to   { opacity:1; transform: none; }
}
.alert-success-ro { background: var(--ro-success-bg); color: #065f46; }
.alert-error-ro   { background: var(--ro-error-bg);   color: #991b1b; }
.alert-ro .alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.alert-ro .alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: .6;
    color: inherit;
    padding: 0;
    line-height: 1;
}
.alert-ro .alert-close:hover { opacity: 1; }

/* ─── Form ─── */
.form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #3a5a78;
    margin-bottom: 5px;
    letter-spacing: .2px;
}
.input-group-text {
    background: rgba(13,110,253,.07);
    border: 1.5px solid rgba(13,110,253,.2);
    border-right: none;
    color: var(--ro-ocean);
    font-size: .95rem;
}
.form-control {
    border: 1.5px solid rgba(13,110,253,.2);
    background: rgba(255,255,255,0.65);
    font-family: 'Inter', sans-serif;
    color: var(--ro-deep);
    transition: border-color .2s, box-shadow .2s;
}
.input-group > .input-group-text { border-radius: 10px 0 0 10px; }
.form-control:focus {
    border-color: var(--ro-ocean);
    background: rgba(255,255,255,0.85);
    box-shadow: 0 0 0 3px rgba(13,110,253,.12);
    outline: none;
}
.form-control::placeholder { color: #a0b8cc; }

/* Password toggle */
.pw-group { position: relative; }
.pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7ca0be;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    z-index: 5;
    transition: color .2s;
}
.pw-toggle:hover { color: var(--ro-ocean); }

/* Checkbox */
.form-check-input {
    border: 1.5px solid rgba(13,110,253,.3);
    border-radius: 5px;
    cursor: pointer;
}
.form-check-input:checked { background-color: var(--ro-ocean); border-color: var(--ro-ocean); }
.form-check-label { font-size: .88rem; color: #4a6a88; cursor: pointer; }

/* Submit button */
.btn-ro {
    background: linear-gradient(135deg, #4db8ff 0%, #0d6efd 60%, #0a58ca 100%);
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .5px;
    border-radius: 12px;
    padding: .7rem 1rem;
    width: 100%;
    transition: transform .15s, box-shadow .2s, filter .2s;
    box-shadow: 0 5px 18px rgba(13,110,253,.4);
}
.btn-ro:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(13,110,253,.5); filter: brightness(1.06); color: #fff; }
.btn-ro:active { transform: translateY(0); }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.4rem 0 0;
}
.divider-line { flex:1; height: 1px; background: rgba(13,110,253,.15); }
.divider-drop { font-size: 1rem; color: rgba(13,110,253,.35); }

footer {
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.55);
    padding: .7rem 1.5rem;
    gap: 1.5rem;
    font-size: .78rem;
    color: #5a7fa0;
}

.version-badge {
    background: rgba(13,110,253,.1);
    color: var(--ro-ocean);
    padding: 4px 8px;
    border-radius: 20px;
    font-family: 'Inter', monospace;
    font-size: .72rem;
    font-weight: 600;
}

main {
    padding-top: 70px;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: #0000001a;
    border: solid rgba(0, 0, 0, 0.15);
    border-width: 1px 0;
    box-shadow: inset 0 0.5em 1.5em #0000001a,
    inset 0 0.125em 0.5em #00000026;
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -0.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
    z-index: 1500;
}

.bd-mode-toggle .bi {
    width: 1em;
    height: 1em;
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}

.table-wrapper{
    overflow-y: auto;
}
/*
.table-wrapper thead th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.table-wrapper tfoot th {
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 2;
}*/

.table {
    margin-bottom: 0;
}

.navbar {
    white-space: nowrap;
}

.navbar-nav {
    flex-wrap: nowrap;
}


/* unit status indicator */
:root{
    --brand-panding: rgb(169, 42, 219);
    --panding-line-gradient: linear-gradient(
        to right, 
        transparent 0%, 
        var(--brand-panding) 30%, 
        var(--brand-panding) 70%, 
        transparent 100%
    );
    --brand-blue: rgba(42, 110, 219, 1);
    --blue-line-gradient: linear-gradient(
        to right, 
        transparent 0%, 
        var(--brand-blue) 30%, 
        var(--brand-blue) 70%, 
        transparent 100%
    );
    --brand-red: rgb(219, 42, 42);
    --red-line-gradient: linear-gradient(
        to right, 
        transparent 0%, 
        var(--brand-red) 30%, 
        var(--brand-red) 70%, 
        transparent 100%
    );

    --brand-first-step: rgb(250, 100, 100);
    --first-step-line-gradient: linear-gradient(
        to right, 
        transparent 0%, 
        var(--brand-first-step) 30%, 
        var(--brand-first-step) 70%, 
        transparent 100%
    );

    --brand-first-step: rgb(250, 100, 100);
    --brand-second-step: rgb(250, 150, 100);
    --brand-third-step: rgb(250, 200, 100);
    --brand-fourth-step: rgb(250, 250, 100);
    --brand-fifth-step: rgb(200, 250, 100);
    --brand-sixth-step: rgb(150, 250, 100);
    --brand-seventh-step: rgb(100, 250, 100);/**/
    --brand-eighth-step: rgb(100, 250, 150);
    --brand-ninth-step: rgb(100, 250, 200);
    --brand-tenth-step: rgb(100, 250, 250);
    --brand-eleventh-step: rgb(100, 200, 250);
    --brand-twelfth-step: rgb(100, 150, 250);
    --brand-thirteenth-step: rgb(100, 100, 250);
    
    --qa-blocked-color: rgb(219, 42, 42);

    --bg-checklist-panding: #e8edf2;
    --bg-checklist-done: #eaf5ea;
    --bg-checklist-fail: #fdecea;
    
    --bg-linear-gradient: linear-gradient(
        to right, 
        transparent 0%, 
        var(--bg-color, #cfcfcf) 30%, 
        var(--bg-color, #cfcfcf) 70%, 
        transparent 100%
    );

    --bg-color-none:                 #cfcfcf;
    --bg-color-METAL_SHOP:           hsl(0, 94%, 69%);
    --bg-color-UA_ASSEMBLY_TRANSIT:  hsl(20, 94%, 69%);
    --bg-color-UA_ASSEMBLY:          hsl(40, 94%, 69%);
    --bg-color-UA_ASSEMBLY_COMPLETE: hsl(60, 94%, 69%);
    --bg-color-DE_ASSEMBLY_TRANSIT:  hsl(80, 94%, 69%);
    --bg-color-DE_ASSEMBLY:          hsl(140, 94%, 69%);
    --bg-color-DE_ASSEMBLY_COMPLETE: hsl(180, 94%, 69%);
    --bg-color-PACKAGING:            hsl(200, 94%, 69%);
    --bg-color-SHIPPING:             hsl(240, 94%, 69%);




}

.min-width-cell {
    width: 1%;
    white-space: nowrap;
}

.badge-qa {
    --h: 103; 
    --s: 51%; 
    --l: 19%; 
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;

    background-color: hsl(var(--h), var(--s), calc(var(--l) + 25%));
    border: 2px solid hsl(var(--h), var(--s), calc(var(--l) + 10%));
    color: hsl(var(--h), var(--s), calc(var(--l) - 30%));
    font-size: 0.7rem;
}

.badge-qa.block {--h: 0; --s: 95%; --l: 43%;}

.badge-stage {
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;

    background-color: hsl(var(--h), var(--s), calc(var(--l) + 25%));
    border: 2px solid hsl(var(--h), var(--s), calc(var(--l) + 10%));
    color: hsl(var(--h), var(--s), calc(var(--l) - 30%));
    font-size: 0.7rem;
}

.badge-stage-METAL_SHOP           {--h: 0; --s: 94%; --l: 69%;}
.badge-stage-UA_ASSEMBLY_TRANSIT  {--h: 20; --s: 94%; --l: 69%;}
.badge-stage-UA_ASSEMBLY          {--h: 40; --s: 94%; --l: 69%;}
.badge-stage-UA_ASSEMBLY_COMPLETE {--h: 60; --s: 94%; --l: 69%;}
.badge-stage-DE_ASSEMBLY_TRANSIT  {--h: 80; --s: 94%; --l: 69%;}
.badge-stage-DE_ASSEMBLY          {--h: 140; --s: 94%; --l: 69%;}
.badge-stage-DE_ASSEMBLY_COMPLETE {--h: 180; --s: 94%; --l: 69%;}
.badge-stage-SHIPPING             {--h: 200; --s: 94%; --l: 69%;}
.badge-stage-SHIPPING             {--h: 240; --s: 94%; --l: 69%;}


.gradient-line {
  /* Используем переменную --bg-color, по умолчанию красную */
  background: linear-gradient(
    to right, 
    transparent 0%, 
    var(--bg-color, #cfcfcf) 30%, 
    var(--bg-color, #cfcfcf) 70%, 
    transparent 100%
  );
}

.system-status {
    overflow: visible;
    height: 40px;
    padding: 0 20px;/*
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0,0,0,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 70% 80% at 85% 90%, rgba(0,0,0,0.04) 0%, transparent 65%),
        linear-gradient(160deg, #f5f7fa 0%, #eef2f6 35%, #e6ebf1 70%, #dde3ea 100%);*/
}

.steps{display:flex;justify-content:space-between;position:relative;  overflow: hidden}
.steps::before{content:"";position:absolute;left:0;right:0;top:18px;height:3px;background:#cfcfcf;z-index:0;}

.steps .step {text-align:center;position:relative;flex:1;}

.steps .step        .label{margin-top:20px;}
.steps .step.active .label{margin-top:15px;}

.steps .step.active::before{content:"";position:absolute;left:-35%;right:0;top:18px;height:3px;width:170%;z-index:0;
    background: linear-gradient(
        to right, 
        transparent 0%, 
        var(--bg-color, #cfcfcf) 30%, 
        var(--bg-color, #cfcfcf) 70%, 
        transparent 100%
    );
}

.steps .step        .circle{width:16px;height:16px;border:#cfcfcf 2px solid;margin:auto;margin-top:12px;border-radius:50%;position:relative;z-index:2;}
.steps .step.active .circle{width:26px;height:26px;margin-top: 7px;border:#cfcfcf 7px solid; border-color: var(--bg-color, #cfcfcf);}

/* --- high priority --- */
.steps.qa-blocked::before{background: var(--qa-blocked-color);}
.steps.qa-blocked .step .circle{border-color: var(--qa-blocked-color);}
.steps.qa-blocked .step.active::before{background: var(--qa-blocked-color);}
/* --------------------- */


.custom-scroll-unit {
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #f5f7fa #e9ecef;;

  /* Chrome, Edge, Safari */
  &::-webkit-scrollbar {
    width: 0px;
  }
  &::-webkit-scrollbar-track {
    background: #ffffff;
  }
  &::-webkit-scrollbar-thumb {
    background: var(--bg-checklist-panding);
    border-radius: 0px;
  }
}



.custom-scroll-panding {
  /* Firefox */
  scrollbar-width: none;
  scrollbar-color: var(--bg-checklist-panding) #ffffff;

  /* Chrome, Edge, Safari */
  &::-webkit-scrollbar {
    width: 0px;
  }
  &::-webkit-scrollbar-track {
    background: #ffffff;
  }
  &::-webkit-scrollbar-thumb {
    background: var(--bg-checklist-panding);
    border-radius: 0px;
  }
}

.custom-scroll-done {
  /* Firefox */
  scrollbar-width: none;
  scrollbar-color: var(--bg-checklist-done) #ffffff;

  /* Chrome, Edge, Safari */
  &::-webkit-scrollbar {
    width: 0px;
  }
  &::-webkit-scrollbar-track {
    background: #ffffff;
  }
  &::-webkit-scrollbar-thumb {
    background: var(--bg-checklist-done);
    border-radius: 0px;
  }
}

.custom-scroll-fail {
  /* Firefox */
  scrollbar-width: none;
  scrollbar-color: var(--bg-checklist-fail) #ffffff;

  /* Chrome, Edge, Safari */
  &::-webkit-scrollbar {
    width: 0px;
  }
  &::-webkit-scrollbar-track {
    background: #ffffff;
  }
  &::-webkit-scrollbar-thumb {
    background: var(--bg-checklist-fail);
    border-radius: 0px;
  }
}

.padding-main-content {
    padding-left: 5rem;
    padding-right: 5rem;
}


.rounded-30px {
    border-radius: 30px  !important;
}

.rounded-30px-l {
    border-top-left-radius: 30px  !important;
    border-bottom-left-radius: 30px  !important;
}

.rounded-30px-r {
    border-top-right-radius: 30px  !important;
    border-bottom-right-radius: 30px !important;
}

/* Стили для увеличенного состояния */
.preview-image-large {
    cursor: zoom-out !important;
    position: fixed; /* Выводим поверх контента */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: contain; /* Сохраняем пропорции на весь экран */
    background: rgba(0,0,0,0.8); /* Темный фон */
    z-index: 9999;
    padding: 20px;
}

.preview-image {
    cursor: zoom-in;
    transition: transform 0.3s ease; /* Плавность */
}

.portal-card {
background:
  radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0,0,0,0.06) 0%, transparent 70%),
  radial-gradient(ellipse 70% 80% at 85% 90%, rgba(0,0,0,0.04) 0%, transparent 65%),
  linear-gradient(160deg, #f5f7fa 0%, #eef2f6 35%, #e6ebf1 70%, #dde3ea 100%);
    border: 1px solid #e9ecef;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}