/* Heredamos el estilo base del panel de equipos */
.mant-mant-panel {
    font-family: Arial, sans-serif;
}

/* Cabecera */
.mant-mant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mant-mant-title {
    font-size: 22px;
    font-weight: bold;
    color: #1f4f7a;
    margin: 0;
}

.mant-mant-header-actions .mant-btn {
    margin-left: 6px;
    background: #008f39;
}

/* Filtros */
.mant-mant-filters-box {
    background: #ffffff;
    border: 1px solid #d0d4da;
    padding: 10px 16px 8px 16px;
    margin-bottom: 12px;
}

.mant-mant-filters-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
}

.mant-mant-filters-form {
    margin: 0;
}

.mant-mant-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 4px;
    margin-bottom: 4px;
}

.mant-mant-filters-grid .mant-field {
    margin: 0 !important;
}

.mant-mant-filters-grid .mant-field label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin: 0 0 2px 0 !important;
    color: #333;
}

.mant-mant-filters-grid .mant-field input,
.mant-mant-filters-grid .mant-field select {
    width: 100%;
    padding: 2px 6px !important;
    font-size: 13px;
    border: 1px solid #c1c7d0;
    border-radius: 3px;
    box-sizing: border-box;
    height: 26px !important;
    margin: 0 !important;
    background: #fff;
}

.mant-mant-filters-actions {
    margin-top: 2px;
    display: flex;
    gap: 6px;
}

/* Caja calendario */
.mant-mant-calendar-box {
    background: #ffffff;
    border: 1px solid #d0d4da;
    padding: 10px 16px 12px 16px;
}

.mant-mant-calendar-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
}

/* Tabs */
.mant-mant-tabs {
    margin-bottom: 6px;
}

.mant-mant-tab {
    display: inline-block;
    border: none;
    cursor: pointer;
    padding: 6px 14px;
    font-size: 12px;
    margin-right: 4px;
    background: #f4b000;      /* Naranja por defecto (Planificados) */
    color: #fff;
    border-radius: 2px 2px 0 0;
    text-decoration: none;    /* Quita subrayado de <a> */
    line-height: 1.4;
}


.mant-mant-tab:nth-child(2) {
    background: #2e7ec7;
}

.mant-mant-tab:hover {
    opacity: 0.9;
}


.mant-mant-tab--active {
    box-shadow: 0 -2px 0 #004b54 inset;
}

.mant-mant-tab-content {
    display: none;
    padding-top: 4px;
}

.mant-mant-tab-content--active {
    display: block;
}

/* Tabla calendario */
.mant-mant-table-cal {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.mant-mant-table-cal thead {
    background: #004b54;
    color: #ffffff;
}

.mant-mant-table-cal th,
.mant-mant-table-cal td {
    padding: 5px 6px;
    border-bottom: 1px solid #e0e4ea;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

/* Cuadritos de estado por mes */
.mant-cal-cuadro {
    display: inline-block;
    width: 20px;
    height: 14px;
    border-radius: 2px;
}

/* Colores de estado */
.mant-status-ok {
    background: #008060;
}

.mant-status-pendiente {
    background: #f5a623;
}

.mant-status-atrasado {
    background: #c0392b;
}

.mant-status-hoy {
    background: #1f7fbf;
}

/* Responsive */
@media (max-width: 900px) {
    .mant-mant-filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .mant-mant-filters-grid {
        grid-template-columns: 1fr;
    }
    .mant-mant-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

.mant-mant-th-actions,
.mant-mant-td-actions{
  white-space: nowrap;
  width: 120px;
}

.mant-mant-td-actions{
  display: flex;
  gap: 8px;
  align-items: center;
}

.mant-mant-btn{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
}

.mant-mant-btn-edit{
  background: #1e73be;
  color: #fff;
}

.mant-mant-btn-del{
  background: #d63638;
  color: #fff;
}

