/*
 * Theme: Accounting Support Dashboard
 * Description: Clean, professional design inspired by the support interface
 */

/* CSS Variables for consistent theming */
:root {
    --sidebar-color: #2A2F3A; /* Dark gray for sidebar */
    --header-color: #2A2F3A; /* Cyan for header */
    --primary-color: #2A2F3A; /* Cyan for highlights */
    --primary-dark: #2A2F3A; /* Darker cyan for hover/active */
    --background-color: #F5F7FA; /* Light gray background */
    --surface-color: #FFFFFF; /* White for content */
    --text-color: #2D3748; /* Dark slate for text */
    --text-muted: #718096; /* Muted gray for secondary text */
    --border-color: #E2E8F0; /* Subtle gray for borders */
    --focus-color: #4FD1C5; /* Light teal for focus states */
    --success-color: #48BB78; /* Green for success */
    --warning-color: #F6AD55; /* Yellow for warnings */
    --info-color: #3182CE; /* Blue for info */
    --error-color: #E53E3E; /* Red for errors */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 6px; /* Rounded corners */
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    --transition: all 0.2s ease-in-out; /* Smooth transitions */
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 14px;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}


.block{
    border-radius: 10px !important;
}

/* Layout */
#sidebar {
    width: 230px !important;
    background-color: var(--sidebar-color);
    color: #A0AEC0;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
}

.sidebar-title{
    background-color: rgba(92, 205, 222, 0) !important;
}

.themed-background{
    background-color: rgb(42 47 58) !important;
    border-radius: 8px !important;

}

.navbar.navbar-inverse, .navbar.navbar-inverse.navbar-glass:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    margin: 15px !important;
    border-radius: 15px !important;
    border:1px solid #e5e7eb !important;
}
.navbar-inverse .nav.navbar-nav-custom > li > a{
    color: #000000 !important;
}


#page-content {
    flex: 1;
    background-color: #F0F1F2;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.content-header{
    background-color: #F0F1F2 !important;
    box-shadow: none !important;
    border: none !important;
    margin-top: 10px !important;
    margin-right: -10px !important;
    margin-left: -1px !important;
}

/* Header */
.header {
    background-color: var(--header-color);
    padding: 0.75rem 1.5rem;
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header .title {
    font-size: 1.25rem;
    font-weight: 600;
}

.header .actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Sidebar Navigation */
.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #A0AEC0;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: #1E242F !important;
    color: #FFFFFF !important;
    border-radius: 5px !important;
    border-right: none;
}

.sidebar-nav a.open, .sidebar-nav li.active > a{
    background-color: rgba(255, 255, 255, 0) !important;
}
.sidebar-nav .active > ul, .sidebar-nav .open + ul{
    background-color: rgba(255, 255, 255, 0) !important;
    border: none;
}
.sidebar-nav ul a{
    border-left: none !important;
}

.nav.navbar-nav-custom > li > a:hover{
    background-color: rgba(255, 255, 255, 0) !important;
    color: #1e242f !important;
}

@media screen and (min-width: 992px) {
    #page-container.sidebar-visible-lg-mini #sidebar {
        overflow: visible;
        width: 40px !important;
    }
}

.sidebar-nav a svg {
    margin-right: 0.75rem;
}




/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.stat-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-card.total-abertos { background-color: rgba(0, 196, 204, 0.1); }
.stat-card.abertos-hoje { background-color: rgba(72, 187, 120, 0.1); }
.stat-card.fechados-hoje { background-color: rgba(246, 173, 85, 0.1); }
.stat-card.tempo-total { background-color: rgba(49, 130, 206, 0.1); }
.stat-card.media-ticket { background-color: rgba(0, 196, 204, 0.1); }
.stat-card.dias-fechar { background-color: rgba(139, 92, 246, 0.1); }

/* Search and Tabs */
.search-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-tabs input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-tabs input:focus {
    border-color: var(--focus-color);
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.2);
    outline: none;
}

.search-tabs .btn {
    padding: 0.5rem 1.25rem;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.search-tabs .btn:hover {
    background-color: var(--primary-dark);
}

.search-tabs .tabs {
    display: flex;
    gap: 0.5rem;
}

.search-tabs .tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.search-tabs .tab.active {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

.search-tabs .tab:hover {
    background-color: rgba(0, 196, 204, 0.1);
}

/* Sections */
.section {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.ticket-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.ticket-item:hover {
    background-color: rgba(0, 196, 204, 0.05);
}

.ticket-item .number {
    font-weight: 600;
    margin-right: 1rem;
    color: var(--text-color);
}

.ticket-item .details {
    flex: 1;
}

.ticket-item .details p {
    margin: 0;
}

.ticket-item .details .age {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ticket-item .tags {
    display: flex;
    gap: 0.25rem;
}

.ticket-item .tag {
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    color: #FFFFFF;
}

.ticket-item .tag.rn { background-color: #4A90E2; }
.ticket-item .tag.gs { background-color: #48BB78; }
.ticket-item .tag.dp { background-color: #F6AD55; }

.ticket-card{
    border-radius: 10px !important;
}
.ticket-header{
    border-radius: 10px 10px 0 0 !important;
}

.well{
    border: 2px dashed rgba(57, 64, 80, 0.64) !important;

}

.well-sm{
    padding: 10px !important;
    border-radius: 10px !important;
}
/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 8px !important;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    color: #fff !important;
    background-color: #3a4150 !important;
    margin: 5px;

}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Accessibility */
:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.2);
}



/*===================Elementos De Formulário===================*/
/* Labels */
label {
    color: #000 !important;
    font-weight: 500 !important;
}

.label-primary {
    background-color: #d0e9ee !important;
    color: #063f4b !important;
    padding: 4px;

}

.label-primary a{
    background-color: #d0e9ee !important;
    color: #063f4b !important;
    padding: 4px;
}


/* Inputs de texto */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea {
    color: #000 !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 2px solid #d1d5db !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus {
    color: #000 !important;
    background-color: transparent !important;
    border-bottom: 2px solid #3a4150 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Select nativo */
select {
    color: #000 !important;
    background-color: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

select:focus {
    color: #000 !important;
    background-color: #fff !important;
    border-color: #3a4150 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(57, 101, 77, 0.1) !important;
}

select option {
    color: #000 !important;
    background-color: #fff !important;
}

select option:checked,
select option:hover {
    color: #fff !important;
    background-color: #2A2F3A !important;
}

/* Chosen Select Styling */
.chosen-container-single .chosen-single {
    color: #000 !important;
    background-color: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.chosen-container-active .chosen-single {
    border-color: #3a4150 !important;
    box-shadow: 0 0 0 2px rgba(57, 101, 77, 0.1) !important;
}

.chosen-container .chosen-drop {
    border: 1px solid #3a4150 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.chosen-container .chosen-results li {
    color: #000 !important;
    background-color: #fff !important;
}

.chosen-container .chosen-results li.highlighted {
    color: #fff !important;
    background-color: #2A2F3A !important;
}

/* Select2 Styling */
.select2-container--default .select2-selection--single {
    color: #000 !important;
    background-color: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3a4150 !important;
    box-shadow: 0 0 0 2px rgba(57, 101, 77, 0.1) !important;
}

.select2-container--default .select2-dropdown {
    border: 1px solid #3a4150 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.select2-container--default .select2-results__option {
    color: #000 !important;
    background-color: #fff !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    color: #000 !important;
    background-color: #ebeef2 !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    color: #fff !important;
    background-color: #2A2F3A !important;
}

/* Checkboxes personalizados */
.csscheckbox input[type="checkbox"] {
    display: none !important;
}

.csscheckbox span {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #4B5563 !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.csscheckbox input:checked + span {
    background-color: #3a4150 !important;
    border-color: #3a4150 !important;
}

.csscheckbox input:checked + span:after {
    content: "✓" !important;
    color: #fff !important;
    font-size: 12px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.dd3-handle::before {
    color: #4B5563 !important;
}

/* Radio buttons personalizados */
.cssradio input[type="radio"] {
    display: none !important;
}

.cssradio span {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.cssradio input:checked + span {
    border-color: #3a4150 !important;
}

.cssradio input:checked + span:after {
    content: "" !important;
    width: 8px !important;
    height: 8px !important;
    background-color: #3a4150 !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Botões */
.btn-primary {
    color: #fff !important;
    background-color: #3a4150 !important;
    border: 1px solid #3a4150 !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff !important;
    background-color: #233F30 !important;
    border-color: #233F30 !important;
    box-shadow: 0 2px 4px rgba(57, 101, 77, 0.2) !important;
}


/* Botões Success */
.btn-success {
    color: #fff !important;
    background-color: #10B981 !important;
    border: 1px solid #10B981 !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.btn-success:hover,
.btn-success:focus {
    color: #fff !important;
    background-color: #059669 !important;
    border-color: #059669 !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3) !important;
}

/* Botões Info */
.btn-info {
    color: #fff !important;
    background-color: #06B6D4 !important;
    border: 1px solid #06B6D4 !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.btn-info:hover,
.btn-info:focus {
    color: #fff !important;
    background-color: #0891B2 !important;
    border-color: #0891B2 !important;
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.3) !important;
}

/* Botões Warning */
.btn-warning {
    color: #fff !important;
    background-color: #F59E0B !important;
    border: 1px solid #F59E0B !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.btn-warning:hover,
.btn-warning:focus {
    color: #fff !important;
    background-color: #D97706 !important;
    border-color: #D97706 !important;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3) !important;
}

/* Botões Danger */
.btn-danger {
    color: #fff !important;
    background-color: #EF4444 !important;
    border: 1px solid #EF4444 !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.btn-danger:hover,
.btn-danger:focus {
    color: #fff !important;
    background-color: #DC2626 !important;
    border-color: #DC2626 !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3) !important;
}

/* Botões Secondary */
.btn-secondary {
    color: #fff !important;
    background-color: #6B7280 !important;
    border: 1px solid #6B7280 !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: #fff !important;
    background-color: #4B5563 !important;
    border-color: #4B5563 !important;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3) !important;
}

/* Botões Dark */
.btn-dark {
    color: #fff !important;
    background-color: #374151 !important;
    border: 1px solid #374151 !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.btn-dark:hover,
.btn-dark:focus {
    color: #fff !important;
    background-color: #1F2937 !important;
    border-color: #1F2937 !important;
    box-shadow: 0 2px 4px rgba(55, 65, 81, 0.3) !important;
}

/* Botões Light */
.btn-light {
    color: #374151 !important;
    background-color: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.btn-light:hover,
.btn-light:focus {
    color: #374151 !important;
    background-color: #F3F4F6 !important;
    border-color: #D1D5DB !important;
    box-shadow: 0 2px 4px rgba(249, 250, 251, 0.3) !important;
}




/* Input Groups */
.input-group-addon {
    color: #000 !important;
    background-color: #f8f9fa !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
}

/* File inputs estilizados */
.inputfile {
    display: none !important;
}

.inputfile + label {
    color: #000 !important;
    background-color: #f8f9fa !important;
    border: 2px dashed #d1d5db !important;
    border-radius: 8px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: block !important;
}

.inputfile:focus + label,
.inputfile + label:hover {
    background-color: #e9ecef !important;
    border-color: #3a4150 !important;
}

/* Dropdown menus */
.dropdown-menu {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-menu > li > a {
    color: #000 !important;
    transition: all 0.2s ease !important;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    color: #fff !important;
    background-color: #2A2F3A !important;
}

.input-group-btn{
    border-radius: 10px !important;
}

/*===================Estilos das tabelas ===================*/
/* Estilo da tabela principal */
.table {
    width: 100% !important;
    background-color: #fff !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Header da tabela */
.table thead th {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 600 !important;
    padding: 12px !important;
    text-align: left !important;
    border-bottom: 2px solid #e9ecef !important;
    font-size: 13px !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Células do corpo da tabela */
.table tbody td {
    padding: 12px !important;
    border-bottom: 1px solid #f1f3f4 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    vertical-align: middle !important;
    background-color: #fff !important;
    color: #333 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* Efeito hover nas linhas */
.table tbody tr:hover td {
    background-color: #f8f9fa !important;
    transition: background-color 0.2s ease !important;
}

/* Striped effect mais suave */
.table-striped tbody tr:nth-of-type(odd) td {
    background-color: #fafbfc !important;
}

.table-striped tbody tr:nth-of-type(odd):hover td {
    background-color: #f1f3f4 !important;
}

/* Labels/badges dentro da tabela - cores mais suaves */
.table .label {
    display: inline-block !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    margin: 1px !important;
    border: 1px solid transparent !important;
}

.table .label-warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffeaa7 !important;
}

.table .label-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}

.table .label-success {
    background-color: #d1eddc !important;
    color: #155724 !important;
    border-color: #c3e6cb !important;
}

.table .label-primary {
    background-color: #d1ecf1 !important;
    color: #0c5460 !important;
    border-color: #bee5eb !important;
}

.table .label-info {
    background-color: #d1ecf1 !important;
    color: #0c5460 !important;
    border-color: #bee5eb !important;
}

.table .label-default {
    background-color: #e2e3e5 !important;
    color: #383d41 !important;
    border-color: #d6d8db !important;
}

/* Links dentro da tabela */
.table a {
    color: #a4a3a3 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}



/* Título/assunto em destaque */
.table a.column-2 {
    color: #212529 !important;
    font-weight: 600 !important;
}

.table a.column-2:hover {
    color: #495057 !important;
}

/* Checkbox na primeira coluna */
.table .csscheckbox {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.table .csscheckbox input[type="checkbox"] {
    display: none !important;
}

.table .csscheckbox span {
    width: 16px !important;
    height: 16px !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 3px !important;
    background-color: #fff !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.table .csscheckbox span:hover {
    border-color: #adb5bd !important;
}

.table .csscheckbox input:checked + span {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.table .csscheckbox input:checked + span:after {
    content: "✓" !important;
    color: #fff !important;
    font-size: 10px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Dropdown button na última coluna */
.table .btn-group .btn-primary {
    background-color: #2A2F3A !important;
    border: 1px solid #2A2F3A !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    transition: all 0.2s ease !important;
}

.table .btn-group .btn-primary:hover {
    background-color: #2A2F3A !important;
    border-color: #2A2F3A !important;
}

/* Dropdown menu */
.table .dropdown-menu {
    border: 1px solid #e9ecef !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    padding: 4px 0 !important;
}

.table .dropdown-menu li a {
    color: #495057 !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    transition: background-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
}

.table .dropdown-menu li a:hover {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

.table .dropdown-menu li a i {
    margin-right: 6px !important;
    width: 12px !important;
}

/* Ícones FontAwesome */
.table .fa {
    /*color: #ffffff !important;*/
    margin-right: 4px !important;
}

/* Última linha sem border bottom */
.table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .table thead th,
    .table tbody td {
        padding: 8px !important;
        font-size: 12px !important;
    }

    .table .label {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
}

/* Texto em destaque */
.table tbody td strong {
    font-weight: 600 !important;
    color: #212529 !important;
}

/* Container da tabela */
.table-responsive {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Remover bordas externas desnecessárias */
.table-bordered,
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
    border: none !important;
}

/* Manter apenas as bordas que fazem sentido */
.table tbody tr {
    border-bottom: 1px solid #f1f3f4 !important;
}

/* Vcenter para alinhamento */
.table-vcenter tbody td {
    vertical-align: middle !important;
}


/* Responsividade */
@media (max-width: 768px) {
    .table thead th,
    .table tbody td {
        padding: 8px !important;
        font-size: 12px !important;
    }

    .table .label {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
}

/* Texto em destaque */
.table tbody td strong {
    font-weight: 600 !important;
    color: #212529 !important;
}

/* Container da tabela */
.table-responsive {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Remover bordas externas desnecessárias */
.table-bordered,
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
    border: none !important;
}

/* Manter apenas as bordas que fazem sentido */
.table tbody tr {
    border-bottom: 1px solid #f1f3f4 !important;
}

/* Vcenter para alinhamento */
.table-vcenter tbody td {
    vertical-align: middle !important;
}


.block-options .btn {
    margin-top: 4px !important;
}



/*=======================Detalhes tiCket===============*/

#acoes_tarefas_selecionadas {
    background: #ffffff !important;
    text-align: center !important;
    position: fixed !important;
    top: 15px !important;
    right: 20px !important;
    left: 239px !important;
    z-index: 1040 !important;
    padding: 5px !important;
    -webkit-box-shadow: 1px 2px 24px -4px #000 !important;
    box-shadow: 1px 2px 24px -4px #000000 !important;
    border-radius: 10px;
}

#acoes_tarefas_selecionadas .table {
    margin-bottom: 0px !important;
    border: none !important;
    box-shadow: none !important;
}


#acoes_tarefas_selecionadas .table a:nth-of-type(1) {
    color: #ffffff !important;
    background-color: rgba(244, 37, 37, 0.8) !important; /* vermelho */
}

#acoes_tarefas_selecionadas .table a:nth-of-type(2) {
    color: #ffffff !important;
    background-color: rgba(26, 66, 167, 0.8) !important; /* azul */
    font-weight: 700 !important;
}

#acoes_tarefas_selecionadas .table a:nth-of-type(3) {
    color: #ffffff !important;
    background-color: rgba(24, 154, 55, 0.8) !important; /* verde */
    font-weight: 700 !important;
}

#acoes_tarefas_selecionadas .table a:nth-of-type(4) {
    color: #ffffff !important;
    background-color: rgba(137, 104, 21, 0.8) !important; /* amarelo */
    font-weight: 700 !important;
}

#acoes_tarefas_selecionadas .table a:nth-of-type(5) {
    color: #ffffff !important;
    background-color: rgba(95, 23, 150, 0.8) !important; /* roxo */
    font-weight: 700 !important;
}

#acoes_tarefas_selecionadas .table a:nth-of-type(6) {
    color: #ffffff !important;
    background-color: rgba(23, 138, 130, 0.8) !important; /* ciano */
    font-weight: 700 !important;
}

#acoes_tarefas_selecionadas .table a:nth-of-type(7) {
    color: #ffffff !important;
    background-color: rgba(118, 54, 18, 0.8) !important; /* laranja */
    font-weight: 700 !important;
}

#acoes_tarefas_selecionadas .table a:nth-of-type(8) {
    color: #ffffff !important;
}
#acoes_tarefas_selecionadas .table a:nth-of-type(9) {
    color: #ffffff !important;
}
#acoes_tarefas_selecionadas .table a:nth-of-type(10) {
    color: #ffffff !important;
}


#acoes_tarefas_selecionadas .table .text-right a {
    color: #ffffff !important;
    background-color: rgba(244, 37, 37, 0.8) !important; /* vermelho */
    border-radius: 10px !important;
    padding: 10px !important;
}

.dd3-content {
    overflow-wrap: break-word !important;
    display: block !important;
    height: 100% !important;
    margin: 5px 0 !important;
    padding: 5px 10px 5px 40px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    border: 1px solid #eceef0 !important;
    background: #e5e5e5 !important;
    background: -webkit-linear-gradient(to bottom, #e5e5e5 0%, #eee 100%) !important;
    background: -moz-linear-gradient(to bottom, #e5e5e5 0%, #eee 100%) !important;
    background: linear-gradient(to bottom, #e5e5e5 0%, #eee 100%) !important;
    -webkit-border-radius: 10px !important;
    -moz-border-radius: 10px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    -moz-box-sizing: border-box !important;
    min-height: 56px !important;
    position: relative !important;
}

.dd3-handle {
    position: absolute;
    margin: 0;
    height: 100%;
    left: 0;
    top: 0;
    cursor: grab;
    width: 30px;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    border: 1px solid #f0f1f2;
    background: #f0f1f2 !important;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 1px solid #f0f1f2 !important;
    z-index: 1;
}

.dd3-handle:active {
    cursor: grabbing;
}

.dd3-content a:first-child{
    color: #2D3748 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}
.botoes_tarefa a:nth-of-type(3){
    background-color: #ffffff !important;
    color: #000 !important;

}

.fa-euro{
    color:#fff !important;
}



.card-modern .block-title {
    background: #ffffff !important;
    padding: 6px 3px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.dd-empty {
    min-height: 30px;
    border: 1px dashed #4d4d4d;
    border-radius: 10px !important;
    padding: 18px !important;
}


.nav.nav-justified{
    background-color: #ffffff !important;
    color: #ffffff !important;
}

.nav.nav-justified > li.active > a{
    color: #000000 !important;
    background: #f9fbfc !important;
    border-radius: 10px !important;
}


.block-title .nav-tabs > li.active > a, .block-title .nav-tabs > li.active > a:hover, .block-title .nav-tabs > li.active > a:focus{
    border-radius: 10px !important;
    margin: 3px !important;
}


/* Chat Input */
.chat-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    padding: 16px;
    border-top: 1px solid #e2e8f0;
}

.chat-input-group textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.15s ease;
    background: #ffffff;
    resize: none;
    font-family: inherit;
    line-height: 1.5;
}

.chat-input-group textarea:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 1px #0f172a;
}

.chat-input-group button {
    padding: 8px 16px;
    background: #0f172a;
    color: white;
    border: 1px solid #0f172a;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-size: 14px;
    align-self: flex-end;
}

.chat-input-group button:hover {
    background: #1e293b;
}

.chat-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: #fafafa;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: #cbd5e0;
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.chat-message.sent {
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #0f172a;
    flex-shrink: 0;
}

.chat-message.sent .chat-message-avatar {
    background: #0f172a;
    color: white;
}

.chat-message-content {
    flex: 1;
    max-width: 80%;
}

.chat-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.chat-message.sent .chat-message-header {
    flex-direction: row-reverse;
}

.chat-message-author {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.chat-message-time {
    font-size: 12px;
    color: #64748b;
}

.chat-message-bubble {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.5;
}

.chat-message.sent .chat-message-bubble {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.chat-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.chat-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.chat-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #page-container {
        flex-direction: column;
    }

    #sidebar {
        width: 56%;
        margin-bottom: 1rem;
    }
    #page-container.header-fixed-top #sidebar{
        position: fixed;
        top: 50px;
        bottom: -10px !important;

    }

    .header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .search-tabs {
        flex-direction: column;
        gap: 0.75rem;
    }a

     .section {
         padding: 0.75rem;
     }


}

@media screen and (max-width: 576px) {
    .ticket-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn,
    .search-tabs input {
        padding: 0.25rem 0.75rem;
    }
}

@media screen and (max-width: 780px) {
    #sidebar{
        width: 215px !important;
    }
}

