



/* Regular 400 */
@font-face {
    font-family: 'Montserrat Alternates';
    src: url('../fonts/MontserratAlternates-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* Medium 500 */
@font-face {
    font-family: 'Montserrat Alternates';
    src: url('../fonts/MontserratAlternates-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* SemiBold 600 */
@font-face {
    font-family: 'Montserrat Alternates';
    src: url('../fonts/MontserratAlternates-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


/* Regular 400 */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* Medium 500 */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* SemiBold 600 */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-title: 'Montserrat Alternates', sans-serif;
    --font-text: 'Montserrat', sans-serif;
}
body {
    /* font-family: Arial, sans-serif; */
    font-family: var(--font-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
    font-size: 14px;
}
.container{
    max-width: 1400px;
    padding:0 20px;
    margin-left: auto;
    margin-right: auto;
}
.main_body{
    min-height: calc(100vh - 192px);
}
.main_body .container{
    /* background-color: #00000012;
    border-radius: 10px;
    padding: 0px 10px; */
}
.main{
    min-height: calc(100vh - 58px);
}
*{
    box-sizing: border-box;
    font-family: var(--font-text);
}
a{
    text-decoration: none;
    color: #005a87;
    outline: none;
}
h1{
    font-size: 22px;
    margin-top: 18px;
    margin-bottom: 20px;
}
.logo{
    width: 36px;
    height: 44px;
}
.logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.mobile_header_text{
    font-size: 14px;
    font-weight: 600;
}
.dashboard{
    width: 100%;
    display: flex;
    flex-direction: column;
}
.dashboard .meds_in_box_row{
    width: fit-content;
}
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: bold; }
input[type="text"], input[type="email"], input[type="password"] {
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;
}
input{
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button:hover { background: #005a87; }
.error { color: #d00; background: #ffe6e6; padding: 10px; border-radius: 4px; margin-bottom: 15px; }
.success { color: #080; background: #e6ffe6; padding: 10px; border-radius: 4px; margin-bottom: 15px; }
.login-link { text-align: center; margin-top: 20px; }
.login-link a { color: #3b82f6; text-decoration: none; }
.header_menu{
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    margin: 10px 0 7px;
}
.header_menu a{
    color: #1d1d1d;
    text-decoration: none;
    padding: 10px 10px;
    border: 1px solid #fff;
    border-left: 4px solid #fff;
}
.header_menu a:hover{
    border: 1px solid #007bff;
    border-left: 4px solid #007bff;
    color: #007bff;
    border-radius: 5px;
}
.header_menu button {
    color: #1d1d1d;
    text-decoration: none;
    padding: 10px 10px;
    min-width: auto;;
    background: #fff;
    border: 1px solid #fff;
    border-left: 4px solid #fff;
}
.header_menu button:hover{
    border: 1px solid #007bff;
    border-left: 4px solid #007bff;
    background: #fff;
    color: #007bff;
    border-radius: 5px;
}
.min_page{
    max-width: 360px;
    margin: 50px auto;
}
.min_page form{
    width: 100%;
    display: flex;
    flex-direction: column;
}
.header_center{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    
}
header{
    border-bottom: 1px solid #ccc;
}
.heading_row{
    display: flex;
    gap: 20px;
    align-items: center;
}
.breadcrumbs {
    padding: 10px 0;
    margin: 10px 0 0px;
    border-bottom: 1px solid #e1e5e9;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
}

.breadcrumbs-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.breadcrumbs-link:hover {
    color: #007bff;
}

.breadcrumbs-item.active span {
    color: #333;
    font-weight: 600;
}

.breadcrumbs svg {
    flex-shrink: 0;
}

.user-setting{
    width: 100%;
    display: flex;
    flex-direction: column;
}
.user-setting-row{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #e4e4e4;    border-radius: 6px;
    padding:6px 6px;
    margin-top: 10px;;
}
.sklad_row{
    display: flex;
    padding: 5px 10px;
}
.sklad_row_item{
    display: flex;
}
.sklad_tr td{
    border-bottom: 1px dashed #1d1d1d;
    text-align: center;
}
.office_row{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;;
}
.office_row_wrap{
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
}
.lockers_wrap{
    width: 100%;
    display: flex;
    
    /* align-items: flex-start; */
}
.lockers_wrap_item{
    width: 400px;
    border: 1px solid #a8b588;
    padding: 0;
    padding-top: 20px;
    margin-top: 5px;
    background: #e5e5e5;
    border-radius: 5px;
    height: auto;
    /* overflow-y: scroll; */
    scrollbar-width: thin;           /* Firefox */
    scrollbar-color: #a8b588 #f0f0f0; /* Firefox: ползунок трек */
}
/* Webkit (Chrome, Safari, Edge) */
.lockers_wrap_item::-webkit-scrollbar {
    width: 8px; /* Ширина скролбара */
}

.lockers_wrap_item::-webkit-scrollbar-track {
    background: #f0f0f0;           /* Фон трека */
    border-radius: 4px;
}

.lockers_wrap_item::-webkit-scrollbar-thumb {
    background: #a8b588;           /* Цвет ползунка */
    border-radius: 4px;
    border: 1px solid #e5e5e5;     /* Отступ от края */
}

.lockers_wrap_item::-webkit-scrollbar-thumb:hover {
    background: #8e9a6e;           /* При наведении */
}

.lockers_wrap_item::-webkit-scrollbar-thumb:active {
    background: #7a8a5e;           /* При клике */
}
.boxes_wrap{
    
}
.round_heading{
    display:flex; align-items: flex-start;justify-content: space-between;
}
.boxes_wrap_item{
    border: 1px solid #091eff;
    padding-top: 10px;
    
    margin-top: 10px;
    
    background: #fff;
    border-top-left-radius: 6px;
    border-left: 4px solid #007bff;
    border-bottom-right-radius: 5px;;
    border-bottom-left-radius: 5px;;
}
.boxes_wrap .meds_wrap{
    overflow-y: visible;
    max-height: none;;
}
.meds_wrap{
    /* border: 2px solid #f00c0c; */
    padding: 5px;
    margin-top: 5px;
    overflow-y: scroll;
    max-height: calc(100vh - 300px);
}
.label_set_office_name{
    color: #2e2e2e;
    padding: 3px 10px;
    margin-bottom: 10px;;
    display: flex;;
    flex-direction: column;
    font-weight: 600;
}
.search-container {
    margin-bottom: 0px;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.meds_row {
    display: flex;
    align-items: center;
    padding: 12px 12px 12px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
    margin-bottom: 2px;
    font-size: 14px;
    gap: 5px;
}

.meds_row:hover {
    background: #f0f8ff;
}

.meds_row.selected {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.wrap_popup_meds_name {
    flex: 1;
    padding: 4px 8px;
}

.checkbox-container {
    position: relative;
    margin-left: 12px;
}
.meds_row .checkbox-container{
    user-select: none;;
    pointer-events: none;;
}
.meds_row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.meds_row label {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.meds_row input:checked + label {
    background: #2196f3;
    border-color: #2196f3;
}

.meds_row input:checked + label::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Скрываем при поиске */
.meds_row.hidden {
    display: none;
}
.found-highlight {
    background: yellow;
    padding: 2px 0;
    padding-right: 0;;
    border-radius: 3px;
}
.meds_in_box_row {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 4px;
    font-weight: 500;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    transition: all 0.2s;
    gap: 3px;
}
.meds_in_box_row.active{
    box-shadow: 0px 0px 3px #007bff;
    transform: scale(1.1)
}

.meds_in_box_row:hover {
    background: #e9ecef;
    /* transform: translateX(2px); */
}

.meds_in_box_name {
    flex: 1;
    font-weight: 500;
}

.delete-form {
    margin-left: auto;
}

.delete-med-btn {
    background: #e1959c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 32px;
    min-width: 32px;;
    height: 32px;
    opacity: 0.7;
}

.delete-med-btn:hover {
    background: #c82333;
    transform: scale(1.1);
    opacity: 1;
}

.delete-med-btn svg {
    width: 16px;
    height: 16px;
}


.locker_row, .box_row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-flow:row wrap;
    margin-bottom: 6px;
}
.locker_actions, .box_actions{
    display: flex;
    gap: 10px;;
}
.user_block{
    /* border: 1px solid; */
    width: 20%;
    height: 40px;
    display: flex;
    align-items: center;
    word-wrap: break-word;
    white-space: break-spaces;
    word-break: break-all;
}
.user_block.login{
    width: 15%;
}
.user_block.email{
    width: 25%;
}
.user_settings_right{
    display: flex;;
    width: calc(100% - 110px);
}








/* buttons */

.button, button{
    border-radius: 6px;
    cursor: pointer;
    min-width: 110px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding:5px 10px;
    border: 2px solid #3b82f6;
    background-color: #fff;
    color: #3b82f6;
}
.button:hover,button:hover{
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    border: 2px solid #3b82f6;
}


.big-button-cnt{
    width: calc(20% - 8px);;
    display: flex;
    position: relative;
    margin-bottom: 0px;
}

.big-button-sqare{
    padding-top: 50%;;
    border-radius: 10px;
    width: 100%;
}
.sqare_streth_body{
    display: flex;
    position: relative;
}
.sqare_wrapper{
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    gap: 6px;;
}
.all_lockers_body{
    width: 32px;
    margin-bottom: 6px;;
}
.sqare_streth{
    margin-top: 100%;
}
.streth-element{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;;
    bottom: 0;
    right: 0;;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.big-button{
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #3b82f6;
    color: #3b82f6;
}
.big-button:hover{
    border-radius: 10px;
    cursor: pointer;
    transform: translateY(-1px);
    border: 2px solid #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;;
}
.big-button:hover .value{
    color: #fff;;
}
.big-button:hover .label{
    color: #fff;;
}
.round_page .big-button:hover{
    border-radius: 10px;
    cursor: pointer;
    transform: translateY(0px);
    border: 2px solid #3b82f6;
    background: inherit;
    color: #3b82f6;
    border-color: #3b82f6!important;;
}
.box_edit_btn {
    background: #dccf35;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 32px;
    min-width: 32px;
    height: 32px;
    margin-right: 5px;
}


/* button-hoveres */
.button-default{
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    
}
.button-default:hover{
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    /* color: #3b82f6; */
    
}



/* popups */
.popup_container{
    display: none;;
}
.popup_container.active {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 0;
    right: 0;
    
    z-index: 10;
    
}
.popup{
    width: 500px;
    padding: 30px;
    border-radius: 7px;
    /* margin: auto; */
    /* height: 100px; */
    background: #fff;
    z-index: 11;
    max-height: 100vh;
    /* overflow-y: scroll; */
    position: relative;
}
.popup_close{

}
.popup_close_icon{
    width: 32px;
    height: 32px;
    position: absolute;;
    top: 5px;
    left: auto;
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 13;
    font-size: 30px;
    cursor: pointer;;
}
.popup_close_block{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: #cccccc63;
    backdrop-filter: blur(2px);
}
.mobile_header{
    display: none;
}
.header_close{
    display: none;;
}
.description{
    font-size: 12px;
    
    color: #6c757d;
    margin-top: 2px;
    margin-bottom: 2px;
}
.office_page .big-button-cnt .big-button{
    border-left: 7px solid #007bff;
    font-size: 13px;
}
.swiper-button-next, .swiper-button-prev{
    height: 30px;
    width: 16px;
}
h2{
    margin: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 18px;
}
h3{
    margin-bottom: 10px;

}
h4{
    margin-bottom: 4px;
}
.status_check_row{
    border: 1px solid;
    border-left: 32px solid #ccc;
    border-radius: 6px;
    border-color: #ccc;
    
    padding: 3px 10px;
    width: fit-content;
    margin-bottom: 4px;
    font-size: 12px;
    height: 24px;
    align-items: flex-end;
}
.button_disabled{
    pointer-events: none !important;
    opacity: 0.6;
}

.round_dop_info_box{
    border: 1px solid #007bff;
    border-radius: 4px;
    padding: 3px 8px;
    border-left: 3px solid #007bff;
}
.big_button_wrapper{
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
    ;
}
.dashboard-section{
    width: 100%;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    margin-top: 10px;
    box-shadow: 0px 0px 14px -1px #d3d3d3;
    flex-direction: column;
    gap: 10px;
}

.sklad_wrapper{
    padding: 20px 0;;
    padding-top: 0;
}

.sklad_wrapper .meds_row{
    padding: 3px 0px 10px 0;
}
.sklad_wrapper .wrap_popup_meds_name{
    /* width: calc(100% - 500px); */
    vertical-align: center;;
    display: block;
    margin-top: auto;
    margin-bottom: auto;
    align-items: center;
    padding:0;
}
.sklad_wrapper .meds_row_id{
    width: 30px;
    /* border: 1px solid; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sklad_wrapper .meds_row_unit_measure{
    width: 70px;
    /* border: 1px solid; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sklad_wrapper .meds_row_quantity{
    width: 50px;
    /* border: 1px solid; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sklad_wrapper .meds_row_maximum{
    width: 50px;
    /* border: 1px solid; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sklad_wrapper .meds_row_minimum{
    width: 50px;
    /* border: 1px solid; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sklad_wrapper .meds_row_storage_location{
    width: 70px;
    /* border: 1px solid; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sklad_wrapper .meds_row_supply_count{
    width: 90px;
    /* border: 1px solid; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sklad_wrapper .meds_row_supply_count_sklad {
    width: 40px;
    /* border: 1px solid; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sklad_wrapper .meds_row_supply_weekly_expenses{
    width: 40px;
    /* border: 1px solid; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.meds_row_supply_weeks_left{
    width: 60px;
    /* border: 1px solid; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}


.sklad_wrapper .meds_row{
    align-items: stretch;
}

.sklad_wrapper .meds_row_supply_count input {
    width: 100%;
    padding: 8px 5px;
    border: 1px solid #a8b588;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    transition: background 0.3s;
}

.sklad_wrapper .meds_row_supply_count input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}

.sklad_wrapper .meds_row.added {
    border-left-color: #28a745;     /* Зелёная полоска слева */
    background: rgba(40, 167, 69, 0.05); /* Лёгкий зелёный фон */
}

.sklad_wrapper .meds_row.added .wrap_popup_meds_name {
    font-weight: 600;              /* Жирный название */
}

.sklad_wrapper .meds_row.added .meds_row_supply_count input {
    border-color: #28a745;         /* Зелёная рамка инпута */
    
}
.sklad_wrapper .meds_row.sort-header{
    font-size: 12px;
    padding-top: 40px;;
}
.sklad_wrapper .sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    display: flex;;
    /* padding-right: 24px; */
}

.sklad_wrapper .sort-arrow {
    display: inline-block !important;
    width: 0; 
    height: 0; 
    margin-left: 2px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    vertical-align: middle;
    opacity: 1 !important; /* ✅ ВСЕГДА видно */
}
footer{
    padding: 40px 10px;
}
.footer_row{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}
.footer_row .description{
    display: flex;
    align-items: flex-end;
}
.footer-right{
    display: flex;;
    gap: 10px;
}
.footer-left{
    display: flex;;
}
/* ✅ НЕАКТИВНАЯ стрелка */
.sklad_wrapper .sortable:not(.asc):not(.desc) .sort-arrow {
    border-top: 6px solid #666; /* Стрелка вверх по умолчанию */
}

/* ✅ АКТИВНАЯ сортировка */
.sklad_wrapper .sortable.asc .sort-arrow {
    border-bottom: 6px solid #007bff; /* Стрелка вниз */
}

.sklad_wrapper .sortable.desc .sort-arrow {
    border-top: 6px solid #007bff; /* Стрелка вверх */
}

/* ✅ Ховер эффект */
.sklad_wrapper .sortable:hover .sort-arrow {
    border-top-color: #007bff !important;
    border-bottom-color: #007bff !important;
}
.office_page .big-button:hover{
    /* background: #fff; */
    /* border-radius: 10px; */
    /* cursor: pointer; */
    /* border: 2px solid #3b82f6; */
    /* color: #3b82f6; */
    /* border-left: 7px solid #007bff; */
}


.grad_wrap {
    width: 100%;
    height: 40px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    background: #f8f9fa;
}


/* Блеклый фон ВСЕХ полосок */
.grad_wrap_item {
    width: calc(100% / 10);
    height: 100%;
    border-right: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

/* Яркие активные полоски */
.grad_wrap_item.red { background: #dc3545; }
.grad_wrap_item.yellow { background: #ffc107; }
.grad_wrap_item.orange { background: #fd7e14; }
.grad_wrap_item.green { background: #28a745; }

/* НЕактивные полоски - блеклый фон */
.grad_wrap_item:not(.red):not(.yellow):not(.orange):not(.green) {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

/* Ховер эффект */
.grad_wrap_item:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.weeks-label {
    text-align: center;
    margin-top: 0px;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

/* Цвета текста */
.red-text { color: #dc3545; }
.yellow-text { color: #e67e22; }
.orange-text { color: #fd7e14; }
.green-text { color: #28a745; }

.sklad_wrapper .grad_wrap{
    height: 20px;
    border-radius: 10px;
}
.sklad_wrapper .weeks-label{
    font-weight: 400;
    font-size: 12px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
}

.form-value {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-weight: 500;
    color: #666;
}

.med-img-preview {
    border-radius: 8px;
    border: 2px solid #e1e5e9;
    margin-bottom: 0.5rem;
}
.btn-delete{
    background: #d10e0e;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-delete:hover {
    background: #e50c0c;
}
.btn-save {
    background: #28a745;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save:hover {
    background: #218838;
}
.premission-error_box{
    height: 100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
}

/* SETTINGS */
.settings .table-container {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
}

.settings .table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.settings .table-container th {
    background: #f8fafc;
    color: #374151;
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

.settings .table-container td {
    padding: 14px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.settings .table-container tr:hover {
    background: #f9fafb;
}

/* Инпуты */
.settings .form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    transition: border-color 0.2s ease;
}

.settings .form-input:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: none;
}

.settings .color-input {
    width: 45px;
    height: 38px;
    padding: 1px;
    border-radius: 4px;
    cursor: pointer;
    vertical-align: middle;
}

.settings .color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-left: 8px;
    border: 1px solid #d1d5db;
    vertical-align: middle;
}

/* Кнопки */
.settings .delete-btn {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings .delete-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #dc2626;
}

.settings .add-row-btn-container {
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
}

.settings .table-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 16px;
    padding-bottom: 16px;
    border-top: 1px solid #e5e7eb;
}

.settings .btn-primary, .btn-success, .btn-secondary {
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.settings .btn-success { 
    background: #f0fdf4;
    color: #166534;
    border-color: #6ee7b7;
}

.settings .btn-success:hover { 
    background: #dcfce7;
}

.settings .btn-primary { 
    background: #eff6ff;
    color: #1e40af;
    border-color: #93c5fd;
}

.settings .btn-primary:hover { 
    background: #dbeafe;
}

.settings .btn-secondary { 
    background: #f9fafb;
    color: #4b5563;
}

.settings .btn-secondary:hover { 
    background: #f3f4f6;
}
/* Специфичные стили для новых таблиц */
.settings .role-cell {
    font-weight: 500;
    color: #1f2937;
    background: #f8fafc;
}

.settings .storage-locations-table th:nth-child(3),
.settings .unit-measures-table th:nth-child(3),
.settings .user-roles-table th:nth-child(4) {
    width: 150px;
}

.settings .user-roles-table {
    min-width: 700px;
}
.settings tr.disabled {
    background: #8b8b8b24;
}
.settings tr.disabled:hover {
    background: #8b8b8b24;
}

.dashboard-rounds-section {
  background: #f8fafc;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid;
}

.stat-badge.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.stat-badge.completed {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

/* Активные обходы */
.rounds-active {
    margin-bottom: 24px;
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
}

.round-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 2px solid #e2e8f0;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.round-card.active {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.round-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.round-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.round-number {
  background: #3b82f6;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  /* font-size: 14px; */
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-dot.active {
  background: #10b981;
  box-shadow: 0 0 0 2px #f8fafc;
  animation: pulse 2s infinite;
}
.sort-header_cnt{
    padding: 5px;
    margin-top: 5px;
    font-weight: 600;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.detail-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.label {
  color: #64748b;
  font-weight: 500;
  min-width: 80px;
}

.value {
  color: #1e293b;
  font-weight: 500;
}

.round-action {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  justify-content: center;
}

.round-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Завершенные */
.rounds-completed {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
}

.completed-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-date {
  font-size: 16px;
  font-weight: 600;
  color: #3b82f6;
}

.stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    width: 100%;
    padding: 14px 3px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.full-width {
  grid-column: 1 / -1;
}

/* Пустое состояние */
.empty-state {
text-align: center;
padding: 40px 20px;
color: #64748b;
}

.empty-icon {
font-size: 48px;
display: block;
margin-bottom: 16px;
}

.empty-state h3 {
color: #1e293b;
margin: 0 0 8px 0;
font-size: 20px;
font-weight: 600;
}

.empty-state p {
margin: 0;
font-size: 15px;
}

/* Нет доступа */
.access-denied {
text-align: center;
padding: 60px 20px;
background: linear-gradient(135deg, #fee2e2, #fecaca);
border: 1px solid #fca5a5;
border-radius: 12px;
color: #991b1b;
}

.access-denied h3 {
margin: 0 0 8px 0;
font-size: 20px;
}

/* Безопасность */
.round-details .value {
word-break: break-word;
max-width: 200px;
}
.sticky_sklad{
    -webkit-position: sticky;
    position: sticky;
    top: 0;
    -webkit-backdrop-filter: blur(3px); 
    backdrop-filter: blur(3px);
    background: #ffffff7d;
    z-index: 10;
}
.sklad_category_cnt{
    width: 100%;
    padding: 5px 7px;
    overflow-x: scroll;
    display: -webkit-inline-box;
    scrollbar-width: thin;
    scrollbar-color: #377cf229 transparent;
}

/* Webkit (Chrome, Safari, Edge) */
.sklad_category_cnt::-webkit-scrollbar {
    width: 8px; /* Ширина скролбара */
    background: transparent;
}

.sklad_category_cnt::-webkit-scrollbar-track {
    background: transparent;           /* Фон трека */
    border-radius: 4px;
}

.sklad_category_cnt::-webkit-scrollbar-thumb {
    background: #a8b588;           /* Цвет ползунка */
    border-radius: 4px;
    border: 1px solid #e5e5e5;     /* Отступ от края */
}

.sklad_category_cnt::-webkit-scrollbar-thumb:hover {
    background: #8e9a6e;           /* При наведении */
}

.sklad_category_cnt::-webkit-scrollbar-thumb:active {
    background: #7a8a5e;           /* При клике */
}
.view_mob{
    display:none;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    
    .settings .table-container {
        padding: 16px;
        overflow-x: auto;
    }
    
    .settings .med-types-table {
        min-width: 500px;
    }
    .settings .storage-locations-table,
    .settings .unit-measures-table,
    .settings .user-roles-table {
        min-width: 600px;
    }
    .dashboard-rounds-section {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .completed-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
@media (max-width: 1200px) {
    .logo{
        padding:5px;
    }
    .office_page .big-button-cnt{
        width: calc(33% - 8px);
    }
}
@media (max-width: 1023px) {
    .view_mob{
        display: inherit;
    }
    body{
        padding: 0;
        margin: 0;
    }
    h1{
        /* margin-top: 10px; */
    }
    .breadcrumbs{
        padding: 0px 0;
        padding-bottom:10px;
        margin: 10px 0 0px;
        /* border-bottom: 0; */
    }
    .office_page .big-button-cnt{
        width: calc(33% - 5px);
    }
    .meds_row {
        font-size: 14px;
        
    }
    .main{
        min-height: calc(100vh - 65px);
    }
    .container{
        padding: 0 15px;;
    }
    .header_center{
        
    }
    .mobile_header{
        display: flex;;
        justify-content: space-between;
        align-items: center;
    }
    .header_menu a{
        color: #1d1d1d;
        text-decoration: none;
        padding: 10px 10px;
        border: 0;
        border: 1px solid #d7d7d700;
        border-left: 4px solid #007bff;
        border-radius: 4px;
    }
    .header_menu a:hover{
        color: #1d1d1d;
        text-decoration: none;
        padding: 10px 10px;
        border: 0;
        border: 1px solid #d7d7d700;
        border-left: 4px solid #007bff;
        border-radius: 4px;
    }
    .header_menu button{
        color: #1d1d1d;
        text-decoration: none;
        padding: 10px 10px;
        border: 0;
        
        background:transparent;
        border: 1px solid #d7d7d700;
        border-left: 4px solid #007bff;
        border-radius: 4px;
        text-align: start;
        justify-content: start;
    }
    .header_center.active{
        display: flex;
        position: fixed;        
        z-index: 100;
        top: 0;
        left: 0;
    }
    .header_menu{
        flex-direction: column;
        position: absolute;
        background: #ffffff61;
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px); /* Safari 16 и старше */
        z-index: 100;
        /* border: 1px solid; */
        top: 0;
        left: 0;
        margin: 0;
        padding: 10px;
        border-left: 0px solid #007bff;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        margin-top: -200%;
        box-shadow: 1px 1px 25px 1px #ccc;
        transition: 1s;
        
    }
    .header_center.active .header_menu{
        margin-top: 0;;
        transition: 0.5s;
    }
    .header_close.active{
        width: 100%;
        height: 100vh;
        position: fixed;
        display: flex;;
        background: #ffffffad;
        /* backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(30px); Safari 16 и старше */
        z-index: 99;
        top: 0;
        left: 0;
        margin: 0;
    }
    .menu_open {
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: background 0.2s;
    }
    
    .big-button-cnt {
        width: calc(33% - 5px);
        font-size: 13px;;
    }
    
    .office_page .big-button-cnt {
        width: calc(50% - 5px);
        font-size: 13px;;
    }
    .breadcrumbs-list {
        gap: 0.25rem;
        font-size: 0.85rem;
    }
    
    .breadcrumbs-link span {
        
    }
    
    .breadcrumbs-item.active span {
        display: inline;
    }
    .h4_locker_heading{
        text-align: center;
    }
    .swiper-button-next, .swiper-button-prev{
        top: -15px!important;
    }
    .sqare_wrapper{
        justify-content: center;
    }
    .footer_row {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-flow: row wrap;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }
    .footer-right {
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .button, button{
        text-align: center;
    }
    .meds_row_id{
        /* display:none!important; */
    }
    .meds_row_supply_weekly_expenses{
        display: none!important;
    }
    .sklad_wrapper .wrap_popup_meds_name{
        width: 120px;
        min-width: 120px;
    }
    .sklad_wrapper .meds_row_storage_location{
        min-width: 50px;
        width: 50px;
    }
    .sklad_wrapper .meds_row_supply_count_sklad{
        min-width: 40px;
        width: 40px;
    }
    .sklad_wrapper .meds_row_unit_measure{
        min-width: 55px;
        width: 55px;
    }
    .sklad_wrapper .sortable{
        font-size: 10px;;
    }
    .user-setting-row{
        flex-flow: row wrap;
    }
    .user_edit_button_cnt{
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .user_block{
        /* border: 1px solid; */
        width: 100%!important;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    .user_block .row_title {
        width: 40%;

    }
    .user_settings_right{
        display: flex;;
        width: 100%;
        flex-flow: row wrap;
    }
    .meds_row.hidden {
        display: none;
    }
    .hidden_mob{
        display:none!important
    }
    .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal{
        bottom: -20px;
    }

}
@media (max-width: 600px) {
    
    body{
        padding: 0;
        margin: 0;
    }
    .meds_row {
        font-size: 14px;
        
    }
    .sort-header_cnt{
        padding: 5px;
        margin-top: 5px;
        font-weight: 600;
        overflow: scroll;
    }
    .sort-header_cnt::-webkit-scrollbar{
       display: none;;
    }
    .main{
        min-height: calc(100vh - 65px);
    }
    .container{
        padding: 5px;;
    }
    .header_center{
        
    }
    .mobile_header{
        display: flex;;
        justify-content: space-between;
        align-items: center;
    }
    .header_menu a{
        color: #1d1d1d;
        text-decoration: none;
        padding: 10px 10px;
        border: 0;
        border: 1px solid #d7d7d700;
        border-left: 4px solid #007bff;
        border-radius: 4px;
    }
    .header_menu a:hover{
        color: #1d1d1d;
        text-decoration: none;
        padding: 10px 10px;
        border: 0;
        border: 1px solid #d7d7d700;
        border-left: 4px solid #007bff;
        border-radius: 4px;
    }
    .header_menu button{
        color: #1d1d1d;
        text-decoration: none;
        padding: 10px 10px;
        border: 0;
        
        background:transparent;
        border: 1px solid #d7d7d700;
        border-left: 4px solid #007bff;
        border-radius: 4px;
        text-align: start;
        justify-content: start;
    }
    .header_center.active{
        display: flex;
        position: fixed;        
        z-index: 100;
        top: 0;
        left: 0;
    }
    .header_menu{
        flex-direction: column;
        position: absolute;
        background: #ffffff61;
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px); /* Safari 16 и старше */
        z-index: 100;
        /* border: 1px solid; */
        top: 0;
        left: 0;
        margin: 0;
        padding: 10px;
        border-left: 0px solid #007bff;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        margin-top: -200%;
        box-shadow: 1px 1px 25px 1px #ccc;
        transition: 1s;
        
    }
    .header_center.active .header_menu{
        margin-top: 0;;
        transition: 0.5s;
    }
    .header_close.active{
        width: 100%;
        height: 100vh;
        position: fixed;
        display: flex;;
        background: #ffffffad;
        /* backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(30px); Safari 16 и старше */
        z-index: 99;
        top: 0;
        left: 0;
        margin: 0;
    }
    .menu_open {
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: background 0.2s;
    }
    .big-button-cnt {
        width: calc(50% - 5px);
        font-size: 13px;;
    }
    .office_page .big-button-cnt {
        width: calc(100%);
        font-size: 13px;;
    }
    .dashboard_bigwrapper_big .big-button-cnt {
        width: calc(100%);
        font-size: 13px;;
    }
    .breadcrumbs-list {
        gap: 0.25rem;
        font-size: 0.85rem;
    }
    
    .breadcrumbs-link span {
        display: none; /* Только иконки на мобиле */
    }
    
    .breadcrumbs-item.active span {
        display: inline;
    }
    .h4_locker_heading{
        text-align: center;
    }
    .swiper-button-next, .swiper-button-prev{
        top: -15px!important;
    }
    .sqare_wrapper{
        justify-content: center;
    }
    .footer_row {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-flow: row wrap;
        gap: 10px;
        justify-content: center;
    }
    .footer-right {
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .button, button{
        text-align: center;
    }
    .sklad_wrapper .meds_row{
        display: inline-block;
        display: -webkit-inline-box;
        width: 100%;;
        min-width: fit-content;
    }
    .meds_row_id{
        /* display:none!important; */
    }
    .meds_row_supply_weekly_expenses{
        display: none!important;
    }
    .sklad_wrapper .wrap_popup_meds_name{
        width: 120px;
        min-width: 120px;
    }
    .sklad_wrapper .meds_row_storage_location{
        min-width: 50px;
        width: 50px;
    }
    .sklad_wrapper .meds_row_supply_count_sklad{
        min-width: 40px;
        width: 40px;
    }
    .sklad_wrapper .meds_row_unit_measure{
        min-width: 55px;
        width: 55px;
    }
    .sklad_wrapper .sortable{
        font-size: 10px;;
    }
    .user-setting-row{
        flex-flow: row wrap;
    }
    .user_block{
        /* border: 1px solid; */
        width: 50%;
        height: 40px;
        display: flex;
        align-items: center;
    }
    .user_settings_right{
        display: flex;;
        width: 100%;
        flex-flow: row wrap;
    }
    .meds_row.hidden {
        display: none;
    }
    .hidden_mob{
        display:none!important
    }

}
.premission_disabled{
    user-select:none!important;
    
    opacity: 0.6!important;
}
.premission_disabled:active {    /* только при клике */
    pointer-events: none!important;
}
.not_work {
    user-select:none;
    pointer-events: none;
    opacity: 0.6;
}
