/* ─── Simple (tablet) view ────────────────────────────────────────────────
   Full-screen, touch-friendly κέλυφος & φόρμες. Ενεργό μόνο στα /tablet/*
   routes (μέσω TabletLayout). Δεν επηρεάζει την κανονική desktop προβολή. */

.tablet-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #eef2f7;
}

.tablet-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem 1rem;
    background: #052767;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.tablet-topbar .tablet-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.tablet-topbar .tablet-brand img {
    border-radius: 4px;
}

.tablet-topbar .tablet-company {
    color: #9ec7ff;
    font-weight: 500;
}

.tablet-main {
    flex: 1;
    padding: 1rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ─── Home tiles ─── */
.tablet-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: .5rem;
}

.tablet-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    text-align: center;
    text-decoration: none;
    padding: 2rem 1rem;
    min-height: 190px;
    background: #fff;
    color: #052767;
    border: 1px solid #d6dee9;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .06);
    transition: transform .1s, box-shadow .1s, background .1s;
}

.tablet-tile:hover,
.tablet-tile:focus {
    background: #f4f8ff;
    color: #052767;
    box-shadow: 0 6px 14px rgba(5, 39, 103, .18);
    transform: translateY(-2px);
}

.tablet-tile:active {
    transform: translateY(0);
}

.tablet-tile .bi {
    font-size: 3rem;
    line-height: 1;
    color: #0a7d34;
}

.tablet-tile .tablet-tile-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.tablet-tile .tablet-tile-sub {
    font-size: .85rem;
    color: #6b7a90;
}

/* ─── Forms ─── */
.tablet-form {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #d6dee9;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .06);
}

.tablet-form h1 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.tablet-field {
    margin-bottom: 1rem;
}

.tablet-field > label {
    display: block;
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: .3rem;
    color: #334;
}

/* Μεγάλα, touch-friendly controls */
.tablet-form .form-control,
.tablet-form .form-select {
    font-size: 1.15rem;
    padding: .7rem .9rem;
    min-height: 3rem;
}

.tablet-form .form-check-input {
    width: 1.6rem;
    height: 1.6rem;
    margin-top: 0;
}

.tablet-form .form-check {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 3rem;
}

.tablet-form .form-check-label {
    font-size: 1.05rem;
}

.tablet-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: .75rem;
    color: #052767;
}

.tablet-pick-btn {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    padding: 1rem 1.1rem;
    margin-bottom: .6rem;
    border-radius: 12px;
}

/* ─── Τμήμα Ταμειακής (κατηγορίες + edit μόνο TAMEIAKIDEP) ─── */
.tablet-cat-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.tablet-cat-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .6rem;
    border: 1px solid #e2e8f1;
    border-radius: 10px;
    background: #fbfcfe;
}

.tablet-cat-info {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 1;
    min-width: 0;
}

.tablet-cat-code {
    font-size: .9rem;
    flex-shrink: 0;
}

.tablet-cat-descr {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.05rem;
}

.tablet-form .form-control.tablet-cat-dep {
    width: 6.5rem;
    flex-shrink: 0;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ─── Step indicator (wizard POS) ─── */
.tablet-steps {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
}

.tablet-step {
    padding: .25rem .7rem;
    border-radius: 999px;
    background: #eef2f7;
    color: #6b7a90;
    font-weight: 600;
}

.tablet-step.active {
    background: #052767;
    color: #fff;
}

.tablet-step.done {
    background: #d7ecdd;
    color: #0a7d34;
}

.tablet-step-sep {
    color: #b6c2d2;
    font-size: 1.2rem;
}

/* ─── POS management ─── */
.tablet-pos-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
    width: 100%;
    text-align: left;
    padding: .7rem .8rem;
    border: 1px solid #e2e8f1;
    border-radius: 10px;
    background: #fbfcfe;
}

.tablet-pos-row:hover {
    background: #f4f8ff;
    border-color: #cdd9e8;
}

.tablet-pos-tid {
    font-weight: 700;
    font-family: ui-monospace, monospace;
    color: #052767;
}

.tablet-pos-descr {
    font-size: 1.02rem;
}

.tablet-pos-meta {
    font-size: .8rem;
    color: #6b7a90;
}

.tablet-pos-line {
    border: 1px solid #e2e8f1;
    border-radius: 10px;
    padding: .6rem .7rem;
    margin-bottom: .6rem;
    background: #fbfcfe;
}

/* ─── Modifier categories (BRANDGROUPS tree) ─── */
.tablet-modcat-row {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.tablet-modcat-main {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1;
    min-width: 0;
    text-align: left;
    padding: .6rem .7rem;
    border: 1px solid #e2e8f1;
    border-radius: 10px;
    background: #fbfcfe;
}

.tablet-modcat-main:hover { background: #f4f8ff; border-color: #cdd9e8; }

.tablet-modcat-bullet { color: #9ab; flex-shrink: 0; }

.tablet-modcat-descr {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.05rem;
    font-weight: 600;
    color: #052767;
}

.tablet-modcat-code {
    font-family: ui-monospace, monospace;
    font-size: .8rem;
    color: #6b7a90;
    flex-shrink: 0;
}

/* ─── Εκπτώσεις Κατηγοριών Συναλλασσομένων (markcategdisc) ─── */
.tablet-check {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: #223;
    padding: .5rem 0;
    cursor: pointer;
}
.tablet-check input[type=checkbox] {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.tablet-fieldset {
    border: 1px solid #d5dce6;
    border-radius: 14px;
    padding: .9rem 1rem;
    margin: 0 0 1.1rem;
}
.tablet-fieldset > legend {
    float: none;
    width: auto;
    font-size: 1rem;
    font-weight: 700;
    color: #052767;
    padding: 0 .4rem;
    margin-bottom: .3rem;
}

.tablet-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.tablet-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #eef3fb;
    border: 1px solid #cfdcf0;
    border-radius: 999px;
    padding: .35rem .3rem .35rem .8rem;
    font-size: .95rem;
    max-width: 100%;
}
.tablet-chip-txt {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70vw;
}
.tablet-chip-x {
    border: none;
    background: #d64b4b;
    color: #fff;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

.tablet-pick-list {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-top: .5rem;
    max-height: 40vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.tablet-pick-row {
    text-align: left;
    font-size: 1.02rem;
    padding: .7rem .9rem;
    border: 1px solid #d5dce6;
    border-radius: 10px;
    background: #fff;
}
.tablet-pick-row:hover {
    background: #eef3fb;
}

/* ─── Εισαγωγή από Excel (import) ─── */
.tablet-cols > summary {
    font-weight: 600;
    color: #052767;
    cursor: pointer;
    padding: .3rem 0;
}
.tablet-col-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.tablet-col, .tablet-col-req {
    display: inline-block;
    font-family: ui-monospace, monospace;
    font-size: .82rem;
    padding: .25rem .6rem;
    margin: 0;
    border-radius: 7px;
    background: #eef3fb;
    border: 1px solid #cfdcf0;
}
.tablet-col-req {
    background: #fdecec;
    border-color: #f2c4c4;
    color: #a12; font-weight: 700;
}

.tablet-preview {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #d5dce6;
    border-radius: 10px;
    max-height: 55vh;
    overflow-y: auto;
}
.tablet-preview table {
    border-collapse: collapse;
    font-size: .82rem;
    font-family: ui-monospace, monospace;
    white-space: nowrap;
    min-width: 100%;
}
.tablet-preview th, .tablet-preview td {
    padding: .35rem .55rem;
    border-bottom: 1px solid #eef1f6;
    text-align: left;
}
.tablet-preview thead th {
    position: sticky;
    top: 0;
    background: #f4f7fb;
    color: #052767;
    z-index: 1;
}
.tablet-preview .row-ok  { background: #eafaf0; }
.tablet-preview .row-err { background: #fdecec; }

/* ─── Κίνηση Είδους Μαζί με Άλλο (movebrands) ─── */
.tablet-mb-row {
    border: 1px solid #e2e8f2;
    border-radius: 10px;
    padding: .6rem .7rem;
    margin-bottom: .6rem;
    background: #fbfcfe;
}
.tablet-mb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .4rem;
}
.tablet-mb-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
