.container {
    max-width: 580px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.09);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    padding: 0.6rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.btn-lg {
    font-size: 1.05rem !important;
    padding: 0.9rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
}

.btn-primary {
    background: #1a73e8;
    border-color: #1a73e8;
}

.btn-primary:hover {
    background: #1660c4;
    border-color: #1660c4;
}

.btn-secondary {
    background: #6b7280;
}

.role-badge {
    font-size: 0.85rem;
}

.status-badge {
    font-size: 0.85rem;
}

.admin-number-cell,
.problem-types-page tbody tr[data-search] > td:first-child {
    font-weight: 700;
}

.success-icon {
    font-size: 5rem;
    margin: 1rem 0;
    color: #22c55e;
}

.ticket-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1.4rem;
    margin: 1.8rem 0;
}

.ticket-info dt {
    font-weight: 600;
    color: #1e40af;
    margin-top: 1em;
}

.status-notice {
    padding: 1rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.small-note {
    color: #666;
    font-size: 0.95rem;
}

.admin-wide-container {
    width: calc(100% - 6rem);
    margin-right: 3rem;
    margin-left: 3rem;
    background: white;
    padding: 2rem;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
}

@media (max-width: 992px) {
    .admin-wide-container {
        width: calc(100% - 3rem);
        margin-right: 1.5rem;
        margin-left: 1.5rem;
    }
}

.admin-table-body {
    overflow: hidden;
}

.admin-table-main {
    width: 94%;
    height: 94dvh;
    margin: 3dvh 3%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.admin-table-main > .admin-table-page {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.admin-table-page > .admin-table-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.admin-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.admin-table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    box-shadow: inset 0 -1px 0 var(--bs-border-color);
}

/* Для окна ожидания при создании заявки */

.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    .loading-overlay.show {
        display: flex;
    }

.loading-box {
    background: white;
    padding: 24px 32px;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 14px;
    border: 4px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
