/**
 * BTB Time Tracker - Styles
 */

/* ========================================
   VARIABLES CSS
======================================== */
:root {
    /* Couleurs principales */
    --btb-primary: #2563eb;
    --btb-primary-hover: #1d4ed8;
    --btb-primary-light: #dbeafe;
    
    --btb-secondary: #64748b;
    --btb-secondary-hover: #475569;
    --btb-secondary-light: #f1f5f9;
    
    --btb-success: #10b981;
    --btb-success-hover: #059669;
    --btb-success-light: #d1fae5;
    
    --btb-danger: #ef4444;
    --btb-danger-hover: #dc2626;
    --btb-danger-light: #fee2e2;
    
    --btb-warning: #f59e0b;
    --btb-warning-hover: #d97706;
    --btb-warning-light: #fef3c7;
    
    --btb-info: #3b82f6;
    --btb-info-hover: #2563eb;
    --btb-info-light: #dbeafe;
    
    /* Couleurs de texte */
    --btb-text-primary: #1e293b;
    --btb-text-secondary: #64748b;
    --btb-text-muted: #94a3b8;
    --btb-text-white: #ffffff;
    
    /* Couleurs de fond */
    --btb-bg-primary: #ffffff;
    --btb-bg-secondary: #f8fafc;
    --btb-bg-tertiary: #f1f5f9;
    --btb-bg-dark: #1e293b;
    
    /* Bordures */
    --btb-border-color: #e2e8f0;
    --btb-border-radius: 8px;
    --btb-border-radius-sm: 6px;
    --btb-border-radius-lg: 12px;
    
    /* Ombres */
    --btb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --btb-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --btb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --btb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --btb-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Espacements */
    --btb-spacing-xs: 0.25rem;
    --btb-spacing-sm: 0.5rem;
    --btb-spacing-md: 1rem;
    --btb-spacing-lg: 1.5rem;
    --btb-spacing-xl: 2rem;
    --btb-spacing-2xl: 3rem;
    
    /* Typographie */
    --btb-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --btb-font-size-xs: 0.75rem;
    --btb-font-size-sm: 0.875rem;
    --btb-font-size-base: 1rem;
    --btb-font-size-lg: 1.125rem;
    --btb-font-size-xl: 1.25rem;
    --btb-font-size-2xl: 1.5rem;
    --btb-font-size-3xl: 1.875rem;
    
    /* Transitions */
    --btb-transition: all 0.2s ease-in-out;
    --btb-transition-fast: all 0.15s ease-in-out;
}


.btb-page-wrapper {
    padding-top: 80px;
}

.btb-header,
.btb-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 3rem;
    background: white;
    border-radius: 5px;
    border: 1px solid rgba(30, 56, 101, 0.2);
}

.btb-time-tracker-title {
    margin-bottom: 1rem;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.05rem;
    text-shadow: 5px 5px 0 #d4e3f4;
    text-align: center;
}

.time-tracker-subtitle {
    text-align: center;
    margin-bottom: 5rem;
    font-size: 1.4rem;
    color: #87acd8;
}

.btb-agent-info,
.btb-admin-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btb-agent-info {
    flex: 1;
}

.btb-agent-details h2,
.btb-admin-title h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

.btb-agent-role,
.btb-admin-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #87acd8;
    margin-top: 3px;
}

.btb-date-display,
.btb-admin-date {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    background: #f5faff;
    padding: 13px 20px 11px;
    border-radius: 5px;
    border: 1px solid rgba(30, 56, 101, 0.2);
    font-weight: 600;
}

.btb-calendar-icon {
    display: flex;
    position: relative;
    bottom: 1px;
}

.btb-calendar-icon-svg {
    width: 16px;
    height: auto;
    display: inline-block;
}

.btb-hourglass-icon-svg {
    width: 32%;
    height: auto;
    display: inline-block;
}

.btb-validated-icon-svg {
    width: 43%;
    height: auto;
    display: inline-block;
}

.btb-charts-section,
.btb-recent-activities,
.btb-validation-header,
.btb-billing-header,
.btb-report-generator {
    background: white;
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid rgba(30, 56, 101, 0.2);
}

.btb-statistics-section,
.btb-create-task-section,
.btb-stats-overview {
    margin-bottom: 70px;
}

.btb-entries-section {
    margin-bottom: 0;
}

.btb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.4rem;
}

.btb-stat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 6rem 0;
    background: white;
    border-radius: 5px;
    border: 1px solid rgba(30, 56, 101, 0.2);
    transition: all 0.2s ease-in-out;
}

.btb-stat-card:hover {
    border-color: rgba(30, 56, 101, 0.8);
    box-shadow: 5px 5px 0 rgb(240, 130, 49);
    transform: translateY(-2px);
}

.btb-section-title,
.btb-subsection-title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 1.7rem;
    font-weight: 600;
}

.btb-entries-header,
.btb-validation-header,
.btb-billing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.btb-entries-header {
    margin-bottom: 1.2rem;
}

.btb-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.btb-table-wrapper {
    overflow-x: auto;
    border-radius: 5px;
    border: 1px solid rgba(30, 56, 101, 0.2);
}

.btb-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.btb-table thead {
    // background: #f5faff;
    background-color: rgba(231, 241, 250, 0.7);
    border-bottom: 1px solid rgba(30, 56, 101, 0.2);
}

.btb-table th {
    padding: 1.2rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    user-select: none;
    white-space: nowrap;
}

#btb-billing-table.btb-table th {
    padding: 1.2rem 0.8rem;
}

.btb-table th:not[data-sort] {
    position: relative;
    top: 1px;
}

.btb-table th[data-sort] {
    cursor: pointer;
}

.btb-table th[data-sort]:hover {
    background: rgba(30, 56, 101, 0.3);
}

.btb-table th[data-sort]::after {
    content: ' ⇅';
    opacity: 0.3;
}

.btb-sort-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s;
}

.btb-sort-header:hover {
    background-color: rgba(231, 241, 250, 1);
}

.btb-sort-icon {
    font-size: 1.4rem;
    opacity: 0.4;
    line-height: 1.2rem;
}

.btb-sort-header.btb-sort-active .btb-sort-icon {
    opacity: 1;
    font-weight: bold;
}

.btb-sort-header.btb-sort-asc .btb-sort-icon::after {
    content: ' ↑';
    color: #4CAF50;
    font-size: 1.1rem;
    margin-left: 3px;
}

.btb-sort-header.btb-sort-desc .btb-sort-icon::after {
    content: ' ↓';
    color: #2196F3;
    font-size: 1.1rem;
    margin-left: 3px;
}

.btb-table td {
    padding: 0.8rem;
    font-size: 1rem;
}

.btb-table tbody tr {
    transition: all 0.2s ease-in-out;
    border-bottom: 1px solid rgba(30, 56, 101, 0.2);
}

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

.btb-table tbody tr:hover {
    //background: #e7f1fa;
    background: #f5faff;
}

.btb-description-cell,
.btb-task-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
}

.btb-table td.btb-description-cell:hover,
.btb-table td.btb-task-cell:hover {
    background: #e7f1fa;
}

.btb-billing-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    width: 100%;
    justify-content: center;
}

.btb-billing-invoiced {
    background: #22c55e;
    color: white;
}

.btb-billing-pending {
    background: #fbbf24;
    color: #92400e;
}

.btb-billing-billable {
    background: #3b82f6;
    color: white;
}

.btb-billing-non-billable {
    background: #ef4444;
    color: white;
}

.btb-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 0;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.04rem;
    text-transform: uppercase;
    justify-content: center;
    width: 100%;
    transition: all 0.2s ease-in-out;
}

.btb-add-task-icon-svg {
    display: inline-block;
    width: 11px;
    height: 11px;
    position: relative;
    top: 1px;
    left: 1px;
}

.btb-status-pending {
    background: var(--btb-warning-light);
    color: var(--btb-warning);
}

#btb-admin-entries-tbody .btb-status-pending:hover {
    color: #10b981;
    background-color: #d1fae5;
}

.btb-status-validated {
    background: var(--btb-success-light);
    color: var(--btb-success);
}

.btb-status-paused {
    background: var(--btb-info-light);
    color: var(--btb-info);
}

#btb-timer-display .btb-status-paused {
    background: none;
    color: rgb(240, 130, 49);
}


.btb-entries-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

button.btb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    white-space: nowrap;
}

button.btb-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 56, 101, 0.8);
    box-shadow: 4px 4px 0 rgb(240, 130, 49);
}

button.btb-btn:active {
    transform: translateY(0);
}

button.btb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#btb-toggle-filters-btn.btb-filters-active,
#btb-admin-toggle-filters-btn.btb-filters-active,
#btb-admin-toggle-billing-filters-btn.btb-filters-active {
    color: rgb(240, 130, 49);
    border-color: rgba(30, 56, 101, 0.8);
}

.btb-section-title .btb-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 5px;
	border: 1px solid rgba(30, 56, 101, 0.2);
	background: white;
	box-shadow: 3px 3px 0 rgba(161, 189, 211, 0.3);
}

.btb-list-icon-svg,
.btb-stats-icon-svg,
.btb-create-task-icon-svg {
    display: inline-block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.btb-magnifying-glass-svg {
    width: 10px;
    height: 10px;
    position: relative;
    top: 1px;
}

.btb-export-icon-svg {
    width: 10px;
    height: 9.95px;
    position: relative;
    top: 1px;
}

.btb-filters-panel {
    padding: 3rem;
    background: white;
    border-radius: 5px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(30, 56, 101, 0.2);
    flex-wrap: wrap;
}

.btb-filters-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    width: 100%;
}

.btb-filter-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.btb-input,
.btb-select,
.btb-textarea {
    width: 100%;
    padding: 15px 20px 14px;
    font-size: 1rem;
    color: #1e3865;
    background: #f5faff;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 5px;
    transition: var(--btb-transition);
}

.btb-select {
    padding: 14px 14px 15px;
}

.btb-input:focus,
.btb-select:focus,
.btb-textarea:focus {
    outline: none;
    border-color: rgba(30, 56, 101, 0.8);
}

.btb-filters-grid-dates {
    margin-bottom: 3rem;
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.btb-filters-grid-dates .btb-filter-group {
    width: 200px;
}

.btb-filters-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    width: 100%;
}

#btb-apply-filters-btn {
    background: #1e3865;
    color: white;
    border: 1px solid #1e3865;
}

.btb-statistics-section .btb-section-title,
.btb-create-task-section .btb-section-title,
.btb-stats-overview .btb-section-title {
    margin-bottom: 1.2rem;
}

.btb-stat-icon,
.btb-stat-icon-large {
    font-size: 6rem;
    flex-shrink: 0;
}

.btb-stat-icon {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    background: #f5faff;
    border-radius: 4px;
    border: 1px solid rgba(30, 56, 101, 0.2);
}

.btb-tasks-done-icon-svg {
    display: inline-block;
    width: 60%;
    height: auto;
    position: relative;
    left: 6px;
    bottom: 1px;
}

.btb-chrono-total-icon-svg {
    display: inline-block;
    width: 50%;
    height: auto;
}

.btb-stat-label {
    font-size: 1rem;
    color: #87acd8;
    margin-bottom: -2px;
}

.btb-stat-value {
    font-size: 2.4rem;
    font-weight: 700;
}

.btb-stat-content {
    position: relative;
    top: 4px;
}

.btb-task-form-grid {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.btb-form-left {
    padding: 3rem;
    background: white;
    border-radius: 5px;
    border: 1px solid rgba(30, 56, 101, 0.2);
    width: 100%;
}

#btb-task-form {
    display: flex;
    gap: 21px;
    flex-wrap: wrap;
}

#btb-task-form > .btb-form-group {
    width: calc(33.33% - 14px);
}

#btb-task-form > .btb-form-group:nth-child(2) {
    width: calc(33.34% - 14px);
}

.btb-form-group label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

.btb-action-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btb-action-buttons,
.btb-action-buttons button {
    height: 100%;
}

.btb-action-buttons button {
    width: 300px;
}

.btb-action-buttons > p {
    font-weight: 500;
}

.form-description {
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 1.1rem;
}

#btb-start-timer-btn {
    background-color: #1e3865;
    color: white;
    border: none;
    font-size: 1.4rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    padding: 0;
}

#btb-start-timer-btn.btb-btn:hover {
    box-shadow: 8px 8px 0 rgb(240, 130, 49);
}

.btb-launch-chrono-icon-svg {
    display: inline-block;
    width: 32px;
    height: auto;
}

.btb-launch-manual-icon-svg {
    display: inline-block;
    width: 32px;
    height: auto;
    margin-bottom: 3px
}

#btb-manual-task-btn {
    font-size: 1.4rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    padding: 0;
}

#btb-manual-task-btn.btb-btn:hover {
    box-shadow: 8px 8px 0 rgb(240, 130, 49);
    background-color: white;
    border-color: rgba(30, 56, 101, 0.8);
    color: #1e3865;
}

.btb-required {
    color: #ef4444;
}

.btb-additional-fields {
    animation: slideDown 0.3s ease-out;
    display: flex;
    flex-wrap: wrap;
    gap: 21px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btb-additional-fields > .btb-form-group:nth-child(1) {
    width: calc(50% - 10.5px);
}

.btb-additional-fields > .btb-form-group:nth-child(2) {
    width: calc(50% - 10.5px);
}
.btb-additional-fields > .btb-form-group:nth-child(4) {
    width: 100%;
}

.btb-form-row {
    display: flex;
    justify-content: space-between;
    gap: 21px;
    width: 100%;
}

.btb-form-row > .btb-form-group {
    flex: 1;
}

.btb-help-text {
    font-size: 0.8rem;
    color: #8e98a8;
    margin-top: 0.8rem;
}

.btb-help-text kbd {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 11px;
}

.btb-attachments-preview {
    margin-top: 1.3rem;
    padding: 12px;
    background: #f5faff;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 5px;
}

.btb-files-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#btb-admin-edit-existing-attachments {
    width: 100%;
}

.btb-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.btb-btn-text {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btb-preview-header .btb-btn-text span {
    text-decoration: none;
}

.btb-preview-header button {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btb-preview-header button img {
    width: 10px;
    display: inline-block;
    position: relative;
    bottom: 0.05rem;
}

.btb-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 5px;
    font-size: 1rem;
}

.btb-preview-item.btb-file-error {
    background: #fff3cd;
    border-color: #ffc107;
}

.btb-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btb-file-size {
    flex-shrink: 0;
}

.btb-btn-danger-text:hover {
    color: rgb(240, 130, 49);
    text-decoration: none;
}

#btb-save-manual-btn {
    display: flex;
    width: 400px;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 500;
    flex-direction: column;
    background-color: #1e3865;
    color: white;
    border: none;
    padding: 50px 0;
}

#btb-save-manual-btn.btb-btn:hover {
    box-shadow: 8px 8px 0 rgb(240, 130, 49);
    transform: translateY(-2px);
}

.btb-confirm-creation-task-icon-svg {
    display: inline-block;
    width: 30px;
    height: auto;
    margin-bottom: 0.4rem;
}

#btb-cancel-manual-btn {
    color: #8e98a8;
    padding: 15px;
}

#btb-cancel-manual-btn:hover {
    color: #1e3865;
}

.btb-file-warning {
    color: #856404;
    font-weight: 600;
}

th[data-column="status"],
th[data-column="billing_status"] {
    width: 150px;
}

.btb-table .btb-actions {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
    padding-top: 14.5px;
}

.btb-actions .btb-btn-icon:nth-child(1) img {
    display: inline-block;
    width: 14px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#btb-admin-entries-table .btb-actions .btb-btn-icon:nth-child(1) img {
    position: relative;
    top: 0.5px;
}

.btb-actions .btb-btn-icon:nth-child(2) img {
    display: inline-block;
    width: 14px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btb-actions .btb-btn-icon:nth-child(3) img {
    display: inline-block;
    width: 13px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btb-actions .btb-btn-icon:nth-child(1) img:hover,
.btb-actions .btb-btn-icon:nth-child(2) img:hover,
.btb-actions .btb-btn-icon:nth-child(3) img:hover {
    opacity: 1;
}

.btb-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 130, 49, 0.5);
    z-index: 10000;
    overflow-y: auto;
}

.btb-modal-content {
    position: relative;
    width: 700px;
    margin: 50px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 10px 10px 0 rgb(240, 130, 49);
    animation: modalSlideIn 0.3s ease-out;
    height: fit-content;
}

.btb-modal-large .btb-modal-content {
    max-width: 1200px;
}

#btb-edit-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0 21px;
}

#btb-edit-form .btb-form-grid {
    display: flex;
    justify-content: space-between;
    gap: 21px;
    width: 100%;
    margin-bottom: 20px;
}

#btb-edit-form .btb-form-grid .btb-form-group {
    flex: 1;
}

#btb-edit-form .btb-form-group:nth-child(4) {
    width: 100%;
}

#btb-edit-form .btb-form-group:nth-child(5) {
    width: 100%;
    margin-top: 21px;
}

#btb-edit-form .btb-form-group:nth-child(7) {
    width: 100%;
    margin-top: 18.5px;
}

#btb-edit-form .btb-form-group:nth-child(7) label {
    margin-bottom: 0.5rem;
}

#btb-edit-form .btb-form-group:nth-child(7) .btb-input-file {
    font-size: 1.1rem;
    width: 100%;
    padding: 20px 20px 19px;
    font-size: 1rem;
    color: #1e3865;
    background: #f5faff;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 5px;
}

#btb-create-entry-form .btb-form-group:nth-child(8) .btb-input-file {
    font-size: 1.1rem;
    width: 100%;
    padding: 20px 20px 19px;
    font-size: 1rem;
    color: #1e3865;
    background: #f5faff;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 5px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#btb-admin-edit-form {
    gap: 21px;
    display: flex;
    flex-wrap: wrap;
}

#btb-admin-edit-form > .btb-form-group:nth-child(2),
#btb-admin-edit-form > .btb-form-group:nth-child(3),
#btb-admin-edit-form > .btb-form-group:nth-child(8),
#btb-admin-edit-form > .btb-form-group:nth-child(9) {
    width: calc(50% - 10.5px);
}

#btb-admin-edit-form > .btb-form-group:nth-child(8),
#btb-admin-edit-form > .btb-form-group:nth-child(9) {
    width: 100%;
}

#btb-admin-edit-form > .btb-form-group:nth-child(4),
#btb-admin-edit-form > .btb-form-group:nth-child(6) {
    width: calc(33.33% - 14px);
}

#btb-admin-edit-form > .btb-form-group:nth-child(5) {
    width: calc(33.34% - 14px);
}

#btb-admin-edit-form > .btb-form-grid {
    gap: 21px;
    display: flex;
    width: 100%;
}

#btb-admin-edit-form > .btb-form-grid > .btb-form-group {
    width: calc(25% - 15.75px);
}

#btb-admin-edit-form .btb-form-group:nth-child(11) {
    width: 100%
}

#btb-admin-edit-form .btb-form-group:nth-child(11) .btb-input-file {
    font-size: 1.1rem;
    width: 100%;
    padding: 20px 20px 19px;
    font-size: 1rem;
    color: #1e3865;
    background: #f5faff;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 5px;
    width: 100%;
}

.btb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 3rem;
    border-bottom: 1px solid rgba(30, 56, 101, 0.2);
}

.btb-modal-header h2 {
    font-weight: 500;
    font-size: 1.4rem;
}

button.btb-modal-close {
    background: transparent;
    border: 1px solid transparent;
    color: #8e98a8;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    position: relative;
    right: -10px;
}

.btb-modal-actions button.btb-modal-close {
    background: white;
    border: 1px solid rgba(30, 56, 101, 0.2);
    color: #1e3865;
    padding: 1rem 2rem;
    line-height: normal;
    width: auto;
    height: auto;
    position: initial;
    right: initial;
}

.btb-modal-close:hover {
    background: #f5faff;
    color: #1e3865;
    border: 1px solid rgba(30, 56, 101, 0.2);
}

.btb-modal-body {
    padding: 3rem;
    max-height: 70vh;
    overflow-y: auto;
}

.btb-info-box {
    background: #f5faff;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 30px;
}

.btb-info-item {
    display: flex;
    gap: 5px;
}

.btb-info-item label {
    font-size: 1rem;
    font-weight: 600;
}

.btb-info-item span {
    font-size: 1rem;
}

.btb-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0 10px;
    width: 100%;
    margin-top: 24px;
}

#btb-admin-edit-form .btb-modal-actions,
#btb-create-entry-form .btb-modal-actions {
    margin-top: 0;
}

.btb-modal-action .button.btb-btn {
   padding: 14px 20px 15px
}

#btb-save-edit-btn {
    background-color: #1e3865;
    color: white;
    border: 1px solid #1e3865;
}

.btb-files-preview {
    margin-top: 16px;
}

.btb-files-preview .btb-preview-header {
    margin-bottom: 0;
}

.btb-btn-icon-small.btb-btn-danger {
    color: #dc3545;
}

#btb-edit-existing-attachments {
    margin-top: 20px;
    width: 100%;
}

.btb-existing-files-list .btb-attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f5faff;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 5px;
}

.btb-existing-files-list .btb-attachment-item.deleted {
    opacity: 0.3;
    text-decoration: line-through;
}

.btb-existing-files-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.btb-attachment-item a {
    font-size: 1rem;
}

.btb-attachment-item a:hover {
    text-decoration: underline;
}

.btb-attachment-size {
    font-size: 1rem;
    color: #8e98a8;
    margin-left: auto;
}

#btb-entries-tbody td button.btb-attachments-link,
#btb-admin-entries-table td button.btb-attachments-link {
    background-color: #f5faff;
    padding: 12px 14px;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 0.9rem;
}

.btb-attachments-link img {
    display: inline-block;
    width: 10px;
    margin-right: 3px;
}

#btb-entries-tbody td button.btb-attachments-link:hover,
#btb-admin-entries-table td button.btb-attachments-link:hover {
    border-color: rgba(30, 56, 101, 0.8);
}

.btb-modal-section {
    background: #f5faff;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 5px;
    padding: 15px;
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 20px;
    font-size: 1.1rem;
}

.btb-attachment-card {
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    background: #f5faff;
}

.btb-attachment-icon-large {
    font-size: 34px;
    margin-bottom: 4px;
}

.btb-detail-full .btb-attachment-icon img {
    display: inline-block;
    width: 10px;
    height: auto;
    position: relative;
    top: 0.5px;
}

.btb-attachment-link {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    text-decoration: none;
    word-break: break-word;
    font-size: 1.1rem;
}

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

.btb-attachment-meta {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.btb-attachment-preview img {
    max-width: 100%;
    max-height: 150px;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 5px;
    display: block;
}

.btb-attachment-card .btb-btn-primary {
    background-color: white;
    border: 1px solid rgba(30, 56, 101, 0.2);
    padding: 10px 20px 9px;
    border-radius: 5px;
    margin: 10px auto 0;
    display: flex;
	width: fit-content;
	margin: 10px auto 0;
	font-size: 1rem;
	font-weight: 500;
    gap: 0 4px;
    transition: all 0.2s ease-in-out;
}

.btb-attachment-card .btb-btn-primary:hover {
    border-color: rgba(30, 56, 101, 0.8);
    box-shadow: 4px 4px 0 rgb(240, 130, 49);
    transform: translateY(-2px);
}

.btb-attachment-card .btb-btn img {
    display: block;
    width: 10px;
    position: relative;
    bottom: 0.5px;
}

.btb-timer-display {
    padding: 3rem 10rem;
    background: #1e3865;
    border-radius: 5px;
    color: white;
    text-align: center;
}

.btb-status-running {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.btb-timer-status .btb-status-badge {
    padding: 0;
}

.btb-timer-value {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
}

.btb-timer-date {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btb-timer-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.btb-timer-actions #btb-pause-timer-btn,
.btb-timer-actions #btb-stop-timer-btn {
    color: #1e3865;
    border: none;
    padding: 15px 30px 14px;
}

.btb-timer-help {
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.btb-modal-header h3 {
    font-weight: 600;
}

button#btb-cancel-timer-btn {
    border: none;
    color: #1e3865;
    padding: 15px 20px 14px;
    width: fit-content;
}

.btb-pause-icon-svg {
    display: inline-block;
    width: 11px;
    position: relative;
    bottom: -1px;
}

.btb-validate-icon-svg {
    display: inline-block;
    width: 10px;
    position: relative;
    bottom: -1px;
}

.btb-deactivated-icon {
    opacity: 0.2;
    display: inline-block;
    width: 13px;
    position: relative;
    top: 1.5px;
}

.btb-pagination-info {
    font-size: 1rem;
    color: #8e98a8;
}

.btb-pagination-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.btb-pagination-buttons button.btb-pagination-btn {
    padding: 0 1.3rem;
    background: white;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    font-weight: 500;
    height: 34px;
    min-width: 34px;
}

.btb-pagination-buttons button.btb-pagination-btn:hover {
    background: #1e3865;
    border-color: #1e3865;
    color: #ffffff;
}

.btb-pagination-buttons button.btb-pagination-btn.active {
    background: #1e3865;
    border-color: #1e3865;
    color: #ffffff;
}

.btb-spinner {
    width: 30px;
    height: 30px;
    border: 4px solid #c5cddaff;
    border-top-color: #1e3865;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 1rem auto 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btb-notification {
    position: fixed;
    top: 10%;
    right: 50%;
    transform: translate(50%, -500px);
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 1.7rem 4rem 3rem;
    background: white;
    border-radius: 5px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(30, 56, 101, 0.2);
    z-index: 10001;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    min-width: 300px;
    max-width: 500px;
}

.btb-notification-show {
    opacity: 1;
    transform: translate(50%, 0);
}

.btb-notification-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.btb-notification-message {
    font-size: 1.2rem;
}

.btb-notification-success {
    border-left: 4px solid var(--btb-success);
    border-right: 4px solid var(--btb-success);
}

.btb-notification-success .btb-notification-icon {
    color: var(--btb-success);
}

.btb-notification-error {
    border-left: 4px solid var(--btb-danger);
    border-right: 4px solid var(--btb-danger);
}

.btb-notification-error .btb-notification-icon {
    color: var(--btb-danger);
}

.btb-notification-warning {
    border-left: 4px solid var(--btb-warning);
    border-right: 4px solid var(--btb-warning);
}

.btb-notification-warning .btb-notification-icon {
    color: var(--btb-warning);
}

.btb-notification-info {
    border-left: 4px solid var(--btb-info);
    border-right: 4px solid var(--btb-info);
}

.btb-notification-info .btb-notification-icon {
    color: var(--btb-info);
}

#btb-create-entry-form {
    display: flex;
    flex-wrap: wrap;
    gap: 21px;
}

#btb-create-entry-form .btb-form-group:nth-child(1),
#btb-create-entry-form .btb-form-group:nth-child(2),
#btb-create-entry-form .btb-form-group:nth-child(3),
#btb-create-entry-form .btb-form-group:nth-child(4),
#btb-create-entry-form .btb-form-group:nth-child(6) {
    width: calc(50% - 10.5px);
}

#btb-create-entry-form .btb-form-row,
#btb-create-entry-form .btb-form-group:nth-child(5),
#btb-create-entry-form .btb-form-group:nth-child(6),
#btb-create-entry-form .btb-form-group:nth-child(8) {
    width: 100%;
}

#btb-create-entry-form .btb-form-row .btb-form-group {
    flex: 1;
}

.btb-timer-restore-section {
    margin-bottom: 70px;
    gap: 1.5rem;
}

.btb-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 3rem;
    border-radius: 5px;
    align-items: center;
}

.btb-alert-icon {
    font-size: var(--btb-font-size-xl);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.btb-alert-success {
    background: var(--btb-success-light);
    border-left: 4px solid var(--btb-success);
    color: var(--btb-success);
}

.btb-alert-error {
    background: var(--btb-danger-light);
    border-left: 4px solid var(--btb-danger);
    color: var(--btb-danger);
}

.btb-alert-warning {
    background: var(--btb-warning-light);
    border-left: 4px solid var(--btb-warning);
    color: var(--btb-warning);
}

.btb-alert-info {
    background: var(--btb-info-light);
    border: 1px solid var(--btb-info);
    border-left: 4px solid var(--btb-info);
    color: var(--btb-info);
}

.btb-chrono-icon-svg {
    display: inline-block;
    width: 32px;
    height: auto;
}

#btb-restore-timer-btn {
    background-color: #1e3865;
    color: white;
    border: none;
    padding: 15px 30px 14px;
    font-size: 1.3rem;
    font-weight: 500;
    border-radius: 5px;
}

#btb-admin-entries-table th[data-column="task_name"] {
    width: 180px;
}

.btb-admin-tabs {
    display: flex;
    gap: 1rem;
}

.btb-admin-tabs button.btb-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.3rem 2rem 1.2rem;
    background-color: white;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.btb-admin-tabs button.btb-tab-btn:hover {
    box-shadow: 4px 4px 0 rgb(240, 130, 49);
    transform: translateY(-2px);
}

.btb-admin-tabs button.btb-tab-btn.active {
    background-color: #1e3865;
    color: white;
}

.btb-admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btb-agent-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
}

.btb-btn-switch {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0 2rem;
	background-color: white;
	border: 1px solid rgba(30, 56, 101, 0.2);
	border-radius: 5px;
	font-size: 1.1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	position: relative;
    color: #1e3865;
    height: 41px;
}

.btb-btn-switch:hover {
    box-shadow: 4px 4px 0 rgb(240, 130, 49);
    transform: translateY(-2px);
}

.btb-btn-icon {
    display: block;
}

.btb-btn-switch .btb-switch-icon-svg {
    width: 12px;
    height: 12px;
    position: relative;
    top: 2px;
}

.btb-entry-details {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.btb-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btb-details-row {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid rgba(30, 56, 101, 0.2);
    padding-bottom: 2.1rem;
    font-size: 1rem;
}

.btb-details-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.btb-entry-details > .btb-detail-full {
    border-top: 1px solid rgba(30, 56, 101, 0.2);
    padding-top: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.btb-attachment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    background: #f5faff;
    border-radius: 3px;
}

.btb-detail-full .btb-attachment-item {
    border: 1px solid rgba(30, 56, 101, 0.2);
}

.btb-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.btb-detail-item label,
.btb-detail-full label {
    font-size: 1rem;
    font-weight: 600;
}

.btb-detail-item > div {
    padding: 0.9rem 2rem;
    background-color: #f5faff;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 3px;
}

.btb-details-row:nth-child(4) .btb-detail-item > div,
.btb-details-row:nth-child(5) .btb-detail-item:first-child > div {
    padding: 0;
    background-color: initial;
    border: none;
    border-radius: 0;
}

.btb-details-row:nth-child(4) .btb-detail-item > div .btb-status-badge,
.btb-details-row:nth-child(5) .btb-detail-item > div .btb-billing-badge {
    padding: 0.9rem 2rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 1rem;
}

.btb-details-row .btb-billing-billable {
    border: 1px solid #3b82f6;
}

.btb-details-row .btb-status-validated {
    border: 1px solid #d1fae5;
}

.btb-details-row .btb-status-pending {
    border: 1px solid #fef3c7;
}

.btb-details-row .btb-billing-pending {
    border: 1px solid #f1f5f9;
}

#btb-billing-table th:nth-child(7) {
    width: 140px;
}

#btb-billing-table th:nth-child(9) {
    width: 110px;
}

.btb-billing-non-billable {
    background: var(--btb-danger-light);
    color: var(--btb-danger);
}

.btb-input-hourly-rate {
    width: 100px;
    padding: 6px 10px;
    background: #f5faff;
    border: 1px solid rgba(30, 56, 101, 0.2);
    border-radius: 3px;
    text-align: center;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.btb-input-hourly-rate:focus {
    outline: none;
    border-color: rgba(30, 56, 101, 0.8);
}

.btb-input-hourly-rate:hover {
    border-color: rgba(30, 56, 101, 0.8);
}

.btb-billing-toggle {
    display: flex;
    gap: 5px;
}

.btb-billing-toggle button.btb-btn-toggle {
    padding: 7px 13px;
    border: 1px solid rgba(30, 56, 101, 0.2);
    background: #f5faff;
    border-radius: 3px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btb-billing-toggle button.btb-btn-toggle.active,
.btb-billing-toggle button.btb-btn-toggle[data-value="1"]:hover {
    background: #22c55e;
    border-color: #16a34a;
    color: white;
}

.btb-billing-toggle button.btb-btn-toggle[data-value="0"].active,
.btb-billing-toggle button.btb-btn-toggle[data-value="0"]:hover {
    background: #ef4444;
    border-color: #dc2626;
    color: white;
}

.btb-checkbox-invoiced-disabled {
    width: 14px;
    height: 14px;
    cursor: not-allowed;
    opacity: 0.5;
    appearance: auto;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    accent-color: #9ca3af;
    border: 2px solid rgba(30, 56, 101, 0.2);
    border-radius: 3px;
    background: #f5faff;
    position: relative;
    top: 1.5px;
}

.btb-checkbox-invoiced {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: rgba(30, 56, 101, 1);
    appearance: auto;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    position: relative;
    top: 1.5px;
}

.btb-billing-export-checkbox,
#btb-export-test-mode {
    appearance : auto;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
}

.btb-billing-export-checkbox {
    position: relative;
    top: 2px;
    accent-color: rgba(30, 56, 101, 1);
}

.btb-editing-row {
    background: rgba(30, 56, 101, 0.2) !important;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 1800px) {
    .btb-action-buttons button {
        width: 230px;
    }

    .btb-action-buttons > p {
        font-size: 1.1rem;
    }

    #btb-manual-task-btn {
        font-size: 1.2rem;
    }

    #btb-start-timer-btn {
        font-size: 1.2rem;
    }

    .btb-launch-chrono-icon-svg {
        width: 28px;
    }

    .btb-launch-manual-icon-svg {
        width: 28px;
    }

    .btb-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 1536px) {
    .btb-time-tracker-title {
        font-size: 4rem;
    }

    th[data-column="status"] {
        width: 124px;
        min-width: 124px;
    }

    th[data-column="billing_status"] {
        width: 120px;
        min-width: 120px;
    }

    .btb-status-badge {
        letter-spacing: 0;
    }

    .btb-billing-badge {
        letter-spacing: 0;
        padding: 0.9rem 0;
    }

    .btb-description-cell,
    .btb-task-cell {
        max-width: 110px;
    }

    .btb-action-buttons button {
        width: 180px;
    }

    #btb-manual-task-btn {
        font-size: 1.1rem;
    }

    #btb-start-timer-btn {
        font-size: 1.1rem;
    }

    .btb-launch-chrono-icon-svg {
        width: 26px;
    }

    .btb-launch-manual-icon-svg {
        width: 26px;
        margin-bottom: 2.5px;
    }

    .btb-action-buttons {
        gap: 1rem;
    }

    .btb-stat-card {
        padding: 4rem 0;
    }

    .btb-stat-icon {
        width: 58px;
        height: 58px;
    }

    .btb-stat-value {
        font-size: 2rem;
    }

    .btb-tasks-done-icon-svg {
        left: 4.5px;
    }

    .btb-stat-content {
        top: 2px;
    }

    #btb-save-manual-btn {
        width: 300px;
        font-size: 1.3rem;
        padding: 40px 0;
    }

    .btb-confirm-creation-task-icon-svg {
        width: 26px;
    }

    .btb-timer-display {
        padding: 3rem 5rem;
    }

    .btb-timer-value {
        font-size: 4rem;
    }

    .btb-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    #btb-admin-interface .btb-stat-label {
        font-size: 0.9rem;
    }

    #btb-admin-interface .btb-stat-icon {
        width: 50px;
        height: 50px;
    }

    #btb-admin-interface .btb-stat-card {
        gap: 1rem;
    }

    #btb-admin-interface .btb-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    #btb-admin-interface .btb-filters-grid-main {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    #btb-billing-table th:nth-child(5) {
        width: 126px;
    }

    #btb-billing-table th:nth-child(7) {
        width: 94px;
    }

    #btb-billing-table th:nth-child(9) {
        width: 98px;
    }

    .btb-billing-toggle button.btb-btn-toggle {
        padding: 7px;
    }
}

@media (max-width: 1280px) {
    .time-tracker-subtitle {
        margin-bottom: 3rem;
    }

    .btb-time-tracker-title {
        font-size: 3.4rem;
    }

    .time-tracker-subtitle {
        font-size: 1.2rem;
    }

    .btb-stat-value {
        font-size: 1.8rem;
    }

    #btb-task-form,
    .btb-additional-fields,
    .btb-form-row {
        gap: 14px 10px;
    }

    #btb-task-form > .btb-form-group {
        width: calc(33.33% - 7px);
    }

    #btb-task-form > .btb-form-group:nth-child(2) {
        width: calc(33.34% - 7px);
    }

    .btb-form-right {
        width: 400px;
    }

    .btb-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    #btb-start-timer-btn,
    #btb-manual-task-btn {
        width: 100%;
        padding: 2rem 0;
    }

    #btb-task-form > .btb-form-group:nth-child(1) {
        width: 100%;
    }

    #btb-task-form > .btb-form-group:nth-child(2),
    #btb-task-form > .btb-form-group:nth-child(3) {
        width: calc(50% - 5px);
    }

    .btb-additional-fields > .btb-form-group:nth-child(1),
    .btb-additional-fields > .btb-form-group:nth-child(2) {
        width: 100%;
    }

    #btb-admin-interface .btb-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }

    #btb-admin-interface .btb-filters-grid-main {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }

    #btb-admin-interface .btb-filters-grid-dates {
        gap: 1rem;
    }

    #btb-admin-entries-table th[data-column="task_name"] {
        width: 120px;
    }

    #btb-admin-entries-table th[data-column="status"] {
        width: 90px;
        min-width: 90px;
    }

    #btb-admin-entries-table th[data-column="billing_status"] {
        width: 95px;
        min-width: 95px;
    }

    #btb-billing-table th:nth-child(2),
    #btb-billing-table th:nth-child(3),
    #btb-billing-table th:nth-child(4) {
        min-width: 120px;
    }

    #btb-billing-table th:nth-child(5) {
        width: 126px;
        min-width: 126px;
    }

    #btb-billing-table th:nth-child(7) {
        width: 94px;
        min-width: 94px;
    }
}

@media (max-width: 1024px) {
    .time-tracker-subtitle {
        margin-bottom: 5rem;
    }

    .btb-sort-header[data-column="client_name"] {
        min-width: 160px;
    }

    .btb-sort-header[data-column="project_name"] {
        min-width: 160px;
    }

    .btb-sort-header[data-column="task_name"] {
        min-width: 200px;
    }

    .btb-sort-header[data-column="description"] {
        min-width: 200px;
    }

    .btb-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .btb-stat-card {
        padding: 3rem 0;
        gap: 1rem;
    }

    .btb-stat-icon {
        width: 50px;
        height: 50px;
    }

    .btb-tasks-done-icon-svg {
        left: 4px;
    }

    .btb-stat-value {
        font-size: 1.6rem;
    }

    .btb-stat-label {
        font-size: 0.9rem;
    }

    .btb-filters-grid-main {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .btb-filters-grid-dates {
        gap: 1rem;
    }

    .btb-modal-content {
        width: 650px;
    }

    #btb-edit-form .btb-form-grid {
        gap: 10px;
    }

    .btb-filter-group .btb-select {
        padding: 10px 10px 11px;
    }

    .btb-section-title,
    .btb-subsection-title {
        font-size: 1.5rem;
    }

    #btb-task-form > .btb-form-group:nth-child(2),
    #btb-task-form > .btb-form-group:nth-child(3) {
        width: calc(50% - 5px);
    }

    #btb-save-manual-btn {
        width: 100%;
        font-size: 1.2rem;
    }

    .btb-confirm-creation-task-icon-svg {
        width: 24px;
    }

    .btb-form-right {
        width: 100%;
    }

    #btb-cancel-manual-btn {
        white-space: normal;
        text-align: center;
    }

    .btb-task-form-grid {
        flex-direction: column;
    }

    #btb-start-timer-btn, 
    #btb-manual-task-btn {
	    padding: 4rem 0;
    }

    .btb-date-display,
    .btb-admin-date {
        font-size: 1rem;
    }

    .btb-timer-restore-section .btb-alert-info {
        width: 100%;
    }

    #btb-restore-timer-btn {
        font-size: 1.2rem;
    }

    #btb-admin-interface .btb-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    #btb-admin-interface .btb-stat-label {
        font-size: 0.8rem;
        margin-bottom: -1px;
    }

    #btb-admin-interface .btb-stat-value {
        font-size: 1.4rem;
    }

    #btb-admin-interface .btb-stat-icon {
        width: 44px;
        height: 44px;
    }

    #btb-admin-interface .btb-sort-header[data-column="agent_id"] {
        min-width: 150px;
    }

    #btb-admin-interface .btb-filters-grid-main {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }

    #btb-admin-interface .btb-entries-actions button.btb-btn {
        padding: 1rem 1.2rem;
    }

    .btb-help-text {
        display: none;
    }

    .btb-modal-section {
        gap: 8px;
        font-size: 1rem;
    }

    #btb-edit-form {
        gap: 0 10px;
    }

}

@media (max-width: 940px) {
    #btb-admin-interface .btb-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .btb-admin-tabs button.btb-tab-btn,
    .btb-btn-switch {
        font-size: 1rem;
    }

    .btb-btn-switch {
        height: 39.5px;
    }

    .btb-btn-switch .btb-switch-icon-svg {
        width: 11px;
        height: 11px;
    }

    .btb-header, .btb-admin-header {
        padding: 2rem;
    }

    .btb-agent-details h2, 
    .btb-admin-title h1 {
        font-size: 1.4rem;
        font-weight: 600;
    }

    .btb-agent-role, .btb-admin-subtitle {
        font-size: 0.9rem;
        margin-top: 4px;
    }

    .btb-admin-date {
        display: none;
    }

    .btb-stat-card {
        padding: 2rem 0;
    }

    .btb-section-title, 
    .btb-subsection-title {
        font-size: 1.3rem;
    }

    .btb-entries-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }

    .btb-pagination {
        flex-direction: column;
        gap: 1rem 0;
        margin-top: 2rem;
    }

    .btb-pagination-info {
        font-size: 0.9rem;
    }

    .btb-filters-grid-dates .btb-filter-group {
        width: calc(50% - 10px);
    }

    #btb-admin-interface .btb-filters-grid-main {
        grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .btb-filters-actions {
        justify-content: center;
    }

    .btb-modal-large .btb-modal-content {
        max-width: 90%;
    }

    .btb-form-row {
        gap: 21px 20px;
        flex-wrap: wrap;
    }

    .btb-details-row {
        flex-wrap: wrap;
    }

    #btb-additional-fields .btb-form-row {
        gap: 15px 10px;
    }

    #btb-additional-fields .btb-form-row > .btb-form-group {
        flex: auto;
        width: calc(50% - 5px);
    }

    .btb-detail-item > div {
        padding: 0.9rem 1rem;
    }

    #btb-admin-edit-form > .btb-form-grid {
        flex-wrap: wrap;
    }

    #btb-admin-edit-form > .btb-form-grid > .btb-form-group:nth-child(4) {
        width: 100%;
    }

    #btb-admin-edit-form > .btb-form-grid > .btb-form-group:nth-child(1),
    #btb-admin-edit-form > .btb-form-grid > .btb-form-group:nth-child(3) {
        width: calc(33.33% - 14px);
    }

    #btb-admin-edit-form > .btb-form-grid > .btb-form-group:nth-child(2) {
        width: calc(33.34% - 14px);
    }

    .btb-attachment-preview img {
        max-height: none;
    }

    .btb-modal-content {
        max-width: 90%;
    }

    button.btb-btn:hover,
    .btb-stat-card:hover,
    .btb-admin-tabs button.btb-tab-btn:hover,
    .btb-btn-switch:hover {
        transform: none;
        box-shadow: none;
    }

    #btb-edit-form .btb-form-grid {
        gap: 21px 10px;
        flex-wrap: wrap;
    }

    #btb-edit-form .btb-form-grid .btb-form-group {
        flex: auto;
        width: calc(50% - 5px);
    }

    .btb-calendar-icon-svg {
        width: 14px;
        position: relative;
        top: 0.5px;
    }

    .btb-modal-section {
        gap: 1px;
        font-size: 1rem;
        flex-direction: column;
    }

    .btb-timer-restore-section .btb-alert {
        padding: 2rem;
    }

    #btb-restore-timer-btn {
        font-size: 1.1rem;
    }

    .btb-timer-restore-section .btb-alert-info {
        font-size: 1.1rem;
    }

    .btb-chrono-icon-svg {
        width: 22px;
    }

}

@media (max-width: 599px) {
    .btb-timer-restore-section {
        flex-direction: column;
        gap: 1rem;
    }

    #btb-restore-timer-btn {
        font-size: 1rem;
        padding: 20px 30px 19px;
    }

    .btb-timer-restore-section .btb-alert-info {
        font-size: 0.9rem;
    }

    .btb-time-tracker-title {
        font-size: 2.4rem;
    }

    .btb-header, 
    .btb-admin-header {
        padding: 1.4rem;
    }

    .btb-agent-details h2, 
    .btb-admin-title h1 {
        font-size: 1.2rem;
    }

    .btb-timer-restore-section {
        margin-bottom: 30px;
    }

    .btb-agent-role,
    .btb-admin-subtitle {
        font-size: 0.8rem;
    }

    .btb-admin-tabs button.btb-tab-btn {
        padding: 1.1rem 1.2rem 1rem;
        font-size: 0.8rem;
    }

    .btb-btn-switch {
        height: 33px;
        font-size: 0.8rem;
    }

    .btb-btn-switch .btb-switch-icon-svg {
        width: 8px;
        height: 8px;
        top: 1px;
    }

    .time-tracker-subtitle {
        margin-bottom: 3rem;
    }

    .btb-section-title .btb-icon {
        width: 30px;
        height: 30px;
    }

    .btb-section-title, 
    .btb-subsection-title {
        font-size: 1.1rem;
        gap: 0.7rem;
    }

    .btb-page-wrapper {
        padding-top: 60px;
    }

    #btb-admin-interface .btb-stats-grid,
    .btb-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
    }

    #btb-admin-interface .btb-stat-icon,
    .btb-stat-icon {
        width: 44px;
        height: 44px;
        background: white;
    }

    #btb-admin-interface .btb-stat-card,
    .btb-stat-card {
        gap: 0.6rem;
        border: none;
        background-color: initial;
        padding: 0;
        justify-content: flex-start;
    }

    #btb-admin-interface .btb-stat-value,
    .btb-stat-value {
        font-size: 1.2rem;
    }

    #btb-admin-interface .btb-stat-label,
    .btb-stat-label {
        font-size: 0.7rem;
    }

    .btb-stats-overview .btb-section-title,
    .btb-section-title {
        margin-bottom: 1.5rem;
    }

    #btb-admin-interface .btb-entries-actions button.btb-btn {
        padding: 1.1rem 1.2rem 1rem;
        font-size: 0.8rem;
        flex: 1;
    }

    .btb-entries-actions button.btb-btn {
        gap: 0.4rem;
    }

    .btb-magnifying-glass-svg {
        width: 9px;
        height: 9px;
        top: 0.5px;
    }

    .btb-export-icon-svg {
        width: 9px;
        height: 8.95px;
        top: 0.5px;
    }

    .btb-add-task-icon-svg {
        width: 9px;
        height: 9px;
    }

    .btb-entries-actions {
        gap: 0.5rem;
        justify-content: space-between;
    }

    .btb-statistics-section,
    .btb-create-task-section,
    .btb-stats-overview {
        margin-bottom: 50px;
    }

    .btb-table th {
        padding: 1rem 1rem 1.1rem;
        font-size: 0.8rem;
    }

    .btb-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    #btb-admin-interface .btb-sort-header[data-column="agent_id"] {
        min-width: 120px;
    }

    .btb-sort-header[data-column="client_name"] {
        min-width: 140px;
    }

    .btb-sort-header[data-column="project_name"] {
        min-width: 140px;
    }

    .btb-status-badge {
        padding: 0.7rem 0;
        font-size: 0.6rem;
    }

    #btb-admin-entries-table th[data-column="status"] {
        width: 70px;
        min-width: 70px;
    }

    #btb-entries-tbody td button.btb-attachments-link,
    #btb-admin-entries-table td button.btb-attachments-link {
        padding: 10px 10px;
        font-size: 0.8rem;
    }

    .btb-attachments-link img {
        width: 7px;
        margin-right: 2px;
    }

    .btb-billing-badge {
        padding: 0.7rem 0;
        font-size: 0.6rem;
    }

    #btb-admin-entries-table th[data-column="billing_status"] {
        width: 84px;
        min-width: 84px;
    }

    .btb-actions .btb-btn-icon:nth-child(1) img {
        width: 11px;
    }

    .btb-actions .btb-btn-icon:nth-child(2) img {
        width: 12px;
    }

    .btb-actions .btb-btn-icon:nth-child(3) img {
        width: 11px;
    }

    .btb-table .btb-actions {
        padding-top: 10.5px;
    }

    .btb-pagination-buttons button.btb-pagination-btn {
        padding: 0 1rem;
        font-size: 0.8rem;
        height: 28px;
        min-width: 28px;
    }

    .btb-filters-panel {
        padding: 1.5rem;
    }

    .btb-filter-group label {
        font-size: 0.8rem;
    }

    .btb-filters-grid-dates .btb-filter-group {
        width: calc(50% - 5px);
    }

    .btb-input, .btb-select, .btb-textarea {
        padding: 12px 12px 12px;
        font-size: 0.8rem;
    }

    .btb-filters-grid-dates {
        margin-bottom: 1.5rem;
    }

    #btb-admin-interface .btb-filters-grid-main {
        grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
        gap: 1.3rem 1rem;
        margin-bottom: 2rem;
    }

    button.btb-btn {
        padding: 1.1rem 1.8rem;
        font-size: 0.8rem;
    }

    #btb-create-entry-form > .btb-form-group:nth-child(1), 
    #btb-create-entry-form > .btb-form-group:nth-child(2), 
    #btb-create-entry-form > .btb-form-group:nth-child(3), 
    #btb-create-entry-form > .btb-form-group:nth-child(4),
    #btb-create-entry-form > .btb-form-group:nth-child(5), 
    #btb-create-entry-form > .btb-form-group:nth-child(6) {
        width: 100%;
    }

    #btb-create-entry-form > .btb-form-row > .btb-form-group {
        width: calc(50% - 5px);
        flex: auto;
    }

    #btb-create-entry-form {
        gap: 15px;
    }

    .btb-form-row {
        gap: 15px 10px;
        flex-wrap: wrap;
    }

    #btb-create-entry-form .btb-modal-actions {
        justify-content: center;
        margin-top: 10px;
    }

    .btb-modal-body {
        padding: 2rem;
    }

    .btb-preview-header {
        font-size: 0.9rem;
    }

    .btb-preview-item {
        font-size: 0.8rem;
    }

    .btb-modal-header h3 {
        font-size: 1.1rem;
    }

    .btb-detail-item label, 
    .btb-detail-full label {
        font-size: 0.8rem;
    }

    .btb-detail-item > div {
        font-size: 0.8rem;
    }

    .btb-details-row:nth-child(4) .btb-detail-item > div .btb-status-badge, 
    .btb-details-row:nth-child(5) .btb-detail-item > div .btb-billing-badge {
        padding: 1rem 1.8rem;
        font-size: 0.8rem;
    }

    .btb-attachment-item a {
        font-size: 0.8rem;
    }

    .btb-attachment-size {
        font-size: 0.8rem;
    }

    .btb-detail-full .btb-attachment-icon img {
        width: 8px;
        top: 0;
    }

    .btb-attachment-item {
        padding: 1.2rem 1.4rem;
    }

    .btb-form-group label {
        font-size: 0.8rem;
    }

    #btb-admin-edit-form .btb-form-group:nth-child(11) .btb-input-file {
        padding: 14px;
        font-size: 0.8rem;
    }

    .btb-modal-actions {
        justify-content: center;
    }

    #btb-admin-edit-form {
        gap: 15px 10px;
    }

    #btb-admin-edit-form > .btb-form-group:nth-child(2),
    #btb-admin-edit-form > .btb-form-group:nth-child(3),
    #btb-admin-edit-form > .btb-form-group:nth-child(8),
    #btb-admin-edit-form > .btb-form-group:nth-child(9) {
        width: 100%;
    }

    #btb-admin-edit-form > .btb-form-group:nth-child(4),
    #btb-admin-edit-form > .btb-form-group:nth-child(6) {
        width: 100%;
    }

    #btb-admin-edit-form > .btb-form-grid {
        gap: 15px 10px;
    }

    #btb-admin-edit-form > .btb-form-grid > .btb-form-group:nth-child(1), 
    #btb-admin-edit-form > .btb-form-grid > .btb-form-group:nth-child(3) {
        width: 100%;
    }

    #btb-admin-edit-form > .btb-form-group:nth-child(5) {
        width: 100%
    }

    #btb-admin-edit-form > .btb-form-grid > .btb-form-group:nth-child(2) {
        width: calc(50% - 5px);
    }

    #btb-admin-edit-form > .btb-form-grid > .btb-form-group:nth-child(1), 
    #btb-admin-edit-form > .btb-form-grid > .btb-form-group:nth-child(3) {
        width: calc(50% - 5px);
    }

    #btb-admin-edit-form > .btb-form-grid > .btb-form-group:nth-child(4) {
        width: calc(50% - 5px);
    }

    #btb-admin-edit-form .btb-modal-actions, 
    #btb-create-entry-form .btb-modal-actions {
        margin-top: 10px;
    }

    .btb-modal-header h2 {
        font-size: 1.1rem;
    }

    .btb-modal-section {
        padding: 12px;
        gap: 2px;
        font-size: 0.9rem;
        flex-direction: column;
    }

    .btb-attachment-link {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }

    .btb-attachment-card .btb-btn-primary {
        padding: 11px 18px 10px;
        font-size: 0.8rem;
        gap: 0 2px;
    }

    .btb-attachment-card .btb-btn img {
        width: 8px;
    }

    .btb-attachments-grid {
        gap: 10px;
        margin-top: 10px;
    }

    .btb-notification {
        padding: 1rem 2rem 2rem;
        min-width: 200px;
        max-width: 80%;
    }

    .btb-notification-icon {
        font-size: 2rem;
    }

    .btb-notification-message {
        font-size: 1rem;
    }

    .btb-input-hourly-rate {
        padding: 5px 10px;
        font-size: 0.9rem;
    }

    .btb-billing-toggle button.btb-btn-toggle {
        padding: 4px 6px;
    }

    .time-tracker-subtitle {
        font-size: 1rem;
    }

    .btb-date-display,
    .btb-admin-date {
        display: none;
    }

    #btb-user-interface .btb-entries-header {
        flex-direction: row;
    }

    #btb-user-interface .btb-entries-header .btb-section-title {
        margin-bottom: 0;
    }

    #btb-user-interface .btb-entries-header button.btb-btn {
        padding: 1rem 1.4rem;
    }

    .btb-statistics-section .btb-section-title {
        margin-bottom: 2rem;
    }

    .btb-create-task-section .btb-section-title {
        margin-bottom: 1.5rem;
    }

    .btb-form-left {
        padding: 2.6rem;
    }

    .form-description {
        margin-bottom: 1.6rem;
        font-size: 0.9rem;
    }

    #btb-task-form {
        gap: 15px 10px;
    }

    #btb-task-form > .btb-form-group:nth-child(2),
    #btb-task-form > .btb-form-group:nth-child(3) {
        width: 100%;
    }

    #btb-start-timer-btn,
    #btb-manual-task-btn {
        padding: 3rem 0;
        font-size: 1rem;
    }

    .btb-launch-manual-icon-svg {
        width: 20px;
    }

    #btb-manual-task-btn {
        font-size: 1rem;
    }

    .btb-action-buttons > p {
        font-size: 1rem;
    }

    .btb-action-buttons {
        gap: 0.8rem;
    }

    #btb-save-manual-btn {
        font-size: 1rem;
        padding: 24px 0;
    }

    .btb-confirm-creation-task-icon-svg {
        width: 20px;
    }

    #btb-save-manual-btn.btb-btn:hover {
        box-shadow: none;
        transform: none;
    }

    .btb-file-name {
        max-width: 130px;
    }

    .btb-timer-value {
        font-size: 3rem;
    }

    .btb-timer-actions #btb-pause-timer-btn,
    .btb-timer-actions #btb-stop-timer-btn {
        padding: 12px 30px 11px;
    }

    button#btb-cancel-timer-btn {
        padding: 13px 20px;
    }

    .btb-timer-display {
        padding: 2rem;
    }

    .btb-info-box {
        gap: 2px;
        flex-direction: column;
        margin-bottom: 0;
    }

    .btb-info-item label {
        font-size: 0.9rem;
    }

    .btb-info-item span {
        font-size: 0.9rem;
    }

    #btb-edit-form .btb-form-grid {
        gap: 15px 10px;
        flex-wrap: wrap;
        margin-bottom: 0;
    }

    #btb-edit-existing-attachments {
        margin-top: 0;
    }

    #btb-edit-form {
        gap: 15px 10px;
    }

    #btb-edit-form .btb-form-group:nth-child(7) {
        margin-top: 0;
    }

    #btb-edit-form .btb-form-group:nth-child(7) .btb-input-file {
        padding: 15px 20px 15px;
        font-size: 0.8rem;
    }

    #btb-edit-form .btb-modal-actions {
        margin-top: 10px;
    }

    #btb-edit-form .btb-form-group:nth-child(5) {
        margin-top: 0;
    }

}








































































/* ========================================
   RESET & BASE
======================================== */



/* Info box pour afficher les infos non modifiables */




/* Badge PJ cliquable */


/* Grid des pièces jointes dans le modal */
.btb-attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}











/* Liste des fichiers existants dans l'édition */


/* Tri des colonnes */


/* Selects multiples */
.btb-select-multiple {
    min-height: 100px;
}

.btb-select-multiple option {
    padding: 8px;
}

.btb-select-multiple option:checked {
    background: linear-gradient(0deg, #4CAF50 0%, #4CAF50 100%);
    color: white;
}



/* Prévisualisation des fichiers */








.btb-file-icon {
    font-size: 20px;
    flex-shrink: 0;
}






/* Boutons dans la prévisualisation */




.btb-btn-danger-text {
    color: #dc3545;
}


.btb-btn-icon-small {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    color: #6c757d;
    transition: all 0.2s ease;
    margin-left: auto;
}







/* Style pour l'aide */


/* Description tronquée dans le tableau */


/* ===========================
   FACTURATION - Champs interactifs
   =========================== */

/* Tarif horaire */


/* Boutons facturable */


/* Checkbox facturé */


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

/* Badges statut facturation */


/* ========================================
   HEADER
======================================== */








/* ========================================
   NAVIGATION ONGLETS (Admin)
======================================== */




.btb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--btb-danger);
    color: var(--btb-text-white);
    font-size: var(--btb-font-size-xs);
    font-weight: 600;
    border-radius: 10px;
}

/* ========================================
   CONTENU ONGLETS
======================================== */
.btb-tab-content {
    display: none;
}

.btb-tab-content.active {
    display: block;
}

/* ========================================
   SECTIONS
======================================== */



.btb-subsection-title {
    font-size: var(--btb-font-size-lg);
    margin-bottom: var(--btb-spacing-md);
}

/* ========================================
   FORMULAIRES
======================================== */









.btb-textarea {
    resize: vertical;
    min-height: 100px;
}

.btb-file-input {
    padding: var(--btb-spacing-sm);
    font-size: var(--btb-font-size-sm);
}


/* ========================================
   BOUTONS
======================================== */


.btb-btn-success {
    background: var(--btb-success);
}

.btb-btn-success:hover {
    background: var(--btb-success-hover);
}

.btb-btn-danger {
    background: var(--btb-danger);
}

.btb-btn-warning {
    background: var(--btb-warning);
}

.btb-btn-warning:hover {
    background: var(--btb-warning-hover);
}

.btb-btn-info {
    background: var(--btb-info);
}

.btb-btn-info:hover {
    background: var(--btb-info-hover);
}

/* Tailles de boutons */
.btb-btn-sm {
    padding: var(--btb-spacing-xs) var(--btb-spacing-md);
    font-size: var(--btb-font-size-sm);
}

.btb-btn-lg {
    padding: var(--btb-spacing-md) var(--btb-spacing-xl);
    font-size: var(--btb-font-size-lg);
}

.btb-btn-block {
    width: 100%;
}

/* Boutons spéciaux */
.btb-btn-timer {
    font-size: var(--btb-font-size-lg);
    padding: var(--btb-spacing-md) var(--btb-spacing-xl);
}

.btb-btn-manual {
    border: 2px solid var(--btb-secondary);
    background: transparent;
    color: var(--btb-secondary);
}

.btb-btn-manual:hover {
    background: var(--btb-secondary);
    color: var(--btb-text-white);
}



/* ========================================
   ACTIONS BUTTONS
======================================== */

/* ========================================
   CHRONOMÈTRE
======================================== */















/* ========================================
   STATISTIQUES
======================================== */


.btb-stats-large {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.btb-stat-icon-large {
    font-size: var(--btb-font-size-3xl);
}

.btb-stat-value-large {
    font-size: var(--btb-font-size-3xl);
    font-weight: 700;
    color: var(--btb-text-primary);
}

.btb-stat-trend,
.btb-stat-detail {
    font-size: var(--btb-font-size-xs);
    color: var(--btb-text-muted);
    margin-top: var(--btb-spacing-xs);
}

/* Variantes de cartes statistiques */
.btb-stat-primary {
    border-color: var(--btb-primary-light);
    background: linear-gradient(135deg, var(--btb-primary-light) 0%, var(--btb-bg-secondary) 100%);
}

.btb-stat-success {
    border-color: var(--btb-success-light);
    background: linear-gradient(135deg, var(--btb-success-light) 0%, var(--btb-bg-secondary) 100%);
}

.btb-stat-warning {
    border-color: var(--btb-warning-light);
    background: linear-gradient(135deg, var(--btb-warning-light) 0%, var(--btb-bg-secondary) 100%);
}

.btb-stat-info {
    border-color: var(--btb-info-light);
    background: linear-gradient(135deg, var(--btb-info-light) 0%, var(--btb-bg-secondary) 100%);
}

.btb-stat-money {
    border-color: var(--btb-success-light);
    background: linear-gradient(135deg, var(--btb-success-light) 0%, var(--btb-bg-secondary) 100%);
}

.btb-stat-secondary {
    border-color: var(--btb-secondary-light);
    background: linear-gradient(135deg, var(--btb-secondary-light) 0%, var(--btb-bg-secondary) 100%);
}

/* ========================================
   GRAPHIQUES
======================================== */
.btb-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--btb-spacing-xl);
}

.btb-chart-card {
    padding: var(--btb-spacing-lg);
    background: var(--btb-bg-secondary);
    border-radius: var(--btb-border-radius-lg);
    border: 1px solid var(--btb-border-color);
}

.btb-chart-wide {
    grid-column: 1 / -1;
}

.btb-chart-title {
    font-size: var(--btb-font-size-lg);
    font-weight: 600;
    color: var(--btb-text-primary);
    margin-bottom: var(--btb-spacing-lg);
}

.btb-chart-content {
    min-height: 300px;
}

/* Graphique en barres */
.btb-bar-chart {
    display: flex;
    flex-direction: column;
    gap: var(--btb-spacing-md);
}

.btb-bar-item {
    display: flex;
    flex-direction: column;
    gap: var(--btb-spacing-xs);
}

.btb-bar-label {
    font-size: var(--btb-font-size-sm);
    font-weight: 500;
    color: var(--btb-text-primary);
}

.btb-bar-wrapper {
    position: relative;
    height: 40px;
    background: var(--btb-bg-tertiary);
    border-radius: var(--btb-border-radius);
    overflow: hidden;
}

.btb-bar-fill {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    background: linear-gradient(90deg, var(--btb-primary) 0%, var(--btb-primary-hover) 100%);
    border-radius: var(--btb-border-radius);
    transition: width 0.5s ease-out;
    padding-right: var(--btb-spacing-md);
}

.btb-bar-value {
    font-size: var(--btb-font-size-sm);
    font-weight: 600;
    color: var(--btb-text-white);
    white-space: nowrap;
}

/* Graphique agents */
.btb-agent-chart {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--btb-spacing-lg);
}

.btb-agent-card {
    display: flex;
    align-items: center;
    gap: var(--btb-spacing-md);
    padding: var(--btb-spacing-md);
    background: var(--btb-bg-primary);
    border-radius: var(--btb-border-radius);
    border: 1px solid var(--btb-border-color);
    transition: var(--btb-transition);
}

.btb-agent-card:hover {
    border-color: var(--btb-primary);
    box-shadow: var(--btb-shadow-md);
}

.btb-agent-avatar {
    font-size: var(--btb-font-size-3xl);
    flex-shrink: 0;
}



.btb-agent-info h4 {
    font-size: var(--btb-font-size-base);
    font-weight: 600;
    color: var(--btb-text-primary);
    margin-bottom: var(--btb-spacing-xs);
}

.btb-agent-stats {
    display: flex;
    flex-direction: column;
    gap: var(--btb-spacing-xs);
}

.btb-agent-stat {
    font-size: var(--btb-font-size-sm);
    color: var(--btb-text-secondary);
}

/* Graphique ligne/évolution */
.btb-line-chart {
    padding: var(--btb-spacing-lg);
}

.btb-line-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 250px;
    gap: var(--btb-spacing-sm);
}

.btb-line-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--btb-spacing-sm);
    height: 100%;
}

.btb-line-bar {
    position: relative;
    width: 100%;
    background: var(--btb-primary);
    border-radius: var(--btb-border-radius) var(--btb-border-radius) 0 0;
    transition: height 0.5s ease-out;
    cursor: pointer;
}

.btb-line-bar:hover {
    background: var(--btb-primary-hover);
}

.btb-line-bar-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--btb-spacing-xs) var(--btb-spacing-sm);
    background: var(--btb-bg-dark);
    color: var(--btb-text-white);
    font-size: var(--btb-font-size-xs);
    border-radius: var(--btb-border-radius);
    white-space: nowrap;
    opacity: 0;
    transition: var(--btb-transition);
    pointer-events: none;
    margin-bottom: var(--btb-spacing-xs);
}

.btb-line-bar:hover .btb-line-bar-tooltip {
    opacity: 1;
}

.btb-line-bar-label {
    font-size: var(--btb-font-size-xs);
    color: var(--btb-text-secondary);
    white-space: nowrap;
    margin-top: auto;
}

/* ========================================
   ACTIVITÉS RÉCENTES
======================================== */
.btb-activities-list {
    display: flex;
    flex-direction: column;
    gap: var(--btb-spacing-md);
    max-height: 500px;
    overflow-y: auto;
}

.btb-activity-item {
    display: flex;
    align-items: flex-start;
    gap: var(--btb-spacing-md);
    padding: var(--btb-spacing-md);
    background: var(--btb-bg-secondary);
    border-radius: var(--btb-border-radius);
    border-left: 3px solid var(--btb-primary);
    transition: var(--btb-transition);
}

.btb-activity-item:hover {
    background: var(--btb-bg-tertiary);
    box-shadow: var(--btb-shadow-sm);
}

.btb-activity-icon {
    font-size: var(--btb-font-size-xl);
    flex-shrink: 0;
}

.btb-activity-content {
    flex: 1;
}

.btb-activity-text {
    font-size: var(--btb-font-size-sm);
    color: var(--btb-text-primary);
    margin-bottom: var(--btb-spacing-xs);
}

.btb-activity-time {
    font-size: var(--btb-font-size-xs);
    color: var(--btb-text-muted);
}

/* ========================================
   FILTRES
======================================== */






.btb-filters-admin {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}





.btb-quick-filters {
    display: flex;
    gap: var(--btb-spacing-sm);
    margin-bottom: var(--btb-spacing-lg);
    flex-wrap: wrap;
}

.btb-quick-filter-btn {
    padding: var(--btb-spacing-sm) var(--btb-spacing-md);
    background: var(--btb-bg-secondary);
    border: 1px solid var(--btb-border-color);
    border-radius: var(--btb-border-radius);
    font-size: var(--btb-font-size-sm);
    color: var(--btb-text-secondary);
    cursor: pointer;
    transition: var(--btb-transition);
}

.btb-quick-filter-btn:hover {
    background: var(--btb-bg-tertiary);
    color: var(--btb-text-primary);
}

.btb-quick-filter-btn.active {
    background: var(--btb-primary);
    color: var(--btb-text-white);
    border-color: var(--btb-primary);
}

/* Checkbox facturé - DÉSACTIVÉE */




.btb-checkbox-invoiced-disabled:hover {
    cursor: not-allowed;
}

/* Afficher une croix dans la checkbox désactivée */
.btb-checkbox-invoiced-disabled::before {
    content: '✕';
    color: #ef4444;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ========================================
   PÉRIODE SELECTOR
======================================== */
.btb-period-selector {
    display: flex;
    align-items: center;
    gap: var(--btb-spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--btb-spacing-lg);
}

.btb-period-selector label {
    font-size: var(--btb-font-size-sm);
    font-weight: 500;
    color: var(--btb-text-primary);
}

.btb-period-selector select {
    min-width: 200px;
}

#btb-custom-period {
    display: flex;
    align-items: center;
    gap: var(--btb-spacing-sm);
}

/* ========================================
   TABLEAUX
======================================== */











.btb-loading,
.btb-no-data,
.btb-error {
    text-align: center;
    padding: var(--btb-spacing-xl);
    color: var(--btb-text-secondary);
}

.btb-error {
    color: var(--btb-danger);
}

/* ========================================
   PAGINATION
======================================== */






.btb-pagination-dots {
    padding: var(--btb-spacing-xs);
    color: var(--btb-text-muted);
}

/* ========================================
   BADGES & STATUS
======================================== */
.btb-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--btb-spacing-xs) var(--btb-spacing-sm);
    font-size: var(--btb-font-size-xs);
    font-weight: 500;
    border-radius: var(--btb-border-radius-sm);
    white-space: nowrap;
}

.btb-badge-primary {
    background: var(--btb-primary-light);
    color: var(--btb-primary);
}

.btb-badge-secondary {
    background: var(--btb-secondary-light);
    color: var(--btb-secondary);
}

.btb-badge-success {
    background: var(--btb-success-light);
    color: var(--btb-success);
}

.btb-badge-danger {
    background: var(--btb-danger-light);
    color: var(--btb-danger);
}

.btb-badge-warning {
    background: var(--btb-warning-light);
    color: var(--btb-warning);
}

.btb-badge-info {
    background: var(--btb-info-light);
    color: var(--btb-info);
}


.btb-billing-pending {
    background: var(--btb-secondary-light);
    color: var(--btb-secondary);
}

.btb-billing-invoiced {
    background: var(--btb-success-light);
    color: var(--btb-success);
}

.btb-billing-waiting {
    background: var(--btb-info-light);
    color: var(--btb-info);
}

/* ========================================
   VALIDATION CARDS
======================================== */
.btb-validation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--btb-spacing-lg);
}

.btb-validation-card {
    background: var(--btb-bg-secondary);
    border-radius: var(--btb-border-radius-lg);
    border: 2px solid var(--btb-border-color);
    overflow: hidden;
    transition: var(--btb-transition);
}

.btb-validation-card:hover {
    border-color: var(--btb-primary);
    box-shadow: var(--btb-shadow-lg);
    transform: translateY(-2px);
}

.btb-validation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--btb-spacing-md);
    background: var(--btb-primary-light);
    border-bottom: 1px solid var(--btb-border-color);
}

.btb-validation-agent {
    display: flex;
    align-items: center;
    gap: var(--btb-spacing-sm);
}

.btb-validation-avatar {
    font-size: var(--btb-font-size-xl);
}

.btb-validation-date {
    font-size: var(--btb-font-size-sm);
    color: var(--btb-text-secondary);
}

.btb-validation-body {
    padding: var(--btb-spacing-md);
}

.btb-validation-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--btb-spacing-sm);
    font-size: var(--btb-font-size-sm);
}

.btb-validation-label {
    color: var(--btb-text-secondary);
}

.btb-validation-description {
    padding: var(--btb-spacing-md);
    background: var(--btb-bg-primary);
    border-radius: var(--btb-border-radius);
    font-size: var(--btb-font-size-sm);
    color: var(--btb-text-primary);
    margin-top: var(--btb-spacing-md);
    border-left: 3px solid var(--btb-primary);
}

.btb-validation-actions {
    display: flex;
    gap: var(--btb-spacing-sm);
    padding: var(--btb-spacing-md);
    border-top: 1px solid var(--btb-border-color);
}

/* ========================================
   ACTIONS EN MASSE
======================================== */
.btb-bulk-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--btb-spacing-md);
    background: var(--btb-primary-light);
    border-radius: var(--btb-border-radius);
    margin-bottom: var(--btb-spacing-lg);
}

.btb-bulk-selected {
    font-size: var(--btb-font-size-sm);
    font-weight: 500;
    color: var(--btb-primary);
}

.btb-bulk-buttons {
    display: flex;
    gap: var(--btb-spacing-sm);
}

/* ========================================
   RAPPORTS
======================================== */
.btb-report-form {
    display: flex;
    flex-direction: column;
    gap: var(--btb-spacing-lg);
}

.btb-report-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--btb-spacing-lg);
}

.btb-report-card {
    padding: var(--btb-spacing-xl);
    background: var(--btb-bg-secondary);
    border-radius: var(--btb-border-radius-lg);
    border: 2px solid var(--btb-border-color);
    text-align: center;
    transition: var(--btb-transition);
}

.btb-report-card:hover {
    border-color: var(--btb-primary);
    box-shadow: var(--btb-shadow-md);
    transform: translateY(-2px);
}

.btb-report-card-icon {
    font-size: 3rem;
    margin-bottom: var(--btb-spacing-md);
}

.btb-report-card h4 {
    font-size: var(--btb-font-size-lg);
    font-weight: 600;
    color: var(--btb-text-primary);
    margin-bottom: var(--btb-spacing-sm);
}

.btb-report-card p {
    font-size: var(--btb-font-size-sm);
    color: var(--btb-text-secondary);
    margin-bottom: var(--btb-spacing-md);
}

/* ========================================
   MODALS
======================================== */


/* ========================================
   DÉTAILS ENTRÉE
======================================== */








.btb-attachments-list {
    display: flex;
    flex-direction: column;
    gap: var(--btb-spacing-sm);
}






.btb-history-list {
    display: flex;
    flex-direction: column;
    gap: var(--btb-spacing-sm);
    max-height: 300px;
    overflow-y: auto;
}

.btb-history-item {
    display: flex;
    gap: var(--btb-spacing-sm);
    padding: var(--btb-spacing-sm);
    background: var(--btb-bg-secondary);
    border-radius: var(--btb-border-radius);
    font-size: var(--btb-font-size-sm);
}

.btb-history-date {
    color: var(--btb-text-muted);
    white-space: nowrap;
}

.btb-history-text {
    color: var(--btb-text-primary);
}

/* ========================================
   SPINNERS & LOADING
======================================== */


.btb-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--btb-text-white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}



/* ========================================
   DROPDOWN
======================================== */
.btb-dropdown {
    position: relative;
    display: inline-block;
}

.btb-dropdown-arrow {
    margin-left: var(--btb-spacing-xs);
    font-size: var(--btb-font-size-xs);
}

.btb-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--btb-spacing-xs);
    background: var(--btb-bg-primary);
    border-radius: var(--btb-border-radius);
    box-shadow: var(--btb-shadow-lg);
    min-width: 200px;
    z-index: 1000;
}

.btb-dropdown:hover .btb-dropdown-menu {
    display: block;
}

.btb-dropdown-item {
    display: block;
    padding: var(--btb-spacing-sm) var(--btb-spacing-md);
    color: var(--btb-text-primary);
    text-decoration: none;
    font-size: var(--btb-font-size-sm);
    transition: var(--btb-transition);
}

.btb-dropdown-item:hover {
    background: var(--btb-bg-secondary);
}

/* ========================================
   FIN DU FICHIER CSS
======================================== */