/* License Record - 紧凑网格布局 */
.license-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .license-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.license-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.license-card--active {
    border-left: 3px solid #10b981;
}
/* 警告卡片样式 - 绿色 */
.license-card--warning {
    border: 2px solid #10b981;
    background: #f0fdf4;
}
.license-card--warning .license-card__header {
    background: #f0fdf4;
}

.license-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}
/* 无监管时的头部样式 */
.license-card__header--warning {
    background: #f0fdf4;
}

.license-card__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

/* 图标样式 */
.license-card__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}
.license-card__icon svg {
    width: 16px;
    height: 16px;
}
/* 有监管 - 绿色图标 */
.license-card__icon--active {
    background: #d1fae5;
    border-color: #10b981;
    color: #059669;
}
/* 无监管 - 灰色图标 */
.license-card__icon--inactive {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
}
/* 警告图标 - 绿色 */
.license-card__icon--danger {
    background: #d1fae5;
    border-color: #10b981;
    color: #059669;
    animation: pulse-icon 2s infinite;
}
@keyframes pulse-icon {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.license-card__name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.license-card__subtitle {
    font-size: 11px;
    color: #64748b;
    margin: 0;
}

.license-card__status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}
.license-card__status--active {
    background: #d1fae5;
    color: #059669;
}
.license-card__status--inactive {
    background: #fef3c7;
    color: #b45309;
}

.license-card__body {
    padding: 0.875rem;
}

.license-card__meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}

.license-card__meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.license-card__meta-label {
    font-size: 10px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.license-card__meta-value {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.license-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease;
}
.license-card__link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.license-card__link svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.license-card__link--secondary {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
    color: #64748b;
    font-weight: 500;
}
.license-card__link--secondary:hover {
    color: #334155;
}

.license-card__holder {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}
.license-card__holder span:first-child {
    color: #94a3b8;
}

/* 警告文字样式 */
.license-card__warning-text {
    display: flex;
    gap: 0.5rem;
    font-size: 12px;
    color: #047857;
    line-height: 1.5;
}
.license-card__warning-text svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #10b981;
}
.license-card__warning-text p {
    margin: 0;
}
