:root {
    --black: rgba(39, 22, 25, 1);
    --disabled: rgba(191, 193, 196, 1);
    --gray: rgba(119, 124, 132, 1);
    --beige: rgba(248, 245, 222, 1);
    --white: rgba(255, 255, 255, 1);
    --orange: rgba(255, 101, 44, 1);
}
@font-face {
    font-family: 'Geist-Medium';
    src: url('../fonts/geist/Geist-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Geist-Bold';
    src: url('../fonts/geist/Geist-Bold.ttf') format('truetype');

}
body{
    background-color: #f5f5f5;
    color: #f5f5f5;
}
main{
    background-color: #f5f5f5;
}
body.modal-open {
    overflow: visible;
    padding-right: 0 !important;
}
#createCompanyModal, #editCompanyModal{
    padding-right: 0 !important;
}
.fs-14{
    font-size: 14px;
}
.fs-12{
    font-size: 12px;
}
.fs-10{
    font-size: 10px;
}
.text__gray{
    color: #27161999;
}
header{
    position: sticky;
    top: 0;
    z-index: 1002;
    border-bottom: 1px solid #EBE8DE;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px ;
    background-color: #256fa4;
}
.header__login{
    background: #256fa4;
}
header img.logo{
    position: relative;
    max-width: 256px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: cover;
}
.sticky-header-container {
    position: relative;
}
.sticky-title {
    position: sticky;
    top: 111px; /* Высота хедера */
    z-index: 1001;
    background: #f5f5f5;
    padding: 10px 0;
    margin-bottom: 0 !important;
}

.program__table {
    position: relative;
}

.program__table thead.sticky-thead {
    position: sticky;
    top: 190px; /* Высота хедера + заголовка */
    z-index: 1003;
    background: #f5f5f5;
}
nav a{
    font-weight: 400;
    position: relative;
    width: fit-content;
    margin-top: -1px;
    font-family: 'Geist-Medium', sans-serif;
    color: var(--white);
    font-size: 20px;
    letter-spacing: 0;
    line-height: normal;
    text-decoration: none;
}
nav a:hover, nav button:hover{
    color: var(--beige);
}
nav button:hover svg path{
    stroke: var(--beige);
}
nav button{
    font-weight: 400;
    position: relative;
    width: fit-content;
    margin-top: -1px;
    font-family: 'Geist-Medium', sans-serif;
    color: var(--white);
    font-size: 20px;
    letter-spacing: 0;
    line-height: normal;
    border: none;
    background: none;
}
nav a.active{
    font-weight: 700;
    position: relative;
    width: fit-content;
    margin-top: -1px;
    font-family: "Geist-Bold", sans-serif;
    color: var(--white);
    font-size: 20px;
    letter-spacing: 0;
    line-height: normal;
    text-decoration: none;
}
.nav__role{
    font-size: 12px;
    color: var(--white);
    opacity: 60%;
    margin-right: 32px;
    margin-bottom: 0;
}
/* Сохраняем ваши текущие стили и расширяем их */
.program__input {
    height: 48px;
    font-size: 20px;
    color: var(--black);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    gap: 12px;
    padding: 0px 20px;
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid;
    border-color: #271619;
}
.program__input-select{
    min-width: 300px;
}

/* Кастомная стрелка */
.program__select-wrapper {
    position: relative;
    display: inline-block;
}

/* Стили для SVG стрелки */
.program__select-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* Состояния */
.program__input:hover {
    border-color: #FF652C;
}
.program__button {
    padding: 9px 24px;
    border-radius: 8px;
    width: fit-content;
    background-color: #FF652C; /* однотонный цвет */
    color: #fff;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.program__button button{
    border: none;
    background-color: transparent;
    color: #fff;
}
.program__button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(255,157,44,1) 85%, rgba(255,101,44,1) 98%);
    z-index: 0;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.program__button:hover::before {
    transform: translateX(0);
}

.program__button span {
    position: relative;
    z-index: 1;
}
.program__button a{
    color: #fff;
    text-decoration: none;
}
.program__table{
    border-collapse: collapse;
    border: none;
    width: 100%;
    table-layout: fixed;
}
.program__table td {
    border: 1px solid #bfc1c4;
    background-color: var(--white);

}



.targetCell{
    box-sizing: border-box;
    vertical-align: top;
    height: 100px;
}
.program__table-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}
.program__table-block {
    height: 100%;


}
.program__target{
    height: 100%;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.program__table-block span{
    font-weight: 500;
}
.program__table-block p{
    color: var(--black);
}
.program__active{
    background-color: #F8F5DE;

}
.program__active span{
    color: var(--black);
    text-decoration: none;
}

.program__inactive{
    background-color: #BFC1C4;
}
.program__inactive span{
    color: var(--black);
}

.program__ready{
    background-color: #F4EBFF;
}
.program__ready a, .program__ready p{
    color: var(--black);
    text-decoration: none;
}
.program__created{
    background-color: #FF652C;
}
.program__created a, .program__created span, .program__created p{
    color: var(--white);
    text-decoration: none;
}
.program__allow{
    background-color: #3FCC6E;
}
.program__allow a{
    color: var(--black);
    text-decoration: none;
}
.program__good{
    background-color: #A665F5;
}
.program__good a{
    color: var(--black);
    text-decoration: none;
}
.program__rejected{
    background-color: #A21531;
}
.program__rejected span, .program__rejected p, .program__rejected a{
    color: var(--white);
    text-decoration: none;
}
.go__back:hover svg .round{
    fill: #FF652C;
}
.go__back:hover svg .back {
    stroke: #fff;
}
.btn__status{
    border-radius: 24px;
    padding: 9px 24px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn__status a{
    color: #fff;
    text-decoration: none;
}
.btn__green{
    background-color: #73BC58;
    border: #73BC58;
    color: #fff;
}


.btn__green::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(45,111,21,1) 85%, rgba(115,188,88,1) 98%);
    z-index: 0;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn__green:hover::before {
    transform: translateX(0);
}

.btn__green span {
    position: relative;
    z-index: 1;
}
.btn__black{
    background-color: #271619;
    border: #271619;
    color: #fff;
}


.btn__black::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(59,56,57,1) 85%, rgba(39,22,25,1) 98%);
    z-index: 0;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn__black:hover::before {
    transform: translateX(0);
}

.btn__black span {
    position: relative;
    z-index: 1;
}
.card__video{
    background-color: #FBFAF6;
    border: 1px solid #EBE8DE;
    border-radius: 8px;
    padding: 20px;
}
.pagination svg{
    width: 50px;
    height: 50px;
}
.number__tasks{
    position: absolute;
    top: -10px;
    right: -18px;
    background-color: var(--white);
    color: var(--black);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-align: center;
    line-height: 22.4px;
    font-weight: 400;
    letter-spacing: 0;

}

/*кнопки медиаплана удаление редактирование клиентов*/
.client-row {
    cursor: pointer;
    transition: background-color 0.2s;
}
.client-row.selected {
    background-color: #f0f0f0 !important;
}
.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}
/*кнопки медиаплана удаление редактирование заказов*/
.company-row {
    cursor: pointer;
    transition: background-color 0.2s;
}
.company-row.selected {
    background-color: #f0f0f0 !important;
}
.edit-company-btn:disabled,
.delete-company-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/*таблицы медиапланов*/
/* Контейнер таблицы */
.companies-table-container {
    margin-top: 1rem;
}

/* Заголовок таблицы */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.table-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

/* Сообщение при пустых данных */
.empty-message {
    padding: 0.75rem;
    background-color: #e7f5ff;
    color: #1864ab;
    border-radius: 4px;
}

/* Обертка для скролла */
.table-wrapper {
    max-height: 500px;
    overflow: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Стили таблицы */
.companies-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.companies-table th,
.companies-table td {
    border: 1px solid #dee2e6;
    padding: 5px;
    text-align: left;
}

/* Фиксированный заголовок */
.companies-table thead th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 10;
}

/* Стиль строк */
.company-row:hover {
    background-color: #f1f3f5;
}

/* Сообщение "Нет данных" */
.no-data {
    text-align: center;
    padding: 1rem;
    color: #868e96;
}
.modal__header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px;
}
.bg_gray, .bg_gray input, .bg_gray select{
    background-color: #FBFAF6 !important;
}
.add__more span{
    color: #FF652C;
    transition: .5s;
}
.add__more span:hover{
    color: #000;
    transition: .5s;
}

.frame-19 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.frame-19 svg:hover{
    cursor: pointer;
}
.frame-20 {
    display: inline-flex;
    height: 30px;
    align-items: center;
    position: relative;
    margin-bottom: -1.00px;
    margin-left: -1.00px;
    margin-right: -1.00px;
    border-radius: 10px;
    border: 1px solid;
    border-color: #777b84;
}
.rectangle-2 {
    width: 32px;
    background-color: #bfc1c4;
    border-radius: 10px 0px 0px 10px;
    position: relative;
    align-self: stretch;
}

.rectangle-3 {
    width: 32px;
    background-color: #f8f5de;
    position: relative;
    align-self: stretch;
}

.rectangle-4 {
    position: relative;
    align-self: stretch;
    width: 32px;
    background-color: #ff652c;
}

.rectangle-5 {
    width: 32px;
    background-color: #f4ebff;
    position: relative;
    align-self: stretch;
}

.rectangle-6 {
    width: 32px;
    background-color: #a665f5;
    position: relative;
    align-self: stretch;
}

.rectangle-7 {
    width: 32px;
    background-color: #3ecb6d;
    position: relative;
    align-self: stretch;
}

.rectangle-8 {
    width: 32px;
    background-color: #a21531;
    border-radius: 0px 10px 10px 0px;
    position: relative;
    align-self: stretch;
}

.tooltip__2 {
    display: none;
    flex-direction: column;
    width: 400px;
    align-items: flex-start;
    gap: 10px;
    padding: 60px 40px;
    position: absolute;
    top: 0;
    right: 10px;

    z-index: 1005;
}
.tooltip__2-block{
    display: flex;
    flex-direction: column;
    width: 335px;
    align-items: flex-start;
    gap: 10px;
    background-color: #ffffff;
    border-radius: 12px 0px 12px 12px;
    box-shadow: 1px 6px 19.6px #00000026;
    padding: 20px;
}
.text-14 {
    align-self: stretch;
    margin-top: -1.00px;
    color: var(--black);
    font-size: 16px;
    line-height: 22.4px;
    position: relative;
    font-weight: 400;
    letter-spacing: 0;
}

.color {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.rectangle-9 {
    position: relative;
    width: 28px;
    height: 28px;
    background-color: var(--disabled);
    border-radius: 6px;
}

.text-15 {
    flex: 1;
    margin-top: -1.00px;
    color: var(--black);
    font-size: 14px;
    line-height: 19.6px;
    position: relative;
    font-weight: 400;
    letter-spacing: 0;
}
.rectangle-10 {
    position: relative;
    width: 28px;
    height: 28px;
    background-color: #f8f5de;
    border-radius: 6px;
}

.rectangle-11 {
    position: relative;
    width: 28px;
    height: 28px;
    background-color: var(--orange);
    border-radius: 6px;
}

.rectangle-12 {
    position: relative;
    width: 28px;
    height: 28px;
    background-color: #f4ebff;
    border-radius: 6px;
}

.rectangle-13 {
    position: relative;
    width: 28px;
    height: 28px;
    background-color: #a665f5;
    border-radius: 6px;
}

.text-16 {
    flex: 1;
    color: var(--black);
    font-size: 14px;
    line-height: 19.6px;
    position: relative;
    font-family: "Geist", Helvetica;
    font-weight: 400;
    letter-spacing: 0;
}

.rectangle-14 {
    position: relative;
    width: 28px;
    height: 28px;
    background-color: #3ecb6d;
    border-radius: 6px;
}

.rectangle-15 {
    position: relative;
    width: 28px;
    height: 28px;
    background-color: #a11530;
    border-radius: 6px;
}
