body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    /* Располагаем блоки в колонку по центру */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 40px;
    margin: 0;
    text-align: center;
}
/* Стиль для формы поиска */
.search-wrapper {
    /* background: white; */
    padding: 1.5rem;
    /* border-radius: 16px; */
    /* box-shadow: 0 10px 25px rgba(0,0,0,0.05); */
    max-width: 600px;
    width: 90%;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #2563eb;
}

.search-button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #1d4ed8;
}

.container {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    max-width: 600px;
    width: 90%;
    /* Отступ между блоками */
    margin-bottom: 20px;
    box-sizing: border-box; /* Чтобы padding не раздувал ширину */
}

h3 {
    margin-top: 0;
}

p {
    margin-bottom: 0;
}

/*================================================*/

.status-bar {
    display: flex;
    flex-wrap: wrap; /* позволяет перенос */
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 600px;
    width: 90%;
    margin-bottom: 20px;
    box-sizing: border-box;
}
.status-text {
    flex: 1;
    min-width: 200px;
    text-align: left;
    margin-right: 10px;
}
.status-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    margin-left: auto;
}
.status-actions a {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
    transition: color 0.2s;
}
.status-actions a:hover {
    color: #1d4ed8;
}
.status-actions select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
}
/* НОВЫЕ СТИЛИ ДЛЯ ДИАЛОГА ЛОГИНА (ДОПОЛНЕНИЕ) */
.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    max-width: 400px;
    width: 90%;
    margin-top: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}
.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s;
}
.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.submit-button {
    width: 100%;
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}
.submit-button:hover {
    background-color: #1d4ed8;
}
.login-footer {
    margin-top: 1.5rem;
    font-size: 14px;
    text-align: center;
}
.login-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.login-footer a:hover {
    text-decoration: underline;
}
/*------------------------------*/
.subcategories {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); 
    gap: 8px 20px; 
    margin-top: 10px;
    justify-content: start; 
}
.sub-item {
    font-size: 0.9em;
    color: #0066cc;
    text-decoration: none;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.sub-item:hover {
    text-decoration: underline;
}
@media (max-width: 600px) {
    .subcategories {
        grid-template-columns: 1fr;
    }
}