﻿.form-check label {
    margin-left: 7px;
}

.tas-tag {
    cursor: pointer;
    display: block;
    padding: 4px 6px;
    border-radius: 6px;
    user-select: none;
}

    .tas-tag:hover {
        background: rgba(0,0,0,0.05);
    }

.tas-selected {
    background: rgba(13,110,253,0.15);
    font-weight: 600;
}

.tas-tree-ul {
    list-style: none;
    padding-left: 12px;
    margin: 0;
}

.tas-scrollbox {
    max-height: 260px;
    overflow: auto;
}
/* ===== TAS - look & feel (material-ish) ===== */

.tas-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.2);
    overflow: hidden;
}

    .tas-card .card-header {
        background: transparent;
        border-bottom: 0;
        padding-top: 1rem;
        padding-bottom: .75rem;
    }

    .tas-card .card-body {
        padding-top: .75rem;
    }

.tas-card-header-line {
    height: 1px;
    background: rgba(0,0,0,.06);
    margin: 0 1rem;
}

.tas-soft {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
}

.tas-btn-soft {
    box-shadow: 0 .35rem .85rem rgba(0,0,0,.10);
    border: 0;
}

    .tas-btn-soft.btn-outline-secondary,
    .tas-btn-soft.btn-outline-primary,
    .tas-btn-soft.btn-outline-danger {
        background: #fff;
    }

    .tas-btn-soft:active {
        transform: translateY(1px);
        box-shadow: 0 .2rem .55rem rgba(0,0,0,.10);
    }

.tas-scrollbox {
    background: rgba(0,0,0,.02);
}

.table.tas-table {
    margin-bottom: 0;
}

    .table.tas-table > :not(caption) > * > * {
        border-bottom-color: rgba(0,0,0,.06);
    }

.alert {
    border-radius: 12px;
    box-shadow: 0 .35rem .9rem rgba(0,0,0,.08);
    display: flex;
    align-items: center;
}

    .alert .btn-close {
        margin-left: auto;
        align-self: center;
        transform: none;
        top: auto !important;
    }

/* Modal un po' più "card" */
.modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 .75rem 2rem rgba(0,0,0,.20);
}

.modal-header {
    border-bottom: 0;
}

.modal-footer {
    border-top: 0;
}
/* ===== TAS - Etichette pill ===== */

.tas-tree-ul li {
    margin-bottom: 12px; /* distanza verticale tra le pill */
}

.tas-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px; /* pill */
    background: rgba(0,0,0,.04);
    font-size: .9rem;
    line-height: 1.2;
    transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}

    .tas-tag:hover {
        background: rgba(13,110,253,.10);
    }

    .tas-tag.tas-selected {
        background: #91d9a7;
        /*box-shadow: 0 .25rem .6rem rgba(13,110,253,.25);*/
        font-weight: 600;
    }

    .tas-tag:active {
        transform: scale(.97);
    }

.tas-tree-ul .tas-tree-ul {
    margin-top: 16px;
}

.tas-pill-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tas-pill-assigned {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: #91d9a7;
    cursor: pointer;
    user-select: none;
    transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
    font-weight: 600;
}

    .tas-pill-assigned:hover {
        background: rgba(220,53,69,.12);
        box-shadow: 0 .25rem .6rem rgba(220,53,69,.20);
    }

    .tas-pill-assigned:active {
        transform: scale(.97);
    }

    .tas-pill-assigned i {
        margin-left: 8px;
    }

.tas-tree-wrap {
    position: relative;
}

    .tas-tree-wrap.is-syncing {
        pointer-events: none;
        opacity: .65;
    }

        .tas-tree-wrap.is-syncing::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 12px;
            background: rgba(255,255,255,.55);
        }
/* ===== TAS - SAL table ===== */

.table.tas-table-sal > :not(caption) > * > * {
    background: #fff;
}

.table.tas-table-sal tbody tr {
    transition: background-color .15s ease;
}

    .table.tas-table-sal tbody tr:hover {
        background: rgba(13,110,253,.06);
    }

.table.tas-table-sal > :not(caption) > * > * {
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.table.tas-table-sal thead th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    background: transparent;
}

.table.tas-table-sal tbody tr.is-editing {
    background: rgba(13,110,253,.10);
}
/* ===== TAS - SAL action icons ===== */

.tas-table-sal .tas-ico-edit,
.tas-table-sal .tas-ico-delete {
    font-size: 1.15rem; /* più grandi del testo */
    vertical-align: middle;
}

/* Modifica */
.tas-table-sal .tas-ico-edit {
    color: #0d6efd; /* primary */
}

/* Elimina */
.tas-table-sal .tas-ico-delete {
    color: #dc3545; /* danger */
}

/* Hover più evidente ma sobrio */
.tas-table-sal a:hover .tas-ico-edit {
    color: #0b5ed7;
}

.tas-table-sal a:hover .tas-ico-delete {
    color: #bb2d3b;
}
/* ===== TAS - SAL user ===== */

.tas-sal-user {
    font-size: .85rem;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .tas-sal-user i {
        font-size: 1rem;
        color: #198754; /* verde soft (success) */
    }
/* ===== TAS - Icon system ===== */

.tas-ico {
    font-size: 1.15rem;
    vertical-align: middle;
    opacity: .9;
}

/* dimensioni */
.tas-ico-sm {
    font-size: 1rem;
}

.tas-ico-lg {
    font-size: 1.35rem;
}

/* semantica colori */
.tas-ico-primary {
    color: #0d6efd;
}
/* azioni principali */
.tas-ico-success {
    color: #198754;
}
/* positivo / conferma */
.tas-ico-warning {
    color: #f0ad4e;
}
/* attenzione */
.tas-ico-danger {
    color: #dc3545;
}
/* distruttivo */
.tas-ico-muted {
    color: #6c757d;
}
/* info / meta */

/* hover soft */
a:hover .tas-ico-primary {
    color: #0b5ed7;
}

a:hover .tas-ico-success {
    color: #157347;
}

a:hover .tas-ico-danger {
    color: #bb2d3b;
}
/* ===== TAS - AttivitaList table ===== */

.table.tas-table-list > :not(caption) > * > * {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.table.tas-table-list tbody tr {
    transition: background-color .15s ease;
}

    .table.tas-table-list tbody tr:hover {
        background: rgba(13,110,253,.06);
    }

.table.tas-table-list thead th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    background: transparent;
}

.tas-meta {
    font-size: .85rem;
    color: #6c757d;
    margin-top: 2px;
}

/* ===== TAS - badge soft ===== */

.badge.tas-badge-soft {
    border-radius: 999px;
    padding: .35rem .55rem;
    font-weight: 600;
}

.badge.tas-badge-owner {
    background: rgba(13,110,253,.12);
    color: #0d6efd;
}

.badge.tas-badge-shared {
    background: rgba(108,117,125,.12);
    color: #6c757d;
}

.badge.tas-badge-count {
    background: rgba(25,135,84,.12);
    color: #198754;
    border: 1px solid rgba(0,0,0,.06);
}
/* ===== TAS - grid action buttons ===== */

.table .btn.btn-outline-primary.tas-btn-soft:hover,
.table .btn.btn-outline-primary.tas-btn-soft:focus {
    background: rgba(13,110,253,.08);
    border-color: #0d6efd;
}

    /* evita che Bootstrap colori l'icona di bianco */
    .table .btn.btn-outline-primary.tas-btn-soft:hover i,
    .table .btn.btn-outline-primary.tas-btn-soft:focus i {
        color: #0d6efd;
    }

.tooltip-inner {
    text-align: left;
    max-width: 320px;
    white-space: normal;
}
/* ===== TAS - owner name in list ===== */

.tas-owner-name {
    font-weight: 600;
    color: #212529;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tas-chart-wrap {
    position: relative;
    width: 100%;
}

.tas-chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(0,0,0,.12);
    border-radius: 14px;
    background: rgba(0,0,0,.02);
    color: rgba(0,0,0,.55);
    font-weight: 600;
    padding: 1rem;
    text-align: center;
}

    .tas-chart-empty i {
        opacity: .85;
    }
/* Bottoni solo-icona: icona sempre leggibile */
.tas-btn-ico i {
    color: inherit;
}

.tas-btn-ico:hover i {
    color: #fff;
}
