@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyN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wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.btn.rounded-circle {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    background-color: #f5f5f5;
    border: none;
    color: #333;
}
/* ---- Tabla elegante de tareas ---- */
.tareas-table{ font-size:0.92rem; }
.tareas-table thead th{
  position:sticky; top:0; z-index:5; height:42px;
  background:#fff; box-shadow: inset 0 -1px 0 rgba(0,0,0,.06);
  font-weight:600; color:#6c757d;
}
.tareas-table.table-sm>:not(caption)>*>*{ padding:.35rem .5rem; }
.tareas-table tbody tr:hover{ background:#fafafa; }

/* Anchos y columnas */
.tareas-table .col-icon{ width:28px; }
.tareas-table .col-check{ width:30px; }
.tareas-table .col-nombre{ width:60%; }
.tareas-table .col-resp{ width:18%; min-width:140px;}
.tareas-table .col-fecha{ width:18%; min-width:150px;}

/* Fila de sección */
.seccion-row td{
  background:#f8f9fa; font-weight:600; color:#495057;
  border-top:1px solid #e9ecef; border-bottom:1px solid #e9ecef;
}
.seccion-toggle{ cursor:pointer; user-select:none; display:flex; align-items:center; gap:.5rem; }
.seccion-badge{ font-weight:500; background:#e9ecef; color:#6c757d; padding:.15rem .45rem; border-radius:999px; }

/* Título con ellipsis + botones discretos */
.titulo-tarea{ display:inline-block; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.titulo-cell{ display:flex; align-items:center; gap:.4rem; }
.titulo-cell .btn-icon{ padding:0 .25rem; border:0; background:transparent; }
.titulo-cell .btn-icon:hover{ background:#f1f3f5; border-radius:.375rem; }

/* Botones “fantasma” y píldora responsable */
.btn-ghost{ border:0; background:transparent; }
.btn-ghost:hover{ background:#f1f3f5; }
.resp-pill{ display:inline-flex; align-items:center; gap:.4rem; padding:.2rem .5rem; border-radius:999px; background:#f1f3f5; color:#495057; min-height:28px; }
.resp-pill .bi-person{ opacity:.6; }

.fecha-ctrl{ min-width:9.5rem; }

/* Subtareas */
.subtarea{ background:#fcfcfd; }
.subtarea i.bi-arrow-return-right{ opacity:.4; }

/* Responsive */
@media (max-width: 768px){
  .tareas-table thead{ display:none; }
  .tareas-table tbody tr{ display:block; padding:.5rem .5rem; border-bottom:1px solid #eee; }
  .tareas-table td{ display:flex; justify-content:space-between; gap:.75rem; }
  .col-icon,.col-check{ width:auto; }
  .col-nombre,.col-resp,.col-fecha{ width:auto; }
  .titulo-cell{ width:100%; }
}

/* ===== Tabla de tareas (Asana-like) ===== */
.tareas-table {
    font-size: 0.92rem;
    border-collapse: separate;
    border-spacing: 0;
}

    .tareas-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        height: 40px;
        background: #fff;
        font-weight: 600;
        color: #6c757d;
        box-shadow: inset 0 -1px 0 rgba(0,0,0,.06);
    }

    .tareas-table.table-sm > :not(caption) > * > * {
        padding: .35rem .5rem;
    }

    /* separadores suaves entre filas de tareas */
    .tareas-table tbody tr.task-row td {
        border-top: 1px solid #f1f3f5;
    }

    .tareas-table tbody tr.task-row:hover td {
        background: #fafafa;
    }

/* columnas */
.t-col-icon {
    width: 28px;
}

.t-col-check {
    width: 30px;
}

.t-col-name {
    width: 60%;
}

.t-col-assignee {
    width: 18%;
    min-width: 160px;
}

.t-col-date {
    width: 18%;
    min-width: 150px;
}

/* fila de sección */
.seccion-row td {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.seccion-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
}

.seccion-badge {
    background: #e9ecef;
    color: #6c757d;
    padding: .15rem .45rem;
    border-radius: 999px;
    font-weight: 500;
}

/* título con ellipsis + acciones mini */
.titulo-cell {
    display: flex;
    align-items: center;
    gap: .4rem;
    min-height: 32px;
}

.titulo-tarea {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-btn {
    border: 0;
    background: transparent;
    padding: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

    .icon-btn:hover {
        background: #f1f3f5;
    }

    .icon-btn i {
        font-size: 14px;
        opacity: .8;
    }

/* checkbox/estado circular */
.state-btn i.bi-circle {
    opacity: .45;
}

.state-btn i.bi-check-circle-fill {
    color: #22c55e !important;
}

/* responsable estilo pastilla con avatar */
.assignee-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: #f1f3f5;
    color: #495057;
    min-height: 28px;
    text-decoration: none !important;
}

    .assignee-pill .avatar {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: .7rem;
        background: #e2e6ea;
        color: #495057;
    }

        .assignee-pill .avatar i {
            opacity: .7;
            font-size: .9rem;
        }

/* fecha compacta */
.fecha-ctrl {
    min-width: 9.5rem;
}

.input-group-text {
    background: #fff;
}

/* subtarea */
.subtarea {
    background: #fcfcfd;
}

    .subtarea .arrow {
        opacity: .4;
    }

/* responsive */
@media (max-width: 768px) {
    .tareas-table thead {
        display: none;
    }

    .tareas-table tbody tr {
        display: block;
        padding: .5rem;
    }

    .tareas-table td {
        display: flex;
        justify-content: space-between;
        gap: .75rem;
    }

    .t-col-icon, .t-col-check {
        width: auto;
    }

    .t-col-name, .t-col-assignee, .t-col-date {
        width: auto;
    }

    .titulo-cell {
        width: 100%;
    }
}

/* 25% más ancho que el default, solo en pantallas grandes */
.sf-offcanvas-wide {
    --bs-offcanvas-width: 500px;
}


