@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700&display=swap");

/* ── Design tokens ─────────────────────────────────────────── */
:root {
    --innova-blue:         #0058FF;
    --innova-nav-blue:     #128DFF;
    --innova-bg:           #C4D6F6;
    --innova-radius-card:  3.125rem;
    --innova-radius-btn:   24px;
    --innova-radius-input: 15px;
    --innova-font:         "Heebo", sans-serif;
    --scroll-bar-size:     5px;
    --scroll-bar-thumb-background-color-active: #a8a8a8;
}

/* ── Base ──────────────────────────────────────────────────── */
*:not(i) {
    font-family: var(--innova-font);
    padding: 0;
    margin: 0;
    outline: none;
}

html {
    font-size: 0.8vw;
}

body {
    background-color: var(--innova-bg);
}

/* ── Page shell ────────────────────────────────────────────── */
#content-wrap {
    box-sizing: border-box;
    display: flex;
    padding: 1.25rem 1.625rem;
}

#content-wrap #innova-shell {
    background-color: #fff;
    width: 100%;
    height: 100%;
    border-radius: var(--innova-radius-card);
    position: relative;
    min-height: calc(100vh - 2.5rem);
}

/* ── Header ────────────────────────────────────────────────── */
#content-wrap #innova-shell #header {
    display: flex;
    justify-content: space-between;
    padding: 1.125rem;
}

#content-wrap #innova-shell #header #header-left {
    align-items: center;
    display: flex;
    justify-content: center;
}

#content-wrap #innova-shell #header #header-left .separator {
    height: 4.25rem;
    width: 0.125rem;
    background-color: #808080;
    margin: 0 0.6875rem;
}

#content-wrap #innova-shell #header #header-left #innova-logo img {
    height: 42px;
}

#content-wrap #innova-shell #header #header-left #eshkol-logo img {
    height: 5.75rem;
}

/* ── Page content area ─────────────────────────────────────── */
#inside-content {
    background-color: #fff;
    width: 100%;
    border-radius: var(--innova-radius-card);
    min-height: calc(100vh - 9rem);
    padding: 1.125rem;
    box-sizing: border-box;
}

/* ── Scrollbars ────────────────────────────────────────────── */
body::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: 0 0;
}

::-webkit-scrollbar {
    width: var(--scroll-bar-size);
    height: var(--scroll-bar-size);
    background: 0 0;
}

::-webkit-scrollbar-thumb {
    background-color: gray;
    border-radius: var(--scroll-bar-size);
    border-color: transparent;
    border-style: solid;
    border-width: calc(var(--scroll-bar-size) / 3);
}

::-webkit-scrollbar-thumb:active,
::-webkit-scrollbar-thumb:hover {
    border-width: 3px;
    background-color: gray;
    cursor: pointer;
}

.scroll {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
}

.scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.scroll::-webkit-scrollbar-track {
    background: transparent;
}

.scroll::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.scroll::-webkit-scrollbar-thumb:hover {
    background-color: #a8a8a8;
    border: 2px solid transparent;
}

/* ── Buttons ───────────────────────────────────────────────── */
.new_btn_main {
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-family: var(--innova-font);
    cursor: pointer;
    color: #fff;
    background-color: var(--innova-blue);
    font-weight: 500;
    text-align: center;
    border: 1px solid transparent;
    padding: 0.3125em 1.875em;
    font-size: 1.25rem;
    width: 13.25rem;
    height: 2.5625rem;
    border-radius: var(--innova-radius-btn);
    transition: color .15s ease-in-out, background-color .15s ease-in-out,
                border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    text-decoration: none;
}

.new_btn_main:hover {
    background-color: rgba(14, 75, 191, 1);
}

.new_btn_main:active {
    background-color: rgba(27, 62, 128, 1);
}

.new_btn_second {
    display: flex !important;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-family: var(--innova-font);
    color: var(--innova-blue);
    background-color: #fff;
    font-weight: 500;
    text-align: center;
    border: 1px solid var(--innova-blue);
    padding: 0.3125em 1.875em;
    font-size: 1.25rem;
    width: 13.25rem;
    height: 2.5625rem;
    border-radius: var(--innova-radius-btn);
    transition: color .15s ease-in-out, background-color .15s ease-in-out,
                border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    text-decoration: none;
}

.new_btn_second:hover {
    background-color: rgba(238, 244, 255, 1);
}

.new_btn_second:active {
    background-color: rgba(219, 231, 255, 1);
}

.new_btn_second:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

/* ── Form controls ─────────────────────────────────────────── */
.material-textfield-new {
    position: relative;
}

.label-new {
    color: #284986;
    font-family: var(--innova-font);
    position: absolute;
    font-size: 16px;
    right: 0;
    top: 0;
    transform: translateY(-50%) scale(.9);
    padding: 0 0.3rem;
    margin: 0 0.5rem;
    width: auto;
    background: white;
}

.label-new-not-attached {
    color: #284986;
    font-family: var(--innova-font);
    font-size: 15px;
    width: auto;
}

.input-new {
    font-family: var(--innova-font);
    font-size: 16px;
    outline: none;
    border: 1px solid gray;
    padding: 0.7rem 3rem;
    color: gray;
    transition: 0.1s ease-out;
    width: 80%;
    border-radius: var(--innova-radius-input);
    background-color: white;
}

.input-new:focus {
    border-color: #00ba00;
}

.input-new-number {
    font-family: var(--innova-font);
    font-size: 16px;
    outline: none;
    border: 1px solid gray;
    padding: 0.7rem 3rem 0.7rem 1rem;
    color: gray;
    transition: 0.1s ease-out;
    width: 80%;
    border-radius: var(--innova-radius-input);
}

.input-new-number:focus {
    border-color: #00ba00;
}

.select-new {
    font-size: 16px;
    outline: none;
    border: 1px solid gray;
    padding: 0.7rem 3rem;
    background: white;
    border-radius: var(--innova-radius-input);
}

.required-field::after {
    content: '*';
    color: red;
    font-size: 18px;
    margin-right: 5px;
    vertical-align: middle;
}

/* ── Tooltip ───────────────────────────────────────────────── */
.ToolTip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.ToolTip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    transition: opacity 0.2s;
    z-index: 10;
}

.ToolTip:hover .ToolTip-text {
    visibility: visible;
    opacity: 1;
}

/* ── Alert overlay ─────────────────────────────────────────── */
.Haim_alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: innova-fadeIn 0.2s ease;
}

.Haim_alert-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px 40px 28px;
    min-width: 550px;
    min-height: 300px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    animation: innova-popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    direction: ltr;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.Haim_alert-icon {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 16px;
}

.Haim_alert-message {
    font-size: 30px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.5;
}

.Haim_alert-btn {
    background: #1a6ef5;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 13px 0;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.Haim_alert-btn:hover { background: #1558d0; }
.Haim_alert-btn:active { transform: scale(0.97); }

@keyframes innova-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes innova-popIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ── Table ─────────────────────────────────────────────────── */
.grid-header-second {
    font-size: 26px;
    font-weight: 500;
    color: black;
}

.table-page {
    padding: 1.125rem;
}

/* ── Utilities ─────────────────────────────────────────────── */
.ltr, .ltr * { direction: ltr; }
.alignCenter  { text-align: center; }

/* ── Admin-only platform indicator ─────────────────────────── */
#platform-badge {
    position: fixed;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 11000;
    background: #E3EDFF;
    color: var(--innova-blue);
    border: 1px solid rgba(0, 88, 255, 0.4);
    border-radius: 50px;
    padding: 0.25rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--innova-font);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
    pointer-events: none;
    user-select: none;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 767px) {
    html { font-size: 14px !important; }

    #content-wrap {
        padding: 0.85rem 1rem;
    }

    #content-wrap #innova-shell #header #header-left {
        display: block !important;
        width: calc(100% - 6em);
    }

    #content-wrap #innova-shell #header #header-left .separator {
        display: none;
    }

    #content-wrap #innova-shell #header #header-left #innova-logo img {
        height: 25px !important;
        width: auto !important;
        float: left;
        margin-top: 19px;
    }
}
