/*   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  == 
   CUSTOM DASHBOARD BUILDER - ESTILOS COMPLETOS
     ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==   ==  ==  */

/* ----------------------------------------------------------------------------
   GRID CONTAINER WRAPPER (com scroll)
   ---------------------------------------------------------------------------- */
.custom-dashboard-grid-container {
    max-height: calc(100vh - 200px); /* Altura máxima baseada no viewport */
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin-top: 15px;
    /* Estilização da scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(241, 168, 99, 0.5) #f8f9fa;
}

.custom-dashboard-grid-container::-webkit-scrollbar {
    width: 12px;
}

.custom-dashboard-grid-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 6px;
}

.custom-dashboard-grid-container::-webkit-scrollbar-thumb {
    background: rgba(241, 215, 99, 0.5);
    border-radius: 6px;
    border: 2px solid #f8f9fa;
}

.custom-dashboard-grid-container::-webkit-scrollbar-thumb:hover {
    background: rgba(241, 215, 99, 0.7);
}

/* ----------------------------------------------------------------------------
   GRID CONTAINER
   ---------------------------------------------------------------------------- */
   #dashboardGrid {
    min-height: calc(100vh - 300px); /* Altura mínima baseada no viewport */
    height: auto;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

#dashboardGrid.grid-stack-animate .grid-stack-item {
    transition: left 0.3s, top 0.3s;
}

/* ----------------------------------------------------------------------------
   GRID ITEMS (WIDGETS)
   ---------------------------------------------------------------------------- */
.grid-stack-item {
    border-radius: 8px;
    overflow: hidden;
}

.grid-stack-item-content {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: default; /* Cursor padrão, apenas o header terá cursor move */
    transition: all 0.2s ease;
}

.grid-stack-item-content:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #875806;
}

/* ----------------------------------------------------------------------------
   RESIZE HANDLES - Estilos para redimensionamento
   ---------------------------------------------------------------------------- */
.ui-resizable-handle {
    position: absolute;
    z-index: 1000;
    background: transparent;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

/* Handle canto inferior direito (SE) */
.ui-resizable-se {
    width: 20px;
    height: 20px;
    right: 0;
    bottom: 0;
    cursor: se-resize;
    background: rgba(241, 182, 99, 0.1);
    border-color: rgba(241, 234, 99, 0.3);
    border-radius: 0 0 8px 0;
}

.ui-resizable-se:hover {
    background: rgba(239, 241, 99, 0.2);
    border-color: rgba(236, 241, 99, 0.6);
}

.ui-resizable-se::after {
    content: '';
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent rgba(232, 241, 99, 0.6) transparent;
}

/* Handle canto inferior esquerdo (SW) */
.ui-resizable-sw {
    width: 20px;
    height: 20px;
    left: 0;
    bottom: 0;
    cursor: sw-resize;
    background: rgba(241, 236, 99, 0.1);
    border-color: rgba(241, 222, 99, 0.3);
    border-radius: 0 0 0 8px;
}

.ui-resizable-sw:hover {
    background: rgba(241, 194, 99, 0.2);
    border-color: rgba(232, 241, 99, 0.6);
}

.ui-resizable-sw::after {
    content: '';
    position: absolute;
    left: 4px;
    bottom: 4px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent transparent rgba(241, 217, 99, 0.6);
}

/* Handle canto superior direito (NE) */
.ui-resizable-ne {
    width: 20px;
    height: 20px;
    right: 0;
    top: 0;
    cursor: ne-resize;
    background: #725a0c
    border-color: #725a0c;
    border-radius: 0 8px 0 0;
}

.ui-resizable-ne:hover {
    background: #725a0c;
    border-color: rgba(241, 184, 99, 0.6);
}

.ui-resizable-ne::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 4px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 0 8px;
    border-color: rgba(241, 184, 99, 0.6) transparent transparent transparent;
}

/* Handle canto superior esquerdo (NW) */
.ui-resizable-nw {
    width: 20px;
    height: 20px;
    left: 0;
    top: 0;
    cursor: nw-resize;
    background: rgba(241, 201, 99, 0.1);
    border-color: rgba(241, 208, 99, 0.3);
    border-radius: 8px 0 0 0;
}

.ui-resizable-nw:hover {
    background: rgba(241, 189, 99, 0.2);
    border-color: rgba(241, 179, 99, 0.6);
}

.ui-resizable-nw::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 0 0;
    border-color: rgba(241, 201, 99, 0.6) transparent transparent transparent;
}

/* Indicador visual no canto inferior direito ao passar o mouse */
.grid-stack-item-content:hover .ui-resizable-se {
    background: rgba(241, 222, 99, 0.15);
    border-color: rgba(241, 184, 99, 0.5);
}

/* ----------------------------------------------------------------------------
   WIDGET HEADER
   ---------------------------------------------------------------------------- */
.custom-dashboard-widget-header {
    background: linear-gradient(135deg, #e5cfb3 0%, #f59e0b 100%);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: move; /* Cursor para indicar que pode arrastar */
    user-select: none;
}

.custom-dashboard-widget-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.custom-dashboard-widget-title {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.custom-dashboard-widget-header .fa-grip-vertical {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.custom-dashboard-widget-header:hover .fa-grip-vertical {
    opacity: 1;
}

/* ----------------------------------------------------------------------------
   WIDGET ACTIONS (EDIT/REMOVE BUTTONS)
   ---------------------------------------------------------------------------- */
.custom-dashboard-widget-actions {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.custom-dashboard-widget-actions .btn {
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.custom-dashboard-widget-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.custom-dashboard-widget-actions .btn-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
}

.custom-dashboard-widget-actions .btn i {
    margin: 0;
}

/* ----------------------------------------------------------------------------
   WIDGET CONTENT AREA
   ---------------------------------------------------------------------------- */
.custom-dashboard-widget-content {
    flex: 1 1 auto;
    min-height: 0; /* ESSENCIAL para flex containers - permite que o filho encolha */
    padding: 15px;
    overflow: hidden; /* Mudado de auto para hidden para evitar scroll no gráfico */
    display: flex;
    flex-direction: column;
    background: white;
}

/* Widgets de gráfico - sem scroll interno e padding reduzido */
#dashboardGrid [data-type="goal_progress"] .custom-dashboard-widget-content {
    overflow: hidden;
    padding: 10px; /* Padding reduzido para o gráfico ocupar mais espaço */
}

.custom-dashboard-widget-content.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

/* ----------------------------------------------------------------------------
   CHART CONTAINER
   ---------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------
   CHART CONTAINER - Melhorado com centralização e padding
   ---------------------------------------------------------------------------- */
/* Container do gráfico - regras específicas e limpas */
#dashboardGrid .custom-dashboard-chart-container {
    flex: 1 1 auto;
    min-height: 0; /* ESSENCIAL - permite que o container encolha */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Melhor que center - permite que o canvas ocupe todo o espaço */
    justify-content: stretch;
    padding: 0; /* Padding removido - se necessário, coloque no widget-content */
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.custom-dashboard-chart-title {
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    flex-shrink: 0;
}

/* Canvas do gráfico - NÃO force width/height com !important - deixa o Chart.js controlar */
#dashboardGrid .custom-dashboard-chart-container canvas {
    display: block;
    box-sizing: border-box;
    /* Chart.js controla width/height automaticamente */
}

/* ----------------------------------------------------------------------------
   KPI CARD STYLES
   ---------------------------------------------------------------------------- */
.custom-dashboard-kpi-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-dashboard-kpi-value {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.custom-dashboard-kpi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* ----------------------------------------------------------------------------
   EMPTY STATE
   ---------------------------------------------------------------------------- */
#emptyState {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    display: none;
    z-index: 1;
}

#emptyState.show {
    display: block;
}

#emptyState i {
    font-size: 4rem;
    color: #875806;
    margin-bottom: 20px;
    opacity: 0.7;
}

#emptyState h4 {
    color: #495057;
    margin-bottom: 15px;
    font-weight: 600;
}

#emptyState p {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ----------------------------------------------------------------------------
   TOOLBAR
   ---------------------------------------------------------------------------- */
.custom-dashboard-toolbar {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-dashboard-toolbar h3 {
    position: relative;
}

.dashboard-title-editable {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.dashboard-title-editable:hover {
    background-color: rgba(241, 179, 99, 0.1);
    color: rgb(241, 191, 99);
}

.dashboard-title-input {
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    border: 2px solid rgba(241, 203, 99, 0.5);
    border-radius: 4px;
    padding: 4px 8px;
    background: white;
    outline: none;
}

.dashboard-title-input:focus {
    border-color: rgb(241, 191, 99);
    box-shadow: 0 0 0 3px rgba(241, 210, 99, 0.1);
}

.custom-dashboard-toolbar h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #212529;
    font-weight: 600;
}

.custom-dashboard-toolbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ----------------------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------------------- */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-primary {
    background: linear-gradient(135deg, #ac8a0f 0%, #875806 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #875806 0%, #ac780f 100%);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* ----------------------------------------------------------------------------
   MODAL CUSTOMIZATIONS
   ---------------------------------------------------------------------------- */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid #f1f3f5;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 2px solid #f1f3f5;
    padding: 16px 24px;
    border-radius: 0 0 12px 12px;
}

.modal-title {
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ----------------------------------------------------------------------------
   FORM CONTROLS
   ---------------------------------------------------------------------------- */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #875806;
    box-shadow: 0 0 0 0.25rem rgba(241, 215, 99, 0.15);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
}

/* ----------------------------------------------------------------------------
   GOAL SELECT FILTERED (DROPDOWN)
   ---------------------------------------------------------------------------- */
#goalSelectFiltered {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.goal-option-item {
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f3f5;
}

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

.goal-option-item:hover {
    background-color: #f8f9fa;
}

.goal-option-item .fw-bold {
    color: #212529;
    font-size: 0.95rem;
}

.goal-option-item .text-muted {
    color: #6c757d !important;
    font-size: 0.85rem;
}

/* ----------------------------------------------------------------------------
   CARDS
   ---------------------------------------------------------------------------- */
.card {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 15px;
}

/* ----------------------------------------------------------------------------
   PROGRESS BARS
   ---------------------------------------------------------------------------- */
.progress {
    height: 24px;
    border-radius: 6px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    border-radius: 6px;
    background: linear-gradient(90deg, #875806 0%, #f59e0b 100%);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s ease;
}

/* Color variations */
.progress-bar.bg-success {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.progress-bar.bg-info {
    background: linear-gradient(90deg, #875806 0%, #2563eb 100%);
}

.progress-bar.bg-warning {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.progress-bar.bg-danger {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* ----------------------------------------------------------------------------
   BADGES
   ---------------------------------------------------------------------------- */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ----------------------------------------------------------------------------
   TABLES
   ---------------------------------------------------------------------------- */
.table {
    margin-bottom: 0;
}

.table-responsive {
    border-radius: 6px;
}

.table-hover tbody tr {
    transition: background-color 0.15s ease;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

.table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table thead th {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px;
    border: none;
}

.table tbody td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f5;
}

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

/* ----------------------------------------------------------------------------
   NOTIFICATIONS/ALERTS
   ---------------------------------------------------------------------------- */
.alert {
    border-radius: 8px;
    border: none;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert i {
    font-size: 1.2rem;
}

.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #875806 0%, #d4eb25 100%);
    color: white;
}

/* ----------------------------------------------------------------------------
   SCROLLBAR CUSTOMIZATION
   ---------------------------------------------------------------------------- */
.custom-dashboard-widget-content::-webkit-scrollbar,
#goalSelectFiltered::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-dashboard-widget-content::-webkit-scrollbar-track,
#goalSelectFiltered::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.custom-dashboard-widget-content::-webkit-scrollbar-thumb,
#goalSelectFiltered::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.custom-dashboard-widget-content::-webkit-scrollbar-thumb:hover,
#goalSelectFiltered::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ----------------------------------------------------------------------------
   LOADING STATES
   ---------------------------------------------------------------------------- */
.spinner-border-sm {
    width: 1.5rem;
    height: 1.5rem;
}

/* ----------------------------------------------------------------------------
   RESPONSIVE DESIGN
   ---------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .custom-dashboard-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .custom-dashboard-toolbar-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    #emptyState {
        padding: 30px 20px;
    }
    
    #emptyState i {
        font-size: 3rem;
    }
    
    .custom-dashboard-widget-header h6 {
        font-size: 12px;
    }
    
    .custom-dashboard-kpi-value {
        font-size: 1.5rem;
    }
}

/* ----------------------------------------------------------------------------
   RESPONSIVE GRID HEIGHT ADJUSTMENTS
   ---------------------------------------------------------------------------- */
@media (max-width: 576px) {
    #dashboardGrid {
        min-height: calc(100vh - 200px);
        padding: 10px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .custom-dashboard-grid-container {
        max-height: calc(100vh - 180px);
    }
    
    #dashboardGrid {
        min-height: calc(100vh - 250px);
        padding: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .custom-dashboard-grid-container {
        max-height: calc(100vh - 220px);
    }
    
    #dashboardGrid {
        min-height: calc(100vh - 280px);
    }
}

@media (min-width: 1025px) and (max-width: 1919px) {
    .custom-dashboard-grid-container {
        max-height: calc(100vh - 240px);
    }
    
    #dashboardGrid {
        min-height: calc(100vh - 300px);
    }
}

@media (min-width: 1920px) {
    .custom-dashboard-grid-container {
        max-height: calc(100vh - 280px);
    }
    
    #dashboardGrid {
        min-height: calc(100vh - 350px);
    }
}

@media (max-width: 576px) {
    #dashboardGrid {
        padding: 10px;
    }
    
    .custom-dashboard-widget-content {
        padding: 10px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* ----------------------------------------------------------------------------
   UTILITIES
   ---------------------------------------------------------------------------- */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ----------------------------------------------------------------------------
   ANIMATIONS
   ---------------------------------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* ----------------------------------------------------------------------------
   ACCESSIBILITY
   ---------------------------------------------------------------------------- */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------------------------------------------
   PRINT STYLES
   ---------------------------------------------------------------------------- */
@media print {
    .custom-dashboard-toolbar,
    .custom-dashboard-widget-actions,
    #emptyState {
        display: none !important;
    }
    
    .grid-stack-item-content {
        box-shadow: none;
        border: 1px solid #dee2e6;
        page-break-inside: avoid;
    }
}