/* Payroll Page Styles */

.tc-payroll-page {
    padding: 1.5rem;
}

.tc-payroll-row-empty.hidden-row {
    display: none;
}

.tc-payroll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tc-payroll-title {
    font-size: 1.5rem;
    /* text-2xl */
    line-height: 2rem;
    font-weight: 700;
    /* font-bold */
    color: #111827;
    /* text-gray-900 */
    margin: 0;
}

.tc-payroll-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tc-period-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background-color: #fff;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #374151;
    min-width: 150px;
}

.tc-payroll-section {
    margin-bottom: 2.5rem;
    /* mb-10 */
}

.tc-payroll-section-title {
    font-size: 1.25rem;
    /* text-xl */
    line-height: 1.75rem;
    font-weight: 700;
    /* font-bold */
    color: #1f2937;
    /* text-gray-800 */
    margin-bottom: 0.5rem;
    /* mb-2 */
}

.tc-payroll-section-subtitle {
    font-size: 0.875rem;
    /* text-sm */
    line-height: 1.25rem;
    color: #6b7280;
    /* text-gray-500 */
    margin-bottom: 1rem;
    /* mb-4 */
}

.tc-payroll-table-container {
    background-color: #ffffff;
    /* bg-white */
    border-radius: 0.5rem;
    /* rounded-lg */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    /* shadow */
    overflow: hidden;
    /* overflow-hidden */
}

/* Badge Styles */
.tc-badge-salary {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    /* px-2 py-0.5 */
    border-radius: 0.25rem;
    /* rounded */
    font-size: 0.75rem;
    /* text-xs */
    background-color: #dbeafe;
    /* bg-blue-100 */
    color: #1e40af;
    /* text-blue-800 */
    margin-left: 0.5rem;
    /* ml-2 */
}

.tc-badge-type {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 500;
}

/* Text Colors */
.tc-text-success {
    color: #10b981;
    /* Emerald 500 */
}

.tc-text-warning {
    color: #f59e0b;
    /* Amber 500 */
}

.tc-text-danger {
    color: #ef4444;
    /* Red 500 */
}

.font-semibold {
    font-weight: 600;
}

.tc-action-link {
    color: #9ca3af;
    /* Gray 400 */
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tc-action-link:hover {
    color: #2563eb;
    /* Blue 600 */
}

.tc-action-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Stats Dashboard */
.tc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.tc-stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tc-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    /* text-gray-500 */
    margin-bottom: 0.5rem;
}

.tc-stat-value {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: #111827;
    /* text-gray-900 */
}

.tc-stat-value small {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-left: 0.25rem;
}

.tc-stat-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
}

.tc-stat-icon svg {
    width: 3rem;
    height: 3rem;
    color: #374151;
}