/* ============================================
   INFINITTO ERP - REUSABLE COMPONENTS STYLES
   ============================================ */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #f8f9fa;
    --text-color: #2c3e50;
    --text-muted: #555;
    --text-light: #95a5a6;
    --card-bg: #ffffff;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --border-color: #eee;
    --border-light: #f5f5f5;
    --link-color: #3498db;
    --tag-bg: #f1f2f6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.section-label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
    text-align: left;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-transparent {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ============================================
   TABLES
   ============================================ */

.table-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-standard {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.table-standard tbody tr {
    border-bottom: 1px solid var(--border-light);
}

.table-standard tbody tr:last-child {
    border-bottom: none;
}

.table-standard td {
    padding: 1rem;
    color: var(--text-muted);
}

.table-standard td:first-child {
    font-weight: 600;
    color: var(--text-color);
}

/* Column width utilities */
.col-35 {
    width: 35%;
}

.col-40 {
    width: 40%;
}

.col-30 {
    width: 30%;
}

.col-65 {
    width: 65%;
}

/* ============================================
   RADZEN GRID CUSTOMIZATION
   ============================================ */

.rz-grid-table {
    border-collapse: collapse !important;
}

.rz-grid-table thead th {
    background-color: #fff !important;
    color: var(--text-color) !important;
    font-weight: 700 !important;
    text-transform: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1rem !important;
    font-size: 0.95rem;
}

.rz-data-row td {
    border-bottom: 1px solid var(--border-light) !important;
    padding: 1rem !important;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.rz-data-row:last-child td {
    border-bottom: none !important;
}

.rz-data-row:hover td {
    background-color: var(--secondary-color) !important;
}

/* ============================================
   LINKS & BUTTONS
   ============================================ */

.link-text {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.link-text:hover {
    text-decoration: underline;
}

.back-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

/* ============================================
   TAGS & BADGES
   ============================================ */

.tag {
    background-color: var(--tag-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--text-color);
    font-size: 0.9rem;
    display: inline-block;
}

.tag-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ============================================
   IMAGES
   ============================================ */

.image-container {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.5;
}

.image-responsive {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 2rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* ============================================
   SPACING UTILITIES
   ============================================ */

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 2rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 2rem;
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
}