/* ==========================================================================
   DYL Festas - Custom Theme
   Sobrescreve AdminLTE 3.2 + Bootstrap 5.3
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --primary-darker: #0a58ca;
    --primary-light: #3d8bfd;
    --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    --sidebar-bg: #1a1a2e;
    --sidebar-hover: #16213e;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    --transition-speed: 0.3s;
}

/* --------------------------------------------------------------------------
   2. Sidebar
   -------------------------------------------------------------------------- */
.main-sidebar {
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-hover) 100%);
}

.main-sidebar .brand-link {
    background: var(--primary-gradient);
    color: #fff;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.main-sidebar .brand-link:hover {
    color: #fff;
}

.nav-sidebar .nav-link {
    border-radius: 6px;
    margin: 1px 6px;
    transition: all var(--transition-speed) ease;
    font-size: 0.875rem;
}

.nav-sidebar .nav-link.active {
    background: var(--primary-gradient) !important;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
}

.nav-sidebar .nav-link:hover {
    background: rgba(13, 110, 253, 0.15);
}

.nav-sidebar .nav-link:hover .nav-icon {
    transform: scale(1.05);
    transition: transform var(--transition-speed) ease;
}

.nav-sidebar .nav-header {
    color: var(--primary-light);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   3. Navbar
   -------------------------------------------------------------------------- */
.main-header {
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.main-header .nav-link:hover {
    color: var(--primary) !important;
}

/* --------------------------------------------------------------------------
   4. Cards
   -------------------------------------------------------------------------- */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.card .card-header {
    border-radius: 10px 10px 0 0;
}

.card .card-header.bg-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7) !important;
}

.card .card-header.bg-info {
    background: linear-gradient(135deg, #2196f3, #1976d2) !important;
}

.card .card-header.bg-success {
    background: linear-gradient(135deg, #4caf50, #388e3c) !important;
}

.card .card-header.bg-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
}

.card .card-header.bg-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
}

/* --------------------------------------------------------------------------
   5. Tabelas
   -------------------------------------------------------------------------- */
.table thead th {
    background: transparent;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-top: none;
    font-weight: 600;
    color: #aaa;
    padding: 5px 10px;
    white-space: nowrap;
    border-bottom: 2px solid #eee;
}

.table tbody td {
    padding: 5px 10px;
    vertical-align: middle;
    font-size: 0.82rem;
    color: #444;
    border-color: #f5f5f5;
    font-variant-numeric: tabular-nums;
}

.table tbody tr:hover {
    background: rgba(0, 0, 0, 0.015);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(0, 0, 0, 0.015);
}

.table tbody td a {
    color: #555;
}

.table tbody td a:hover {
    color: var(--primary);
}

.table {
    margin-bottom: 0;
}

td code {
    background: rgba(0, 0, 0, 0.04);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.76rem;
}

/* --------------------------------------------------------------------------
   6. Botoes
   -------------------------------------------------------------------------- */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
    transition: all var(--transition-speed) ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
    background: var(--primary-gradient);
}

.btn-primary:active,
.btn-primary:focus {
    background: var(--primary-gradient);
}

.btn-sm {
    border-radius: 5px;
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   7. Badges
   -------------------------------------------------------------------------- */
.badge {
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 0.75rem;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #4caf50, #388e3c) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #2196f3, #1976d2) !important;
}

/* --------------------------------------------------------------------------
   8. Small Boxes (Dashboard)
   -------------------------------------------------------------------------- */
.small-box {
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.small-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.small-box .inner h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.small-box .inner p {
    font-size: 0.85rem;
}

.small-box-footer {
    font-size: 0.8rem;
    padding: 5px 0;
}

/* --------------------------------------------------------------------------
   9. Content Wrapper
   -------------------------------------------------------------------------- */
.content-wrapper {
    background: #f4f6f9;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.main-footer {
    border-top: 2px solid var(--primary);
    background: #fff;
    font-size: 0.8rem;
    padding: 10px 15px;
}

/* --------------------------------------------------------------------------
   11. Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   12. Animacoes
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInUp 0.4s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* --------------------------------------------------------------------------
   13. Formularios e Inputs
   -------------------------------------------------------------------------- */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.2);
}

.form-control {
    font-size: 0.85rem;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.select2-container--bootstrap-5 .select2-selection--single:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.2);
}

/* --------------------------------------------------------------------------
   14. User Panel (sidebar)
   -------------------------------------------------------------------------- */
.user-panel .image img {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-panel .info a {
    color: #c2c7d0;
    font-weight: 600;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   15. Welcome Box (Dashboard)
   -------------------------------------------------------------------------- */
.welcome-box {
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 10px;
    padding: 18px 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(13, 110, 253, 0.25);
}

.welcome-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.welcome-box::after {
    content: '';
    position: absolute;
    bottom: -60%;
    right: 10%;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.welcome-box .welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-box .welcome-content h2 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.welcome-box .welcome-content p {
    margin-bottom: 0;
    opacity: 0.85;
    font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   16. Modais
   -------------------------------------------------------------------------- */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    background: var(--primary-gradient);
    color: #fff;
    border-bottom: none;
    padding: 12px 16px;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    padding: 8px;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 10px 16px;
    background: #fafbfc;
}

.modal-footer .btn {
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 0.82rem;
}

.modal.fade .modal-dialog {
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal .form-group {
    margin-bottom: 10px;
}

.modal .form-label {
    font-size: 0.78rem;
}

.modal .form-control {
    font-size: 0.85rem;
    padding: 6px 10px;
}

/* --------------------------------------------------------------------------
   17. Content Header
   -------------------------------------------------------------------------- */
.content-header {
    padding: 10px 0.5rem;
}

.content-header h1 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
}

.content-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   18. Quick Actions (btn-app) - Dashboard
   -------------------------------------------------------------------------- */
.btn-app {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-speed) ease;
    padding: 10px 14px;
    min-width: 100px;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
}

.btn-app:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
    background: rgba(13, 110, 253, 0.02);
}

.btn-app .fas,
.btn-app .far,
.btn-app .fa {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   19. Navbar Dropdown
   -------------------------------------------------------------------------- */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 6px;
    overflow: hidden;
}

.dropdown-item {
    border-radius: 6px;
    padding: 6px 12px;
    transition: all 0.2s ease;
    font-size: 0.82rem;
}

.dropdown-item:hover {
    background: rgba(13, 110, 253, 0.06);
    color: var(--primary);
}

.dropdown-divider {
    margin: 3px 6px;
    border-color: #f0f0f0;
}

/* --------------------------------------------------------------------------
   20. DataTables Melhorias
   -------------------------------------------------------------------------- */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
    font-size: 0.75rem;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 2px 10px;
    font-size: 0.78rem;
    height: 28px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.1rem rgba(13, 110, 253, 0.12);
    outline: none;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 2px 6px;
    font-size: 0.78rem;
    height: 28px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 4px !important;
    border: none !important;
    margin: 0 1px;
    padding: 2px 8px !important;
    font-size: 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-gradient) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.72rem;
    color: #bbb;
}

/* --------------------------------------------------------------------------
   21. Bootstrap Table Melhorias
   -------------------------------------------------------------------------- */
.bootstrap-table .fixed-table-toolbar {
    padding: 8px 12px 0;
}

.bootstrap-table .fixed-table-toolbar .search input {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 2px 10px;
    font-size: 0.78rem;
    height: 28px;
}

.bootstrap-table .fixed-table-toolbar .search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.1rem rgba(13, 110, 253, 0.12);
}

.bootstrap-table .fixed-table-pagination .pagination-detail {
    font-size: 0.72rem;
    color: #bbb;
}

.bootstrap-table .fixed-table-pagination .pagination .page-item .page-link {
    border-radius: 4px;
    margin: 0 1px;
    border: none;
    color: #555;
    padding: 2px 8px;
    font-size: 0.75rem;
}

.bootstrap-table .fixed-table-pagination .pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    color: #fff;
}

/* --------------------------------------------------------------------------
   22. Card Header / Body
   -------------------------------------------------------------------------- */
.card-header {
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.card-header .card-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: #333;
}

.card-body {
    padding: 15px;
}

.card-primary > .card-header {
    background: var(--primary-gradient);
    color: #fff;
    border-bottom: none;
}

.card-primary > .card-header .card-title {
    color: #fff;
}

/* --------------------------------------------------------------------------
   23. Tabs (nav-tabs)
   -------------------------------------------------------------------------- */
.nav-tabs .nav-link {
    border-radius: 6px 6px 0 0;
    color: #555;
    padding: 7px 14px;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-color: transparent;
    background: rgba(13, 110, 253, 0.04);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    font-weight: 600;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* --------------------------------------------------------------------------
   24. List Group
   -------------------------------------------------------------------------- */
.list-group-item {
    border-radius: 6px !important;
    margin-bottom: 3px;
    border: 1px solid #f0f0f0;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.list-group-item:hover {
    background: rgba(13, 110, 253, 0.02);
}

/* --------------------------------------------------------------------------
   25. Pagination
   -------------------------------------------------------------------------- */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 1px;
    border: none;
    color: #555;
    padding: 5px 10px;
    font-size: 0.82rem;
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: transparent;
}

.pagination .page-link:hover {
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   26. Alerts
   -------------------------------------------------------------------------- */
.alert {
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   27. Input Group
   -------------------------------------------------------------------------- */
.input-group .input-group-text {
    border-radius: 0 6px 6px 0;
    border: 1px solid #ddd;
    border-left: none;
    background: #f8f9fa;
    color: #888;
    font-size: 0.82rem;
    padding: 4px 10px;
}

.input-group .form-control {
    border-radius: 6px 0 0 6px;
    border: 1px solid #ddd;
}

.input-group .form-control:focus {
    z-index: 1;
}

.input-group .form-control:focus ~ .input-group-text,
.input-group .form-control:focus + .input-group-append .input-group-text {
    border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   28. Select2
   -------------------------------------------------------------------------- */
.select2-container .select2-selection--single {
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    height: 34px !important;
    padding: 3px 8px;
    font-size: 0.85rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.1rem rgba(13, 110, 253, 0.12);
}

.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.select2-results__option {
    font-size: 0.85rem;
    padding: 6px 10px;
}

.select2-results__option--highlighted {
    background: rgba(13, 110, 253, 0.08) !important;
    color: var(--primary) !important;
}

.select2-results__option--selected {
    background: rgba(13, 110, 253, 0.04) !important;
}

/* --------------------------------------------------------------------------
   29. Quick Action Cards (Dashboard)
   -------------------------------------------------------------------------- */
.quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #555;
    text-decoration: none;
    font-size: 0.82rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.quick-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
    text-decoration: none;
}

.quick-action-btn i {
    font-size: 0.85rem;
    color: var(--primary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 6px;
}

/* --------------------------------------------------------------------------
   30. Card com tabela (edge-to-edge)
   -------------------------------------------------------------------------- */
.card > .card-body.p-0 .table thead th:first-child,
.card > .card-body.p-0 .table tbody td:first-child {
    padding-left: 15px;
}

.card > .card-body.p-0 .table thead th:last-child,
.card > .card-body.p-0 .table tbody td:last-child {
    padding-right: 15px;
}

/* --------------------------------------------------------------------------
   31. Btn Group
   -------------------------------------------------------------------------- */
.btn-group > .btn {
    border-radius: 5px;
    margin: 0 1px;
}

.btn-group > .btn:first-child {
    border-radius: 5px;
}

.btn-group > .btn:last-child {
    border-radius: 5px;
}

/* --------------------------------------------------------------------------
   32. Locacao Group (Dashboard - agrupamento por cliente)
   -------------------------------------------------------------------------- */
.locacao-header {
    cursor: pointer;
    padding: 6px 0;
    border-radius: 6px;
    transition: background 0.15s;
}

.locacao-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.locacao-header[aria-expanded="true"] .locacao-chevron,
.locacao-header:not(.collapsed) .locacao-chevron {
    transform: rotate(90deg);
}

.locacao-group .table-sm thead th {
    font-size: 0.72rem;
    padding: 5px 8px;
}

.locacao-group .table-sm tbody td {
    font-size: 0.82rem;
    padding: 4px 8px;
}

/* --------------------------------------------------------------------------
   33. Datepicker dentro de Modal (z-index fix)
   -------------------------------------------------------------------------- */
.datepicker {
    z-index: 1070 !important;
}

/* --------------------------------------------------------------------------
   34. Select2 dentro de Modal (z-index fix)
   -------------------------------------------------------------------------- */
.modal .select2-container {
    z-index: 1060;
}

.modal .select2-container .select2-selection--single {
    height: 34px !important;
    padding: 3px 8px;
    font-size: 0.85rem;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
}

/* --------------------------------------------------------------------------
   35. Table Action Buttons
   -------------------------------------------------------------------------- */
.table-actions {
    white-space: nowrap;
    text-align: right;
}

.table-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    color: #666;
    transition: all 0.2s ease;
    text-decoration: none;
}

.table-actions a:hover {
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary);
}

.table-actions a.text-danger:hover {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.table-actions a i {
    font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   36. Content Header Padronizado
   -------------------------------------------------------------------------- */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0.5rem;
}

.content-header h1 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-header h1 i {
    color: var(--primary);
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   37. Status Badge (listagens)
   -------------------------------------------------------------------------- */
.badge-status-ativo {
    background: rgba(76, 175, 80, 0.1);
    color: #388e3c;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
}

.badge-status-inativo {
    background: rgba(158, 158, 158, 0.15);
    color: #757575;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   38. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .content-header h1 {
        font-size: 1rem;
    }

    .welcome-box {
        padding: 14px 16px;
    }

    .welcome-box .welcome-content h2 {
        font-size: 1rem;
    }

    .quick-actions {
        flex-direction: column;
    }

    .small-box {
        margin-bottom: 10px;
    }
}

/* --------------------------------------------------------------------------
   39. Orcamento Info Panel
   -------------------------------------------------------------------------- */
.orcamento-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 12px 15px;
    border-top: 1px solid #f0f0f0;
}

.orcamento-info .info-col {
    padding: 8px 12px;
    border-right: 1px solid #f0f0f0;
}

.orcamento-info .info-col:last-child {
    border-right: none;
}

.orcamento-info .info-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 2px;
}

.orcamento-info .info-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.orcamento-info .info-value small {
    font-weight: 400;
    color: #666;
    font-size: 0.78rem;
}

@media (max-width: 768px) {
    .orcamento-info {
        grid-template-columns: 1fr;
    }

    .orcamento-info .info-col {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .orcamento-info .info-col:last-child {
        border-bottom: none;
    }
}

/* --------------------------------------------------------------------------
   40. Orcamento Action Bar
   -------------------------------------------------------------------------- */
.orcamento-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.orcamento-actions .btn {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.orcamento-actions .btn i {
    font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   41. Item List (itens do orcamento)
   -------------------------------------------------------------------------- */
.item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-list .item-entry {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s ease;
    gap: 10px;
}

.item-list .item-entry:last-child {
    border-bottom: none;
}

.item-list .item-entry:hover {
    background: rgba(13, 110, 253, 0.02);
}

.item-list .item-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    color: #dc3545;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.item-list .item-remove:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.item-list .item-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 24px;
    height: 22px;
    border-radius: 4px;
    padding: 0 5px;
    flex-shrink: 0;
}

.item-list .item-name {
    font-size: 0.84rem;
    font-weight: 500;
    color: #333;
    flex: 1;
    line-height: 1.3;
}

.item-list .item-name .item-obs {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: #999;
    margin-top: 1px;
}

.item-list .item-price {
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   42. Invoice Styles
   -------------------------------------------------------------------------- */
.invoice-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    font-size: 0.76rem;
    color: #333;
    line-height: 1.35;
}

/* -- Header: empresa + meta -- */
.inv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 8px;
    border-bottom: 2px solid #222;
    margin-bottom: 0;
}

.inv-empresa {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.inv-empresa-nome {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111;
}

.inv-empresa span {
    font-size: 0.7rem;
    color: #555;
}

.inv-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    color: #555;
    flex-shrink: 0;
}

.inv-status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
}

.inv-status-aberto { background: #fff3cd; color: #856404; }
.inv-status-fechado { background: #d4edda; color: #155724; }
.inv-status-finalizado { background: #d1ecf1; color: #0c5460; }

/* -- Detail bar: cliente + dados -- */
.inv-detail-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 8px;
}

.inv-detail-col {
    flex: 1;
    min-width: 0;
}

.inv-detail-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    display: block;
    margin-bottom: 1px;
}

.inv-detail-col > strong {
    font-size: 0.82rem;
    color: #111;
}

.inv-detail-addr {
    display: block;
    font-size: 0.7rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inv-detail-nums {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.inv-detail-item {
    text-align: center;
    min-width: 70px;
}

.inv-detail-item strong {
    display: block;
    font-size: 0.76rem;
    color: #111;
}

/* -- Entrega -- */
.inv-entrega {
    font-size: 0.72rem;
    padding: 4px 8px;
    background: #fff8e1;
    border-left: 3px solid #ffc107;
    margin-bottom: 8px;
}

/* -- Tabela compacta -- */
.inv-table-section {
    margin-bottom: 6px;
}

.inv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
}

.inv-table thead th {
    background: #f5f5f5;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #777;
    padding: 3px 6px;
    border-bottom: 1px solid #ddd;
}

.inv-table tbody td {
    padding: 2px 6px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    vertical-align: middle;
}

.inv-table tbody tr:hover { background: #fafafa; }

.inv-table .inv-table-title th {
    background: #eee;
    font-size: 0.7rem;
    text-transform: none;
    color: #333;
    padding: 4px 6px;
}

.inv-col-sm {
    width: 40px;
    text-align: center;
    font-weight: 600;
}

.inv-col-valor {
    width: 75px;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.inv-kit-row td {
    background: #f8f9fa;
    text-align: center;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 3px 6px;
}

.inv-total-row td {
    background: #eee;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 3px 6px;
}

.inv-table small.text-muted {
    font-size: 0.65rem;
}

/* -- Summary -- */
.inv-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    margin: 8px 0;
}

.inv-summary-row {
    display: flex;
    gap: 12px;
    font-size: 0.76rem;
    min-width: 200px;
    justify-content: space-between;
    padding: 2px 8px;
    background: #f8f9fa;
    border-radius: 3px;
}

.inv-summary-row span { color: #666; }
.inv-summary-row strong { color: #111; }

.inv-summary-final {
    background: #e8f0fe;
    font-size: 0.82rem;
}

.inv-summary-final strong { color: var(--primary); }

/* -- Observacoes -- */
.inv-obs {
    font-size: 0.72rem;
    color: #555;
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* -- Termos -- */
.inv-terms {
    font-size: 0.65rem;
    color: #777;
    line-height: 1.45;
    padding: 6px 8px;
    background: #fafafa;
    border-radius: 4px;
    margin-bottom: 0;
}

.inv-terms strong {
    color: #555;
    font-size: 0.63rem;
    letter-spacing: 0.3px;
}

/* -- Assinaturas -- */
.inv-signatures {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    margin-top: 35px;
    padding: 0 40px;
}

.inv-sig {
    text-align: center;
    min-width: 180px;
}

.inv-sig-line {
    border-top: 1px solid #333;
    margin-bottom: 4px;
}

.inv-sig strong {
    display: block;
    font-size: 0.72rem;
    color: #111;
}

.inv-sig small {
    font-size: 0.63rem;
    color: #888;
}

/* -- Print -- */
@media print {
    .main-sidebar, .main-header, .main-footer, .content-header, .no-print {
        display: none !important;
    }

    .content-wrapper {
        margin-left: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .content {
        padding: 0 !important;
    }

    .invoice-container {
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }

    .inv-table tbody td { padding: 1px 5px; }
    .inv-table thead th { padding: 2px 5px; }
    .inv-signatures { margin-top: 25px; }
    .inv-terms { padding: 4px 6px; }

    @page {
        margin: 12mm 10mm;
        size: A4;
    }
}

/* --------------------------------------------------------------------------
   43. Wizard de Validação
   -------------------------------------------------------------------------- */
.wizard-modal {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    min-width: min(580px, 95vw);
}

.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--primary-gradient);
    color: #fff;
}

.wizard-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.wizard-subtitle {
    font-size: 0.72rem;
    opacity: 0.85;
    display: block;
    margin-top: 1px;
}

.wizard-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
    flex-shrink: 0;
}

.wizard-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.wizard-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0;
    margin: 0;
    list-style: none;
    background: #fafbfc;
}

.wizard-tabs .wizard-tab {
    flex: 1;
    text-align: center;
}

.wizard-tabs .wizard-tab .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #bbb;
    text-decoration: none;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

.wizard-tabs .wizard-tab .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #fff;
}

.wizard-tabs .wizard-tab .nav-link.completed {
    color: #4caf50;
    border-bottom-color: #4caf50;
    background: #fff;
}

.wizard-tabs .wizard-tab .nav-link:hover:not(.active):not(.completed) {
    color: #888;
    border-bottom-color: transparent;
}

.wizard-tab-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e9ecef;
    color: #999;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s;
}

.wizard-tab .nav-link.active .wizard-tab-num {
    background: var(--primary);
    color: #fff;
}

.wizard-tab .nav-link.completed .wizard-tab-num {
    background: #4caf50;
    color: #fff;
}

.wizard-tab-label {
    display: none;
}

@media (min-width: 480px) {
    .wizard-tab-label {
        display: inline;
    }
}

.wizard-step {
    padding: 18px;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

/* Readonly value display */
.wizard-readonly-value {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
}

.wizard-readonly-value i {
    color: var(--primary);
    font-size: 0.82rem;
}

/* Info cards inside wizard */
.wizard-info-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.wizard-info-card-header {
    padding: 8px 14px;
    background: #f8f9fa;
    font-size: 0.72rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #e9ecef;
}

.wizard-info-card-header i {
    font-size: 0.72rem;
    color: var(--primary);
}

.wizard-info-card-body {
    padding: 12px 14px;
}

.wizard-valor-destaque {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.wizard-valor-subtotal {
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
}

/* Toggle group for entrega */
.wizard-toggle-group {
    display: flex;
    gap: 8px;
}

.wizard-toggle {
    cursor: pointer;
    margin: 0;
}

.wizard-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wizard-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #888;
    transition: all 0.2s ease;
}

.wizard-toggle-btn i {
    font-size: 0.78rem;
}

.wizard-toggle input:checked + .wizard-toggle-btn {
    border-color: var(--primary);
    background: rgba(13, 110, 253, 0.06);
    color: var(--primary);
}

/* Address card */
.wizard-address-card {
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fafbfc;
}

.wizard-address-text {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.5;
}

.wizard-address-change {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
    font-size: 0.78rem;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
}

/* Empty state */
.wizard-empty {
    text-align: center;
    padding: 30px 20px;
}

.wizard-empty i {
    font-size: 2rem;
    color: #ddd;
    display: block;
    margin-bottom: 10px;
}

.wizard-empty p {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 4px;
}

.wizard-empty small {
    font-size: 0.78rem;
    color: #999;
}

/* --------------------------------------------------------------------------
   44. Devolucao (return tracking)
   -------------------------------------------------------------------------- */
.return-card {
    border-top: 3px solid var(--primary);
}

.return-card .return-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.return-card .return-title i {
    font-size: 0.75rem;
    color: var(--primary);
}

.return-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.84rem;
    transition: background 0.15s;
}

.return-item:last-child {
    border-bottom: none;
}

.return-item:hover {
    background: rgba(0, 0, 0, 0.01);
}

.return-item .return-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.return-item .return-item-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 22px;
    height: 20px;
    border-radius: 4px;
    padding: 0 4px;
}

.return-item.delivered {
    color: #388e3c;
}

.return-item.delivered .return-item-qty {
    background: rgba(76, 175, 80, 0.1);
    color: #388e3c;
}

.return-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   45. Orcamento Status Badge
   -------------------------------------------------------------------------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
}

.status-badge.status-aberto {
    background: rgba(33, 150, 243, 0.1);
    color: #1976d2;
}

.status-badge.status-fechado {
    background: rgba(76, 175, 80, 0.1);
    color: #388e3c;
}

.status-badge.status-finalizado {
    background: rgba(158, 158, 158, 0.15);
    color: #616161;
}

/* --------------------------------------------------------------------------
   46. Compact Form (orcamento add item)
   -------------------------------------------------------------------------- */
.compact-form .form-group {
    margin-bottom: 8px;
}

.compact-form .form-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
}

.compact-form .form-control {
    padding: 5px 8px;
    font-size: 0.84rem;
}

.compact-form textarea.form-control {
    resize: vertical;
    min-height: 50px;
}

/* --------------------------------------------------------------------------
   47. Orcamento Card com border-top colorida
   -------------------------------------------------------------------------- */
.card-status-border {
    border-top: 3px solid var(--primary);
}

.card-status-border.status-validado {
    border-top-color: #4caf50;
}

.card-status-border.status-finalizado {
    border-top-color: #9e9e9e;
}

/* --------------------------------------------------------------------------
   48. Gallery Thumbnails (imagens anexadas)
   -------------------------------------------------------------------------- */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
}

.gallery-grid .gallery-thumb {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    cursor: pointer;
}

.gallery-grid .gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   49. Checar Itens (conflitos)
   -------------------------------------------------------------------------- */
.conflict-alert {
    border-left: 4px solid #dc3545;
    background: rgba(220, 53, 69, 0.04);
    border-radius: 0 6px 6px 0;
    padding: 12px 15px;
    margin-bottom: 12px;
}

.conflict-alert .conflict-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.conflict-alert .conflict-title i {
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   50. Fancybox AJAX Modal Fix
   -------------------------------------------------------------------------- */
.fancybox__content .modal {
    display: block !important;
    position: static !important;
    width: auto;
    height: auto;
    overflow: visible;
    background: transparent;
}

.fancybox__content .modal > .card {
    margin-bottom: 0;
    border: none;
    box-shadow: none;
}

.fancybox__content {
    padding: 0 !important;
    border-radius: 10px;
    overflow: hidden;
    min-width: 480px;
}

.fancybox__content .card-info > .card-header,
.fancybox__content .fancybox-modal-header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 12px 16px;
    border-bottom: none;
}

.fancybox__content .card-info > .card-header .card-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.fancybox__content .card-body {
    padding: 16px;
}

.fancybox__content .card-footer {
    border-top: 1px solid #f0f0f0;
    padding: 10px 16px;
    background: #fafbfc;
}

.fancybox__content .form-group {
    margin-bottom: 12px;
}

.fancybox__content .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 3px;
}

.fancybox__content .form-control {
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.fancybox__content .btn {
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 0.82rem;
}

.fancybox__content .select2-container {
    z-index: 99999;
}

.fancybox__content .select2-container .select2-selection--single {
    height: 34px !important;
    padding: 3px 8px;
    font-size: 0.85rem;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
}

/* --------------------------------------------------------------------------
   51. FullCalendar
   -------------------------------------------------------------------------- */
.fc {
    font-size: 0.85rem;
}

.fc .fc-toolbar {
    gap: 8px;
    flex-wrap: wrap;
}

.fc .fc-toolbar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.fc .fc-button {
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 6px !important;
    transition: all 0.2s ease;
    box-shadow: none;
    text-transform: capitalize;
}

.fc .fc-button:hover {
    background: rgba(13, 110, 253, 0.06);
    border-color: var(--primary);
    color: var(--primary);
}

.fc .fc-button-active,
.fc .fc-button:active {
    background: var(--primary-gradient) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.fc .fc-button-group > .fc-button {
    border-radius: 0 !important;
}

.fc .fc-button-group > .fc-button:first-child {
    border-radius: 6px 0 0 6px !important;
}

.fc .fc-button-group > .fc-button:last-child {
    border-radius: 0 6px 6px 0 !important;
}

.fc .fc-col-header-cell {
    background: transparent;
    border-color: #eee;
    padding: 6px 0;
}

.fc .fc-col-header-cell-cushion {
    font-size: 0.72rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.fc .fc-daygrid-day {
    border-color: #f0f0f0;
    transition: background 0.15s ease;
}

.fc .fc-daygrid-day:hover {
    background: rgba(13, 110, 253, 0.02);
}

.fc .fc-daygrid-day-number {
    font-size: 0.78rem;
    color: #666;
    padding: 4px 8px;
    text-decoration: none;
}

.fc .fc-day-today {
    background: rgba(13, 110, 253, 0.04) !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
    color: var(--primary);
    font-weight: 700;
}

.fc .fc-daygrid-event {
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.72rem;
    font-weight: 500;
    border: none;
    margin-bottom: 1px;
    color: #fff;
}

.fc .fc-daygrid-event .fc-event-title {
    color: #fff;
}

.fc .fc-popover {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.fc .fc-popover-header {
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.78rem;
    padding: 6px 10px;
}

.fc .fc-more-link {
    font-size: 0.68rem;
    color: var(--primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   52. Calendar Legend
   -------------------------------------------------------------------------- */
.calendar-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.calendar-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #888;
}

.calendar-legend .legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   53. Select2 Item Template (orcamento add item)
   -------------------------------------------------------------------------- */
.select2-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.select2-item-img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.select2-item-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.select2-item-name {
    font-size: 0.84rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select2-item-meta {
    font-size: 0.72rem;
    color: #999;
}

/* --------------------------------------------------------------------------
   54. Utility classes (orcamento)
   -------------------------------------------------------------------------- */
.icon-accent {
    font-size: 0.78rem;
    color: var(--primary);
}

.icon-sm {
    font-size: 0.75rem;
}

.info-detail {
    font-size: 0.78rem;
    color: #666;
}

.cliente-selo {
    font-size: 0.72rem;
    font-weight: 600;
}

.compact-form-title {
    font-size: 0.72rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
}

.compact-form-link {
    font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   55. Toast Notifications
   -------------------------------------------------------------------------- */
#toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
    width: calc(100% - 32px);
    pointer-events: none;
}

.toast-notification {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #999;
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    pointer-events: auto;
}

.toast-notification.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.toast-hide {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-message {
    flex: 1;
    font-size: 0.84rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.15s;
    margin-top: -2px;
}

.toast-close:hover {
    color: #666;
    background: rgba(0, 0, 0, 0.06);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.04);
}

.toast-progress-bar {
    height: 100%;
    border-radius: 0 3px 3px 0;
    animation: toastProgress 4s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Toast types */
.toast-success { border-left-color: #4caf50; }
.toast-success .toast-icon { color: #4caf50; }
.toast-success .toast-progress-bar { background: #4caf50; }

.toast-error { border-left-color: #f44336; }
.toast-error .toast-icon { color: #f44336; }
.toast-error .toast-progress-bar { background: #f44336; }

.toast-warning { border-left-color: #ff9800; }
.toast-warning .toast-icon { color: #ff9800; }
.toast-warning .toast-progress-bar { background: #ff9800; }

.toast-info,
.toast-information { border-left-color: #2196f3; }
.toast-info .toast-icon,
.toast-information .toast-icon { color: #2196f3; }
.toast-info .toast-progress-bar,
.toast-information .toast-progress-bar { background: #2196f3; }

/* --------------------------------------------------------------------------
   56. SweetAlert2 Custom
   -------------------------------------------------------------------------- */
.swal2-popup {
    font-family: inherit;
    border-radius: 12px;
    padding: 24px 20px;
}

.swal2-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    padding: 0;
}

.swal2-html-container {
    font-size: 0.84rem;
    color: #666;
    line-height: 1.5;
    margin-top: 8px;
}

.swal2-icon {
    margin: 8px auto 4px;
    transform: scale(0.85);
}

.swal2-actions {
    gap: 8px;
    margin-top: 16px;
}

.swal2-confirm,
.swal2-cancel,
.swal2-deny {
    border-radius: 6px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    padding: 7px 18px !important;
}

/* --------------------------------------------------------------------------
   57. Form Pages
   -------------------------------------------------------------------------- */
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.form-control,
.form-select {
    font-size: 0.84rem;
    border-radius: 6px;
    border-color: #e0e0e0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-control::placeholder {
    color: #bbb;
    font-size: 0.8rem;
}

.input-group-text {
    font-size: 0.8rem;
    background: #f8f9fa;
    border-color: #e0e0e0;
    color: #888;
    border-radius: 6px;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-switch .form-check-input {
    width: 2.4em;
    height: 1.2em;
    cursor: pointer;
}

.form-switch .form-check-label {
    font-size: 0.82rem;
    color: #666;
    cursor: pointer;
    padding-top: 1px;
}

.card-footer {
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
    padding: 12px 20px;
}
