::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
}

::-webkit-scrollbar {
    width: 5px;
    background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    background-color: #333452;
}


@keyframes blik {
    from {
        background-image: url(images/butblik.png);
        background-position: 0px 100%, 0 0;
    }

    to {
        background-image: url(images/butblik.png);
        background-position: 250px 100%;
    }
}

body {
    -webkit-font-smoothing: antialiased;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: left top !important;
}

.bigblock {
    
}

/* =============================================
   Responsive Styles for Main Layout
   ============================================= */

/* Fluid images in header */
.backmmenu img,
table img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 992px) {
    /* Stack two-column layout on tablets */
    td.bigblock {
        display: block;
        width: 100% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* Make login form fluid */
    form[name="form_ucp_login"] table,
    form[name="form_ucp_login"] table tr,
    form[name="form_ucp_login"] table td {
        max-width: 100%;
    }

    .backmmenu {
        height: auto;
        padding: 10px 15px;
        text-align: center;
        box-sizing: border-box;
    }
    .backmmenu.rounded-bottom {
        border-radius: 0 0 5px 5px;
    }

    .mmenubut {
        width: auto;
        display: inline-block;
        margin: 4px;
        padding-left: 0;
    }

    .textbutmm {
        width: auto;
        padding: 0 15px;
        font-size: 14px;
        text-align: center;
    }

    .backmmenu br {
        display: none;
    }

    .linemmenu {
        width: 90%;
        margin: 0 auto;
    }

    /* Responsive header */
    .wallheadzima {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .mmenubut {
        display: block;
        width: 90%;
        margin: 8px auto;
    }

    .textbutmm {
        width: 100%;
        text-align: center;
        font-size: 13px;
    }

    /* Keep login label + input side-by-side, just center text */
    form[name="form_ucp_login"] .login-button td {
        text-align: center;
        padding: 12px 13px !important;
        font-size: 14px;
    }
}

/* Mobile top bar (logged-in only) - hidden by default */
.mobile-top-bar {
    display: none;
}

@media (max-width: 768px) {
    .logged-in .mobile-top-bar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 46px;
        z-index: 1000;
        background: rgba(43, 43, 43, 0.95);
        align-items: center;
        padding: 4px 10px 4px 50px;
        box-sizing: border-box;
        gap: 6px;
    }
    .mobile-top-bar img {
        width: 24px;
        height: 28px;
        flex-shrink: 0;
    }
    .mobile-top-bar-user {
        color: #fff;
        font-size: 13px;
        font-family: Manrope, sans-serif;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }
    .mobile-top-bar-logout {
        color: #e8a44a;
        font-size: 12px;
        font-family: Manrope, sans-serif;
        text-decoration: none;
        flex-shrink: 0;
        padding: 4px 8px;
        border: 1px solid #e8a44a;
        border-radius: 4px;
    }
    .mobile-top-bar .uas-switch-btn {
        color: #e8a44a;
        font-size: 11px;
        cursor: pointer;
        flex-shrink: 0;
        padding: 0 4px;
        line-height: 46px;
    }
    .mobile-top-bar .uas-dropdown-content {
        position: fixed;
        top: 46px;
        left: 50px;
        min-width: 200px;
        z-index: 1002;
        background: #2b2b2b;
        border: 1px solid #e8a44a;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    }
    .mobile-top-bar .uas-dropdown-content a {
        display: block;
        padding: 8px 12px;
        color: #fff;
        font-size: 13px;
        font-family: Manrope, sans-serif;
        text-decoration: none;
    }
    .mobile-top-bar .uas-dropdown-content a:hover {
        background: #c3812f;
    }
    /* Hide stacked header + spacer on mobile when logged in */
    .logged-in td[style*="padding-top:26px"] {
        display: none !important;
    }
    .logged-in td[height="325"] {
        display: none !important;
    }
    /* Push content below the fixed top bar */
    .logged-in td.bigblock {
        padding-top: 56px !important;
    }
}

/* Mobile hamburger menu - hidden by default */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 6px;
    left: 6px;
    z-index: 1001;
    width: 38px;
    height: 38px;
    background: #c3812f;
    border: 2px solid #e8a44a;
    border-radius: 8px;
    color: #fff;
    font-size: 22px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    padding: 0;
    outline: none;
}
.mobile-menu-toggle:hover {
    background: #d4913f;
}
#mobileNavOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: rgba(0,0,0,0.6);
    overflow-y: auto;
}
#mobileNavContent {
    background: #2b2b2b;
    min-height: 100%;
    padding: 0 20px 30px;
    box-sizing: border-box;
}
.mobile-nav-header {
    position: sticky;
    top: 0;
    z-index: 10;
    text-align: right;
    padding: 10px 0;
    background: #2b2b2b;
}
.mobile-nav-close {
    width: 40px;
    height: 40px;
    background: #c3812f;
    border: 2px solid #e8a44a;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 34px;
    text-align: center;
}
.mobile-nav-close:hover {
    background: #d4913f;
}
#mobileNavContent {
    background: #2b2b2b;
    min-height: 100%;
    padding: 0 20px 30px;
    box-sizing: border-box;
}
#mobileNavContent .mmenubut {
    display: block !important;
    width: 100% !important;
    margin: 4px 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box;
}
#mobileNavContent .textbutmm {
    display: block !important;
    width: 100% !important;
    padding: 0 15px !important;
    font-size: 14px !important;
    text-align: center !important;
    line-height: 30px !important;
    box-sizing: border-box;
}
#mobileNavContent .backmmenu {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 20px;
    height: auto !important;
    display: block !important;
}
#mobileNavContent .ucp-modern-menu {
    width: 100% !important;
    min-width: auto !important;
    max-width: none !important;
    margin-bottom: 0 !important;
}
#mobileNavContent .menu-item {
    width: 100% !important;
    box-sizing: border-box !important;
}
#mobileNavContent .menu-header {
    display: none;
}
.mobile-sidebar-block {
    margin-bottom: 15px;
}
.mobile-sidebar-title {
    color: #e8a44a;
    font-size: 13px;
    font-weight: bold;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .backmmenu {
        display: none;
    }
    .ucp-modern-menu,
    .reg-menu-container {
        display: none;
    }
    td[width="240"] {
        display: none;
    }

    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden !important;
    }

    /* The absolutely positioned wallheadzima div can cause overflow */
    .wallheadzima {
        width: 100% !important;
        max-width: 100vw;
    }

    /* Force main container table to fit viewport */
    table[style*="max-width:1400px"],
    table[style*="max-width: 1400px"] {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed;
    }

    /* Scale images in header */
    table img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Make the header title image scale down */
    img[width="404"] {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
    }

    /* Hide logo on very small screens to save space */
    img[width="131"] {
        max-width: 60px !important;
        height: auto !important;
    }

    /* Make the header area not overflow */
    table[style*="padding-top:40px"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* Login form - fit to screen */
    form[name="form_ucp_login"] table {
        width: 100% !important;
        max-width: 100% !important;
    }

    form[name="form_ucp_login"] input[type="text"],
    form[name="form_ucp_login"] input[type="password"] {
        width: 140px !important;
        max-width: 140px !important;
    }

    /* Prevent "Забыли пароль?" from wrapping */
    form[name="form_ucp_login"] td[style*="padding-right:35px"],
    form[name="form_ucp_login"] td[style*="padding-left:35px"] {
        padding: 4px !important;
        white-space: nowrap;
    }

    /* Hide blank spacer image in login form on mobile */
    form[name="form_ucp_login"] img[src*="blank.gif"] {
        display: none;
    }

    /* Make "Войти" button span its table column width */
    form[name="form_ucp_login"] .login-button td {
        text-align: center;
        padding: 10px 13px !important;
    }

    /* =============================================
       Header — stack logo, title, login vertically
       ============================================= */

    /* Outer header container */
    td[style*="padding-top:26px"] {
        display: block !important;
        width: 100% !important;
        padding-top: 10px !important;
    }

    /* Inner header table */
    td[style*="padding-top:26px"] > table[width="100%"] {
        display: block !important;
        width: 100% !important;
    }

    /* Hide left/right spacer columns */
    td[style*="padding-top:26px"] td[width="0"] {
        display: none !important;
    }

    /* Stack the 4 header columns (direct children of header tr only) */
    td[style*="padding-top:26px"] > table[width="100%"] > tbody > tr > td,
    td[style*="padding-top:26px"] > table[width="100%"] > tr > td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        text-align: center !important;
        border-radius: 5px !important;
        padding: 8px 5px !important;
    }

    /* Inside the logo area, stack logo image above title image */
    td[style*="border-radius:5px 0 0 0"] > table,
    td[style*="border-radius:5px 0 0 0"] > table > tbody,
    td[style*="border-radius:5px 0 0 0"] > table > tbody > tr,
    td[style*="border-radius:5px 0 0 0"] > table > tr {
        display: block !important;
        width: 100% !important;
    }
    td[style*="border-radius:5px 0 0 0"] > table > tbody > tr > td,
    td[style*="border-radius:5px 0 0 0"] > table > tr > td {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 4px 0 !important;
    }

    /* Make main content block not overflow */
    td.bigblock {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* Page content area — allow internal horizontal scroll so data tables don't push the page wide */
    td.page_text {
        max-width: 100% !important;
        overflow-x: auto !important;
    }

    /* Clamp hardcoded input/select/textarea widths so they fit the screen */
    td.bigblock input[style*="width"],
    td.bigblock select[style*="width"],
    td.bigblock textarea[style*="width"] {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Force wide tables with pixel widths to fit */
    td.bigblock table[width]:not([width="100%"]):not([width="auto"]):not([width^="1"]):not([width^="0"]) {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Allow words to break in data table cells */
    td.bigblock table[width="100%"] td,
    td.bigblock table[width="100%"] th {
        word-break: break-word;
    }

    /* Specific: note.php fixed-width table */
    td.bigblock table[width="660"] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* =============================================
       About page — completely restyled for mobile
       ============================================= */
    .about-page {
        height: auto !important;
        overflow: visible !important;
    }

    .about-page .page_name h1 {
        font-size: 1.4em !important;
    }

    /* Stack flex sections vertically */
    .about-page div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .about-page div[style*="display: flex"] > div {
        flex: none !important;
        width: 100% !important;
    }

    /* Images — full width, no float, centered */
    .about-page img {
        float: none !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        margin: 10px 0 !important;
    }

    /* YouTube fallback container */
    .about-page .yt-fallback-container {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        margin: 15px 0 !important;
    }

    .about-page .yt-fallback-container iframe {
        width: 100% !important;
        height: 100% !important;
    }

    /* Section blocks — reduce padding, keep readable */
    .about-page div[style*="border-left"],
    .about-page div[style*="border-radius"],
    .about-page div[style*="background"] {
        padding: 12px !important;
        margin: 15px 0 !important;
    }

    .about-page div[style*="border-radius"] h2,
    .about-page div[style*="border-left"] h2 {
        font-size: 1.2em !important;
    }

    /* Text paragraphs — readable on small screens */
    .about-page p,
    .about-page font[size="4"],
    .about-page td.page_text font {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        margin-left: 0 !important;
        text-align: left !important;
    }

    /* Remove excessive left margins on paragraphs */
    .about-page p[style*="margin-left"] {
        margin-left: 0 !important;
    }

    /* Bullet lists */
    .about-page ul {
        padding-left: 20px;
    }

    .about-page li {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Mobile menu buttons */
    .mmenubut {
        display: block;
        width: 80%;
        margin: 4px auto;
        padding-left: 0;
    }

    .textbutmm {
        width: 100%;
        text-align: center;
    }

    .backmmenu br {
        display: none;
    }

    /* Stack banner and news sections on mobile */
    td[style*="width:65%"],
    td[style*="width:35%"] {
        display: block;
        width: 100% !important;
    }

    .yt-fallback-container {
        max-width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
    }

    .yt-fallback-container iframe {
        height: 200px;
    }

    /* =============================================
       Profile tabs — mobile fixes
       ============================================= */

    /* main_info.php — stack skin + info columns vertically */
    #tab-main_info > div:first-child > table[width="100%"] {
        display: block !important;
        width: 100% !important;
    }
    #tab-main_info > div:first-child > table[width="100%"] > tbody,
    #tab-main_info > div:first-child > table[width="100%"] > tbody > tr {
        display: block !important;
        width: 100% !important;
    }
    #tab-main_info > div:first-child > table[width="100%"] > tbody > tr > td[width="150"],
    #tab-main_info > div:first-child > table[width="100%"] > tbody > tr > td[width="40%"] {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    #tab-main_info > div:first-child > table[width="100%"] > tbody > tr > td[width="150"] {
        border-right: none !important;
        padding-right: 0 !important;
        text-align: center !important;
        margin-bottom: 15px;
    }
    #tab-main_info > div:first-child > table[width="100%"] > tbody > tr > td[width="150"] img {
        max-width: 120px;
        height: auto;
    }
    #tab-main_info > div:first-child > table[width="100%"] > tbody > tr > td[width="40%"] {
        padding-left: 0 !important;
        padding-top: 8px;
    }

    /* main_info.php — min-width cell that causes overflow */
    #tab-main_info td[style*="min-width: 150px"] {
        min-width: auto !important;
        box-sizing: border-box;
    }

    /* transport.php — fix health bar width */
    .profile-tabs-container div[style*="width: 150px"][style*="height: 12px"] {
        width: 100% !important;
        max-width: 150px;
    }

    /* statistics.php — fix progress bar width */
    #tab-statistics div[style*="width: 200px"][style*="height: 16px"] {
        width: 100% !important;
        max-width: 200px;
    }

    /* admin_info.php — punishment table scrollable on mobile */
    .profile-tabs-container table[width="100%"][cellpadding="4"] {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .profile-tabs-container table[width="100%"][cellpadding="4"] td,
    .profile-tabs-container table[width="100%"][cellpadding="4"] th {
        word-break: break-word;
        white-space: normal;
    }

    /* Fix image widths in profile tabs */
    .profile-tabs-container img[width="200"] {
        max-width: 100% !important;
        height: auto !important;
    }

    /* =============================================
       Admin search form — mobile fix
       ============================================= */
    form[name="form_player"] table {
        width: 100% !important;
    }
    form[name="form_player"] table tr {
        display: block;
        width: 100% !important;
    }
    form[name="form_player"] table td {
        display: block;
        width: 100% !important;
        text-align: center !important;
        padding-left: 0 !important;
        margin-bottom: 8px;
    }
    form[name="form_player"] input[name="name"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    form[name="form_player"] input[name="b"] {
        width: 100% !important;
        max-width: 200px !important;
        box-sizing: border-box;
    }

    /* =============================================
       Log pages search forms — mobile fix
       ============================================= */
    /* Make all search tables fill available width */
    form table[cellpadding="0"]:not([width]) {
        width: 100% !important;
    }
    /* Make 400px inputs and selects full-width */
    td.page_text input[style*="width:400"],
    td.page_text select[style*="width:400"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    /* Fix moneylog's second search row (Категория + select) */
    form table[cellpadding="0"]:not([width]) td[style*="padding-top:10px"] {
        margin-top: 6px;
    }
    /* Make 100px search buttons full-width with max */
    td.page_text input[style*="width:100"][value*="Искать"],
    td.page_text input[style*="width:100"][value*="Поиск"] {
        width: 100% !important;
        max-width: 200px !important;
        box-sizing: border-box;
    }



    /* =============================================
       Licenses page — mobile fix  
       ============================================= */
    table.page_text td select[style*="width:300"],
    table.page_text td input[style*="width:200"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    table.page_text td font[size="2"] {
        word-break: break-word;
    }
}

.wallheadzima {
    /*прозрачная заливка*/
    position: absolute;
    height: 200px;
    width: 100%;
    z-index:-1;
    background-image: url(images/zima.png);
    background-color: rgba(47, 148, 101, 0);
}
a
{
	font-family:Arial;
	font-size:14px;
	color:#FF6600;
	text-decoration:underline;
}
h1
{
	font-family:Arial;
	font-size:30px;
	text-decoration:none;
	font-weight:bold;
	padding:0px;
	margin:0px;
}
h2
{
	font-family:Arial;
	font-size:30px;
	text-decoration:none;
	font-weight:normal;
	padding:0px;
	margin:0px;
}
h3
{
	font-family:Arial;
	font-size:25px;
	color:#FFFFFF;
	text-decoration:none;
	font-weight:normal;
	padding:0px;
	margin:0px;
}
.mmenu
{
	font-family:Arial;
	font-size:16px;
	color:#DED0A4;
	text-decoration:none;
}
.l_news
{
	font-family:Arial;
	font-size:24px;
	color:#FFFFFF;
	text-decoration:none;
}
.ln_text
{
	font-family:Arial;
	font-size:12px;
	color:#E7E0C2;
	text-decoration:none;
}
.ln_name
{
	font-family:Arial;
	font-size:16px;
	color:#E7E0C2;
	text-decoration:none;
}
.page_name
{
	font-family:Arial;
	font-size:25px;
	color:#FFFFFF;
	text-decoration:none;
}
.page_text
{
	font-family:Arial;
	font-size:14px;
	color:#E7E0C2;
	text-decoration:none;
    padding-right:10px;
}
.modal_text
{
	font-family:Arial;
	font-size:14px;
	color:#3F2809;
	text-decoration:none;
	line-height:1;
}
.page_texta
{
	font-family:"Monotype Corsiva";
	font-size:38px;
	color:#E7E0C2;
	text-decoration:none;
}
.l_ucp
{
	font-family:Arial;
	font-size:16px;
	color:#FFFFFF;
	text-decoration:none;
}
.p_text
{
	font-family:Arial;
	font-size:12px;
	color:#04A7EF;
	text-decoration:none;
}
.enterone {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 5px 8px 5px 8px;
    font-size: 10px;
    color: #ff7428;    
    font-family: 'Arimo', sans-serif;
}
.entertwo {
    border-radius: 15px;
    padding: 5px 8px 5px 8px;
    font-size: 12px;
    color: white;
    font-family: 'Arimo', sans-serif;
    background-color: #ff7428;
    white-space: nowrap;
}
.exitbut {
    border-radius: 15px;
    padding: 5px 8px 5px 8px;
    font-size: 9px;
    font-family: 'Arimo', sans-serif;
    color:white;    
    text-decoration:none;
    margin-left:8px;
    margin-bottom:2px;
    line-height:9px;
}
    .exitbut:hover {
        
        font-size:10px;
    }
/* UAS Dropdown styles */
.uas-switch-btn {
    display: inline-block;
    cursor: pointer;
    font-size: 10px;
    margin-left: 5px;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    vertical-align: middle;
}
.uas-switch-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}
.entertwo {
    position: relative; /* For dropdown positioning */
}
.uas-dropdown-content {
    display: none;
    position: absolute;
    background-color: #333452;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1000;
    border-radius: 5px;
    top: 100%;
    left: 0;
    margin-top: 5px;
    overflow: hidden;
}
.uas-dropdown-content a {
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    font-size: 12px;
    font-family: 'Arimo', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.uas-dropdown-content a:last-child {
    border-bottom: none;
}
.uas-dropdown-content a:hover {
    background-color: #ff7428;
}
.uas-dropdown-content.show {
    display: block;
}
.linemmenu {
    height: 2px;
    width: 100%;
    
    background-color: #ff7428;
}
.backmmenu {
    background: rgba(255, 255, 255, 0.4);
    background-repeat: repeat-x;
    width: 100%;
    padding: 0 55px 15px;
    box-sizing: border-box;
}
.backmmenu.rounded-bottom {
    border-radius: 0 0 5px 5px;
}
.mmenubut {
    display: inline-block;
    width: 200px;
    height: 30px;
    padding-left:10px;
    margin-left: 0px;
    margin-top: 15px;
    border-radius: 15px;
    border: 2px solid white;
    transition:.3s;
    
}
.textbutmm {
    display: block;
    width: 200px;
    height: 30px;
    color: white;
    font-family: 'Arimo', sans-serif;
    text-decoration: none;
    line-height: 30px;
    border-radius: 15px;
}
    .textbutmm:hover {
        
        
        
    }
.mmenubut:hover {
    border-color: #ff7428;
    
    background-color: #ff7428;
    box-shadow: 0px 0px 20px 1px rgba(255,116,40,1);
    transition: .3s;
    animation: blik .5s ease-in-out 1;
    background-repeat:no-repeat;
}
.forgpass {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 5px 8px 5px 8px;
    font-size: 10px;
    color: #ff7428;
    transition: .3s;
    font-family: 'Arimo', sans-serif;
}
.forgpass:hover {
    background-color: #ff7428;
    color: white;
    transition: .3s;
}
.login
{   
    padding-left:13px;
	font-family:Manrope;
	font-size:12px;
	color:white;
	text-decoration:none;
}
.login-row td {
    height: 30px;
}
.login-row td:first-child {
    background: linear-gradient(to bottom, rgb(255, 116, 40), rgb(190, 85, 28));
    border-radius: 15px 0 0 15px;
}
.login-row td:last-child {
    background: rgb(234, 234, 234);
    border-radius: 0 15px 15px 0;
}
.login-row td:last-child input {
    border-radius: 0 15px 15px 0;
}
.login-row.login-button td {
    background: linear-gradient(to bottom, rgb(255, 116, 40), rgb(190, 85, 28));
    border-radius: 15px;
    overflow: hidden;
}
.login-row.login-button:hover td {
    filter: brightness(1.1);
    cursor: pointer;
}
.vnews-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}
.vnews-video {
    flex: 0 0 640px;
    max-width: 100%;
    order: 1;
}
.vnews-news {
    flex: 0 0 300px;
    max-width: 100%;
    order: 2;
}
@media (max-width: 960px) {
    .vnews-video { order: 2; }
    .vnews-news { order: 1; }
}
.all_news
{
	font-family:Arial;
	font-size:15px;
	color:#E7E0C2;
	text-decoration:none;
}

/* YouTube Fallback */
.yt-fallback-container {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.yt-fallback-message {
    padding: 20px;
    color: #888;
    font-size: 13px;
    line-height: 1.5;
    z-index: 1;
}

.yt-fallback-message .sad-icon {
    display: block;
    font-size: 40px;
    margin-bottom: 15px;
    color: #EC972D;
    opacity: 0.6;
}

.yt-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 2;
}
/* ����� ��� ��������� �� ����� */
.editor
{
	font-family:Arial;
	font-size:13px;
}
.button
{
	border: 1px solid #333333;
	margin: 0px;
	padding: 0px;
	cursor:pointer;
}

.button:hover
{
	filter:progid:DXImageTransform.Microsoft.Alpha(opacity=60);
	-moz-opacity: 0.6;
}

.ed
{
	width:100%;
}
/* ����� ��� ������ ������� ������� */
.paginate
{
	font-family:Arial, Helvetica, sans-serif;
	font-size:11px;
	padding: 3px;
	margin: 3px;
}
.paginate a
{
	padding:2px 5px 2px 5px;
	margin:2px;
	border:1px solid #E7E0C2;
	text-decoration:none;
	color: #E7E0C2;
	font-size:11px;
}
.paginate a:hover, .paginate a:active
{
	border: 1px solid #FF6600;
	color: #FF6600;
	font-size:11px;
}
.paginate span.current
{
	margin: 2px;
	padding: 2px 5px 2px 5px;
	border: 1px solid #E7E0C2;
	
	font-weight: bold;
	background-color: #E7E0C2;
	color: #000000;
	font-size:11px;
}
.paginate span.disabled
{
	padding:2px 5px 2px 5px;
	margin:2px;
	border:1px solid #666666;
	color:#666666;
	font-size:11px;
}
/*����� ����������������� ������*/
#acc {list-style:none; margin:0px}
#acc h3 {padding:0px; margin-top:0px; cursor:pointer;}
#acc h3:hover {}
#acc .acc-section {overflow:hidden;}
#acc .acc-content {padding:0px; border-top:none;}

#nested {list-style:none; margin:0px}
#nested h3 { padding:0x; margin:0px; cursor:pointer;}
#nested h3:hover {}
#nested .acc-section {overflow:hidden;}
#nested .acc-content {padding:0px; border-top:none;}
#nested .acc-selected {}
.cpos { font-family:Arial; font-size:11px; color:#835114; text-decoration:none; padding:0px; margin:0px;}
/*����� ��� ������������ ������*/
code
{
	background-color: #fbf6db;
	padding: 2px;
}

div#container
{
	width: 750px;
	background: #fff;
	padding: 25px 0;
	border: 10px solid #d5d5d5;
	-moz-border-radius: 25px;
	-moz-box-shadow: 3px 3px 7px 0 #101010;
}

div#header
{
	padding: 0 25px;
}

	div#header h1
	{
		font-size: 24px;
		margin: 5px 0;
		color: #222;
	}

	div#header h2
	{
		font-size: 14px;
		margin: 3px 0;
		color: #999;
	}

div#example
{
	background: #ecf6fe url(s/assets/img/basic.png) 25px 15px no-repeat;
	padding: 10px 25px 20px 91px;
	border-bottom: 1px dashed #c0c0c0;
}

	div#example h1
	{
		font-size: 18px;
		margin: 7px 0;
		color: #000;
	}
	
	div#example p
	{
		margin: 10px 0;
	}

	div#example input,
	div#examples input
	{
		padding: 7px 7px 7px 30px;
		border: 2px solid #d0d0d0;
		background: #fff url(s/assets/img/search.png) 8px center no-repeat;
		font-family: Verdana;
		font-size: 16px;
		color: #666;
	}

div.box
{
	margin-top: 20px;
	background: #fff url() 25px 20px no-repeat;
	padding: 20px 25px 0 91px;
	border-top: 1px dashed #c0c0c0;
}

	div#what
	{
		background-image: url(s/assets/img/what.png);
	}

	div#how
	{
		background-image: url(s/assets/img/how.png);
	}

	div#api
	{
		background-image: url(s/assets/img/api.png);
	}
	
	div#examples
	{
		background-image: url(s/assets/img/examples.png);
	}
	
	div#legal
	{
		background-image: url(s/assets/img/legal.png);
	}
	
	div#contact
	{
		background-image: url(s/assets/img/contact.png);
	}

	div.box h1
	{
		font-size: 20px;
		color: #222;
		margin: 0 0 10px 0;
	}
	
	div.box h2
	{
		font-size: 16px;
		color: #666;
		margin: 10px 0;
		border-bottom: 1px solid #aaa;
		padding: 10px 0 4px 0;
	}
	
	div.box p
	{
		margin-left: 5px;
		line-height: 150%;
	}
	
	div.box ul
	{
		line-height: 175%;
		margin: 5px 0 5px 35px;
	}
	
	div.box pre
	{
		margin: 5px;
		background: #f0f0f0;
		border: 1px solid #c5c5c5;
		font-size: 12px;
		padding: 10px;
		overflow: auto;
		max-height: 130px;
	}
	div.ss-wrap *
{
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	background-color: transparent;
	background-image: none;
	background-position: 0 0;
	text-decoration: none;
	font-size: 1em;
}

input.ss-input
{
	display: block;
}

input.ss-input-thinking
{
	background-image: url(s/assets/img/indicator.gif);
	background-repeat: no-repeat;
	background-position: center right;
}

ul.ss-box
{
	/* Will be absolutely positioned in the JavaScript */
  margin: 0 !important;
	padding: 0 !important;
	width: 304px;
	z-index: 999999;
	border: 1px solid #919191;
	font-size: 11px;
	background: #fff;
	-moz-box-shadow: 2px 2px 5px 0 #c5c5c5;
	list-style: none;
}
	
	ul.ss-box li
	{
		float: left;
		width: 100%;
		clear: both;
	}
	
	ul.ss-box li,
	ul.ss-box li *
	{
		cursor: pointer;
	}

	ul.ss-box li.ss-header
	{
		height: 13px;
		overflow: hidden;
		padding: 5px 0;
		color: #fff;
		background: transparent url(s/assets/img/search-header-bg.gif) repeat-x bottom;
	}

		ul.ss-box li.ss-header p.ss-header-text
		{
			margin: 0 !important;
			padding: 0 0 0 10px !important;
			float: left;
			font-size: 12px;
			font-weight: bold;
		}

		ul.ss-box li.ss-header p.ss-header-limit
		{
			margin: 0 !important;
			padding: 0 10px 0 0 !important;
			float: right;
			font-size: 11px;
			font-weight: normal;
		}

	ul.ss-box li.ss-result
	{
		margin: 0 !important;
		padding: 0 !important;
		border-bottom: 1px solid #c5c5c5;
		border-right: 1px solid #c5c5c5;
	}

		ul.ss-box li.ss-result a
		{
			display: block;
			padding: 5px 10px;
			text-decoration: none !important;
			background: #fff;
		}
		
		ul.ss-box li.ss-result a:hover
		{
			background: #cde0ff url(s/assets/img/search-item-hover.gif) repeat-x top; /* Also is set in JavaScript file for IE6 compatibility */
		}

		ul.ss-box li.ss-result img
		{
			margin-right: 12px;
		}

		ul.ss-box li.ss-result p
		{
			margin: 0 !important;
			padding: 0 !important;
			color: #444;
			font-weight: normal;
			font-size: 10px;
		}

			ul.ss-box li.ss-result p span.ss-result-title
			{
				display: inline !important;
				margin: 0 !important;
				padding: 0 !important;
				font-size: 11px;
				font-weight: bold;
				color: #222;
			}
			/* Pretty printing styles. Used with prettify.js. */

.str { color: #080; }
.kwd { color: #008; }
.com { color: #800; }
.typ { color: #606; }
.lit { color: #066; }
.pun { color: #660; }
.pln { color: #000; }
.tag { color: #008; }
.atn { color: #606; }
.atv { color: #080; }
.dec { color: #606; }

@media print {
  .str { color: #060; }
  .kwd { color: #006; font-weight: bold; }
  .com { color: #600; font-style: italic; }
  .typ { color: #404; font-weight: bold; }
  .lit { color: #044; }
  .pun { color: #440; }
  .pln { color: #000; }
  .tag { color: #006; font-weight: bold; }
  .atn { color: #404; }
  .atv { color: #060; }
}



.clickable-image {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.clickable-image:hover {
    transform: scale(1.05);
    border-color: #FF6600;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

/* Modal Window Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #3a260a 0%, #59360E 100%);
    border-radius: 15px;
    padding: 25px;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid #FF6600;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.5rem;
    color: #FF6600;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.close-modal:hover {
    color: #FFD700;
    background: rgba(255, 102, 0, 0.3);
    transform: rotate(90deg);
}

.modal-title {
    color: #FFD700;
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}



/* News Page Styles */
.news-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.news-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #59360E 0%, #704617 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.news-title {
    color: #FFD700;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.news-subtitle {
    color: #E7E0C2;
    font-size: 1.1rem;
    font-style: italic;
}

.news-controls {
    background-color: #3a260a;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.date-form {
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.form-label {
    color: #E7E0C2;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 120px;
}

.date-input {
    padding: 10px 15px;
    border: 2px solid #59360E;
    border-radius: 5px;
    background-color: #E7E0C2;
    color: #5B380F;
    font-size: 1rem;
    width: 120px;
    transition: all 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: #FF6600;
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.5);
}

.submit-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #FF6600 0%, #FF8800 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.4);
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #59360E;
}

.filter-label {
    color: #E7E0C2;
    font-weight: bold;
    font-size: 1.1rem;
}

.filter-tab {
    padding: 8px 20px;
    background-color: #59360E;
    color: #E7E0C2;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-tab:hover {
    background-color: #704617;
    color: #FFD700;
    transform: translateY(-1px);
}

.filter-tab.active {
    background-color: #FF6600;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255, 102, 0, 0.3);
}

.news-content {
    background-color: rgba(58, 38, 10, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.error-message {
    background-color: #721c24;
    color: #f8d7da;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.news-table-container {
    overflow-x: auto;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2a1e08;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.table-header {
    background: linear-gradient(135deg, #59360E 0%, #704617 100%);
}

.table-header th {
    padding: 15px 12px;
    text-align: left;
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-col {
    width: 180px;
}

.author-col {
    width: 200px;
}

.message-col {
    width: auto;
}

.news-row {
    transition: background-color 0.2s ease;
}

.news-row.odd {
    background-color: #3a260a;
}

.news-row.even {
    background-color: #4a3212;
}

.news-row:hover {
    background-color: #5a3e18;
}

.date-cell, .author-cell, .message-cell {
    padding: 12px;
    vertical-align: top;
}

.date-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-align: center;
}

.author-cell {
    text-align: center;
}

.author-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.author-type {
    font-size: 0.85rem;
    opacity: 0.8;
}

.author-simple {
    font-weight: bold;
    font-size: 1.1rem;
}

.message-cell {
    line-height: 1.5;
}

.phone-info {
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
}

.no-data-row {
    background-color: #59360E !important;
}

.no-data-cell {
    text-align: center;
    padding: 40px 20px;
}

.no-data-message {
    color: #FF6600;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.no-data-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.no-data-message small {
    color: #E7E0C2;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-container {
        padding: 10px;
    }
    
    .news-title {
        font-size: 2rem;
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tab {
        text-align: center;
        padding: 12px;
    }
    
    .table-header th {
        font-size: 0.9rem;
        padding: 10px 8px;
    }
    
    .date-col, .author-col {
        width: auto;
    }
    
    .date-cell, .author-cell, .message-cell {
        padding: 8px 6px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .news-title {
        font-size: 1.5rem;
    }
    
    .news-header {
        padding: 15px;
    }
    
    .news-controls {
        padding: 15px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px;
    }
    
    .date-input {
        width: 100%;
        margin-bottom: 10px;
    }
}





/* Стили для сортировки */
.sort-panel {
    background: #2C1A07;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #59360E;
}

.sort-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.sort-form label {
    color: #FFD700;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-form select {
    padding: 6px 10px;
    border: 1px solid #59360E;
    border-radius: 4px;
    background: #E7E0C2;
    color: #333;
    font-size: 0.9rem;
}

.sort-form select:focus {
    outline: 2px solid #FF6600;
    border-color: #FF6600;
}

.items-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.items-table th.sortable:hover {
    background: linear-gradient(135deg, #704617 0%, #8B5A2B 100%) !important;
}

.items-table th.sortable::after {
    content: "↕";
    position: absolute;
    right: 10px;
    opacity: 0.5;
    font-size: 0.8rem;
}

/* Адаптивность для сортировки */
@media (max-width: 768px) {
    .sort-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .sort-form label {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .sort-panel {
        padding: 10px;
    }
    
    .sort-form label {
        font-size: 0.9rem;
    }
    
    .sort-form select {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
}

/* Стили для панели поиска и управления */
.controls-panel {
    background: #2C1A07;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #59360E;
}

.controls-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.control-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.control-group label {
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.control-group input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #59360E;
    border-radius: 4px;
    background: #E7E0C2;
    color: #333;
    font-size: 0.9rem;
}

.control-group input[type="text"]:focus {
    outline: 2px solid #FF6600;
    border-color: #FF6600;
}

.control-group select {
    padding: 8px 12px;
    border: 1px solid #59360E;
    border-radius: 4px;
    background: #E7E0C2;
    color: #333;
    font-size: 0.9rem;
}

.control-group select:focus {
    outline: 2px solid #FF6600;
    border-color: #FF6600;
}

.btn-secondary {
    background: linear-gradient(135deg, #59360E 0%, #704617 100%);
    color: #FFD700;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #704617 0%, #8B5A2B 100%);
    color: #FFFF00;
}

/* Адаптивность для панели управления */
@media (max-width: 768px) {
    .controls-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .control-group {
        min-width: auto;
        width: 100%;
    }
    
    .control-group label {
        margin-bottom: 3px;
    }
}

@media (max-width: 480px) {
    .controls-panel {
        padding: 15px;
    }
    
    .control-group label {
        font-size: 0.8rem;
    }
    
    .control-group input[type="text"],
    .control-group select {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* Стили для пагинации */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background: #2C1A07;
    border-radius: 8px;
    border: 2px solid #59360E;
}

.pagination-info {
    color: #FFD700;
    font-weight: bold;
}

.pagination {
    display: flex;
    gap: 5px;
}

.pagination-link,
.pagination-current,
.pagination-dots {
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination-link {
    background: linear-gradient(135deg, #59360E 0%, #704617 100%);
    color: #FFD700;
}

.pagination-link:hover {
    background: linear-gradient(135deg, #704617 0%, #8B5A2B 100%);
    color: #FFFF00;
    transform: translateY(-1px);
}

.pagination-current {
    background: linear-gradient(135deg, #FF6600 0%, #FF9900 100%);
    color: white;
    font-weight: bold;
}

.pagination-dots {
    background: transparent;
    color: #AAAAAA;
}

.item-count {
    text-align: center;
    font-size: 1.2rem;
    color: #FFCC00;
    margin-top: 10px;
}

/* Адаптивность для пагинации */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        padding: 10px;
    }
    
    .pagination-info {
        font-size: 0.9rem;
    }
    
    .pagination-link,
    .pagination-current,
    .pagination-dots {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* Стили для рецептов */
.recipe-section {
    flex-direction: column;
}

.recipe-section .detail-label {
    margin-bottom: 10px;
}

.recipe-details {
    margin-left: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-item {
    padding: 10px;
    background: rgba(139, 90, 43, 0.3);
    border-radius: 5px;
    color: #FFCC00;
    border-left: 3px solid #FF6600;
}

.no-recipe {
    color: #AAAAAA;
    font-style: italic;
    padding: 10px;
}

/* Адаптивность для рецептов */
@media (max-width: 768px) {
    .recipe-details {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .recipe-item {
        font-size: 0.9rem;
        padding: 8px;
    }
}

/* Стили для позиций и размеров */
.position-section,
.scale-section,
.handheld-section {
    flex-direction: column;
}

.position-section .detail-label,
.scale-section .detail-label,
.handheld-section .detail-label {
    margin-bottom: 10px;
}

.position-details,
.scale-details,
.handheld-details {
    margin-left: 200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.position-details div,
.scale-details div,
.handheld-details div {
    padding: 8px;
    background: rgba(112, 70, 23, 0.3);
    border-radius: 4px;
    color: #FFCC00;
    font-family: monospace;
    font-size: 0.9rem;
}

.handheld-section .detail-label {
    color: #FF6666;
}

.handheld-details div {
    background: rgba(255, 102, 102, 0.2);
    border-left: 2px solid #FF6666;
}

/* Адаптивность для координат */
@media (max-width: 768px) {
    .position-details,
    .scale-details,
    .handheld-details {
        margin-left: 0;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .position-details div,
    .scale-details div,
    .handheld-details div {
        font-size: 0.8rem;
        padding: 6px;
    }
}



/* Стили для инвентаря бизнеса */
.inventory-section .detail-label {
    color: #FF9900;
}

.inventory-details {
    margin-left: 200px;
}

.inventory-items {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 4px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.inventory-item {
    padding: 5px;
    margin-bottom: 3px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.item-name {
    color: #00FF00;
}

.item-count {
    color: #FF9900;
}

.item-price {
    color: #00FFFF;
}

.no-inventory {
    color: #FF6666;
    font-style: italic;
    text-align: center;
    padding: 15px;
}

/* Адаптивность для инвентаря */
@media (max-width: 768px) {
    .inventory-details {
        margin-left: 0;
    }
    
    .inventory-items {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .inventory-item {
        font-size: 0.8rem;
        padding: 3px;
    }
}

.orgchat-container {

    max-width: 100%;

    margin: 0 auto;

    padding: 20px;

}



.page-header h1 {

    color: #FFD700;

    text-align: center;

    margin-bottom: 10px;

    font-size: 28px;

    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);

}



.header-subtitle {

    text-align: center;

    color: #E7E0C2;

    font-size: 16px;

    margin-bottom: 30px;

    opacity: 0.8;

}



.alert {

    padding: 20px;

    margin: 20px 0;

    border-radius: 8px;

    display: flex;

    align-items: center;

    gap: 15px;

}



.alert-icon {

    font-size: 24px;

    min-width: 30px;

    text-align: center;

}



.alert-content {

    flex: 1;

}



.alert-content h3 {

    margin-top: 0;

    margin-bottom: 10px;

}



.alert-content p {

    margin: 0;

}



.alert-success {

    background: #59360E;

    border: 2px solid #90EE90;

    color: #90EE90;

}



.alert-warning {

    background: #59360E;

    border: 2px solid #FFA500;

    color: #FFA500;

}



.alert-danger {

    background: #59360E;

    border: 2px solid #FF6666;

    color: #FF6666;

}



.orgchat-form {

    background: #59360E;

    padding: 25px;

    border-radius: 8px;

    margin-bottom: 30px;

    border: 2px solid #704617;

    box-shadow: 0 4px 15px rgba(0,0,0,0.3);

}



.form-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

    padding-bottom: 15px;

    border-bottom: 1px solid #704617;

}



.form-header h2 {

    margin: 0;

    color: #FFD700;

}



.form-info {

    color: #90EE90;

    font-size: 14px;

    font-weight: bold;

}







.form-group {

    margin-bottom: 20px;

}



.form-group label {

    display: block;

    color: #E7E0C2;

    margin-bottom: 8px;

    font-weight: bold;

}



#orgchat_t {

    width: 100%;

    height: 80px;

    padding: 12px;

    border: 2px solid #704617;

    border-radius: 4px;

    background: #E7E0C2;

    color: #5B380F;

    font-family: Arial, sans-serif;

    font-size: 14px;

    resize: vertical;

    box-sizing: border-box;

}



#orgchat_t:focus {

    outline: none;

    border-color: #FFD700;

    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);

}



.char-counter {

    text-align: right;

    margin-top: 8px;

    font-size: 13px;

    color: #90EE90;

    font-weight: bold;

}



#faction_select {

    width: 100%;

    padding: 10px;

    border: 2px solid #704617;

    border-radius: 4px;

    background: #E7E0C2;

    color: #5B380F;

    font-size: 14px;

    box-sizing: border-box;

}



#faction_select:focus {

    outline: none;

    border-color: #FFD700;

}



.form-actions {

    text-align: center;

    margin: 25px 0;

}



.btn {

    padding: 12px 25px;

    border: none;

    border-radius: 4px;

    cursor: pointer;

    font-weight: bold;

    text-transform: uppercase;

    transition: all 0.3s ease;

}



.btn-primary {

    background: #FFD700;

    color: #5B380F;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

}



.btn-icon {

    font-size: 16px;

}



.btn-primary:hover {

    background: #FFA500;

    transform: translateY(-2px);

    box-shadow: 0 4px 8px rgba(0,0,0,0.3);

}



.btn-small {

    padding: 6px 12px;

    font-size: 12px;

}



.btn-danger {

    background: #FF6666;

    color: white;

}



.btn-danger:hover {

    background: #FF3333;

}



.form-note {

    background: #704617;

    padding: 15px;

    border-radius: 4px;

    margin-top: 20px;

    border-left: 4px solid #FFD700;

}



.note-header {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 10px;

}



.note-icon {

    font-size: 18px;

}



.note-header h4 {

    margin: 0;

    color: #FFD700;

}



.form-note h4 {

    color: #FFD700;

    margin-top: 0;

    margin-bottom: 10px;

}



.form-note ul {

    color: #E7E0C2;

    margin: 0;

    padding-left: 20px;

}



.form-note li {

    margin-bottom: 5px;

}



.messages-section {

    background: #59360E;

    padding: 25px;

    border-radius: 8px;

    border: 2px solid #704617;

    box-shadow: 0 4px 15px rgba(0,0,0,0.3);

}



.section-header {

    margin-bottom: 20px;

    padding-bottom: 15px;

    border-bottom: 1px solid #704617;

}



.section-header h2 {

    color: #FFD700;

    margin: 0 0 5px 0;

}



.section-info {

    color: #90EE90;

    font-size: 14px;

}







.messages-table-container {

    overflow-x: auto;

}



.messages-table {

    width: 100%;

    border-collapse: collapse;

    background: #704617;

    border-radius: 4px;

    overflow: hidden;

}



.messages-table th {

    background: #59360E;

    color: #FFD700;

    padding: 12px;

    text-align: left;

    font-weight: bold;

    border-bottom: 2px solid #FFD700;

}



.col-date { width: 15%; }

.col-author { width: 20%; }

.col-message { width: 50%; }

.col-id { width: 5%; text-align: center; }

.col-actions { width: 10%; text-align: center; }



.messages-table td {

    padding: 12px;

    color: #E7E0C2;

    border-bottom: 1px solid #59360E;

}



.message-date { font-size: 13px; color: #90EE90; }

.message-author { font-weight: bold; color: #FFD700; }

.message-text { font-style: italic; }

.message-id { text-align: center; font-size: 12px; color: #FFA500; }

.message-actions { text-align: center; }



.messages-table tr:last-child td {

    border-bottom: none;

}



.messages-table td strong {

    color: #90EE90;

}



.no-messages {

    text-align: center;

    padding: 40px;

    color: #FFA500;

}



.no-messages-icon {

    font-size: 48px;

    margin-bottom: 15px;

    opacity: 0.7;

}



.no-messages h3 {

    margin-top: 0;

    font-size: 24px;

}



.pagination {

    margin-top: 30px;

    text-align: center;

}



.pagination-info {

    color: #E7E0C2;

    margin-bottom: 15px;

    font-size: 14px;

}



.pagination-links {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 5px;

}



.pagination-link, .pagination-current {

    display: inline-block;

    padding: 8px 12px;

    margin: 2px;

    border-radius: 4px;

    text-decoration: none;

    color: #E7E0C2;

    background: #704617;

    border: 1px solid #59360E;

    transition: all 0.3s ease;

}



.pagination-link.first,

.pagination-link.last {

    background: #59360E;

    border-color: #FFD700;

}



.pagination-link.prev,

.pagination-link.next {

    background: #704617;

    border-color: #90EE90;

}



.pagination-link:hover {

    background: #59360E;

    color: #FFD700;

    text-decoration: none;

}



.pagination-current {

    background: #FFD700;

    color: #5B380F;

    font-weight: bold;

    cursor: default;

}



@media (max-width: 768px) {

    .orgchat-container {

        padding: 10px;

    }

    

    .page-header h1 {

        font-size: 24px;

    }

    

    .header-subtitle {

        font-size: 14px;

    }

    

    .alert {

        flex-direction: column;

        text-align: center;

        gap: 10px;

    }

    

    .form-header {

        flex-direction: column;

        gap: 10px;

        align-items: flex-start;

    }

    

    .messages-table {

        font-size: 12px;

    }

    

    .messages-table th,

    .messages-table td {

        padding: 8px 4px;

    }

    

    .col-date { width: 20%; }

    .col-author { width: 25%; }

    .col-message { width: 40%; }

    .col-id { width: 5%; }

    .col-actions { width: 10%; }

    

    #orgchat_t {

        height: 100px;

    }

    

    .pagination-links {

        gap: 2px;

    }

    

    .pagination-link, .pagination-current {

        padding: 6px 8px;

        font-size: 12px;

    }

    

    .section-header {

        text-align: center;

    }

}


