/* Street Types Admin modal — Plan 14 Phase 4. Scoped under .st-admin-* */

.st-admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9120;
    padding: 1rem;
    box-sizing: border-box;
}

.st-admin-panel {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 720px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.st-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 2px solid #f0f1f3;
    flex-shrink: 0;
}

.st-admin-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2b3c;
}

.st-admin-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
}
.st-admin-close:hover { background: #f0f1f3; color: #1a2b3c; }
.st-admin-close:disabled { opacity: 0.4; cursor: not-allowed; }

.st-admin-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.1rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.st-admin-statusbar {
    padding: 0.7rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    border-top: 1px solid #f0f1f3;
    flex-shrink: 0;
    display: none;
}
.st-admin-status-success { background: #d4edda; color: #155724; display: block; }
.st-admin-status-error   { background: #f8d7da; color: #721c24; display: block; }
.st-admin-status-info    { background: #d1ecf1; color: #0c5460; display: block; }

.st-admin-toolbar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.st-admin-search {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.st-admin-table-wrap {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: auto;
    max-height: 280px;
}

.st-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.st-admin-table th,
.st-admin-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f1f3;
}
.st-admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    position: sticky;
    top: 0;
}
.st-admin-row-inactive td { color: #9aa3ad; }

.st-admin-form {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 0.6rem 0.75rem;
    padding: 0.85rem;
    background: #f8f9fa;
    border-radius: 10px;
}
.st-admin-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
}
.st-admin-form input,
.st-admin-form select {
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
}
.st-admin-countries {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-weight: 400;
}
.st-admin-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}
.st-admin-hint {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
}
.st-admin-readonly {
    padding: 8px 10px;
    background: #fff3cd;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #856404;
}

.st-admin-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}
.st-admin-btn-primary { background: #17a2b8; color: #fff; }
.st-admin-btn-primary:hover { background: #138496; }
.st-admin-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.st-admin-btn-ghost {
    background: #fff;
    border: 1px solid #ced4da;
    color: #495057;
}
.st-admin-btn-ghost:hover { background: #f1f3f5; }
.st-admin-btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; }
