/* ==========================================================================
   Stitch Design System ID: 10829762787164027570
   CRM Sales Hub Denko Internacional - Corporate High-Contrast Theme
   ========================================================================== */

:root {
    --color-primary: #ed1a1f;
    --color-primary-hover: #c41318;
    --color-primary-tint: #ff4d52;
    --color-secondary: #262f73;
    --color-secondary-dark: #192051;
    --color-success: #ffffff;
    --color-background: #FCF9F8;
    --color-surface: #FFFFFF;
    --color-surface-gray: #F8F9FA;
    --color-border: #E9ECEF;
    --color-text: #1C1B1B;
    --color-text-muted: #6C757D;
    --radius-default: 0.25rem; /* 4px Soft Corporate rounding */
}

/* Base Body & Workspace */
body {
    font-family: 'Open Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
}

/* Metric Cards Signature Feature:
   White background, 1px gray border, distinctive 3px solid corporate red bottom border */
.metric-card,
.grid > div.bg-white.rounded-2xl {
    background-color: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
    border-bottom: 3px solid var(--color-primary) !important;
    border-radius: var(--radius-default) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.metric-card:hover,
.grid > div.bg-white.rounded-2xl:hover {
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
}

/* Container & Panels */
.bg-white.rounded-2xl,
.bg-white.rounded-xl,
.bg-white.rounded-lg {
    border-radius: var(--radius-default);
    border-color: var(--color-border);
}

/* Tables Styling - High legibility, condensed rows */
table thead th {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--color-surface-gray);
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}

table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.15s ease;
}

table tbody tr:hover {
    background-color: var(--color-surface-gray);
}

/* Form Inputs & Selects - Uniform Design System */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
select {
    height: 2.5rem !important;
    min-height: 2.5rem !important;
    padding-left: 0.875rem !important;
    padding-right: 0.875rem !important;
    border-radius: 0.75rem !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #FFFFFF;
    color: var(--color-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.2rem 1.2rem !important;
    padding-right: 2.5rem !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(227, 25, 55, 0.15) !important;
}

/* Buttons Corporate High-Contrast */
.btn-primary,
button[type="submit"] {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-radius: var(--radius-default);
    font-weight: 600;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover,
button[type="submit"]:hover {
    background-color: var(--color-primary-hover);
}

/* Header / Navigation Bar */
header.bg-secondary {
    background-color: var(--color-secondary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
