/* =========================
   TC DASHBOARD BENDRI STILIAI
   ========================= */
/* WALLET – mygtuko "Išsaugoti" stilius */
.tc-wallet-form-wrap button.button-primary {
    background: #4f46e5;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
}

.tc-wallet-form-wrap button.button-primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.tc-wallet-form-wrap button.button-primary:active {
    background: #3730a3;
    transform: translateY(0);
    box-shadow: none;
}
/* WALLET – laukelis Suma ir select'as */
.tc-wallet-form-wrap input[type="number"],
.tc-wallet-form-wrap select {
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    padding: 4px 10px;
    font-size: 13px;
    outline: none;
    transition: 0.15s ease;
}

.tc-wallet-form-wrap input[type="number"]:focus,
.tc-wallet-form-wrap select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}

/* Pagrindinis dashboard konteineris */
.tc-edit-credits {
    display: inline-block;
    padding: 6px 12px;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.tc-edit-credits:hover {
    background: #e0e7ff;
}

.tc-edit-credits:active {
    background: #c7d2fe;
    transform: scale(0.97);
}


.tc-dashboard {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 80px 40px 60px;  /* tarpai nuo viršaus ir šonų */
    background: #f1f5f9;      /* dashboard fonas */
    box-sizing: border-box;
}

/* Viršutinės metrikų kortelės */
.tc-metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.tc-metric-box {
    flex: 1 1 260px;
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 22px 20px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tc-metric-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin-bottom: 6px;
}

.tc-metric-value {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
}

/* Dashboard antraštė */
.tc-dashboard-title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #0f172a;
}

/* Kortelės (sections) lentelėms ir grafikui */
.tc-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
    overflow: hidden;
}

.tc-card-header {
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tc-card-inner {
    padding: 10px 10px 10px 10px;
    /* jei lentelė per plati – leis horizontalų scroll, o ne nukirps */
    overflow-x: auto;
}

/* =========================
   LENTELĖS
   ========================= */

/* Vienodi tarpai ir lygiavimas visoje dashboard lentelėje */
.tc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tc-table thead {
    background: #f8fafc;
}

.tc-table th,
.tc-table td {
    padding: 9px 12px;       /* tarpai iš visų pusių */
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

.tc-table th {
    font-weight: 600;
    color: #0f172a;
}

.tc-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

/* Kad paskutiniai stulpeliai neatrodytų suspausti */
.tc-users-list th,
.tc-users-list td {
    white-space: nowrap;   /* neskaidytų datos ir tekstų į 2 eilutes */
}

/* Vartotojų lentelė platesnė – jei netelpa į kortelę, atsiras scroll’as */
.tc-table.tc-users-list {
    min-width: 1100px;      /* prireikus gali padidinti ar sumažinti */
}

/* =========================
   TAB'AI (Diena / Savaitė / Mėnuo)
   ========================= */

.tc-card--stats .tc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tc-tabs {
    display: inline-flex;
    gap: 6px;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 999px;
}

.tc-tab {
    border: none;
    background: transparent;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    color: #475569;
}

.tc-tab--active {
    background: #6366f1;
    color: #ffffff;
}

/* Panelių perjungimas */
.tc-tab-panel {
    display: none;
}

.tc-tab-panel--active {
    display: block;
}

/* =========================
   PUSLAPIAVIMAS
   ========================= */

.tc-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
}

.tc-page-link,
.tc-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #0f172a;
    background: #ffffff;
}

.tc-page-link:hover,
.tc-page-number:hover {
    border-color: #6366f1;
}

.tc-page-number--current {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    font-weight: 600;
}

.tc-page-numbers {
    display: inline-flex;
    gap: 4px;
}

/* =========================
   WALLET MYGTUKAS + FORMA
   ========================= */

.tc-wallet-toggle,
.tc-wallet-form-wrap {
    /* kad koks nors kitas CSS nenuslėptų */
    display: inline-block;
}

.tc-wallet-form-wrap {
    display: none;              /* rodoma / slepiama per JS */
    margin-top: 6px;
}

.tc-wallet-form-wrap form {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
    .tc-metrics-row {
        flex-direction: column;
    }
}

/* =========================
   KONTEINERIO PLOTIS –
   TIK DASHBOARD PUSLAPIUI
   ========================= */

/* ČIA PERKĖLĖM IŠ TEMOS CSS:
   dashboard page konteineriui leidžiam pilną plotį,
   bet tik page-id-359 (pakeisk, jei pas tave kitas ID) */
/* KONTEINERIO PLOTIS – TIK DASHBOARD PUSLAPIUI */
body.page-id-359 .max-w-5xl {
    max-width: 100% !important;
}









/* =========================
   PASKUTINIS UŽSAKYMAS
   ========================= */

.tc-card-last-order .tc-card-inner {
    padding: 10px 10px 10px;
}

.tc-last-order-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.tc-last-order-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.tc-last-order-person {
    flex: 1;
    min-width: 0;
}

.tc-last-order-name {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
}

.tc-last-order-email {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-last-order-total {
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
    white-space: nowrap;
}

.tc-last-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.tc-last-order-meta span::before {
    content: "•";
    margin-right: 4px;
    color: #cbd5f5;
}

.tc-last-order-meta span:first-child::before {
    content: "";
    margin-right: 0;
}

/* Kompaktiškesnė "Paskutinis užsakymas" kortelė */
.tc-card-last-order .tc-card-inner {
    padding: 6px 18px 8px;   /* buvo ~14px/16px */
}

.tc-last-order-main {
    margin-bottom: 4px;      /* mažesnis tarpas tarp viršutinės eilutės ir meta */
}

.tc-last-order-avatar {
    width: 30px;             /* buvo 36px */
    height: 30px;
    font-size: 15px;         /* mažesnė raidė */
}

.tc-last-order-name {
    font-size: 14px;
}

.tc-last-order-email {
    font-size: 12px;
}

.tc-last-order-total {
    font-size: 15px;
}

.tc-last-order-meta {
    font-size: 11px;
    gap: 4px;
}