.sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    top: 0;
}
.sidebar-item {
    padding: 12px 20px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
}
.sidebar-item:hover {
    background-color: #e9ecef;
}
.content-area {
    padding: 20px;
}
.role-btn {
    width: 100%;
    margin-bottom: 10px;
    white-space: normal;
}
.tagline {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}
.section-hide {
    display: none;
}
.chat-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-item:hover {
    background-color: #f1f1f1;
}
.chat-item.active {
    background-color: #e7f4ff;
    border-left: 3px solid #0d6efd;
}
.chat-name {
    font-weight: 500;
    margin-bottom: 2px;
}
.chat-preview {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.content-area {
    padding: 20px;
}
.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}
.thumbs-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.thumb {
    width: 100px;
    height: 56px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}
.thumb.active {
    border-color: #0d6efd;
}
.field-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.field-name {
    font-weight: 600;
    color: #333;
}
.field-value {
    margin-top: 4px;
    color: #555;
    white-space: pre-line;
}
.no-value {
    color: #888;
    font-style: italic;
}
#h1_dom{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
#wrap_buttons_head_dom{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}
.arrow::after {
    content: " ▸";
    transition: transform 0.3s ease;
    font-size: 0.8em;
}
.arrow[aria-expanded="true"]::after {
    transform: rotate(90deg);
    content: " ▾";
}     
.description-area {
    min-height: 300px;
    padding: 20px;
    border-left: 1px solid #dee2e6;
}
.tech-link {
    cursor: pointer;
}
#map{        
    width: 100%;
    height: 600px;
    max-height: 100vh;
}
.company-card {
    border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 12px;
        transition: box-shadow 0.2s;
}
.company-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.company-name {
        font-size: 1.2rem;
        font-weight: 500;
        color: #0056b3;
    }
    .company-email {
        color: #666;
        font-size: 0.9rem;
    }
    .actions a {
        margin-right: 10px;
        color: #007bff;
        text-decoration: none;
    }
    .actions a:hover {
        text-decoration: underline;
    }
    .no-companies {
        color: #6c757d;
        font-style: italic;
    }
.mycircleblue {
    transition: transform 0.2s ease;
}
.mycircleblue:hover {
    transform: scale(1.1);
}
.company-marker {
    pointer-events: auto;
}
.company-marker {
    position: relative;
}
.company-marker::after {
    content: attr(data-name);
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    font-family: Arial, sans-serif;
}
.company-marker:hover::after {
    opacity: 1;
    visibility: visible;
}
#cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 12px;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    display: none;
    z-index: 9999;
    font-family: Arial, sans-serif;
}
#cookie-notice button {
    margin-left: 10px;
    padding: 5px 12px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
}

#cookie-notice button:hover {
    background-color: #0056b3;
}
html, body, body > .container-fluid{
    min-height: 100vh;
}
body > .container-fluid{
    display: flex;
    flex-direction: column;
}
footer{  
    margin-top: auto;
}
#wrap_profile_logo{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
#search-history-list{
    height: 400px;
    overflow: hidden;
    overflow-y: scroll;
}
#wrap_top_lenta{
    display: flex;
    justify-content: space-around;
}
#wrap_select_reg{
    position: relative;
    display: flex;
    width: 100%;
}
#region-select{
    width: 48%;
    margin-right: 1%;
}
#company-search{
    width: 48%;
    padding: 5px;
    box-sizing: border-box;
}
.tech_map_sin {
    margin: 3px;
}
.tech_map_sin.active {
    background-color: #007bff;
    color: white;
}
.map-container{
    position: relative;
}
.scroll-btn {
  position: absolute;
  right: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: none; 
}
.scroll-up {
  bottom: 20px;
}
.scroll-down {
  top: 20px;
}
footer{
    background-color: #f8f8f8;
}    
#foot_mnu{
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 36px;
}
.foot_mnu_a{
    color: #a59c9c;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.8;
    margin-right: 1.2em;
}
.foot_mnu_a:hover{
    text-decoration: underline;
    color: #494444;
}
@media (max-width: 768px) {
    .scroll-btn {
        display: block; 
    }
    #table_plots thead {
        display: none;
    }
    #table_plots tbody tr {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
        background-color: #fff;
    }
    #table_plots tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        padding: 0.4rem 0 !important;
        border: none !important;
        text-align: right;
    }
    #table_plots tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-align: left;
        flex: 0 0 40%;
        padding-right: 0.5rem;
        word-wrap: break-word;
    }
    #table_plots tbody td::after {
        content: '';
        display: block;
        clear: both;
    }
    #table_plots tbody td[data-label="Изображение"] {
        justify-content: flex-start;
    }
    #table_plots tbody td[data-label="Изображение"]::before {
        align-self: flex-start;
        margin-top: 4px;
    }
    #table_plots tbody td[data-label="Изображение"] img {
        max-width: 60px;
        height: auto;
        object-fit: cover;
    }
    #table_plots tbody td[data-label="Действия"] {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }
    #table_plots tbody td[data-label="Действия"]::before {
        align-self: flex-start;
    }
}
@media screen and (max-width: 640px) {
    #wrap_select_reg{
        gap: 10px;
        flex-direction: column;
    }
    #company-search, #region-select{
        width: auto;
    }
	#wrap_button_head{
		display: flex;
        gap: 10px;
        flex-wrap: wrap;
        text-align: center !important;
        align-items: center;
        margin-bottom: 10px;
	}

    #wrap_profile_logo{
        flex-wrap: wrap;
    }
    footer{
        margin-left: 10px;
        margin-right: 10px;
    }
    #files-list .table-responsive td, #files-list .table-responsive th {
        display: block;
        width: 100% !important;
        padding: 8px 0 !important;
    }
    #files-list .table-responsive thead {
        display: none;
    }
    #files-list .table-responsive tr {
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 12px;
        margin-bottom: 12px;
        display: block;
    }
    #files-list .table-responsive td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        margin-right: 10px;
    }
    #files-list .table-responsive .file-name::before {
        content: "Имя файла:";
    }
    #files-list .table-responsive td:nth-child(2)::before {
        content: "Дата:";
    }
    #files-list .table-responsive td:nth-child(3)::before {
        content: "Действия:";
    }
    #files-list .table-responsive td:nth-child(3) {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    #wrap_top_lenta{
        flex-direction: column;
    }
    #search-history-list{
        height: auto;
    }
}