/* ==========================================================================
   Taxheaven News — Table tools
   File: /public/assets/front/news-table-tools/news-table-tools.css
   v1.0 (03/11/2026)
   1. Κουμπί «Πλήρες πλάτος» στην αριστερή μπάρα (body.n2-wide)
   2. Κουμπί «Μεγέθυνση πίνακα» πάνω σε πίνακες που δεν χωρούν + modal
   ========================================================================== */

:root {
    --ntt-orange: #f3a01c;
    --ntt-orange-dark: #d98a0c;
    --ntt-on: #1e8449;
    --ntt-on-bg: #e8f8ef;
    --ntt-on-border: #bfe3cf;
}

/* ============ 1. ΠΛΗΡΕΣ ΠΛΑΤΟΣ ============ */

/* κουμπί στη μπάρα εργαλείων */
.n2-tb-wide {
    background: var(--ntt-orange);
    border-color: var(--ntt-orange);
    color: #1b1b1b;
    font-size: 17px;
}
.n2-tb-wide:hover {
    background: var(--ntt-orange-dark);
    border-color: var(--ntt-orange-dark);
    color: #1b1b1b;
}
.n2-tb-wide[aria-pressed="true"] {
    background: var(--ntt-on);
    border-color: var(--ntt-on);
    color: #fff;
}
.n2-tb-wide[aria-pressed="true"]:hover { background: #166a3a; border-color: #166a3a; color: #fff; }

/* η σελίδα σε πλήρες πλάτος */
body.n2-wide .n2-main .n2-container { max-width: none; }
body.n2-wide .n2-grid-3col { grid-template-columns: 52px minmax(0, 1fr); }
body.n2-wide .n2-sidebar { display: none; }

/* banner πάνω από το άρθρο */
.ntt-wide-banner {
    display: none;
    align-items: center;
    gap: 10px;
    background: var(--ntt-on-bg);
    color: var(--ntt-on);
    border: 1px solid var(--ntt-on-border);
    border-radius: var(--n2-r-sm, 8px);
    padding: 8px 14px;
    font-size: 13px;
    margin: 0 0 14px;
}
body.n2-wide .ntt-wide-banner { display: flex; }
.ntt-wide-banner button {
    margin-left: auto;
    background: none;
    border: 1px solid var(--ntt-on);
    color: var(--ntt-on);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}
.ntt-wide-banner button:hover { background: var(--ntt-on); color: #fff; }

@media (max-width: 1100px) {
    body.n2-wide .n2-grid-3col { grid-template-columns: minmax(0, 1fr); }
}

/* ============ 2. ΠΙΝΑΚΕΣ ============ */

/* wrapper γύρω από κάθε εξωτερικό πίνακα της είδησης */
.n2-tscroll {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 18px 0;
}
.n2-tscroll > table { margin: 0 !important; }

/* σκιά στη δεξιά άκρη όταν υπάρχει κρυφό περιεχόμενο */
.n2-tscroll.ntt-overflow::after {
    content: '';
    position: sticky;
    right: 0;
    top: 0;
    float: right;
    width: 26px;
    height: 100%;
    margin-left: -26px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(0,0,0,.13));
    pointer-events: none;
}

/* κουμπί μεγέθυνσης (μόνο στους πίνακες με .ntt-can-expand) */
.ntt-expand {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    align-items: center;
    gap: 6px;
    background: var(--ntt-orange);
    color: #1b1b1b;
    border: 0;
    border-radius: 0 0 0 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    text-align: left;
}
.ntt-expand:hover { background: var(--ntt-orange-dark); }
.n2-tscroll.ntt-can-expand .ntt-expand { display: inline-flex; }
.n2-tscroll.ntt-can-expand { padding-top: 30px; }
.ntt-swipe {
    display: none;
    color: var(--n2-text-3, #8896a7);
    font-size: 12px;
    margin: -12px 0 14px;
}
@media (max-width: 768px) {
    .n2-tscroll.ntt-overflow + .ntt-swipe { display: block; }
}

/* ---------- modal ---------- */
.ntt-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    flex-direction: column;
    padding: 14px;
    background: rgba(12, 45, 72, .78);
}
.ntt-modal.ntt-open { display: flex; }
.ntt-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 10px 10px 0 0;
    padding: 10px 14px;
    border-bottom: 1px solid var(--n2-border, #e5e8ed);
}
.ntt-bar .ntt-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--n2-text-2, #4a5568);
    margin-right: auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ntt-bar button {
    background: #fff;
    border: 1px solid var(--n2-border-2, #d0d5dd);
    border-radius: 6px;
    padding: 6px 11px;
    font-size: 13px;
    font-family: inherit;
    color: var(--n2-text-2, #4a5568);
    cursor: pointer;
    line-height: 1.3;
}
.ntt-bar button:hover { background: var(--n2-off, #f8f9fb); border-color: var(--n2-brand, #1a5276); color: var(--n2-brand, #1a5276); }
.ntt-bar button.ntt-close { background: var(--ntt-orange); border-color: var(--ntt-orange); color: #1b1b1b; font-weight: 600; }
.ntt-bar button.ntt-close:hover { background: var(--ntt-orange-dark); border-color: var(--ntt-orange-dark); }
.ntt-body {
    flex: 1;
    min-height: 0;
    background: #fff;
    border-radius: 0 0 10px 10px;
    overflow: auto;
    padding: 14px 16px 20px;
}
.ntt-body .ntt-hint { color: var(--n2-text-3, #8896a7); font-size: 12px; margin: 0 0 10px; }
.ntt-body table {
    width: 100% !important;
    border-collapse: collapse;
    font-size: var(--ntt-zoom, 14px) !important;
    line-height: 1.5;
    margin: 0 !important;
}
.ntt-body table th,
.ntt-body table td {
    border: 1px solid var(--n2-border-2, #d0d5dd);
    padding: 8px 10px;
    vertical-align: top;
    font-size: inherit !important;
}
.ntt-body table thead th { position: sticky; top: 0; z-index: 2; background: var(--n2-off, #f8f9fb); }
.ntt-body table thead tr:nth-child(2) th { top: var(--ntt-thead1, 0px); }
.ntt-body.ntt-sticky-col table tbody tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 1px 0 0 var(--n2-border-2, #d0d5dd);
}
@media (max-width: 768px) {
    .ntt-modal { padding: 0; }
    .ntt-bar { border-radius: 0; }
    .ntt-body { border-radius: 0; padding: 10px; }
}
