/* Dashboard Wrapper */
.cust-dashboard {
    font-family: var(--apex-font-family, sans-serif);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Base Card Styling */
.cust-card {
    background: #FFFFFF;
    border: 1px solid #E5DFD5;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    padding: 16px;
    box-sizing: border-box;
}

/* Make wide sections span full width on desktop */
.cust-card.full-width {
    grid-column: 1 / -1;
}

/* Card Header Section */
.cust-card-title {
    color: #2D251E;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #F0ECE6;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* Line Item Lists */
.cust-item-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cust-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    line-height: 1.4;
}

.cust-item-label {
    color: #7E7367;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cust-item-label i {
    width: 16px;
    text-align: center;
}

.cust-item-val {
    color: #2D251E;
    font-weight: 600;
    text-align: right;
}

/* Array & Grid Items (Guarantors/Assets) */
.cust-array-item {
    background: #FDFBF7;
    border: 1px solid #F0ECE6;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 13px;
}

.cust-array-item:last-child {
    margin-bottom: 0;
}

.cust-array-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

/* Attachment Indicator Status Styles */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 12px;
}
.status-indicator.verified { color: #27AE60; }
.status-indicator.missing { color: #C0392B; }

/* Document Grid Track */
.preview-dash-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    width: 100%;
}

/* Individual Preview Card Styling */
.preview-dash-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Document Container Wrapper Box */
.preview-frame-box {
    width: 100%;
    height: 220px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.preview-frame-box iframe, 
.preview-frame-box object {
    width: 100%;
    height: 100%;
    border: none;
}

/* Fallback Icon for Unsupported Formats */
.preview-fallback-icon {
    font-size: 3.5rem;
    color: #bdc3c7;
    text-align: center;
}

/* Metadata Text Elements */
.preview-meta-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.preview-meta-sub {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 12px;
}