/* Global Styles */
/* Fonts */
@font-face {
    font-family: 'SamsungSharpSans';
    src: url('fonts/SamsungSharpSans-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SamsungSharpSans';
    src: url('fonts/SamsungSharpSans-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'SamsungSharpSans';
    src: url('fonts/SamsungSharpSans-Bold.otf') format('opentype');
    font-weight: 700;
    /* Map 700 to bold font as well */
    font-style: normal;
}

body {
    background-color: #fce4ec;
    /* Light pink background override if needed, or keep bootstrap light */
    font-family: 'SamsungSharpSans', 'Inter', sans-serif !important;
    color: #333;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.fw-bold,
b,
strong,
th {
    font-family: 'SamsungSharpSans', 'Inter', sans-serif !important;
    font-weight: bold !important;
}

/* Custom Background Colors for Revenue Columns */
.bg-success-custom {
    background-color: #d4edda !important;
    color: #155724;
}

.bg-warning-custom {
    background-color: #fff3cd !important;
    color: #856404;
}

.bg-danger-custom {
    background-color: #f8d7da !important;
    color: #721c24;
}

/* Zero Summary Cards */
.card-zero {
    border-left: 4px solid #dc3545;
    transition: transform 0.2s;
    background-color: #fff;
}

.card-zero:hover {
    transform: translateY(-2px);
}

/* Status Dot */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.status-dot.error {
    background-color: #dc3545;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.5);
}

/* Table Enhancements */
.table th {
    font-size: 0.75rem;
    /* Smaller font for headers */
    padding: 0.4rem 0.5rem;
    /* Compact padding */
    white-space: nowrap;
    vertical-align: middle;
    background-color: #f8f9fa;
    /* Light header */
    color: #333;
}

.table td {
    font-size: 0.8rem;
    /* Smaller font for data */
    padding: 0.35rem 0.5rem;
    /* Compact padding */
    white-space: nowrap;
    vertical-align: middle;
}

/* Summary Rows (TOTAL / OPERACIONAL) */
.row-summary {
    background-color: #343a40 !important;
    color: #fff !important;
    font-weight: bold;
}

.row-summary td {
    background-color: #343a40 !important;
    /* Ensure override */
    color: #fff !important;
}

/* Supervisor Group Divider */
.group-divider {
    border-top: 3px solid #6c757d !important;
}

/* Loading Spinner */
#loading {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-top: 2rem;
}

/* Floating Scrollbar / Sticky Header Fix */
.table-responsive {
    max-height: 70vh;
    /* Limits height to 70% of viewport */
    overflow-y: auto;
    /* Enables vertical scrolling inside the container */
    overflow-x: auto;
    /* Enables horizontal scrolling */
}

/* Ensure Headers stay fixed when scrolling vertically */
#teamTable thead th,
#hourlyTable thead th {
    position: sticky;
    top: 0;
    z-index: 1020;
    /* High z-index to stay above content */
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
    /* Shadow for visual separation */
}

/* Custom Upload Box Styles */
.upload-box {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #fff;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-box:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.upload-box.has-file {
    border-color: #28a745;
    background-color: #e8f5e9;
    border-style: solid;
}

.upload-placeholder {
    font-size: 0.8rem;
    color: #666;
    pointer-events: none;
}

.upload-filename {
    font-size: 0.75rem;
    font-weight: bold;
    color: #155724;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 5px;
    display: none;
    padding: 0 5px;
    /* Padding for visual breathing room */
}

.upload-success-icon {
    font-size: 2rem;
    /* Larger icon */
    color: #28a745;
    margin-bottom: 5px;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hide default file input */
.file-input-hidden {
    display: none;
}