/* Admin + Public shared styles */
.cd-grid {
    display: grid;
    gap: 16px;
}

.cd-admin-2col {
    grid-template-columns: 1fr 2fr;
}

.cd-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.cd-grid-6 {
    grid-template-columns: repeat(6, 1fr);
}
.cd-grid-5 { grid-template-columns: repeat(5, 1fr); }
.cd-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cd-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cd-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cd-grid-1 { grid-template-columns: repeat(1, 1fr); }

/* Square cards for visitors */
.cd-card-square {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cd-card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 44px);
    padding: 12px;
}

.cd-card-logo {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.cd-card-placeholder {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 24px;
}

.cd-card-footer {
    height: 44px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    text-align: center;
}

.cd-company {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
}

.cd-filter-form {
    margin-bottom: 16px;
}

@media (max-width: 1400px) {
    .cd-grid-6 { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1200px) {
    .cd-grid-6, .cd-grid-5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .cd-grid-6, .cd-grid-5, .cd-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .cd-grid-6, .cd-grid-5, .cd-grid-4, .cd-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .cd-grid-6, .cd-grid-5, .cd-grid-4, .cd-grid-3, .cd-grid-2 { grid-template-columns: repeat(1, 1fr); }
}
