/* =========================================================
   TEXAS LEGACIES — DASHBOARD OVERRIDES
   BUILD: DASHBOARD-20261021-01

   Camada isolada para reorganizações de jogabilidade.
   Não altera páginas públicas, Admin ou sistemas marcados como "OK".
========================================================= */


/* =========================================================
   1. PERSONAGENS — HISTÓRICO DE ROLAGENS
========================================================= */

.dashboard-body .dashboard-roll-history-hub {
    --dice-card-ink: var(--ink, #102a33);
    --dice-card-rust: var(--rust, #a84622);
    --dice-card-cream: var(--cream, #f1ddc2);
    margin-top: 72px;
    padding-top: 48px;
    border-top: 1px solid rgba(96, 54, 31, .20);
}

.dashboard-body .dashboard-roll-history-heading {
    max-width: 760px;
}

.dashboard-body .dashboard-roll-history-heading > div > span {
    color: var(--rust);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 4px;
}

.dashboard-body .dashboard-roll-history-heading h3 {
    margin-top: 10px;
    color: var(--ink);
    font-size: clamp(38px, 5vw, 60px);
    font-weight: normal;
    line-height: .95;
}

.dashboard-body .dashboard-roll-history-heading p {
    margin-top: 14px;
    color: rgba(16, 42, 51, .66);
    font: 11px/1.8 Arial, sans-serif;
}

.dashboard-body .dashboard-roll-history-tabs {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-body .dashboard-roll-history-tabs button {
    min-height: 150px;
    padding: 24px;
    display: grid;
    align-content: space-between;
    gap: 14px;
    border: 1px solid rgba(96, 54, 31, .20);
    background: rgba(255, 255, 255, .16);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.dashboard-body .dashboard-roll-history-tabs button:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 70, 34, .55);
}

.dashboard-body .dashboard-roll-history-tabs button.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
}

.dashboard-body .dashboard-roll-history-tabs small {
    color: var(--rust);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 3px;
}

.dashboard-body .dashboard-roll-history-tabs button.active small {
    color: var(--sand);
}

.dashboard-body .dashboard-roll-history-tabs strong {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: normal;
}

.dashboard-body .dashboard-roll-history-tabs span {
    color: rgba(16, 42, 51, .62);
    font: 10px/1.6 Arial, sans-serif;
}

.dashboard-body .dashboard-roll-history-tabs button.active span {
    color: rgba(241, 221, 194, .68);
}

.dashboard-body .dashboard-roll-history-panel {
    margin-top: 24px;
}

.dashboard-body .dashboard-roll-history-panel[hidden] {
    display: none !important;
}

.dashboard-body .dashboard-roll-history-filter {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.dashboard-body .dashboard-roll-history-filter label {
    width: min(320px, 100%);
    display: grid;
    gap: 8px;
}

.dashboard-body .dashboard-roll-history-filter label > span {
    color: var(--rust);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 3px;
}

.dashboard-body .dashboard-roll-history-filter select {
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid rgba(96, 54, 31, .20);
    background: rgba(255, 255, 255, .28);
    color: var(--ink);
}

.dashboard-body .dashboard-dice-global-history {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-body .dashboard-dice-global-history[hidden],
.dashboard-body .dashboard-dice-global-empty[hidden] {
    display: none !important;
}

.dashboard-body .dashboard-dice-global-history .dashboard-dice-history-card {
    margin: 0;
}

.dashboard-body .dashboard-dice-history-character {
    margin-top: 8px;
    color: var(--rust);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dashboard-body .dashboard-roll-history-panel .dashboard-special-rolls {
    margin: 0;
    padding: 0;
    border-top: 0;
}

.dashboard-body .dashboard-roll-history-panel .dashboard-special-heading {
    padding-top: 12px;
}


/* =========================================================
   2. BANCO — FINANCEIRO + BANCO EM UMA ÚNICA ABA
========================================================= */

.dashboard-body #dashboardFinanceView[data-dashboard-view="bank"] {
    padding-bottom: 38px;
}

.dashboard-body #dashboardBankView[data-dashboard-view="bank"] {
    margin-top: 0;
    padding-top: 0;
}


/* =========================================================
   3. COMÉRCIO — ESCOLHA DE LOJAS
========================================================= */

.dashboard-body #dashboardCommercePanel {
    margin-bottom: 64px;
    padding: 44px;
    border: 1px solid rgba(96, 54, 31, .18);
    background: rgba(255, 255, 255, .18);
    color: var(--ink);
}

.dashboard-body #dashboardCommercePanel > header small {
    color: var(--rust);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 4px;
}

.dashboard-body #dashboardCommercePanel > header h2 {
    margin-top: 10px;
    color: var(--ink);
    font-size: clamp(42px, 6vw, 70px);
    font-weight: normal;
    line-height: .95;
}

.dashboard-body #dashboardCommercePanel > p {
    max-width: 760px;
    margin-top: 14px;
    color: rgba(16, 42, 51, .66);
    font: 11px/1.8 Arial, sans-serif;
}

.dashboard-body #dashboardCommercePanel [data-commerce="refresh"] {
    margin-top: 20px;
}

.dashboard-body #dashboardCommercePanel > label:not([hidden]) {
    margin-top: 24px;
    display: grid;
    gap: 8px;
    color: var(--rust);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 2px;
}

.dashboard-body #dashboardCommercePanel > label:not([hidden]) select {
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid rgba(96, 54, 31, .20);
    background: var(--cream);
    color: var(--ink);
}

.dashboard-body .dashboard-commerce-store-heading {
    margin-top: 38px;
}

.dashboard-body .dashboard-commerce-store-heading > span {
    color: var(--rust);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 4px;
}

.dashboard-body .dashboard-commerce-store-heading h3 {
    margin-top: 8px;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: normal;
}

.dashboard-body .dashboard-commerce-store-heading p {
    margin-top: 10px;
    color: rgba(16, 42, 51, .62);
    font: 10px/1.7 Arial, sans-serif;
}

.dashboard-body .dashboard-commerce-store-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-body .dashboard-commerce-store-grid button {
    min-height: 138px;
    padding: 20px;
    display: grid;
    align-content: space-between;
    gap: 10px;
    border: 1px solid rgba(96, 54, 31, .18);
    background: rgba(255, 255, 255, .24);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.dashboard-body .dashboard-commerce-store-grid button:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 70, 34, .55);
}

.dashboard-body .dashboard-commerce-store-grid button.active {
    background: var(--ink);
    color: var(--cream);
}

.dashboard-body .dashboard-commerce-store-grid button small {
    color: var(--rust);
    font: 700 7px Arial, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dashboard-body .dashboard-commerce-store-grid button.active small {
    color: var(--sand);
}

.dashboard-body .dashboard-commerce-store-grid button strong {
    font-size: 22px;
    font-weight: normal;
    line-height: 1.15;
}

.dashboard-body .dashboard-commerce-store-grid button span {
    color: rgba(16, 42, 51, .58);
    font: 9px/1.5 Arial, sans-serif;
}

.dashboard-body .dashboard-commerce-store-grid button.active span {
    color: rgba(241, 221, 194, .66);
}

.dashboard-body #dashboardCommercePanel [data-commerce="products"] {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-body #dashboardCommercePanel [data-commerce="products"] > article {
    padding: 24px;
    border: 1px solid rgba(96, 54, 31, .18);
    background: var(--cream);
}

.dashboard-body #dashboardCommercePanel [data-commerce="products"] > article small {
    color: var(--rust);
    font: 700 7px Arial, sans-serif;
    letter-spacing: 1.5px;
}

.dashboard-body #dashboardCommercePanel [data-commerce="products"] > article h3 {
    margin-top: 12px;
    color: var(--ink);
    font-size: 28px;
    font-weight: normal;
}

.dashboard-body #dashboardCommercePanel [data-commerce="products"] > article p {
    margin-top: 10px;
    color: rgba(16, 42, 51, .66);
    font: 10px/1.6 Arial, sans-serif;
}

.dashboard-body #dashboardCommercePanel [data-commerce="products"] > article button {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    border: 0;
    background: var(--rust);
    color: var(--cream);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 2px;
    cursor: pointer;
}

.dashboard-body #dashboardCommercePanel [data-commerce="products"] > article button:disabled {
    opacity: .45;
    cursor: not-allowed;
}


/* =========================================================
   4. PETS — CRIADOR DE CAVALOS DENTRO DO POP-UP
========================================================= */

.dashboard-body #dashboardHorseCommerce[hidden] {
    display: none !important;
}

.dashboard-body .dashboard-horse-modal-field {
    margin-top: 22px;
    display: grid;
    gap: 8px;
}

.dashboard-body .dashboard-horse-modal-status {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(168, 70, 34, .28);
    background: rgba(168, 70, 34, .08);
    color: var(--leather);
    font: 10px/1.6 Arial, sans-serif;
}

.dashboard-body .dashboard-horse-modal-status[hidden] {
    display: none !important;
}


.dashboard-body .dashboard-horse-modal-field > span {
    color: var(--rust);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 2px;
}

.dashboard-body .dashboard-horse-modal-field > span small {
    font: inherit;
    letter-spacing: 1px;
    opacity: .62;
}

.dashboard-body .dashboard-horse-modal-field input,
.dashboard-body .dashboard-horse-modal-field select {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(96, 54, 31, .20);
    background: rgba(255, 255, 255, .42);
    color: var(--ink);
}

.dashboard-body .dashboard-horse-modal-pending {
    margin-top: 24px;
    padding: 20px;
    border-left: 3px solid var(--rust);
    background: rgba(168, 70, 34, .08);
}

.dashboard-body .dashboard-horse-modal-pending strong {
    color: var(--rust);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 2px;
}

.dashboard-body .dashboard-horse-modal-pending p {
    margin-top: 8px;
    color: rgba(16, 42, 51, .68);
    font: 10px/1.6 Arial, sans-serif;
}

.dashboard-body .dashboard-horse-modal-pending button {
    min-height: 46px;
    margin-top: 14px;
    padding: 0 16px;
    border: 0;
    background: var(--rust);
    color: var(--cream);
    cursor: pointer;
    font: 700 8px Arial, sans-serif;
    letter-spacing: 2px;
}


/* =========================================================
   5. VEÍCULOS — CONTRASTE DO NOVO PAINEL DE TRANSPORTE
========================================================= */

.dashboard-body #dashboardTransportModePanel {
    margin: 34px 0 54px;
    overflow: hidden;
    border: 1px solid rgba(96, 54, 31, .22);
    background: var(--cream);
    color: var(--ink);
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-heading {
    padding: 36px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    background: var(--ink);
    color: var(--cream);
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-heading > div > span {
    color: var(--sand);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 4px;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-heading h3 {
    margin-top: 10px;
    color: var(--cream);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: normal;
    line-height: .95;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-heading p {
    max-width: 900px;
    margin-top: 14px;
    color: rgba(241, 221, 194, .76);
    font: 11px/1.8 Arial, sans-serif;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-heading > strong {
    padding: 10px 14px;
    border: 1px solid rgba(223, 160, 108, .55);
    color: var(--sand);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 2px;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-options {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-warning,
.dashboard-body #dashboardTransportModePanel .dashboard-transport-empty {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px solid rgba(168, 70, 34, .28);
    background: rgba(168, 70, 34, .08);
    color: var(--leather);
    font: 10px/1.6 Arial, sans-serif;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-option {
    min-height: 180px;
    padding: 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr;
    gap: 12px 16px;
    align-items: start;
    border: 1px solid rgba(96, 54, 31, .18);
    background: #f4e5d1;
    color: var(--ink);
    cursor: pointer;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-option.active {
    border-color: var(--rust);
    box-shadow: inset 0 0 0 2px rgba(168, 70, 34, .16);
    background: #ead0ad;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-option input {
    grid-column: 3;
    grid-row: 1;
    width: 20px;
    height: 20px;
    accent-color: var(--rust);
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    font-size: 28px;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-option > div {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-option strong {
    color: var(--ink);
    font-size: 23px;
    font-weight: normal;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-option p {
    margin-top: 8px;
    color: rgba(16, 42, 51, .68);
    font: 10px/1.6 Arial, sans-serif;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-option small {
    grid-column: 2 / 4;
    color: var(--rust);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 1px;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-vehicle-picker {
    margin: 0 24px 24px;
    padding: 20px;
    border: 1px solid rgba(96, 54, 31, .18);
    background: rgba(255, 255, 255, .34);
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-vehicle-picker label {
    display: grid;
    gap: 8px;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-vehicle-picker label > span {
    color: var(--rust);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 2px;
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-vehicle-picker select {
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid rgba(96, 54, 31, .22);
    background: var(--cream);
    color: var(--ink);
}

.dashboard-body #dashboardTransportModePanel .dashboard-transport-vehicle-picker small {
    display: block;
    margin-top: 10px;
    color: rgba(16, 42, 51, .64);
    font: 9px/1.6 Arial, sans-serif;
}

.dashboard-body #dashboardTransportModePanel #dashboardTransportSave {
    width: 100%;
    min-height: 62px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-top: 1px solid rgba(96, 54, 31, .18);
    background: var(--rust);
    color: var(--cream);
    cursor: pointer;
    font: 700 9px Arial, sans-serif;
    letter-spacing: 2.5px;
}

.dashboard-body #dashboardTransportModePanel #dashboardTransportSave:disabled {
    opacity: .45;
    cursor: not-allowed;
}


/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 980px) {
    .dashboard-body .dashboard-dice-global-history,
    .dashboard-body .dashboard-commerce-store-grid,
    .dashboard-body #dashboardCommercePanel [data-commerce="products"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-body #dashboardTransportModePanel .dashboard-transport-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .dashboard-body .dashboard-roll-history-tabs,
    .dashboard-body .dashboard-dice-global-history,
    .dashboard-body .dashboard-commerce-store-grid,
    .dashboard-body #dashboardCommercePanel [data-commerce="products"] {
        grid-template-columns: 1fr;
    }

    .dashboard-body .dashboard-roll-history-tabs button {
        min-height: 125px;
    }

    .dashboard-body #dashboardCommercePanel {
        padding: 28px 20px;
    }

    .dashboard-body #dashboardTransportModePanel .dashboard-transport-heading {
        padding: 28px 22px;
        flex-direction: column;
    }

    .dashboard-body #dashboardTransportModePanel .dashboard-transport-options {
        padding: 18px;
    }

    .dashboard-body #dashboardTransportModePanel .dashboard-transport-option {
        min-height: 0;
        grid-template-columns: auto 1fr auto;
    }

    .dashboard-body #dashboardTransportModePanel .dashboard-transport-vehicle-picker {
        margin: 0 18px 18px;
    }
}
