/* ==== G-POS(タブレット全画面)のデザイン ====
 *
 * 店舗で使っているPOS端末の画面に合わせた見た目。
 * iPadを横向きで使う前提で、全画面(サイドバー無し)・大きめのタップ領域にしている。
 *
 *   上部バー … 店ロゴ / 売上合計 / 日付・時計 / 丸いボタン(ホール状況・注文・待機キャスト・設定・トップ)/ 閉じる
 *   本体     … 画面ごとの中身
 */

* { box-sizing: border-box; }

/* hidden を付けた要素は必ず隠す。
   display を指定している要素(ダイアログや一覧の行など)では、
   ブラウザ既定の [hidden] よりクラス側の指定が強く、隠れないため。 */
[hidden] { display: none !important; }

/* 全画面(タブレット版)のときだけ、余白を無くして画面いっぱいに使う。
   PC版ではG-Managerの画面の中に入るため、html/bodyには触らない */
body.ds-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body.ds-body {
    font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
    color: #222;
    /* 布地のような淡いクリーム色の背景 */
    background: radial-gradient(circle at 30% 20%, #fdfbf4 0%, #f5efe0 45%, #eee5d2 100%);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

/* ---------- 上部バー ---------- */
.ds-topbar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .6rem;
    background: linear-gradient(#2b2b2b, #1a1a1a);
    border-bottom: 2px solid #000;
    position: sticky;
    top: 0;
    z-index: 50;
}

.ds-logo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f3e3b6, #c9a227 60%, #8a6a16);
    color: #3a2c05;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 2px 6px rgba(0,0,0,.5);
    text-decoration: none;
}

/* 売上合計 */
.ds-sales {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 .6rem;
    background: linear-gradient(#8a7753, #6d5c3b);
    border: 1px solid #a89468;
    border-radius: 8px;
    padding: .25rem .6rem;
    min-width: 268px;
}

.ds-sales-label {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.05;
    color: #f2d98a;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
    letter-spacing: .05em;
}

.ds-sales-rows {
    font-size: .72rem;
    color: #fff;
}

.ds-sales-rows div {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    line-height: 1.5;
}

.ds-sales-total {
    grid-column: 2;
    text-align: right;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

/* 日付と時計 */
.ds-clock {
    background: linear-gradient(#8a7753, #6d5c3b);
    border: 1px solid #a89468;
    border-radius: 8px;
    padding: .3rem .8rem;
    text-align: center;
    color: #fff;
    flex: 0 0 auto;
}

.ds-clock-date { font-size: .85rem; line-height: 1.3; }
.ds-clock-time { font-size: 1.55rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* 丸いボタン */
.ds-nav {
    display: flex;
    gap: .35rem;
    margin-left: auto;
    align-items: center;
}

.ds-nav-btn {
    position: relative;
    width: 84px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 30%, #efe3c8, #cdbb95 70%, #a8956c);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    letter-spacing: .02em;
    /* 文字が背景に負けないよう、黒い縁取りを付ける */
    text-shadow: -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000;
    box-shadow: 0 2px 5px rgba(0,0,0,.45);
}

.ds-nav-btn.is-current {
    outline: 3px solid #f2d98a;
    outline-offset: -3px;
}

.ds-nav-badge {
    position: absolute;
    top: -2px;
    right: 2px;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e02020;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: none;
    border: 2px solid #fff;
}

.ds-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e02020;
    color: #fff;
    border: 3px solid #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,.5);
}

/* ---------- 本体 ---------- */
.ds-main {
    padding: .9rem 1.1rem 2.2rem;
}

.ds-section-title {
    background: #555;
    color: #fff;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .3em;
    border-radius: 10px;
    padding: .5rem 1rem;
    margin-bottom: 1.2rem;
}

.ds-panel {
    background: rgba(255,255,255,.55);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 360px;
}

.ds-flash {
    background: #fff4d6;
    border: 1px solid #c9a227;
    border-radius: 8px;
    padding: .6rem 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #5a4a00;
}

.ds-empty {
    text-align: center;
    color: #7a6a4a;
    padding: 3rem 1rem;
    font-size: 1.05rem;
    line-height: 2;
}

/* ---------- 卓のカード(ホール状況) ---------- */
.ds-tables {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .8rem 1rem;
}

.ds-table-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #fff;
    border-radius: 14px;
    padding: .5rem .4rem .8rem;
    min-height: 188px;
    text-decoration: none;
    color: #111;
    background: linear-gradient(#cfe0f5 0%, #9dc0ec 18%, #4f8ed8 60%, #2f6cc0 100%);
    box-shadow: 0 3px 7px rgba(0,0,0,.3);
}

.ds-table-card.is-open {
    background: linear-gradient(#ffe6c7 0%, #ffc98b 18%, #f09a3e 60%, #d9761b 100%);
}

.ds-table-card.is-over {
    background: linear-gradient(#ffd0d0 0%, #ff9f9f 18%, #e85656 60%, #c62828 100%);
}

.ds-table-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
    margin-bottom: .3rem;
}

.ds-table-state {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: .25em;
    color: #111;
    margin: auto 0;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.ds-table-lines {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    font-size: .9rem;
    color: #10233c;
    text-align: center;
}

.ds-table-amount {
    font-size: 1.3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ds-table-casts {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
    justify-content: center;
    font-size: .78rem;
}

.ds-table-casts span {
    background: rgba(255,255,255,.75);
    border-radius: 999px;
    padding: 0 .45rem;
}

/* ページ送り */
.ds-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    margin-top: 1.2rem;
}

.ds-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #bdb49c;
    display: inline-block;
}

.ds-dot.is-current { background: #4a4336; }

.ds-pager-arrow {
    position: fixed;
    right: .4rem;
    top: 55%;
    width: 46px;
    height: 110px;
    color: #f0b429;
    font-size: 4rem;
    line-height: 110px;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,.35);
}

.ds-pager-arrow.is-prev { right: auto; left: .4rem; }

.ds-bottom-left {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
}

/* ---------- 大きなボタン(トップ画面) ---------- */
.ds-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 420px));
    justify-content: center;
    gap: 2.5rem 4rem;
    padding: 2rem 0 1rem;
}

.ds-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 215px;
    border-radius: 8px;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,.3);
    border: none;
    cursor: pointer;
}

.ds-tile-visit { background: #00a8f3; }
.ds-tile-companion { background: #00b052; }
.ds-tile-vip { background: #ffc800; color: #4a3b00; }
.ds-tile-center { grid-column: 1 / -1; justify-self: center; width: 290px; }

/* ---------- ボタン ---------- */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: .85rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .4em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,.25);
}

.ds-btn-next { background: #0a84ff; color: #fff; }
.ds-btn-back { background: #b5b5b5; color: #fff; }
.ds-btn-gray { background: #b5b5b5; color: #fff; font-size: 1.1rem; letter-spacing: .15em; padding: .6rem 1.8rem; }

.ds-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.ds-actions .ds-btn { min-width: 430px; }

/* ---------- 人数の増減(来店) ---------- */
.ds-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem 0;
}

.ds-counter-value {
    font-size: 3.5rem;
    font-weight: 400;
    min-width: 90px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.ds-round-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,.3);
}

.ds-round-plus { background: #f5a623; }
.ds-round-minus { background: #f0736f; }

.ds-newface {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 1.1rem 2.2rem;
    font-size: 1.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.ds-newface.is-on { background: #0a84ff; color: #fff; border-color: #0a84ff; }

/* ---------- 来店: お客様とキャスト指名 ---------- */
.ds-visit-grid {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 1rem;
    align-items: start;
}

.ds-guest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    background: rgba(170,170,170,.55);
    border-radius: 10px;
    padding: .7rem 1rem;
    margin-bottom: .6rem;
    font-size: 1.5rem;
}

.ds-guest.is-current { background: rgba(90,90,90,.75); color: #fff; }

.ds-guest-tagbtn {
    background: #0a84ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .35rem 1.1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.ds-search {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: #fff;
    padding: .9rem 1.2rem;
    font-size: 1.5rem;
    color: #333;
}

.ds-cast-list {
    background: rgba(255,255,255,.55);
    border-radius: 12px;
    padding: .6rem;
    max-height: 620px;
    overflow-y: auto;
}

.ds-cast-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.6fr;
    gap: .4rem;
    border-bottom: 1px solid #b9b2a2;
    padding-bottom: .5rem;
    margin-bottom: .5rem;
}

.ds-nom {
    background: #d7d7d7;
    border: none;
    border-radius: 8px;
    padding: .7rem .4rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 92px;
}

.ds-nom-head {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: #222;
}

.ds-nom-mark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    flex: 0 0 auto;
}

.ds-nom.is-on { background: #ff1f1f; }
.ds-nom.is-on .ds-nom-head { color: #fff; }
.ds-nom.is-on .ds-nom-mark { background: #fff; box-shadow: inset 0 0 0 3px #ff1f1f; }

.ds-nom-price {
    margin-top: auto;
    text-align: center;
    font-size: 1.3rem;
    color: #222;
    font-variant-numeric: tabular-nums;
}

.ds-nom-price small { display: block; font-size: .7rem; color: #555; }

.ds-cast-name {
    background: #e6e6e6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 1rem;
    font-size: 1.7rem;
    line-height: 1.15;
    /* 「お客様1・お客様2」が付いても、名前が折り返さないようにする */
    white-space: nowrap;
    overflow: hidden;
}

/* ---------- 卓を選ぶ ---------- */
.ds-seat-pick {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .8rem 1rem;
}

.ds-seat-btn {
    border: 2px solid #fff;
    border-radius: 12px;
    background: linear-gradient(#cfe0f5, #4f8ed8 60%, #2f6cc0);
    color: #10233c;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1.6rem .5rem;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,.25);
}

.ds-seat-btn:disabled {
    background: #cfc9bb;
    color: #7c7667;
    cursor: not-allowed;
}

/* iPadの横向き(1024px前後)で5列が窮屈なときは4列にする */
@media (max-width: 1100px) {
    .ds-visit-grid { grid-template-columns: 300px 1fr; }
    .ds-actions .ds-btn { min-width: 0; flex: 1; }
}

@media (max-width: 900px) {
    .ds-tables, .ds-seat-pick { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 820px) {
    .ds-tables, .ds-seat-pick { grid-template-columns: repeat(3, 1fr); }
    .ds-sales { min-width: 0; }
    .ds-nav-btn { width: 74px; font-size: .95rem; }
}

/* ---------- 待機キャスト ---------- */
.ds-toolbar {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: .8rem;
}

.ds-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: linear-gradient(#6d5c3b, #4e4129);
    color: #f6ecd2;
    border: 1px solid #a89468;
    border-radius: 999px;
    padding: .55rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ds-pill.is-on { background: linear-gradient(#8a7753, #6d5c3b); color: #fff; }

.ds-pill-badge {
    position: absolute;
    top: -8px;
    right: -6px;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e02020;
    color: #fff;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.ds-toolbar-search { flex: 1 1 220px; max-width: 420px; font-size: 1.1rem; padding: .55rem 1rem; }
.ds-toolbar-note { color: #6b6250; font-size: .95rem; }

.ds-newcast {
    display: flex;
    gap: .6rem;
    align-items: center;
    margin-bottom: .8rem;
}

.ds-cast-lines {
    background: rgba(255,255,255,.5);
    border-radius: 12px;
    padding: .4rem 1rem;
}

.ds-cast-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #bdb5a3;
    padding: .55rem .2rem;
}

.ds-cast-line:last-child { border-bottom: none; }
.ds-cast-line.is-inactive { opacity: .55; }

.ds-cast-line-name {
    flex: 1;
    font-size: 1.9rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.ds-cast-tag {
    background: #6d5c3b;
    color: #fff;
    border-radius: 999px;
    font-size: .8rem;
    padding: .1rem .7rem;
}

.ds-cast-tag.is-off { background: #8a8a8a; }

.ds-add-btn {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: none;
    background: #c9a86a;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    flex: 0 0 auto;
}

.ds-add-btn.is-on { background: #00a65a; }

.ds-edit-btn {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: none;
    background: #1d5c8f;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    flex: 0 0 auto;
}

/* ---------- ダイアログ ---------- */
.ds-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.ds-modal {
    background: #d7d7d7;
    border-radius: 12px;
    padding: 1rem;
    width: min(620px, 92vw);
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
}

.ds-modal-title {
    background: linear-gradient(#b89a62, #a08750);
    color: #fff;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 8px;
    padding: .5rem;
    margin-bottom: .8rem;
}

.ds-modal-input {
    width: 100%;
    border: 2px solid #7fb4e8;
    border-radius: 8px;
    padding: .9rem 1rem;
    font-size: 1.6rem;
    margin-bottom: .8rem;
}

.ds-modal-tags {
    display: flex;
    gap: .8rem;
    margin-bottom: .9rem;
}

.ds-modal-tag {
    flex: 1;
    background: #c3c3c3;
    border-radius: 8px;
    padding: .9rem;
    text-align: center;
    font-size: 1.3rem;
    cursor: pointer;
    user-select: none;
}

.ds-modal-tag.is-on { background: #0a84ff; color: #fff; }

.ds-modal-submit {
    width: 100%;
    background: #0a84ff;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .9rem;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
}

.ds-modal-cancel {
    width: 100%;
    background: none;
    border: none;
    color: #555;
    padding: .6rem;
    font-size: 1rem;
    cursor: pointer;
}

/* ---------- 設定(3つの列) ---------- */
.ds-settings {
    display: grid;
    grid-template-columns: 270px 1fr 1fr;
    background: rgba(255,255,255,.45);
    border-radius: 10px;
    overflow: hidden;
    min-height: calc(100vh - 150px);
}

.ds-set-col {
    border-right: 1px solid #cfc6ae;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ds-set-col.is-detail { border-right: none; }

.ds-set-head {
    background: linear-gradient(#b89a62, #a08750);
    color: #fff;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .3em;
    padding: .5rem;
    position: relative;
}

.ds-set-add {
    position: absolute;
    left: .6rem;
    top: .45rem;
    background: #29a8e0;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .25rem 1.1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
}

.ds-set-list {
    overflow-y: auto;
    flex: 1;
    padding: .4rem 0;
}

.ds-set-item {
    display: block;
    margin: .3rem .5rem;
    padding: .8rem 1rem;
    border-radius: 8px;
    background: linear-gradient(#f3ede1, #e3dac8);
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
}

.ds-set-item.is-current {
    background: linear-gradient(#8a8a8a, #6f6f6f);
    color: #fff;
}

.ds-set-row {
    display: block;
    padding: .45rem 1rem;
    border-bottom: 1px solid #c9c0a8;
    color: #222;
    text-decoration: none;
}

.ds-set-row small { display: block; font-size: .72rem; color: #7a6f57; }
.ds-set-row span { font-size: 1.35rem; }
.ds-set-row.is-current { background: rgba(255,255,255,.8); }
.ds-set-empty { padding: 1.5rem 1rem; color: #7a6f57; }

.ds-set-detail {
    padding: 1.2rem 1.4rem;
    overflow-y: auto;
    font-size: 1.02rem;
    line-height: 1.9;
}

.ds-f-label { display: block; font-size: 1.05rem; margin: .9rem 0 .35rem; }

.ds-f-input {
    width: 100%;
    border: 2px solid #7fb4e8;
    border-radius: 8px;
    padding: .65rem .9rem;
    font-size: 1.1rem;
    background: #fff;
}

.ds-f-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

.ds-f-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 1rem 0;
    font-size: 1.05rem;
}

.ds-f-save {
    background: #0a84ff;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .7rem 2rem;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
}

.ds-f-delete {
    background: none;
    border: none;
    color: #c62828;
    font-size: .95rem;
    cursor: pointer;
    text-decoration: underline;
}

/* プリンターのテスト結果 */
.pos-log {
    background: #111;
    color: #ddd;
    padding: .6rem;
    border-radius: 8px;
    font-size: .85rem;
    max-height: 220px;
    overflow: auto;
    line-height: 1.6;
}

/* ---------- 伝票(来客中の卓) ---------- */
.ds-tab-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .8rem;
}

.ds-tab-name {
    background: linear-gradient(#a6895a, #8a7046);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 1rem 1.6rem;
}

.ds-tab-tagform {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: #8fd8f5;
    border-radius: 10px;
    padding: .4rem .6rem;
}

.ds-tab-tagicon { font-size: 1.4rem; }

.ds-tab-taginput {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    width: 190px;
    outline: none;
}

.ds-tab-guests {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: rgba(150,150,150,.5);
    border-radius: 10px;
    padding: .35rem .8rem;
}

.ds-guest-count { font-size: 1.5rem; font-weight: 700; }

.ds-guest-step {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
}

.ds-guest-step.is-plus { background: #4aa3df; }
.ds-guest-step.is-minus { background: #7f9bb5; }

.ds-tab-closed {
    background: #8a8a8a;
    color: #fff;
    border-radius: 999px;
    padding: .4rem 1.2rem;
    font-weight: 700;
}

.ds-tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.ds-tab-left, .ds-tab-right {
    background: rgba(255,255,255,.5);
    border: 1px solid #c3bba6;
    border-radius: 10px;
    overflow: hidden;
    min-height: 330px;
}

.ds-tab-right {
    background: none;
    border: none;
    min-height: 0;
}

.ds-tab-left-head {
    background: linear-gradient(#f0c75a, #e3b63f);
    color: #4a3b00;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    padding: .45rem;
}

.ds-tab-block-head {
    background: #4a4a4a;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: .3rem .8rem;
}

.ds-tab-row {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .55rem .9rem;
    font-size: 1.25rem;
}

.ds-tab-row-price { margin-left: auto; font-variant-numeric: tabular-nums; }
.ds-tab-row-qty { width: 3.5em; text-align: right; color: #333; }

.ds-tab-set {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .6rem .9rem 1rem;
}

.ds-tab-set-time { font-size: 1.1rem; color: #333; }
.ds-tab-set-price { font-size: 1.7rem; font-weight: 500; }
.ds-tab-set-price span { font-size: 1.1rem; color: #555; }

.ds-round-edit, .ds-round-extend, .ds-round-undo, .ds-round-auto {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    flex: 0 0 auto;
}

.ds-round-edit { background: #f2938f; margin-left: auto; }
.ds-round-extend { background: #29a8e0; }
.ds-round-undo { background: #9b9b9b; width: 60px; height: 60px; font-size: .95rem; }
/* 自動 … 過ぎた時間のぶんだけ、まとめて延長する */
.ds-round-auto { background: #8a8f3c; }

.ds-ext-card {
    background: linear-gradient(#f3c98c, #efb765);
    border-radius: 10px;
    padding: .6rem;
    margin-bottom: .8rem;
}

.ds-ext-top { display: flex; align-items: center; gap: .6rem; }
.ds-ext-name { font-size: 1.2rem; font-weight: 700; color: #3a2c05; }

.ds-ext-spec {
    background: rgba(255,255,255,.55);
    border-radius: 6px;
    padding: .1rem .7rem;
    font-size: .95rem;
    display: inline-block;
    margin-top: .2rem;
}

.ds-ext-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3a2c05;
    padding: .4rem .2rem;
}

.ds-ext-guests {
    background: #1d1d1d;
    color: #fff;
    border-radius: 6px;
    padding: .4rem .7rem;
    font-size: 1.05rem;
}

.ds-ext-guest { line-height: 1.7; }
.ds-ext-guest span { margin-left: 1.5rem; }

.ds-fee {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #c3bba6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.ds-fee-head {
    background: linear-gradient(#f6e2b4, #efd79b);
    font-size: 1.1rem;
    font-weight: 700;
    padding: .2rem .8rem;
}

.ds-fee-col + .ds-fee-col { border-left: 1px solid #c3bba6; }
.ds-fee-value { font-size: 1.9rem; font-weight: 700; text-align: right; padding: .3rem .8rem; font-variant-numeric: tabular-nums; }
.ds-fee-note { font-size: .72rem; color: #6b6250; padding: 0 .8rem .4rem; }

.ds-tab-actions {
    display: flex;
    gap: .7rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.ds-act {
    border: none;
    border-radius: 999px;
    padding: .8rem 1.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.ds-act.is-olive { background: #8a9a2b; }
.ds-act.is-violet { background: #8f8ff0; }
.ds-act.is-brown { background: #8a7046; font-size: 1.5rem; padding: .8rem 3rem; }
.ds-act.is-orange { background: #f5a623; font-size: 1.5rem; padding: .8rem 3rem; }

.ds-menu-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    padding: .6rem;
}

.ds-menu-tile {
    width: 100%;
    background: linear-gradient(#fdfbf4, #e9e1cf);
    border: 1px solid #c3bba6;
    border-radius: 8px;
    padding: .7rem .4rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.ds-menu-tile small { color: #6b6250; }
.ds-menu-form { display: contents; }

.ds-row-del {
    background: none;
    border: none;
    color: #c62828;
    font-size: 1.4rem;
    cursor: pointer;
}

.ds-cast-add {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: .5rem;
    align-items: end;
    margin-top: .8rem;
}

/* iPad横(1024px)では実機と同じ左右2列のまま。縦向きなど狭いときだけ1列にする */
@media (max-width: 820px) {
    .ds-tab-grid { grid-template-columns: 1fr; }
}

/* ---------- 利用明細(伝票明細) ---------- */
.ds-detail-box {
    background: #fff;
    border-radius: 10px;
    padding: .8rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.ds-detail-title {
    background: #b9b9b9;
    border-radius: 6px;
    padding: .5rem 1rem;
    font-size: 1.4rem;
    margin-bottom: .7rem;
}

.ds-detail-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
}

.ds-detail-col {
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    overflow: hidden;
    background: #efefef;
}

.ds-detail-col-head {
    background: #5a5a5a;
    color: #fff;
    text-align: center;
    font-size: 1.15rem;
    padding: .35rem;
}

.ds-detail-col-body { min-height: 230px; padding: .4rem .2rem; }

.ds-detail-sub {
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
    font-weight: 700;
    padding: .2rem .6rem;
}

.ds-detail-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .6rem;
    font-size: 1.1rem;
}

.ds-detail-amount { margin-left: auto; font-variant-numeric: tabular-nums; }
.ds-detail-qty { width: 3.2em; text-align: right; color: #333; }

.ds-detail-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .8rem;
    flex-wrap: wrap;
}

.ds-detail-sums div { display: flex; gap: 2.5rem; font-size: 1.05rem; line-height: 1.8; }
.ds-detail-sums div span { min-width: 9em; }
.ds-detail-sums div b { font-variant-numeric: tabular-nums; }
.ds-detail-sums .is-total { font-size: 1.8rem; }
.ds-detail-btns { display: flex; gap: 1rem; }

/* ---------- 会計(入金) ---------- */
.ds-pay-head {
    display: flex;
    justify-content: space-between;
    background: #b9b9b9;
    border-radius: 8px;
    padding: .5rem 1.2rem;
    font-size: 1.5rem;
    margin-bottom: .8rem;
}

.ds-pay-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1rem;
    align-items: start;
}

.ds-pay-left {
    background: rgba(214,201,170,.45);
    border-radius: 10px;
    padding: .6rem;
}

.ds-pay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    background: rgba(255,255,255,.25);
    border-radius: 6px;
    padding: .45rem 1rem;
    font-size: 1.5rem;
    margin-bottom: .25rem;
}

.ds-pay-row.is-head, .ds-pay-row.is-total { background: rgba(190,175,140,.55); }
.ds-pay-row.is-small { font-size: 1rem; background: rgba(255,255,255,.5); }
.ds-pay-row b { font-variant-numeric: tabular-nums; }
.ds-pay-gap { height: .8rem; }

.ds-pay-unpaid {
    display: flex;
    justify-content: space-between;
    background: rgba(190,175,140,.75);
    border-radius: 6px;
    padding: .6rem 1rem;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: .8rem;
}

.ds-pay-right {
    background: rgba(214,201,170,.35);
    border-radius: 10px;
    padding: .8rem;
    position: relative;
    min-height: 430px;
}

.ds-pay-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }

.ds-pay-tab {
    background: #b4b4b4;
    color: #333;
    border-radius: 8px;
    padding: .7rem 1.1rem;
    font-size: 1.2rem;
    text-decoration: none;
    min-width: 92px;
    text-align: center;
}

.ds-pay-tab.is-on { background: #5a5a5a; color: #fff; }

.ds-pay-amount {
    width: 100%;
    border: 2px solid #7fb4e8;
    border-radius: 8px;
    background: #fff;
    font-size: 2.4rem;
    text-align: right;
    padding: .4rem 1rem;
    font-variant-numeric: tabular-nums;
}

.ds-pay-brandname { font-size: 1.2rem; font-weight: 700; margin-bottom: .3rem; }

.ds-pay-sub { display: flex; align-items: center; gap: .8rem; margin-top: .6rem; }
.ds-pay-subnote { color: #6b6250; font-size: .95rem; }

.ds-pay-fee {
    flex: 1;
    border: 2px solid #7fb4e8;
    border-radius: 8px;
    padding: .5rem 1rem;
    font-size: 1.2rem;
    text-align: right;
}

.ds-pay-note {
    width: 100%;
    height: 120px;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-top: .6rem;
    padding: .6rem;
    font-size: 1rem;
}

.ds-pay-actions { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; }

.ds-pay-submit {
    margin-left: auto;
    background: #1b8ff5;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .9rem 3.2rem;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: .3em;
    cursor: pointer;
}

/* 支払い方法の選択(カード・キャッシュレス) */
.ds-brand-pop {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
    overflow: hidden;
    max-width: 560px;
}

.ds-brand-head {
    background: #d9a86a;
    color: #fff;
    text-align: center;
    font-size: 1.4rem;
    padding: .7rem;
}

.ds-brand-sub { background: #8a8a8a; color: #fff; font-size: 1.3rem; padding: .3rem 1rem; }

.ds-brand-item {
    display: block;
    border-bottom: 1px solid #ddd;
    padding: .9rem 1.2rem;
    font-size: 1.4rem;
    color: #222;
    text-decoration: none;
}

.ds-brand-back {
    display: block;
    margin: 1rem;
    background: #5a5a5a;
    color: #fff;
    border-radius: 8px;
    text-align: center;
    padding: .7rem;
    font-size: 1.2rem;
    text-decoration: none;
}

@media (max-width: 820px) {
    .ds-pay-grid { grid-template-columns: 1fr; }
    .ds-detail-cols { grid-template-columns: 1fr; }
}

/* 会計画面の印刷ボタンは、文字が縦に潰れないよう幅を確保する */
.ds-pay-actions .ds-act {
    flex: 0 0 auto;
    min-width: 92px;
    padding: .6rem 1rem;
    font-size: 1.05rem;
    line-height: 1.25;
    text-align: center;
}

/* ---------- 伝票操作メニュー(卓の長押し) ---------- */
.ds-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 120;
}

.ds-menu-box {
    background: #e9eef7;
    border-radius: 16px;
    padding: 1rem 1.2rem 1.4rem;
    width: min(760px, 94vw);
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 8px 26px rgba(0,0,0,.3);
}

.ds-menu-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: .9rem;
}

.ds-menu-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
}

.ds-menu-item {
    background: #6f76b5;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1.6rem .6rem;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
}

.ds-menu-item:active { background: #5a619c; }

.ds-menu-sub {
    grid-column: 1 / -1;
    color: #44506e;
    font-size: 1rem;
    margin-bottom: .2rem;
}

.ds-menu-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
}

.ds-menu-close {
    display: block;
    margin: 1.2rem auto 0;
    background: #dfe4ee;
    color: #333;
    border: none;
    border-radius: 999px;
    padding: 1rem 3.5rem;
    font-size: 1.3rem;
    cursor: pointer;
}

/* ---------- 会計のあとの「領収書を発行しますか?」 ---------- */
.ds-ask {
    background: rgba(255,255,255,.75);
    border-radius: 14px;
    padding: 2rem;
    max-width: 620px;
    margin: 2rem auto 0;
    text-align: center;
}

.ds-ask-title { font-size: 1.8rem; font-weight: 700; margin-bottom: .6rem; }
.ds-ask-amount { font-size: 3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ds-ask-note { color: #5a5140; line-height: 1.9; margin: .8rem 0 1.6rem; }
.ds-ask-btns { display: flex; gap: 1.2rem; justify-content: center; }

.ds-ask-yes, .ds-ask-no {
    border: none;
    border-radius: 999px;
    padding: 1rem 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .2em;
    cursor: pointer;
    text-decoration: none;
}

.ds-ask-yes { background: #0a84ff; color: #fff; }
.ds-ask-no { background: #b5b5b5; color: #fff; }

@media (max-width: 820px) {
    .ds-menu-panel, .ds-menu-list { grid-template-columns: repeat(2, 1fr); }
}

/* ==================================================================
 * PC版(G-Managerのメニューバーを左に出したまま使う)
 *
 * タブレット版と同じ部品(.ds-*)を、G-Managerの画面の中に収めるための囲い。
 * ================================================================== */
.ds-embed {
    font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
    color: #222;
    background: radial-gradient(circle at 30% 20%, #fdfbf4 0%, #f5efe0 45%, #eee5d2 100%);
    border: 1px solid #d8d0bd;
    border-radius: 10px;
    overflow: hidden;
}

/* 画面の中に入るぶん、上下の余白は少し詰める */
.ds-embed .ds-main {
    padding: .8rem 1rem 1.6rem;
}

/* 上部バーは囲いの中で貼り付く */
.ds-embed .ds-topbar {
    position: static;
}

/* ==================================================================
 * タブレット版でログインした端末
 *
 * POSだけを使うため、G-Managerのメニューバー(サイドバー)は出さない。
 * POSメニュー管理・当日売上伝票一覧など、G-Managerの枠を使う画面でも
 * 全幅で表示されるようにする。
 * ================================================================== */
body.pos-tablet .sidebar,
body.pos-tablet .sidebar-backdrop,
body.pos-tablet .mobile-topbar,
body.pos-tablet #sidebarShow {
    display: none !important;
}

body.pos-tablet .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: .8rem;
}

/* ==================================================================
 * タブレット版のログイン画面(pos_login.php)
 * ================================================================== */
.ds-login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.ds-login {
    width: 100%;
    max-width: 420px;
    background: #fffdf8;
    border: 2px solid #c9b88a;
    border-radius: 14px;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    text-align: center;
}

.ds-login-brand {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #2b2b2b;
}

.ds-login-lead {
    font-size: .9rem;
    color: #666;
    margin: .2rem 0 1.2rem;
}

.ds-login-error {
    background: #fde8e6;
    border: 1px solid #e0a6a0;
    color: #8a2a22;
    border-radius: 8px;
    padding: .6rem .8rem;
    font-size: .88rem;
    margin-bottom: 1rem;
    text-align: left;
}

.ds-login-form {
    text-align: left;
}

.ds-login-label {
    display: block;
    font-size: .82rem;
    color: #555;
    margin: .6rem 0 .2rem;
}

.ds-login-input {
    width: 100%;
    font-size: 1.1rem;
    padding: .7rem .8rem;
    border: 1px solid #c9b88a;
    border-radius: 8px;
    background: #fff;
}

.ds-login-btn {
    width: 100%;
    margin-top: 1.2rem;
    padding: .9rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(#3a3a3a, #1f1f1f);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.ds-login-btn:active {
    background: #000;
}

/* 店舗の選択(担当が複数あるとき) */
.ds-login-stores {
    display: grid;
    gap: .6rem;
}

.ds-login-store {
    padding: 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2b2b2b;
    background: #fff;
    border: 2px solid #c9b88a;
    border-radius: 10px;
    cursor: pointer;
}

.ds-login-store:active {
    background: #f3ead3;
}

.ds-login-note {
    font-size: .8rem;
    color: #777;
    margin: 1.1rem 0 0;
    line-height: 1.8;
}

/* タブレット版で、G-Managerの枠を使う画面(伝票一覧・メニュー管理)に出す帯 */
.pos-tablet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 1rem;
    background: linear-gradient(#2b2b2b, #1a1a1a);
    color: #e8e2d2;
    font-size: .9rem;
}

.pos-tablet-bar a {
    color: #e8c766;
    text-decoration: none;
    font-weight: 700;
}

.pos-tablet-bar a:active {
    opacity: .7;
}

/* ---------- 注文画面: メニューだけスクロールさせる ----------
 * 画面の高さいっぱいを使い、スクロールするのは「注文の内容」と「メニュー」だけ。
 * 「伝票に戻る」はいつも画面の下に見えるので、下までスライドしなくても押せる。
 */
.ds-order-view {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px);
    min-height: 340px;
}

.ds-order-view .ds-tab-grid {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
}

.ds-order-view .ds-tab-left,
.ds-order-view .ds-tab-right {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

/* 「注文の内容」の見出しは、スクロールしても上に貼り付いたままにする */
.ds-order-view .ds-tab-left-head {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* カテゴリーの見出しも、スクロール中どのカテゴリーか分かるよう貼り付ける */
.ds-order-view .ds-tab-block-head {
    position: sticky;
    top: 0;
    z-index: 1;
}

.ds-order-view .ds-tab-actions {
    flex: 0 0 auto;
    margin-top: .7rem;
}

/* PC版(G-Managerの中)では、上部バーとメニューバーのぶん高さを控えめにする */
.ds-embed .ds-order-view {
    height: calc(100vh - 230px);
}

/* ---------- POS設定: レシートの店名ロゴ ---------- */
.ds-logo-box {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid #c3bba6;
}

.ds-logo-preview {
    background: #fff;
    border: 1px solid #c3bba6;
    border-radius: 8px;
    padding: .6rem;
    margin-bottom: .6rem;
    text-align: center;
}

.ds-logo-preview img {
    max-width: 100%;
    max-height: 140px;
}

.ds-logo-note {
    font-size: .82rem;
    color: #6b6b6b;
    line-height: 1.7;
    margin: .6rem 0 0;
}

/* ---------- 領収書の入力(会計のあと) ---------- */
.ds-receipt-form {
    max-width: 560px;
    margin: 1.2rem auto 0;
    text-align: left;
    background: rgba(255, 255, 255, .6);
    border: 1px solid #c3bba6;
    border-radius: 10px;
    padding: .9rem 1.1rem 1rem;
}

.ds-receipt-form-head {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4a3b00;
    margin-bottom: .4rem;
}

.ds-receipt-form-note {
    font-size: .8rem;
    color: #6b6b6b;
    line-height: 1.7;
    margin: .7rem 0 0;
}

/* ---------- 来店の流れ: セットの時間と料金を確かめる画面 ---------- */
.ds-setpanel {
    max-width: 760px;
    margin: 1rem auto 0;
    background: rgba(255, 255, 255, .72);
    border: 1px solid #c3bba6;
    border-radius: 12px;
    padding: 1rem 1.3rem 1.2rem;
}

.ds-setpanel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #d6cfbb;
    padding-bottom: .6rem;
    margin-bottom: .8rem;
}

.ds-setpanel-mode {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .15em;
    color: #2b2b2b;
}

.ds-setpanel-guests {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4a3b00;
}

.ds-slider-row {
    margin-bottom: 1.1rem;
}

.ds-slider-label {
    font-size: .95rem;
    color: #5a5a5a;
    margin-bottom: .1rem;
}

.ds-slider-value {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.1;
    color: #11487e;
    text-align: center;
}

.ds-slider-value small {
    font-size: 1.1rem;
    margin-left: .2rem;
    color: #5a5a5a;
}

.ds-slider-line {
    display: flex;
    align-items: center;
    gap: .7rem;
}

/* 指で動かしやすいよう、つまみとバーを大きめにする */
.ds-slider {
    flex: 1 1 auto;
    -webkit-appearance: none;
    appearance: none;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #cfe2f3, #7aa7d4);
    outline: none;
}

.ds-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #11487e;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
    cursor: pointer;
}

.ds-slider::-moz-range-thumb {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #11487e;
    border: 3px solid #fff;
    cursor: pointer;
}

.ds-slider-step {
    flex: 0 0 auto;
    min-width: 88px;
    padding: .55rem .4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #2b2b2b;
    background: #fff;
    border: 2px solid #c9b88a;
    border-radius: 8px;
    cursor: pointer;
}

.ds-slider-step:active {
    background: #f3ead3;
}

.ds-setpanel-total {
    text-align: center;
    font-size: 1.2rem;
    background: #fdf3d0;
    border: 1px solid #c9b458;
    border-radius: 8px;
    padding: .5rem;
}

.ds-setpanel-total strong {
    font-size: 1.6rem;
    color: #7c1a14;
    margin-left: .4rem;
}

.ds-setpanel-note {
    font-size: .85rem;
    color: #6b6b6b;
    line-height: 1.8;
    margin-top: .7rem;
    text-align: center;
}

.ds-slider-reset {
    margin-left: .5rem;
    padding: .25rem .8rem;
    font-size: .82rem;
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 999px;
    cursor: pointer;
}

/* ロゴの「登録した画像」と「印字される見え方」を並べる */
.ds-logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
    margin-bottom: .6rem;
}

.ds-logo-caption {
    font-size: .8rem;
    color: #6b6b6b;
    margin-bottom: .2rem;
}

.ds-logo-preview.is-paper {
    background: #faf8f2;
    border-style: dashed;
}

.ds-logo-preview canvas {
    max-width: 100%;
    max-height: 140px;
}

@media (max-width: 820px) {
    .ds-logo-grid { grid-template-columns: 1fr; }
}

/* 延長したときの金額(店舗のPOS端末と同じく、大きく出す) */
.ds-ext-amount {
    text-align: right;
    font-size: 2.1rem;
    font-weight: 700;
    color: #4a3b00;
    line-height: 1.2;
    padding: .1rem .5rem .3rem;
}

/* ---------- 画面の連打で拡大しないようにする ----------
 * iPadは同じ場所を素早く2回たたくと拡大する(ダブルタップズーム)。
 * touch-action: manipulation を付けると、タップはそのままで拡大だけ起きなくなる。
 */
body.ds-body,
.ds-embed,
.ds-body button,
.ds-body a,
.ds-body input,
.ds-body select,
.ds-embed button,
.ds-embed a {
    touch-action: manipulation;
}

/* 上部バーのロゴに画像を使うとき(POS設定で登録したアイコン) */
.ds-logo.has-image {
    padding: 0;
    overflow: hidden;
    background: #111;
}

.ds-logo.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- POS設定: アプリのアイコン ---------- */
.ds-icon-preview {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    background: #fff;
    border: 1px solid #c3bba6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: .8rem;
}

.ds-icon-preview > img {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    object-fit: cover;
}

/* ホーム画面に並んだときの見え方 */
.ds-icon-sample {
    text-align: center;
}

.ds-icon-home {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
}

.ds-icon-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ds-icon-home-label {
    display: block;
    font-size: .75rem;
    color: #555;
    margin-top: .3rem;
}

/* ---------- 長押ししたときにプレビューを出さない ----------
 * iPadはリンクやボタンを長押しすると「タップしてプレビューを表示」のメニューが出る。
 * POSでは卓の長押しに伝票の操作メニューを割り当てているので、このメニューは邪魔になる。
 * -webkit-touch-callout: none で、長押しのメニューと文字の選択を止める。
 */
body.ds-body,
body.pos-tablet,
.ds-embed {
    -webkit-touch-callout: none;
}

body.ds-body a,
body.ds-body button,
body.ds-body .ds-table-card,
body.pos-tablet a,
body.pos-tablet button,
.ds-embed a,
.ds-embed button,
.ds-embed .ds-table-card {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none;
    user-select: none;
    /* 長押しで画像やリンクを引っぱれないようにする(共有メニューが出るのを防ぐ) */
    -webkit-user-drag: none;
}

/* ロゴなどの画像も、長押しで「写真を保存」が出ないようにする */
body.ds-body img,
body.pos-tablet img,
.ds-embed img {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

/* 入力欄は、これまでどおり文字を選べるようにしておく */
body.ds-body input,
body.ds-body textarea,
body.ds-body select,
body.pos-tablet input,
body.pos-tablet textarea,
body.pos-tablet select,
.ds-embed input,
.ds-embed textarea,
.ds-embed select {
    -webkit-user-select: auto;
    user-select: auto;
    -webkit-touch-callout: default;
}

/* ---------- スマホを縦に持っているときの案内 ---------- */
.ds-rotate {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, .92);
    color: #f3ead3;
    text-align: center;
    padding: 2rem;
}

.ds-rotate-box {
    max-width: 520px;
}

.ds-rotate-icon {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1rem;
    animation: ds-rotate-turn 2.2s ease-in-out infinite;
}

@keyframes ds-rotate-turn {
    0%, 60% { transform: rotate(0deg); }
    80%, 100% { transform: rotate(90deg); }
}

.ds-rotate-text {
    font-size: 1.6rem;
    line-height: 1.8;
}

.ds-rotate-text strong {
    color: #e8c766;
}

.ds-rotate-close {
    margin-top: 1.6rem;
    padding: .7rem 1.8rem;
    font-size: 1.05rem;
    color: #e8e2d2;
    background: transparent;
    border: 1px solid #8a8a8a;
    border-radius: 999px;
    cursor: pointer;
}

/* ==================================================================
 * 1画面に収める(is-fitscreen)
 *
 * ホール状況・伝票・来店・待機キャストは、操作しながら見る画面なので
 * 「下にスクロールしないと見えない」状態をなくす。
 *
 * 高さは JS が測った実際の表示領域(--ds-vh)を使う。
 * iPhoneの 100vh はアドレスバーのぶん大きく出るため、そのままだと下が見切れる。
 * また、万一はみ出したときに操作できなくならないよう、スクロールは止めない。
 * ================================================================== */
body.ds-body.is-fitscreen {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.ds-body.is-fitscreen .ds-main {
    height: calc(var(--ds-vh, 100vh) - var(--ds-topbar-h, 92px));
    min-height: 0;
    padding-bottom: .5rem;
    display: flex;
    flex-direction: column;
    /* 収まりきらないときは、ここでスクロールできる(操作できなくならないように) */
    overflow-y: auto;
}

/* 見出しやボタンの帯は、縮めずそのまま */
body.ds-body.is-fitscreen .ds-section-title,
body.ds-body.is-fitscreen .ds-tab-actions,
body.ds-body.is-fitscreen .ds-actions,
body.ds-body.is-fitscreen .ds-toolbar,
body.ds-body.is-fitscreen .ds-pager {
    flex: 0 0 auto;
}

/* ---- ホール状況: 卓のカードを残りの高さいっぱいに広げる ---- */
body.ds-body.is-fitscreen .ds-tables {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

body.ds-body.is-fitscreen .ds-table-card {
    min-height: 0;
    padding: .4rem .3rem .5rem;
    justify-content: center;
}

/* ---- 伝票・来店: 左右の枠の中だけスクロールする ---- */
body.ds-body.is-fitscreen .ds-tab-grid,
body.ds-body.is-fitscreen .ds-visit-grid {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
}

body.ds-body.is-fitscreen .ds-tab-left,
body.ds-body.is-fitscreen .ds-tab-right,
body.ds-body.is-fitscreen .ds-visit-grid > div,
body.ds-body.is-fitscreen .ds-cast-list,
body.ds-body.is-fitscreen .ds-seat-pick,
body.ds-body.is-fitscreen .ds-panel {
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.ds-body.is-fitscreen .ds-panel {
    flex: 1 1 auto;
}

/* ---- 画面が低いときは、収まるように余白と文字を詰める ----
 * iPhoneを横にしたとき(表示上の高さ 500px前後)でも収まるようにする。
 */
@media (max-height: 700px) {
    body.ds-body.is-fitscreen .ds-main {
        padding: .5rem .7rem .4rem;
    }
    body.ds-body.is-fitscreen .ds-section-title {
        font-size: 1.2rem;
        padding: .25rem 1rem;
        letter-spacing: .2em;
    }
    body.ds-body.is-fitscreen .ds-tables {
        gap: .45rem .6rem;
    }
    body.ds-body.is-fitscreen .ds-table-name { font-size: .95rem; margin-bottom: .1rem; }
    body.ds-body.is-fitscreen .ds-table-state { font-size: 1.4rem; }
    body.ds-body.is-fitscreen .ds-act { padding: .5rem 1.1rem; font-size: 1rem; }
    body.ds-body.is-fitscreen .ds-tab-actions { gap: .45rem; margin-top: .45rem; }
    body.ds-body.is-fitscreen .ds-ext-card { padding: .4rem; margin-bottom: .45rem; }
    body.ds-body.is-fitscreen .ds-ext-amount { font-size: 1.5rem; padding: 0 .4rem .1rem; }
    body.ds-body.is-fitscreen .ds-round-edit,
    body.ds-body.is-fitscreen .ds-round-extend,
    body.ds-body.is-fitscreen .ds-round-auto { width: 58px; height: 58px; font-size: .95rem; }
    body.ds-body.is-fitscreen .ds-round-undo { width: 48px; height: 48px; font-size: .85rem; }
    body.ds-body.is-fitscreen .ds-fee-value { font-size: 1.5rem; }
    body.ds-body.is-fitscreen .ds-tab-left-head { font-size: 1.05rem; padding: .3rem; }
    body.ds-body.is-fitscreen .ds-tab-row { padding: .3rem .5rem; }
    body.ds-body.is-fitscreen .ds-btn { padding: .55rem 1.6rem; font-size: 1.2rem; }
    body.ds-body.is-fitscreen .ds-tile { height: 150px; font-size: 1.9rem; }
    body.ds-body.is-fitscreen .ds-tiles { gap: 1rem 2rem; padding: .8rem 0 .4rem; }
}

/* さらに低い画面(小さめのスマホを横にしたとき) */
@media (max-height: 520px) {
    body.ds-body.is-fitscreen .ds-table-state { font-size: 1.15rem; }
    body.ds-body.is-fitscreen .ds-table-name { font-size: .85rem; }
    body.ds-body.is-fitscreen .ds-tables { gap: .35rem .5rem; }
    body.ds-body.is-fitscreen .ds-act { padding: .4rem .9rem; font-size: .92rem; }
    body.ds-body.is-fitscreen .ds-tile { height: 120px; font-size: 1.6rem; }
    body.ds-body.is-fitscreen .ds-section-title { font-size: 1.05rem; }
}

/* ---------- 区分・メモ(タグを複数選ぶ) ---------- */
.ds-tab-tagform {
    display: flex;
    align-items: center;
    gap: .4rem;
    border: none;
    cursor: pointer;
    text-align: left;
}

.ds-tab-tagtext {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-tab-tagtext.is-empty {
    opacity: .6;
}

.ds-tagdlg {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    padding: 1.5rem;
}

.ds-tagdlg-box {
    width: 100%;
    max-width: 620px;
    max-height: 88vh;
    overflow-y: auto;
    background: #fdfbf4;
    border: 2px solid #c9b88a;
    border-radius: 14px;
    padding: 1rem 1.2rem 1.2rem;
}

.ds-tagdlg-head {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4a3b00;
    margin-bottom: .7rem;
}

.ds-tagdlg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1rem;
}

/* タグのボタン。選ぶと、そのタグの色で塗る */
.ds-tagchip {
    display: inline-flex;
    align-items: center;
    padding: .6rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tag-color, #4a4a4a);
    background: #fff;
    border: 2px solid var(--tag-color, #4a4a4a);
    border-radius: 999px;
    cursor: pointer;
}

.ds-tagchip.is-on {
    color: #fff;
    background: var(--tag-color, #4a4a4a);
}

.ds-tagchip input {
    display: none;
}

.ds-tagdlg-note {
    font-size: .9rem;
    color: #6b6b6b;
    line-height: 1.8;
}

.ds-tagdlg-actions {
    display: flex;
    gap: .8rem;
    justify-content: center;
    margin-top: 1.1rem;
}

/* 卓カードの「人数 / 区分」は、タグを複数付けても崩れないよう1行に収める */
.ds-table-card .ds-table-meta {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 来店のセット料金: もう一方(税込/税抜)の金額を小さく添える */
.ds-slider-sub {
    text-align: center;
    font-size: .9rem;
    color: #6b6b6b;
    margin-top: -.2rem;
    margin-bottom: .2rem;
}

/* 税込 / 税抜 の切り替え(来店のセット料金) */
.ds-taxswitch {
    display: inline-flex;
    margin-left: .6rem;
    border: 2px solid #c9b88a;
    border-radius: 999px;
    overflow: hidden;
    vertical-align: middle;
}

.ds-taxswitch-btn {
    padding: .25rem 1rem;
    font-size: .92rem;
    font-weight: 700;
    color: #6b6b6b;
    background: #fff;
    border: none;
    cursor: pointer;
}

.ds-taxswitch-btn.is-on {
    color: #fff;
    background: #11487e;
}

.ds-slider-taxmark {
    font-size: .95rem;
    color: #6b6b6b;
    margin-left: .3rem;
}

/* ---------- お客様ごとのセット料金(全員同じ / 1名ずつ) ---------- */

/* 1名ずつに切り替えたときは、1本だけのスライダーは使わないので薄くする */
.ds-slider-row.is-dim {
    opacity: .4;
    pointer-events: none;
}

.ds-eachrow {
    margin-top: .8rem;
}

.ds-eachlist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: .5rem .9rem;
    margin-top: .6rem;
}

.ds-eachitem {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .6rem;
    background: #fff;
    border: 2px solid #d9d2bf;
    border-radius: 10px;
}

.ds-eachitem-no {
    min-width: 4.2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #6b6b6b;
}

.ds-eachitem-step {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
    font-size: 1.3rem;
    font-weight: 700;
    color: #11487e;
    background: #eef3f9;
    border: 2px solid #c6d4e6;
    border-radius: 8px;
    cursor: pointer;
}

.ds-eachitem-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 2.6rem;
    padding: 0 .5rem;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: right;
    color: #1a1a1a;
    border: 2px solid #d9d2bf;
    border-radius: 8px;
}

/* ---------- 注文画面(メニューバーから開く pos_order.php) ----------
   上に「立っている卓」、下に注文。卓が無いときは下をグレーアウトする */

.ds-ordpage {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

/* ----- 上: 立っている卓 ----- */
.ds-ordtables {
    flex: 0 0 auto;
    background: #fff;
    border: 2px solid #d9d2bf;
    border-radius: 12px;
    padding: .5rem .7rem .7rem;
}

.ds-ordtables-head {
    display: flex;
    align-items: baseline;
    gap: .8rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #3a3a3a;
    margin-bottom: .45rem;
}

.ds-ordtables-head small {
    font-size: .9rem;
    font-weight: 500;
    color: #7a7a7a;
}

.ds-ordtables-list {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .2rem;
}

.ds-ordtables-empty {
    padding: .6rem .2rem;
    color: #8a8a8a;
}

.ds-ordtable {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 9.5rem;
    padding: .45rem .7rem;
    text-decoration: none;
    color: #2a2a2a;
    background: #f6f2e8;
    border: 2px solid #d9d2bf;
    border-radius: 10px;
}

.ds-ordtable.is-current {
    color: #fff;
    background: #8a5a2b;
    border-color: #6d4520;
}

.ds-ordtable-name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.ds-ordtable-sub {
    font-size: .85rem;
    opacity: .8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-ordtable-total {
    font-size: 1.05rem;
    font-weight: 700;
    text-align: right;
}

/* ---------- 注文の画面(4つの列) ----------
   カテゴリー → メニュー → 選択(誰に付けるか) → 注文 の順にならべる */

.ds-op {
    position: relative;
    flex: 1 1 auto;
    flex-direction: column;
    display: flex;
    gap: .6rem;
    min-height: 0;
}

.ds-op-cols {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1.1fr 1.35fr;
    gap: .5rem;
}

.ds-op-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #f1eee7;
    border-radius: 10px;
    overflow: hidden;
}

.ds-op-head {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .4rem;
    padding: .4rem .7rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: #8d90b5;
}

.ds-op-head small {
    font-size: .8rem;
    font-weight: 500;
    opacity: .9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 列の中だけがスクロールする(確定・キャンセルはいつも見えたまま) */
.ds-op-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: .4rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.ds-op-row {
    display: block;
    width: 100%;
    padding: .6rem .7rem;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: left;
    color: #2a2a2a;
    background: #fff;
    border: 1px solid #ddd8cc;
    border-radius: 8px;
    cursor: pointer;
}

.ds-op-row.is-on {
    color: #fff;
    background: #6f72a0;
    border-color: #585b86;
}

.ds-op-empty {
    padding: .6rem .3rem;
    font-size: .95rem;
    color: #8a8a8a;
}

/* ----- 2列目: メニュー(名前の下に金額の帯) ----- */
.ds-op-menu {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
    padding: .5rem .6rem;
}

.ds-op-menu[hidden] {
    display: none !important;
}

.ds-op-menu-name {
    font-size: 1.02rem;
    line-height: 1.25;
}

.ds-op-menu-price {
    align-self: center;
    min-width: 60%;
    padding: .18rem .6rem;
    font-size: .95rem;
    font-weight: 700;
    text-align: center;
    color: #6b4b00;
    background: #f7cf76;
    border-radius: 999px;
}

.ds-op-menu.is-on .ds-op-menu-price {
    color: #4a3400;
    background: #ffe3a3;
}

/* ----- 3列目: メニューを選ぶまでは、少し控えめに出す ----- */
.ds-op-list:not(.is-ready) .ds-op-staff {
    opacity: .75;
}

/* ----- 4列目: これから入れる分 ----- */
.ds-op-basket-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .5rem;
    background: #fff;
    border: 1px solid #ddd8cc;
    border-radius: 8px;
}

.ds-op-basket-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ds-op-basket-name {
    font-size: .98rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-op-basket-main small {
    font-size: .8rem;
    color: #7a7a7a;
}

.ds-op-basket-qty {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .15rem;
}

.ds-op-qty-btn {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #11487e;
    background: #eef3f9;
    border: 1px solid #c6d4e6;
    border-radius: 6px;
    cursor: pointer;
}

.ds-op-qty-num {
    min-width: 1.4rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.ds-op-basket-price {
    flex: 0 0 auto;
    min-width: 4.6rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
}

.ds-op-basket-foot {
    flex: 0 0 auto;
    padding: .45rem .7rem;
    font-size: 1.05rem;
    text-align: right;
    background: #e6e2d8;
    border-top: 1px solid #d3cdbe;
}

.ds-op-basket-foot strong {
    font-size: 1.45rem;
    color: #11487e;
    margin-left: .4rem;
}

/* ----- いちばん下: キャンセル / 確定 ----- */
.ds-op-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ds-op-cancel,
.ds-op-confirm {
    min-width: 13rem;
    padding: .7rem 1.4rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.ds-op-cancel {
    color: #fff;
    background: #a8a8a8;
}

.ds-op-confirm {
    color: #fff;
    background: #1273e6;
}

.ds-op-confirm:disabled {
    color: #eef4fb;
    background: #b9cfe8;
    cursor: default;
}

/* ----- 卓が立っていないとき ----- */
.ds-op.is-off .ds-op-cols,
.ds-op.is-off .ds-op-actions {
    opacity: .35;
    pointer-events: none;
    filter: grayscale(1);
}

.ds-op-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ds-op-cover::before {
    content: attr(data-text);
    padding: .9rem 1.6rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #4a4a4a;
    text-align: center;
    background: rgba(255, 255, 255, .95);
    border: 2px solid #d9d2bf;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

/* カテゴリーの右肩に出す品数。メニューがまだ無いカテゴリーは薄く出す */
.ds-op-row-count {
    float: right;
    min-width: 1.8rem;
    margin-left: .5rem;
    padding: 0 .35rem;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.5rem;
    text-align: center;
    color: #6b6b6b;
    background: #ece8df;
    border-radius: 999px;
}

.ds-op-row.is-on .ds-op-row-count {
    color: #42456e;
    background: #dcdef0;
}

.ds-op-row.is-empty {
    color: #9a9a9a;
}

/* ---------- 指名の画面: お客様ごとに選べるようにしたぶん ---------- */

/* お客様のタイルは押せるボタンになったので、押せることが分かる見た目にする */
button.ds-guest {
    width: 100%;
    text-align: left;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

button.ds-guest:hover {
    border-color: rgba(255, 255, 255, .5);
}

button.ds-guest.is-current {
    border-color: #0a84ff;
}

/* そのお客様が何名を指名しているか */
.ds-guest-picked {
    flex: 0 0 auto;
    font-size: .95rem;
    font-weight: 700;
    opacity: .85;
}

.ds-guest-hint {
    margin: .2rem .2rem 0;
    font-size: .95rem;
    line-height: 1.5;
    color: #6b6b6b;
}

/* キャストの名前の下に出す「お客様1・お客様3」 */
.ds-cast-guests {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: #0a84ff;
}

/* マイグレーションがまだのときに出す案内 */
.ds-needs-migration {
    margin: .5rem 0 0;
    padding: .5rem .8rem;
    font-size: .95rem;
    line-height: 1.6;
    color: #7a5200;
    background: #fff6e0;
    border: 1px solid #e8cf92;
    border-radius: 8px;
}

.ds-needs-migration code {
    font-size: .9rem;
    background: #fff;
    padding: 0 .3rem;
    border-radius: 4px;
}

/* ===================================================================
   待機キャスト … G-Managerの出勤とは別だという案内
   =================================================================== */
.ds-cast-note {
    margin: .2rem 0 .6rem;
    font-size: .9rem;
    line-height: 1.7;
    color: #6b6250;
}

/* ===================================================================
   注文画面 … 売上折半(3列目で、キャストを何人でも選ぶ)
   =================================================================== */
.ds-op-splitbar {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: .4rem .4rem 0;
}

.ds-op-splitbtn {
    padding: .5rem .7rem;
    font-size: 1rem;
    font-weight: 700;
    color: #7a5b00;
    background: #fdf4dc;
    border: 2px solid #d8b85f;
    border-radius: 8px;
    cursor: pointer;
}

.ds-op-splitbtn.is-on {
    color: #fff;
    background: #c79b2b;
    border-color: #a67f16;
}

.ds-op-splitadd {
    padding: .5rem .7rem;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    background: #1273e6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.ds-op-splitadd:disabled {
    color: #eef4fb;
    background: #b9cfe8;
    cursor: default;
}

/* 折半で選んでいるキャスト */
.ds-op-staff.is-picked {
    color: #4a3b00;
    background: #fdf0c8;
    border-color: #c79b2b;
    box-shadow: inset 0 0 0 2px #c79b2b;
}

/* 折半のあいだは「お客様」を選べなくする(折半はキャストどうしのため) */
.ds-op-list.is-split .ds-op-staff[data-staff-id="0"] {
    opacity: .4;
}

/* ===================================================================
   注文画面 … 料金調整(値引・値増)
   =================================================================== */
.ds-op-adjust {
    min-width: 9rem;
    padding: .7rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: #fff;
    background: #8a6fae;
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.ds-op-adjust small {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: 0;
    opacity: .9;
}

.ds-adjdlg {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    padding: 1.5rem;
}

.ds-adjdlg-box {
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    overflow-y: auto;
    background: #fdfbf4;
    border: 2px solid #c9b88a;
    border-radius: 14px;
    padding: 1rem 1.2rem 1.2rem;
}

.ds-adjdlg-head {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4a3b00;
    margin-bottom: .7rem;
}

.ds-adjdlg-sub {
    margin: .9rem 0 .4rem;
    font-size: .95rem;
    font-weight: 700;
    color: #6b6250;
}

.ds-adjdlg-list {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.ds-adjdlg-row,
.ds-adj-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .6rem;
    background: #fff;
    border: 1px solid #ddd8cc;
    border-radius: 8px;
}

.ds-adjdlg-name,
.ds-adj-name {
    flex: 1 1 auto;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-adjdlg-amount,
.ds-adj-amount {
    flex: 0 0 auto;
    font-size: 1.05rem;
    font-weight: 700;
    color: #b1402f;
}

.ds-adjdlg-amount.is-plus {
    color: #11487e;
}

.ds-adjdlg-amount small {
    font-size: .8rem;
    font-weight: 500;
    color: #8a8a8a;
}

.ds-adjdlg-presets,
.ds-adj-presets {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ds-adjdlg-preset,
.ds-adj-preset {
    padding: .5rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #8a2a22;
    background: #fff;
    border: 2px solid #d9a69f;
    border-radius: 999px;
    cursor: pointer;
}

.ds-adjdlg-preset.is-plus {
    color: #11487e;
    border-color: #9db9d8;
}

.ds-adjdlg-preset small,
.ds-adj-preset small {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    opacity: .85;
}

.ds-adjdlg-kinds {
    display: flex;
    gap: .6rem;
    margin-bottom: .5rem;
}

.ds-adjdlg-kind {
    padding: .5rem 1.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #6b6250;
    background: #fff;
    border: 2px solid #ddd8cc;
    border-radius: 999px;
    cursor: pointer;
}

.ds-adjdlg-kind.is-on {
    color: #fff;
    background: #8a6fae;
    border-color: #6f5591;
}

.ds-adjdlg-kind input {
    display: none;
}

.ds-adjdlg-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
    margin-top: .5rem;
}

.ds-adjdlg-amounts label {
    display: block;
    font-size: .88rem;
    color: #6b6250;
}

.ds-adjdlg-note {
    font-size: .88rem;
    line-height: 1.8;
    color: #6b6b6b;
}

.ds-adjdlg-actions {
    display: flex;
    gap: .8rem;
    justify-content: center;
    margin-top: 1.1rem;
}

/* 会計画面の「値引 / 値増」 */
.ds-adj-list {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: .8rem;
}

.ds-adj-percent {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
    font-size: .9rem;
    color: #6b6250;
}

.ds-adj-percent .ds-f-input {
    max-width: 8rem;
}

/* ===================================================================
   G-POS(タブレット版)の4桁ログイン
   =================================================================== */
.ds-pin {
    text-align: center;
}

.ds-pin-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: .4rem 0 1.4rem;
}

.ds-pin-dot {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 2px solid #8a8a8a;
    background: transparent;
}

.ds-pin-dot.is-on {
    background: #2b2b2b;
    border-color: #2b2b2b;
}

.ds-pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .7rem;
}

.ds-pin-key {
    padding: 1rem 0;
    font-size: 1.7rem;
    font-weight: 700;
    color: #2b2b2b;
    background: #fff;
    border: 1px solid #c9b88a;
    border-radius: 10px;
    cursor: pointer;
}

.ds-pin-key:active {
    background: #efe7cf;
}

.ds-pin-key.is-sub {
    font-size: 1rem;
    color: #6b6250;
    background: #f3eee2;
}
