.tt-item-details { height: 100%; overflow: auto; padding: 18px; background: linear-gradient(180deg, #f5efe5 0%, #fbf7f0 52%, #eef6f2 100%); }
body[data-app-mode="taptray"] .sidebar-tabs { display: none; }
.list-year-group-toggle { font-weight: 700; font-size: 13px; color: #666; cursor: pointer; margin: 6px 0; }
.year-arrow { display: inline-block; width: 16px; }
.list-sub-item { position: relative; display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 82px; }
.group-contents .list-sub-item { background-color: #2f2f2f; border: 1px solid #444; border-radius: 6px; margin: 4px 0; padding: 6px 10px; color: #e0e0e0; }
.group-contents .list-sub-item:hover { background-color: #267aa3; border-color: #555; }
.group-contents .list-sub-item.active .item-title,
.group-contents .list-sub-item.active .item-summary { color: #fff !important; }
.group-contents .list-sub-item.active .item-summary { opacity: 0.88; }
.group-contents .list-sub-item.active .item-price-chip { background: rgba(255,255,255,0.16); color: #fff !important; border-color: rgba(255,255,255,0.28); }
.group-contents .list-sub-item.active .item-price-chip.is-placeholder { color: rgba(255,255,255,0.72) !important; }
.group-contents .list-sub-item.active .item-thumb { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.12); }
.group-contents .list-sub-item.active .item-thumb.is-placeholder { color: rgba(255,255,255,0.78); }
.group-contents .list-sub-item.active .taptray-order-btn { background: #fff; color: var(--skin-accent); border-color: rgba(255,255,255,0.36); }
.item-title { cursor: pointer; min-width: 0; color: var(--skin-text); font-weight: 800; font-size: 18px; line-height: 1.14; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.group-contents .list-sub-item > .item-title { display: block; font-size: 13px; line-height: 1.25; letter-spacing: normal; color: inherit; }
.item-subject { display: block; font-weight: 500; font-size: 13px; color: #fff; }
.item-owner { display: block; font-size: 11px; color: #aaa; margin-top: 2px; }
.item-owner .username { color: #666; font-size: 10px; }
.item-select-btn { min-width: 74px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.08); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; line-height: 1; }
.group-contents .list-sub-item.active .item-select-btn { background: #fff; color: #0b60d1; border-color: rgba(255,255,255,0.34); }
.taptray-menu-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 84px; gap: 10px; align-items: center; width: 100%; }
.item-media-rail { display: flex; align-items: center; justify-content: center; align-self: stretch; }
.taptray-menu-copy { min-width: 0; min-height: 56px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0; }
.item-head { display: block; }
.item-price-chip { display: inline-flex; align-self: flex-start; margin-top: 1px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--skin-accent) 10%, var(--skin-surface)); color: var(--skin-accent); font-size: 12px; line-height: 1.1; font-weight: 800; border: 1px solid color-mix(in srgb, var(--skin-accent) 14%, var(--skin-border)); white-space: nowrap; box-sizing: border-box; }
.item-price-chip.is-placeholder { background: var(--skin-surface-2); color: var(--skin-muted); border-color: var(--skin-border); font-weight: 600; }
.taptray-menu-copy .item-summary,
.taptray-menu-row .item-summary { font-size: 12px !important; line-height: 1.28; color: var(--skin-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.item-summary.is-placeholder { color: var(--skin-muted); font-style: italic; }
.item-action-square { display: grid; grid-template-rows: auto auto auto; gap: 4px; align-items: center; justify-items: stretch; width: 84px; }
.item-square-main { position: relative; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.item-qty-badge { position: absolute; top: -4px; left: -4px; min-width: 16px; height: 16px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--skin-surface); color: var(--skin-text); font-size: 9px; font-weight: 800; border: 1px solid var(--skin-border); box-shadow: 0 3px 8px rgba(12,16,24,0.10); z-index: 2; }
.item-square-actions { display: inline-flex; width: 100%; gap: 6px; align-items: center; justify-content: center; }
.taptray-order-side-meta { width: 100%; text-align: right; font-size: 11px; line-height: 1.05; font-weight: 700; color: var(--skin-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.taptray-status-badge { min-width: 84px; width: 100%; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 4px 10px; border-radius: 999px; border: 1px solid #d7dde7; background: #f7f9fc; color: #2f3b52; font-size: 12px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.taptray-status-badge.is-queued { background: #fff1df; color: #9a5a18; border-color: #f0c99a; }
.taptray-status-badge.is-making { background: #fff0bf; color: #9a6a00; border-color: #ebd27b; }
.taptray-status-badge.is-ready { background: #5b8f79; color: #ffffff; border-color: #497664; }
.taptray-status-badge.is-closed { background: #eceff4; color: #536172; border-color: #cfd7e1; }
.item-square-action { min-width: 84px; width: 100%; min-height: 0; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 4px 10px; border-radius: 999px; border: 1px solid transparent; background: color-mix(in srgb, var(--skin-accent) 10%, var(--skin-surface)); color: var(--skin-accent); font-size: 12px; font-weight: 800; line-height: 1.1; white-space: nowrap; box-shadow: none; }
.item-square-action.is-remove { color: var(--skin-accent); }
.item-thumb { width: 60px; height: 60px; border-radius: 12px; overflow: hidden; background: var(--skin-surface-2); border: 1px solid var(--skin-border); flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); }
.item-action-square .item-thumb,
.item-media-rail .item-thumb { width: 60px; height: 60px; border-radius: 12px; }
.item-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: rgba(255,255,255,0.88); padding: 4px; box-sizing: border-box; }
.item-thumb.is-placeholder { display: flex; align-items: center; justify-content: center; color: var(--skin-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.taptray-order-btn { min-width: 0; width: 100%; justify-content: center; padding: 5px 8px; font-size: 12px; line-height: 1; font-weight: 700; border-radius: 999px; background: #5fbe7b; color: #fff; border: 1px solid #4ea66a; box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 3px 8px rgba(12,16,24,0.06); }
.taptray-order-btn.is-selected { background: var(--skin-accent); color: #fff; border-color: var(--skin-accent); }
.taptray-menu-copy .item-price-chip { padding: 4px 10px; font-size: 11px; font-weight: 700; }
.item-menu-wrapper { justify-self: end; display: none; }
body.edit-mode .item-menu-wrapper { display: block; }
.item-menu-wrapper { position: relative; }
.menu-button { background: none; border: none; color: #aaa; font-size: 14px; cursor: pointer; padding: 0 4px; pointer-events: auto; touch-action: auto; z-index: 10000; }
.item-menu-dropdown { display: none; position: absolute; top: 100%; right: 0; background-color: #222; border: 1px solid #444; z-index: 999999; font-size: 12px; padding: 4px 0; border-radius: 4px; min-width: 120px; white-space: nowrap; }
.item-menu-dropdown.menu-portal { z-index: 2000000; box-sizing: border-box; }
.item-menu-dropdown div { padding: 4px 10px; cursor: pointer; color: #eee; text-align: left; }
.item-menu-dropdown div:hover { background-color: #444; }
.item-expand-row { margin: -2px 0 8px; }
.item-expand-panel { display: block; width: 100%; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, var(--skin-surface) 0%, var(--skin-surface-2) 100%); border: 1px solid var(--skin-border); box-shadow: var(--skin-shadow); }
.item-expand-panel[hidden] { display: none !important; }
.taptray-tree-item-loading, .taptray-tree-item-error { padding: 8px 2px; color: var(--skin-muted); font-size: 14px; }
.taptray-tree-item-body { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.taptray-tree-item-media { width: 120px; overflow: hidden; border-radius: 18px; background: var(--skin-surface-3); border: 1px solid var(--skin-border); display: block; align-self: start; }
.taptray-tree-item-media img { width: 100%; height: auto; max-height: 240px; object-fit: contain; object-position: center top; display: block; background: rgba(255,255,255,0.6); }
.taptray-tree-item-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--skin-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.taptray-tree-item-copy { min-width: 0; }
.taptray-tree-item-title { color: var(--skin-text); font-size: 22px; line-height: 1.1; font-weight: 800; margin-bottom: 6px; }
.taptray-tree-item-price { color: var(--skin-accent); font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.taptray-tree-item-description { color: var(--skin-text); line-height: 1.5; }
.taptray-tree-item-description.is-empty { color: var(--skin-muted); font-style: italic; }
.taptray-tree-item-meta { margin-top: 10px; color: var(--skin-muted); font-size: 13px; }
.taptray-order-bar { margin-top: 8px; border-radius: 14px; overflow: hidden; background: var(--skin-surface); border: 1px solid var(--skin-border); box-shadow: 0 6px 14px rgba(31, 42, 46, 0.08); }
.taptray-order-bar.is-ready-alert { animation: taptray-ready-alert 0.42s ease-in-out 3; border-color: #d9791f; box-shadow: 0 0 0 2px rgba(217, 121, 31, 0.24), 0 10px 26px rgba(217, 121, 31, 0.28); }
.taptray-order-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; background: linear-gradient(180deg, var(--skin-surface-2), var(--skin-surface)); }
.taptray-order-bar.is-ready-alert .taptray-order-head { background: linear-gradient(180deg, #ffe4c4, #fff2df); }
.taptray-sidebar-ready-alert { animation: taptray-sidebar-ready-alert 0.42s ease-in-out 3; box-shadow: inset 0 0 0 2px rgba(217, 121, 31, 0.24), 0 0 0 1px rgba(217, 121, 31, 0.14); }
.taptray-sidebar-ready-alert .sidebar-content,
.taptray-sidebar-ready-alert .scrollable-list-area { background-color: #2d241b; }
.taptray-sidebar-ready-alert .sidebar-search,
.taptray-sidebar-ready-alert .sidebar-tabs { background-color: #3a2a1c; }
.taptray-order-toggle { min-width: 0; display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; text-align: left; color: inherit; }
.taptray-order-chevron { width: 18px; text-align: center; color: var(--skin-muted); font-size: 14px; }
.taptray-order-copy { min-width: 0; display: flex; flex-direction: column; }
.taptray-order-title { font-size: 14px; font-weight: 800; color: var(--skin-text); }
.taptray-order-meta { font-size: 14px; color: var(--skin-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.taptray-pay-btn { border: 1px solid #ba6232; background: linear-gradient(180deg, #dd8b4f 0%, #c26a37 100%); color: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 800; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.taptray-pay-btn[disabled] { opacity: 0.45; }
.taptray-order-items { display: grid; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--skin-border); background: var(--skin-surface); }
.taptray-order-item { padding: 8px 10px; border-radius: 12px; background: var(--skin-surface-2); border: 1px solid var(--skin-border); }
.taptray-order-item-title { font-size: 13px; font-weight: 700; color: var(--skin-text); line-height: 1.2; }
.taptray-order-item-meta { margin-top: 2px; font-size: 12px; color: var(--skin-muted); }
.taptray-order-list-item { min-height: 88px; }
.taptray-order-list-item .taptray-menu-row { pointer-events: none; }
.taptray-order-list-item .item-action-square,
.taptray-order-list-item .item-square-action { pointer-events: auto; }
.taptray-order-history { margin-top: 6px; border-top: 1px solid var(--skin-border); padding-top: 8px; }
.taptray-order-history-title { cursor: pointer; font-size: 12px; font-weight: 800; color: var(--skin-muted); list-style: none; }
.taptray-order-history-title::-webkit-details-marker { display: none; }
.taptray-order-history-title::before { content: "▸"; display: inline-block; margin-right: 6px; color: var(--skin-muted); }
.taptray-order-history[open] .taptray-order-history-title::before { content: "▾"; }
.taptray-order-history-group { margin-top: 8px; }
.taptray-order-history-meta { margin: 0 0 6px; font-size: 11px; font-weight: 700; color: var(--skin-muted); }
@keyframes taptray-ready-alert {
  0%, 100% { transform: translateZ(0); background: var(--skin-surface); }
  20%, 60% { background: #ffe8cc; }
  35%, 75% { background: #fff3e4; }
}
@keyframes taptray-sidebar-ready-alert {
  0%, 100% { background-color: inherit; filter: saturate(1); }
  18%, 62% { background-color: rgba(217, 121, 31, 0.08); filter: saturate(1.08); }
  38%, 78% { background-color: rgba(255, 183, 94, 0.06); filter: saturate(1.04); }
}
.tt-item-shell { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 22px; align-items: start; }
.tt-item-media { position: relative; height: clamp(360px, 58vh, 560px); border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, #f4d8bc, #f0eee8); border: 1px solid rgba(20, 17, 12, 0.12); box-shadow: 0 18px 40px rgba(20, 17, 12, 0.12); display: flex; align-items: center; justify-content: center; padding: 18px; box-sizing: border-box; }
.tt-item-media-img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; display: block; margin: 0 auto; }
.tt-item-media.is-dragover { outline: 2px dashed rgba(176, 66, 29, 0.55); outline-offset: -12px; }
.tt-item-media.is-uploading::after { content: "Uploading image..."; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,248,235,0.88); color: #8a5c43; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tt-item-media-placeholder { height: 100%; min-height: 320px; width: 100%; display: flex; align-items: center; justify-content: center; color: #8a5c43; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tt-item-main { padding: 20px 22px; border-radius: 24px; background: rgba(255,255,255,0.92); border: 1px solid rgba(20, 17, 12, 0.1); box-shadow: 0 18px 40px rgba(20, 17, 12, 0.08); }
.tt-item-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.tt-item-kicker { font-size: 12px; font-weight: 700; color: #b0421d; letter-spacing: 0.08em; text-transform: uppercase; }
#ttItemTitle, .tt-item-view-title { margin: 8px 0 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.08; font-family: Georgia, serif; color: #201814; }
.tt-item-save-state { margin-top: 8px; font-size: 12px; font-weight: 600; color: #7a6a59; }
.tt-item-save-state[data-state="saving"] { color: #b07d27; }
.tt-item-save-state[data-state="error"] { color: #b0421d; }
.tt-item-preview-btn { margin-top: 12px; border: 1px solid rgba(176, 66, 29, 0.18); background: #fff7f1; color: #8e451f; border-radius: 999px; padding: 9px 14px; font-weight: 700; }
.tt-item-price-wrap, .tt-item-view-price { width: min(180px, 100%); }
.tt-item-view-price { color: #8e451f; font-size: 16px; font-weight: 800; white-space: nowrap; }
.tt-item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.tt-field { display: flex; flex-direction: column; gap: 8px; }
.tt-field label, .tt-item-view-label { font-size: 13px; font-weight: 700; color: #5a5147; }
.tt-input, .tt-textarea { width: 100%; border: 1px solid rgba(20, 17, 12, 0.12); border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff; }
.tt-textarea { resize: vertical; min-height: 116px; }
.tt-toggle-row { justify-content: center; gap: 14px; padding: 10px 0 0; }
.tt-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.tt-item-notes { margin-top: 18px; }
.tt-item-notes-label { font-size: 13px; font-weight: 700; color: #5a5147; margin-bottom: 8px; }
.tt-item-notes-input { min-height: 180px; background: #f8f4ed; line-height: 1.55; }
.tt-item-view-copy { margin-top: 18px; color: #3d3027; font-size: 16px; line-height: 1.55; }
.tt-item-view-copy p { margin: 0 0 10px; }
.tt-item-view-copy p:last-child { margin-bottom: 0; }
.tt-item-view-meta { margin-top: 16px; color: #5a5147; font-size: 14px; }
@media (max-width: 980px) { .tt-item-shell { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .list-sub-item { grid-template-columns: minmax(0, 1fr) auto; min-height: 76px; } .taptray-menu-row { grid-template-columns: 52px minmax(0, 1fr) 84px; gap: 8px; } .item-title { font-size: 16px; } .taptray-menu-copy .item-summary, .taptray-menu-row .item-summary { font-size: 12px !important; line-height: 1.25; } .item-action-square { width: 84px; } .item-square-main { width: 50px; height: 50px; } .item-qty-badge { min-width: 14px; height: 14px; font-size: 8px; top: -4px; left: -4px; } .taptray-status-badge { min-width: 84px; width: 100%; padding: 4px 8px; font-size: 12px; line-height: 1.1; white-space: nowrap; } .item-square-action { min-width: 84px; width: 100%; min-height: 0; padding: 4px 8px; font-size: 12px; line-height: 1.1; white-space: nowrap; } .item-thumb, .item-action-square .item-thumb, .item-media-rail .item-thumb { width: 50px; height: 50px; } .taptray-order-btn { padding: 5px 6px; font-size: 12px; } .taptray-order-title { font-size: 13px; } .taptray-order-meta { font-size: 14px; } .item-menu-wrapper { grid-column: 2; grid-row: 1; } .taptray-tree-item-body { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; } .taptray-tree-item-media { width: 92px; } .taptray-tree-item-media img { max-height: 184px; } .taptray-tree-item-title { font-size: 18px; } .tt-item-details { padding: 10px; } .tt-item-main { padding: 16px; } .tt-item-grid { grid-template-columns: 1fr; } .tt-item-header { flex-direction: column; } .tt-item-price-wrap, .tt-item-view-price { width: 100%; } }
