/*
Theme Name:   ECU Check Theme
Theme URI:    https://www.ecucheck.co.uk
Description:  A Child Theme of Sydney Pro 2
Author:       Quantum Tuning Ltd
Author URI:   https://www.quantumtuning.co.uk
Template:     sydney-pro-ii
Version:      1.0.0
Text Domain:  sydpro2-ecucheck
*/

h3.warning-title {
	color: #664d03;
	margin-top: 0 !important;
}

h3.danger-title {
	color: #842029;
	margin-top: 0 !important;
}

h3.secondary-title {
	color: #41464b;
	margin-top: 0 !important;
}

h3.success-title {
	color: #0f5132;
	margin-top: 0 !important;
}

.ec-filename {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.woocommerce-MyAccount-content table {
    table-layout: fixed;
    width: 100%;
}

.ec-token-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ec-token-controls {
    display: flex;
    gap: 4px;
}

.ec-token-balance {
    font-size: 14px;
}

.ec-users-table {
    width: 100%;
    table-layout: fixed;
}

.ec-users-table th,
.ec-users-table td {
    vertical-align: top;
}

.ec-users-table th:nth-child(1),
.ec-users-table td:nth-child(1) {
    width: 32%;
}

.ec-users-table th:nth-child(2),
.ec-users-table td:nth-child(2) {
    width: 18%;
    white-space: nowrap;
}

.ec-users-table th:nth-child(3),
.ec-users-table td:nth-child(3) {
    width: 18%;
}

.ec-users-table th:nth-child(4),
.ec-users-table td:nth-child(4) {
    width: 22%;
    white-space: nowrap;
}

.ec-users-table th:nth-child(5),
.ec-users-table td:nth-child(5) {
    width: 10%;
    white-space: nowrap;
}

.ec-user-name {
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-word;
}

.ec-user-email {
    font-size: 13px;
    color: #374151;
    word-break: break-word;
}

.ec-token-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ec-token-balance {
    font-weight: 600;
}

.ec-token-controls {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.ec-users-table .ec-admin-actions {
    white-space: nowrap;
}

.ec-users-table .ec-btn {
    padding: 4px 8px;
    font-size: 12px;
}

.ec-clickable-row {
    cursor: pointer;
}

.ec-clickable-row:hover td {
    background: #f8fafc;
}

/* =========================
   TRANSACTIONS TABLE LAYOUT
   ========================= */

.ec-transactions-table {
    table-layout: fixed;
    width: 100%;
}

.ec-transactions-table th,
.ec-transactions-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* Narrow columns */
.ec-transactions-table .col-change,
.ec-transactions-table .col-balance {
    width: 80px;
    text-align: center;
    white-space: nowrap;
}

/* Medium columns */
.ec-transactions-table .col-date {
    width: 140px;
    white-space: nowrap;
}

.ec-transactions-table .col-user {
    width: 150px;
	white-space: normal;
}

.ec-transactions-table .col-type {
    width: 150px;
    white-space: nowrap;
}

/* Wide columns */
.ec-transactions-table .col-reference {
    width: 220px;
}

.ec-transactions-table .col-note {
    width: auto; /* takes remaining space */
}

/* Allow wrapping for long text */
.ec-transactions-table .col-note,
.ec-transactions-table .col-reference {
    white-space: normal;
    word-break: break-word;
}

.ec-user-ip {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}
.ec-user-location {
    color: #999;
    font-size: 12px;
}

.ec-inline-access-select {
    min-width: 160px;
	height: 36px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font: inherit;
    background: #fff;
}

.ec-users-table .ec-col-tokens,
.ec-users-table .ec-col-tokens {
    width: 280px;
}

.ec-users-table .ec-token-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.ec-users-table .ec-token-controls {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.ec-users-table .ec-token-controls .ec-btn {
    flex: 0 0 auto;
}

.woocommerce-account .page-header,
.woocommerce-account .entry-header,
.woocommerce-account .page-title,
.woocommerce-account .hero,
.woocommerce-account .titlebar {
    display: none !important;
}

.woocommerce-account .site-main,
.woocommerce-account .content-area,
.woocommerce-account .page-wrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.woocommerce-account h3 {
    margin-top: 0.2em !important;
}


