/* ===== FABRITECH MAIN STYLESHEET ===== */

/* Base styles */
@import url('base.css');

/* Layout */
@import url('layout.css');

/* Components */
@import url('components/buttons.css');
@import url('components/forms.css');
@import url('components/modals.css');
@import url('components/tables.css');
@import url('components/messages.css');

/* Pages */
@import url('pages/login.css');
@import url('pages/home.css');
@import url('pages/agendas.css');
@import url('pages/lancamento-os.css');

/* ===== GLOBAL OVERRIDES ===== */

/* Custom scrollbar for the entire application */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #2b7cff;
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Print styles */
@media print {
    .modal-overlay,
    .dropdown-menu,
    .btn-actions,
    .no-print {
        display: none !important;
    }
    
    .table {
        border: 1px solid #000;
    }
    
    .table th,
    .table td {
        border: 1px solid #000;
        padding: 0.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .table th {
        background: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Relatório ──────────────────────────── */
.relatorio-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}
.relatorio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--color-surface, #fff);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary, #0066cc);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.relatorio-titulo h2 { margin: 0; font-size: 1.2rem; }
.relatorio-periodo   { font-size: .875rem; color: #666; }
.btn-print {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: .4rem .9rem;
    cursor: pointer;
    font-size: .85rem;
    transition: background .15s;
}
.btn-print:hover { background: #f0f0f0; }
.relatorio-table .col-horas { text-align: center; white-space: nowrap; }
.relatorio-table .destaque   { background: #eef4ff; font-weight: 600; }
.relatorio-table .text-muted { color: #999; }
.tag-projeto {
    display: inline-block;
    background: #e8f0fe;
    color: #1a56db;
    border-radius: 4px;
    padding: .1rem .45rem;
    font-size: .78rem;
    font-weight: 600;
}
/* Cards de totais */
.relatorio-totais {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.total-card {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f8f9fc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.total-card--destaque {
    background: var(--color-primary, #0066cc);
    color: #fff;
    border-color: transparent;
}
.total-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.total-valor { font-size: 1.4rem; font-weight: 700; margin-top: .25rem; }
.relatorio-vazio {
    text-align: center;
    padding: 3rem;
    color: #888;
}
/* Print */
@media print {
    .topbar, .footer, .agenda-filters, .btn-print { display: none !important; }
    .relatorio-totais { break-inside: avoid; }
}

.relatorio-tfoot td {
    font-weight: 700;
    border-top: 2px solid #cbd5e1;
    background: #f1f5f9;
    padding: .65rem .75rem;
}
.tfoot-label {
    text-align: right;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .05em;
    color: #475569;
}
.tfoot-valor {
    text-align: center;
    font-size: .95rem;
    color: #1e293b;
}
.tfoot-destaque {
    background: var(--color-primary, #0066cc) !important;
    color: #fff;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #2b7cff;
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}
.btn-link:hover {
    color: #1e5bb8;
    text-decoration: underline;
}


.login-hint {
    text-align: center;
    font-size: 0.825rem;
    color: #6b7280;
    margin-top: 1.25rem;
    line-height: 1.5;
}
.login-hint a {
    color: #2b7cff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.login-hint a:hover {
    color: #1e5bb8;
    text-decoration: underline;
}


