select {
    min-width: 20rem;
}

td,
th {
    vertical-align: middle;
}

.capitalize {
    text-transform: capitalize;
}

.field-name_with_avatar a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.avatar-container {
    width: 30px;
    height: 30px;
    display: grid;
    place-content: center;
    color: white;
    border-radius: 50%;
    overflow: hidden;
    background: var(--admin-interface-header-background-color);
}
.avatar-container > * {
    width: 100%;
    height: 100%;
}

.security-balance-tip {
    color: orange;
    background: #ffa5001c;
    border-radius: 5px;
    padding: 1rem;
    font-size: 12px;
}
.security-balance-tip > svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.5rem;
}

.security-balance-tip > div {
    line-height: 2px !important;
    font-size: 1rem;
}
.security-balance-tip > div * {
    margin: 0px;
}

/* dashboard css */

/* Dashboard Container */
.dashboard-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card h3 {
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0.5rem 0;
}

.stat-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.2;
}

.stat-icon .icon {
    width: 2.5rem;
    height: 2.5rem;
    stroke-width: 1.5;
}

/* Charts Grid */
.charts-grid {
    display: flex;
    flex-wrap: wrap;
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#meal-chart-card {
    flex-shrink: 0;
}

@media (min-width: 500px) {
    #meal-chart-card {
        min-width: 400px;
    }
}

#monthly-revenue-trend {
    flex-grow: 1;
}

.chart-card h3 {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

#mealChart {
    max-width: 500px !important;
    max-height: 500px !important;
}

/* Activities Section */
.activities-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.activities-section h3 {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.activity-item:hover {
    background: #f3f4f6;
}

.activity-icon {
    margin-right: 1rem;
}

.activity-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
    color: #4f46e5;
}

.activity-details {
    flex: 1;
}

.activity-text {
    color: #111827;
    font-size: 0.875rem;
    margin: 0;
}

.activity-time {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0.25rem 0 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-icon {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* checkboxes */
.form-check-input + label {
    width: 100% !important;
}
