/* =========================================================
   TERRE DES DRAGONS — TABLEAUX
   ========================================================= */

.tdd-table-wrap {
    overflow-x: auto;
    border: 1px solid #674521;
    background: rgba(10, 7, 4, .9);
    box-shadow:
        0 16px 32px rgba(0,0,0,.46),
        inset 0 0 18px rgba(0,0,0,.25);
}

.tdd-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: #c8baa2;
}

.tdd-table caption {
    padding: 14px;
    color: #9b8768;
    font-family: "Cinzel", Georgia, serif;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tdd-table th {
    padding: 15px 16px;
    color: #e0c790;
    background:
        linear-gradient(180deg, rgba(74, 45, 24, .86), rgba(26, 16, 10, .96));
    border-bottom: 1px solid #8b5f2d;
    font-family: "Cinzel", Georgia, serif;
    font-size: .7rem;
    letter-spacing: .09em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.tdd-table td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(154, 103, 45, .18);
    vertical-align: middle;
}

.tdd-table tbody tr {
    background: rgba(28, 18, 11, .38);
    transition: background .15s ease;
}

.tdd-table tbody tr:nth-child(even) {
    background: rgba(42, 27, 16, .34);
}

.tdd-table tbody tr:hover {
    background:
        linear-gradient(90deg, rgba(106, 50, 22, .22), rgba(48, 29, 16, .52));
}

.tdd-table__title {
    color: #e7cf98;
    font-family: "Cinzel", Georgia, serif;
    font-size: .86rem;
    text-decoration: none;
}

.tdd-table__title:hover {
    color: #f5dfaa;
    text-shadow: 0 0 8px rgba(202, 145, 67, .24);
}

.tdd-table__muted {
    color: #887a66;
}

.tdd-table__actions-heading,
.tdd-table__actions {
    width: 1%;
    text-align: right !important;
    white-space: nowrap;
}

.tdd-table__actions-inner {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.tdd-table__empty {
    padding: 44px 20px !important;
    color: #81725d;
    text-align: center;
    font-style: italic;
}

@media (max-width: 760px) {
    .tdd-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .tdd-table {
        min-width: 0;
    }

    .tdd-table thead {
        display: none;
    }

    .tdd-table,
    .tdd-table tbody,
    .tdd-table tr,
    .tdd-table td {
        display: block;
        width: 100%;
    }

    .tdd-table tr {
        margin-bottom: 16px;
        padding: 12px 16px;
        border: 1px solid #5f401f;
        background:
            radial-gradient(circle at 90% 0, rgba(116, 62, 25, .14), transparent 30%),
            linear-gradient(145deg, #291b11, #0e0906) !important;
        box-shadow: 0 10px 22px rgba(0,0,0,.38);
    }

    .tdd-table td {
        display: grid;
        grid-template-columns: minmax(95px, .7fr) 1.3fr;
        gap: 12px;
        padding: 9px 0;
        border-bottom: 1px solid rgba(154, 103, 45, .15);
    }

    .tdd-table td::before {
        content: attr(data-label);
        color: #8f7a5d;
        font-family: "Cinzel", Georgia, serif;
        font-size: .62rem;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .tdd-table__actions {
        width: 100%;
        text-align: left !important;
    }

    .tdd-table__actions-inner {
        justify-content: flex-start;
    }

    .tdd-table__empty {
        display: block !important;
    }

    .tdd-table__empty::before {
        content: none !important;
    }
}
