/* =====================================================
   Document Card Preview Styles
   Used by: DocumentCreatorDialog, DocumentPreviewDialog
   ===================================================== */

/* Base card styling */
.document-preview-card {
    aspect-ratio: 1.586 / 1; /* Standard ID card ratio */
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.document-preview-card .photo-placeholder {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Base card body - flex to fill space, overflow hidden */
.document-preview-card .card-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* =====================================================
   CC (Cartão de Cidadão) Styles - Portuguese Citizen Card
   ===================================================== */
.card-cc {
    background: linear-gradient(135deg,
        rgba(225, 240, 250, 0.95) 0%,
        rgba(230, 245, 255, 1) 30%,
        rgba(235, 248, 255, 1) 60%,
        rgba(220, 242, 252, 0.95) 100%);
    color: #2d3436;
}

.card-cc .card-header {
    background: linear-gradient(90deg, rgba(255,215,0,0.15) 0%, rgba(255,235,170,0.2) 100%);
    color: #0066cc;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-cc .card-body {
    padding: 16px;
}

.card-cc .card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2d3436;
}

.card-cc .card-subtitle {
    font-size: 11px;
    opacity: 0.75;
    margin-bottom: 12px;
    color: #636e72;
}

.card-cc .card-field {
    display: flex;
    margin-bottom: 4px;
}

.card-cc .card-field-label {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-right: 8px;
    color: #636e72;
}

.card-cc .card-field-value {
    font-size: 10px;
    font-weight: 500;
    color: #2d3436;
}

.card-cc .card-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #2d3436;
}

.card-cc .card-number-large {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 12px 0;
    text-align: center;
    background: rgba(255,235,170,0.3);
    padding: 8px;
    border-radius: 4px;
    color: #2d3436;
}

.card-cc .card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(200,220,200,0.2);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #2d3436;
}

.card-cc .photo-placeholder {
    width: 70px;
    height: 90px;
}

/* CC Card Grid Body */
.card-body-cc {
    padding: 8px 12px;
    font-size: 9px;
}

/* CC Photo Card */
.cc-photo-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cc-photo {
    position: relative;
    width: 85px;
    height: 105px;
    background: rgba(200, 200, 200, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-photo-icon {
    opacity: 0.4;
}

.cc-chip {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 24px;
    height: 18px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4c1 50%, #d4af37 100%);
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

/* CC Field Name */
.cc-field-name {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.2;
    color: #2d3436;
}

/* CC Fields */
.cc-field {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 6px;
    align-items: center;
}

.cc-field-label {
    font-size: 8px;
    opacity: 0.7;
    font-weight: 500;
    color: #636e72;
}

.cc-field-value {
    font-size: 9px;
    font-weight: 500;
    color: #2d3436;
}

/* =====================================================
   Carta de Condução (Driver's License) Styles
   ===================================================== */
.card-driving {
    background: linear-gradient(135deg,
        rgba(255, 228, 240, 0.95) 0%,
        rgba(255, 235, 245, 1) 30%,
        rgba(252, 228, 236, 1) 60%,
        rgba(255, 220, 235, 0.95) 100%);
    color: #2d3436;
}

.card-driving .card-header {
    background: linear-gradient(90deg, rgba(0,51,153,0.9) 0%, rgba(0,102,204,0.9) 100%);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}

.card-driving .card-header .eu-flag {
    background: #003399;
    color: #ffcc00;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: bold;
}

.card-driving .card-body {
    padding: 12px;
}

.card-driving .card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-driving .card-field {
    display: flex;
    margin-bottom: 4px;
}

.card-driving .card-field-label {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-right: 8px;
}

.card-driving .card-field-value {
    font-size: 10px;
}

.card-driving .card-footer {
    font-size: 9px;
}

.card-driving .card-title {
    font-size: 12px;
}

.card-driving .photo-placeholder {
    width: 60px;
    height: 75px;
}

/* Driver's license category table */
.card-driving .category-table {
    margin-top: 8px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.card-driving .category-table table {
    width: 100%;
    font-size: 9px;
    border-collapse: collapse;
}

.card-driving .category-table th {
    padding: 3px 4px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    background: rgba(0,0,0,0.1);
}

.card-driving .category-table th:not(:first-child) {
    text-align: center;
}

.card-driving .category-table td {
    padding: 3px 4px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.card-driving .category-table td:first-child {
    font-weight: bold;
}

.card-driving .category-table td:not(:first-child) {
    text-align: center;
}

.card-driving .category-table tr.expired {
    color: #c00;
    background: rgba(255,0,0,0.1);
}

.card-driving .category-table tr.empty td {
    padding: 8px;
    text-align: center;
    opacity: 0.5;
}

.card-driving .category-table tr.overflow td {
    padding: 4px;
    text-align: center;
    font-style: italic;
    opacity: 0.7;
}

/* =====================================================
   Ficha de Aptidão Médica (Medical Fitness) Styles
   ===================================================== */
.card-medical {
    background: linear-gradient(135deg, #00695c 0%, #00897b 50%, #26a69a 100%);
    color: white;
}

.card-medical .card-header {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-medical .card-body {
    padding: 16px;
}

.card-medical .card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-medical .card-field {
    display: flex;
    margin-bottom: 4px;
}

.card-medical .card-field-label {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-right: 8px;
}

.card-medical .card-field-value {
    font-size: 10px;
}

.card-medical .card-footer {
    font-size: 9px;
}

.card-medical .card-title {
    font-size: 12px;
}

/* Result badges */
.card-medical .result-badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-medical .result-apto {
    background: rgba(76, 175, 80, 0.9);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.card-medical .result-apto-cond {
    background: rgba(255, 193, 7, 0.9);
    color: #333;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

.card-medical .result-inapto {
    background: rgba(244, 67, 54, 0.9);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

/* =====================================================
   Maritime Card Styles
   ===================================================== */
.card-maritime {
    background: linear-gradient(135deg, #01579b 0%, #0277bd 50%, #0288d1 100%);
    color: white;
}

.card-maritime .card-header {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-maritime .card-body {
    padding: 16px;
}

.card-maritime .card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-maritime .card-field {
    display: flex;
    margin-bottom: 4px;
}

.card-maritime .card-field-label {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-right: 8px;
}

.card-maritime .card-field-value {
    font-size: 10px;
}

.card-maritime .card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.2);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    font-size: 9px;
}

/* =====================================================
   Training/Formação Card Styles
   ===================================================== */
.card-training {
    background: linear-gradient(135deg, #5e35b1 0%, #7e57c2 50%, #9575cd 100%);
    color: white;
}

.card-training .card-header {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-training .card-body {
    padding: 16px;
}

.card-training .card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-training .card-field {
    display: flex;
    margin-bottom: 4px;
}

.card-training .card-field-label {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-right: 8px;
}

.card-training .card-field-value {
    font-size: 10px;
}

.card-training .card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.2);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    font-size: 9px;
}

/* =====================================================
   Generic Document Styles
   ===================================================== */
.card-generic {
    background: linear-gradient(135deg, #455a64 0%, #607d8b 50%, #78909c 100%);
    color: white;
}

.card-generic .card-header {
    background: rgba(0,0,0,0.2);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
}

.card-generic .card-body {
    padding: 16px;
}

.card-generic .card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-generic .card-number-large {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 12px 0;
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 4px;
}

.card-generic .card-field {
    display: flex;
    margin-bottom: 4px;
}

.card-generic .card-field-label {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-right: 8px;
}

.card-generic .card-field-value {
    font-size: 10px;
}

.card-generic .card-footer {
    font-size: 9px;
}

.card-generic .card-title {
    font-size: 12px;
}

/* =====================================================
   Shared Card Elements
   ===================================================== */

/* Photo placeholder (used in all card types) */
.photo-placeholder {
    width: 70px;
    height: 90px;
    background: rgba(255,255,255,0.15);
    border: 2px dashed rgba(255,255,255,0.4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Validity status indicators */
.validity-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.validity-valid {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.validity-expiring {
    background: rgba(255, 152, 0, 0.9);
    color: white;
}

.validity-expired {
    background: rgba(244, 67, 54, 0.9);
    color: white;
}

/* Category badges grid (used in driver's license) */
.card-driving .categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-top: 12px;
}

.card-driving .category-badge {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 4px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
}

.card-driving .category-badge.active {
    background: rgba(255,255,255,0.9);
    color: #c2185b;
    border-color: white;
}

/* =====================================================
   A4 Certificate Layout Styles
   ===================================================== */

/* A4 aspect ratio (portrait) */
.document-preview-a4 {
    aspect-ratio: 1 / 1.414; /* A4 ratio (210mm x 297mm) */
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    font-family: 'Times New Roman', Georgia, serif;
    padding: 24px;
    border: 1px solid #ddd;
}

/* Certificate Grid Body - applies grid layout to certificate fields */
.cert-body-grid {
    margin-top: 20px;
}

.cert-body-grid .cert-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

.cert-body-grid .cert-field-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.7;
}

.cert-body-grid .cert-field-value {
    font-size: 14px;
    font-weight: 500;
}

/* Gold Certificate Style */
.cert-gold {
    background: linear-gradient(180deg, #fffef5 0%, #fff8e1 50%, #ffecb3 100%);
    border: 3px double #d4af37;
}

.cert-gold .cert-border {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid #d4af37;
    border-radius: 4px;
    pointer-events: none;
}

.cert-gold .cert-header {
    text-align: center;
    padding: 16px 8px;
    color: #8b6914;
    border-bottom: 1px solid #d4af37;
    margin-bottom: 16px;
}

.cert-gold .cert-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8b6914;
    margin-bottom: 4px;
}

.cert-gold .cert-subtitle {
    font-size: 11px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.cert-gold .cert-body {
    padding: 12px 24px;
    text-align: center;
}

.cert-gold .cert-recipient {
    font-size: 20px;
    font-weight: 700;
    margin: 16px 0;
    color: #333;
    font-style: italic;
}

.cert-gold .cert-text {
    font-size: 12px;
    line-height: 1.6;
    color: #555;
    margin: 8px 0;
}

.cert-gold .cert-field {
    margin: 8px 0;
    font-size: 11px;
}

.cert-gold .cert-field-label {
    font-weight: 600;
    color: #8b6914;
}

.cert-gold .cert-field-value {
    color: #333;
}

.cert-gold .cert-footer {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #666;
    border-top: 1px solid #d4af37;
    padding-top: 12px;
}

.cert-gold .cert-seal {
    width: 50px;
    height: 50px;
    border: 2px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700, #d4af37);
    color: #8b6914;
    font-size: 20px;
}

/* Blue Certificate Style */
.cert-blue {
    background: linear-gradient(180deg, #f8fbff 0%, #e8f4fd 50%, #bbdefb 100%);
    border: 3px double #1565c0;
}

.cert-blue .cert-border {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid #1565c0;
    border-radius: 4px;
    pointer-events: none;
}

.cert-blue .cert-header {
    text-align: center;
    padding: 16px 8px;
    color: #0d47a1;
    border-bottom: 1px solid #1565c0;
    margin-bottom: 16px;
}

.cert-blue .cert-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #0d47a1;
    margin-bottom: 4px;
}

.cert-blue .cert-subtitle {
    font-size: 11px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.cert-blue .cert-body {
    padding: 12px 24px;
    text-align: center;
}

.cert-blue .cert-recipient {
    font-size: 20px;
    font-weight: 700;
    margin: 16px 0;
    color: #333;
    font-style: italic;
}

.cert-blue .cert-text {
    font-size: 12px;
    line-height: 1.6;
    color: #555;
    margin: 8px 0;
}

.cert-blue .cert-field {
    margin: 8px 0;
    font-size: 11px;
}

.cert-blue .cert-field-label {
    font-weight: 600;
    color: #0d47a1;
}

.cert-blue .cert-field-value {
    color: #333;
}

.cert-blue .cert-footer {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #666;
    border-top: 1px solid #1565c0;
    padding-top: 12px;
}

.cert-blue .cert-seal {
    width: 50px;
    height: 50px;
    border: 2px solid #1565c0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #42a5f5, #1565c0);
    color: white;
    font-size: 20px;
}

/* Green Certificate Style */
.cert-green {
    background: linear-gradient(180deg, #f5fff5 0%, #e8f5e9 50%, #c8e6c9 100%);
    border: 3px double #2e7d32;
}

.cert-green .cert-border {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid #2e7d32;
    border-radius: 4px;
    pointer-events: none;
}

.cert-green .cert-header {
    text-align: center;
    padding: 16px 8px;
    color: #1b5e20;
    border-bottom: 1px solid #2e7d32;
    margin-bottom: 16px;
}

.cert-green .cert-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1b5e20;
    margin-bottom: 4px;
}

.cert-green .cert-body {
    padding: 12px 24px;
    text-align: center;
}

.cert-green .cert-recipient {
    font-size: 20px;
    font-weight: 700;
    margin: 16px 0;
    color: #333;
    font-style: italic;
}

.cert-green .cert-footer {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #666;
    border-top: 1px solid #2e7d32;
    padding-top: 12px;
}

.cert-green .cert-seal {
    width: 50px;
    height: 50px;
    border: 2px solid #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #66bb6a, #2e7d32);
    color: white;
    font-size: 20px;
}

/* Generic A4 Document Style */
.cert-generic {
    background: #ffffff;
    border: 1px solid #ccc;
}

.cert-generic .cert-header {
    text-align: center;
    padding: 16px 8px;
    color: #333;
    border-bottom: 1px solid #ddd;
    margin-bottom: 16px;
}

.cert-generic .cert-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #333;
}

.cert-generic .cert-body {
    padding: 12px 24px;
}

.cert-generic .cert-recipient {
    font-size: 18px;
    font-weight: 600;
    margin: 12px 0;
    color: #333;
}

.cert-generic .cert-field {
    display: flex;
    margin: 6px 0;
    font-size: 11px;
}

.cert-generic .cert-field-label {
    font-weight: 600;
    width: 100px;
    color: #666;
}

.cert-generic .cert-field-value {
    color: #333;
}

.cert-generic .cert-footer {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #666;
    border-top: 1px solid #ddd;
    padding-top: 12px;
}

/* =====================================================
   Custom Color Support (inline style overrides)
   ===================================================== */

/* These classes work with custom inline styles */
.card-custom {
    /* Base styles - colors set via inline style */
    color: white;
}

.card-custom .card-header {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-custom .card-body {
    padding: 16px;
}

.card-custom .card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-custom .card-field {
    display: flex;
    margin-bottom: 6px;
}

.card-custom .card-field-label {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.7;
    width: 80px;
    flex-shrink: 0;
}

.card-custom .card-field-value {
    font-size: 12px;
    font-weight: 500;
}

.card-custom .card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.2);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    font-size: 9px;
}

/* =====================================================
   Grid-Based Field Arrangement System
   Dynamic field positioning for customizable layouts
   ===================================================== */

/* Grid container for card body */
.card-body-grid {
    display: grid;
    gap: 8px;
    padding: 12px;
    padding-bottom: 32px; /* Space for footer */
    align-items: start;
    flex: 1;
    overflow: hidden;
}

/* Individual grid cells */
.grid-cell {
    min-height: 20px;
    padding: 4px;
}

/* Photo placeholder for generic cards (grid-based) */
.card-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    width: 60px;
    max-width: 60px;
    min-height: 70px;
}

/* Photo positioned absolutely in upper-left corner */
.card-photo-absolute {
    position: absolute;
    top: 45px; /* Below header */
    left: 8px;
    width: 55px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* For CC and driving cards, header is taller - adjust photo position */
.card-cc .card-photo-absolute,
.card-driving .card-photo-absolute {
    top: 52px;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Field size variations */
.field-size-small {
    min-height: 20px;
    font-size: 10px;
}

.field-size-medium {
    min-height: 30px;
    font-size: 12px;
}

.field-size-large {
    min-height: 50px;
    font-size: 14px;
}

/* Field content styling */
.grid-cell .field-label {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 2px;
}

.grid-cell .field-value {
    font-size: 12px;
    font-weight: 500;
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .card-body-grid {
        grid-template-columns: 1fr !important;
    }
}
