/* CLEM admin.css */

.admin-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-toolbar {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.admin-toolbar input[type="text"] {
    padding: .4rem .75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    min-width: 200px;
}
.admin-toolbar select {
    padding: .4rem .75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.badge-no-manager {
    background: #fee2e2;
    color: #991b1b;
    font-size: .75rem;
    padding: .1rem .4rem;
    border-radius: 10px;
    font-weight: 600;
}

.route-stops-list { margin-top: .5rem; }
.route-stop-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: .88rem;
}
.route-stop-item:last-child { border-bottom: none; }
.route-stop-order {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1e3a5f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.route-stop-name { flex: 1; }
.route-stop-coords { font-size: .75rem; color: #9ca3af; }

.map-editor-inline {
    height: 240px;
    border-radius: 6px;
    margin-top: .5rem;
    border: 1px solid #e5e7eb;
}

.config-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.config-section-title {
    font-size: .95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .75rem;
}

.closing-override-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .4rem;
}
.closing-override-item input[type="date"],
.closing-override-item input[type="time"] {
    padding: .35rem .6rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: .88rem;
}
.btn-remove-override {
    background: none;
    border: none;
    cursor: pointer;
    color: #dc2626;
    font-size: 1rem;
    padding: 0 .3rem;
}

/* ── Responsive mòbil (T368) ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .admin-toolbar input[type="text"] { min-width: 0; width: 100%; }
    .admin-toolbar select { width: 100%; }
}

/* ── Tab Activitat ── */
.activity-stats-grid {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}
.act-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .6rem 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-width: 110px;
}
.act-card-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
}
.act-card-lbl {
    font-size: .78rem;
    color: #6b7280;
    margin-top: .15rem;
    text-align: center;
}
.activity-th {
    user-select: none;
}
.activity-th:hover {
    background: #f1f5f9;
}
