.tgantt .fixed-table-xs tr td,
.tgantt .fixed-table-xs tr th {
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  min-height: 90px;
  height: 50px;
  padding: 10px 0px;
}

.tgantt .fixed-table-sm tr td,
.tgantt .fixed-table-sm tr th {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  min-height: 90px;
  height: 100px;
  padding: 10px 2px;
}

.tgantt .fixed-table-md tr td,
.tgantt .fixed-table-md tr th {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  min-height: 90px;
  height: 100px;
  padding: 10px 4px;
}

.tgantt .fixed-table-lg tr td,
.tgantt .fixed-table-lg tr th {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  min-height: 90px;
  height: 100px;
  padding: 10px 10px;
}

.tgantt .fixedTable-body {
  overflow: auto;
  overflow-y: hidden; 
}

.tgantt .fixed-table-lg .fixedTable-sidebar {
    width: 250px;
}

.tgantt .fixedTable-sidebar {
  width: 200px;
  float: left;
  overflow: hidden;
}

.tgantt .table-rows {
    width: 100%;
}

.tgantt .table-rows tbody > tr > td {
    border: 1px solid #e0e0e0;
    padding: 0px;
    border-left: unset;
}

.tgantt .fixedTable-body > table > tbody > tr {
    border-right: 1px solid #e0e0e0;
}

.tgantt .fixedTable-body > table > tbody > tr > td {
    border: #e0e0e0 1px solid;
}

.tgantt .fixedTable-body > table{
    border-collapse: collapse;
    overflow: hidden;
}

.tgantt aside > table {
    border-spacing: 0px;
    border-collapse: collapse;
}

.tgantt-head {
    background: #ffffff !important;
}

.tgantt .table-content {
    margin-left: -1px;
}

.tgantt-head > td {
    border-right: none !important;
}

.tgantt-head-hour > td {
    height: 30px !important;
}

.tgantt-weekly-header-day-label {
    color: #757575;
    font-weight: 400;
}

.tgantt-weekly-header-day-number-xs {
    font-size: 18px;
    font-weight: 400;
    color: #9e9e9e;
}

.tgantt-weekly-header-day-number-sm {
    font-size: 32px;
    font-weight: 400;
    color: #9e9e9e;
}

.tgantt-weekly-header-day-number-md {
    font-size: 48px;
    font-weight: 400;
    color: #9e9e9e;
}

.tgantt-weekly-header-day-number-lg{
    font-size: 48px;
    font-weight: 400;
    color: #9e9e9e;
}

.tgantt-weekly-header-info-xs {
    margin-left: 4px;
}

.tgantt-weekly-header-info-sm {
    margin-left: 4px;
}

.tgantt-weekly-header-info-md,
.tgantt-weekly-header-info-lg {
    margin-left: 4px;
}

.tgantt-title {
    font-size: 24px;
    color: #595959 !important;
    display: flex;
    flex-direction: row;
    gap: 5px;
    border-bottom: unset;
}

.tgantt-event .btn-default {
    border: unset;
}

.tgantt-event {
    height:30px;
    width: 200px;
    display: inline-block;
    cursor: pointer;
    background: #9e9e9e;
    color:white;
    overflow: hidden;
    white-space: nowrap;
    line-height: 30px;
    border-radius: 3px;
    user-select: none;
    border: 1px solid #e0e0e0;
}

.tgantt .hour-cell {
    text-align: center;
    height: 30px !important;
    padding: 0px !important;
}

.tgannt-cell-opacity {
    background-color: whitesmoke;
}

/* ========================================
   ESTILOS PARA EVENTOS BLOQUEADOS
   ======================================== */

.tgantt-event-blocked {
    cursor: not-allowed !important;
    background: repeating-linear-gradient(
        45deg,
        #f44336,
        #f44336 10px,
        #d32f2f 10px,
        #d32f2f 20px
    ) !important;
    opacity: 0.85;
    border: 2px solid #b71c1c !important;
    position: relative;
}

/* Ícone de cadeado para eventos bloqueados */
.tgantt-event-blocked::before {
    content: "🔒";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Remove handles de resize para eventos bloqueados */
.tgantt-event-blocked .ui-resizable-handle {
    display: none !important;
}

/* Efeito hover diferente para bloqueados */
.tgantt-event-blocked:hover {
    opacity: 1;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

/* Tooltip customizado para bloqueados (se usar Bootstrap Tooltip) */
.tgantt-event-blocked[data-toggle="tooltip"] {
    cursor: help;
}

/* Variações de cores para diferentes tipos de bloqueio */
/* Bloqueio por Manutenção - Laranja */
.tgantt-event-blocked.blocked-maintenance {
    background: repeating-linear-gradient(
        45deg,
        #ff9800,
        #ff9800 10px,
        #f57c00 10px,
        #f57c00 20px
    ) !important;
    border-color: #e65100 !important;
}

/* Bloqueio por Férias - Azul */
.tgantt-event-blocked.blocked-vacation {
    background: repeating-linear-gradient(
        45deg,
        #2196F3,
        #2196F3 10px,
        #1976D2 10px,
        #1976D2 20px
    ) !important;
    border-color: #0D47A1 !important;
}

/* Bloqueio por Doença - Roxo */
.tgantt-event-blocked.blocked-sick {
    background: repeating-linear-gradient(
        45deg,
        #9C27B0,
        #9C27B0 10px,
        #7B1FA2 10px,
        #7B1FA2 20px
    ) !important;
    border-color: #4A148C !important;
}

/* Bloqueio por Feriado - Verde */
.tgantt-event-blocked.blocked-holiday {
    background: repeating-linear-gradient(
        45deg,
        #4CAF50,
        #4CAF50 10px,
        #388E3C 10px,
        #388E3C 20px
    ) !important;
    border-color: #1B5E20 !important;
}

/* Bloqueio por Treinamento - Azul Claro */
.tgantt-event-blocked.blocked-training {
    background: repeating-linear-gradient(
        45deg,
        #00BCD4,
        #00BCD4 10px,
        #0097A7 10px,
        #0097A7 20px
    ) !important;
    border-color: #006064 !important;
}

/* Bloqueio por Reunião - Cinza */
.tgantt-event-blocked.blocked-meeting {
    background: repeating-linear-gradient(
        45deg,
        #9E9E9E,
        #9E9E9E 10px,
        #757575 10px,
        #757575 20px
    ) !important;
    border-color: #424242 !important;
}

/* Bloqueio por Licença - Rosa */
.tgantt-event-blocked.blocked-leave {
    background: repeating-linear-gradient(
        45deg,
        #E91E63,
        #E91E63 10px,
        #C2185B 10px,
        #C2185B 20px
    ) !important;
    border-color: #880E4F !important;
}

/* Bloqueio por Viagem - Azul Escuro */
.tgantt-event-blocked.blocked-travel {
    background: repeating-linear-gradient(
        45deg,
        #3F51B5,
        #3F51B5 10px,
        #303F9F 10px,
        #303F9F 20px
    ) !important;
    border-color: #1A237E !important;
}

/* Bloqueio por Evento Especial - Dourado */
.tgantt-event-blocked.blocked-special {
    background: repeating-linear-gradient(
        45deg,
        #FFC107,
        #FFC107 10px,
        #FFA000 10px,
        #FFA000 20px
    ) !important;
    border-color: #FF6F00 !important;
}

/* Bloqueio Administrativo - Vermelho */
.tgantt-event-blocked.blocked-admin {
    background: repeating-linear-gradient(
        45deg,
        #F44336,
        #F44336 10px,
        #D32F2F 10px,
        #D32F2F 20px
    ) !important;
    border-color: #B71C1C !important;
}

/* Bloqueio por Ausência - Marrom */
.tgantt-event-blocked.blocked-absence {
    background: repeating-linear-gradient(
        45deg,
        #795548,
        #795548 10px,
        #5D4037 10px,
        #5D4037 20px
    ) !important;
    border-color: #3E2723 !important;
}

/* Bloqueio por Home Office - Verde Água */
.tgantt-event-blocked.blocked-homeoffice {
    background: repeating-linear-gradient(
        45deg,
        #009688,
        #009688 10px,
        #00796B 10px,
        #00796B 20px
    ) !important;
    border-color: #004D40 !important;
}



/* Animação sutil para chamar atenção */
@keyframes pulse-blocked {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(244, 67, 54, 0);
    }
}

.tgantt-event-blocked.animate {
    animation: pulse-blocked 2s infinite;
}