/* DMM Video — στοιχεία πίνακα και καρτέλας αιτήματος (πάνω από το Filament) */
:root {
  --v-bg: #fff; --v-soft: #f4f6f9; --v-line: #e3e7ee; --v-ink: #111827; --v-muted: #6b7280;
  --v-blue: #0070b8; --v-ok: #16a34a; --v-warn: #d97706; --v-bad: #dc2626;
}
.dark { --v-bg: #18181b; --v-soft: #232327; --v-line: #34343a; --v-ink: #f4f4f5; --v-muted: #a1a1aa; }

.v-wrap { display: flex; flex-direction: column; gap: 1rem; color: var(--v-ink); }
.v-muted { color: var(--v-muted); font-size: .85rem; }
.v-small { margin-top: .8rem; }
.v-empty { color: var(--v-muted); font-size: .9rem; padding: .4rem 0; }
.v-link { color: var(--v-blue); font-weight: 600; font-size: .9rem; background: none; border: 0; cursor: pointer; padding: 0; }
.v-link:hover { text-decoration: underline; }
.v-x { border: 0; background: none; color: var(--v-muted); cursor: pointer; font-size: .9rem; padding: .2rem .4rem; border-radius: .4rem; }
.v-x:hover { color: var(--v-bad); background: var(--v-soft); }

/* κουμπιά / πεδία */
.v-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--v-blue); color: #fff; border: 0;
  border-radius: .6rem; padding: .55rem 1rem; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; min-height: 2.5rem; }
.v-btn:hover { filter: brightness(1.08); }
.v-btn-ok { background: var(--v-ok); font-size: 1rem; padding: .7rem 1.3rem; }
.v-btn-warn { background: var(--v-warn); }
.v-btn-ghost { background: var(--v-soft); color: var(--v-ink); border: 1px solid var(--v-line); }
.v-input { width: 100%; border: 1px solid var(--v-line); border-radius: .6rem; padding: .55rem .7rem; font-size: .95rem;
  background: var(--v-bg); color: var(--v-ink); font-family: inherit; }
.v-input:focus { outline: 2px solid var(--v-blue); outline-offset: -1px; }
.v-select { width: auto; min-width: 8rem; }
.v-label { font-size: .85rem; color: var(--v-muted); display: block; margin-top: .6rem; }
.v-inline-form { display: flex; gap: .6rem; align-items: flex-start; margin-top: .8rem; }
.v-inline-form .v-input { flex: 1; }
.v-stack { display: flex; flex-direction: column; gap: .4rem; }

/* chips/badges */
.v-chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 600; padding: .15rem .55rem;
  border-radius: 999px; background: var(--v-soft); border: 1px solid var(--v-line); white-space: nowrap; }
.v-chip.is-warn { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.v-chip.is-bad { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.v-badge { font-size: .75rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; margin-left: .4rem; vertical-align: middle; }
.v-badge-review { background: #dbeafe; color: #1e40af; }
.v-badge-changes { background: #fee2e2; color: #991b1b; }
.v-badge-approved { background: #dcfce7; color: #166534; }

/* κατάσταση */
.v-status { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-left: 6px solid var(--c); background: var(--v-bg); border-radius: .9rem; padding: 1rem 1.2rem; box-shadow: 0 1px 2px rgb(0 0 0 / .06);
  outline: 1px solid var(--v-line); }
.v-status-label { font-size: 1.5rem; font-weight: 800; color: var(--c); line-height: 1.2; }
.v-status-hint { color: var(--v-muted); font-size: .95rem; }
.v-status-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.v-alert { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: .8rem; padding: .8rem 1rem; font-weight: 600; }
.dark .v-alert { background: #3b1212; border-color: #7f1d1d; color: #fecaca; }

/* διάταξη */
.v-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.v-main, .v-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.v-card { background: var(--v-bg); border-radius: .9rem; padding: 1rem 1.2rem; outline: 1px solid var(--v-line); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.v-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .7rem; }
.v-card-h h2 { font-size: 1.1rem; font-weight: 800; }
.v-h3 { font-weight: 700; margin: 1rem 0 .4rem; font-size: .95rem; }

/* εκδοχές */
.v-version { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 1.2rem; }
.v-player { background: #000; border-radius: .7rem; overflow: hidden; display: flex; justify-content: center; }
.v-player video { width: 100%; max-height: 72vh; display: block; }
.v-version-side { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.v-version-title { font-size: 1.3rem; font-weight: 800; }
.v-note { white-space: pre-line; background: var(--v-soft); border-radius: .5rem; padding: .5rem .7rem; font-size: .9rem; }
.v-decide { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; padding-top: .8rem; border-top: 1px dashed var(--v-line); }
.v-decide .v-btn { align-self: flex-start; }
.v-older { margin-top: 1rem; }
.v-older summary { cursor: pointer; font-weight: 600; color: var(--v-muted); }
.v-older-row { display: flex; gap: .8rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--v-line); flex-wrap: wrap; }

/* ανέβασμα */
.v-upload { margin-top: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.v-upload-row { display: flex; gap: .6rem; align-items: center; }
.v-upload-row .v-input { flex: 1; }
.v-upload-row label.v-btn { cursor: pointer; }
.v-drop { position: relative; border: 2px dashed var(--v-line); border-radius: .8rem; padding: 1.2rem; text-align: center;
  display: flex; flex-direction: column; gap: .2rem; background: var(--v-soft); cursor: pointer; }
.v-drop span { color: var(--v-muted); font-size: .85rem; }
.v-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.v-drop.is-over { border-color: var(--v-blue); background: #e0f0fb; }
.v-progress { position: relative; height: 1.6rem; background: var(--v-soft); border-radius: .5rem; overflow: hidden; outline: 1px solid var(--v-line); }
.v-progress > div { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #0070b8, #22a3e8); transition: width .3s; }
.v-progress > span { position: relative; display: block; text-align: center; font-size: .8rem; font-weight: 700; line-height: 1.6rem; }
.v-progress.is-err > div { background: var(--v-bad); }
.v-progress.is-ok > div { background: var(--v-ok); }
.v-up-item { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }

/* υλικό */
.v-assets { display: flex; flex-direction: column; margin-top: .8rem; }
.v-assets li { display: flex; gap: .8rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--v-line); }
.v-thumb { width: 4.2rem; height: 4.2rem; flex: none; border-radius: .5rem; overflow: hidden; background: var(--v-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.v-thumb video, .v-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v-asset-body { flex: 1; min-width: 0; }
.v-asset-name { font-weight: 600; overflow-wrap: anywhere; }
.v-asset-state { font-size: .85rem; font-weight: 600; color: var(--v-warn); }
.v-assets li.is-failed .v-asset-state, .v-assets li.is-expired .v-asset-state { color: var(--v-bad); }
.v-asset-act { display: flex; gap: .6rem; align-items: center; flex: none; }

/* διορθώσεις */
.v-revs { display: flex; flex-direction: column; }
.v-revs li { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-top: 1px solid var(--v-line); }
.v-revs label { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; flex: 1; }
.v-revs input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; flex: none; accent-color: var(--v-ok); }
.v-revs small { display: block; }
.v-revs li.is-done span { text-decoration: line-through; color: var(--v-muted); }
.v-at { background: #dbeafe; color: #1e40af; border-radius: .3rem; padding: 0 .35rem; margin-right: .3rem; font-size: .85rem; }

/* οδηγίες */
.v-brief { display: grid; grid-template-columns: max-content 1fr; gap: .35rem .9rem; font-size: .92rem; }
.v-brief dt { color: var(--v-muted); }
.v-pre { white-space: pre-line; font-size: .92rem; background: var(--v-soft); border-radius: .5rem; padding: .6rem .8rem; }
.v-shots { display: flex; flex-direction: column; gap: .35rem; counter-reset: s; }
.v-shots li { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; font-size: .9rem; background: var(--v-soft); border-radius: .5rem; padding: .45rem .7rem; }

/* συζήτηση */
.v-chat { display: flex; flex-direction: column; gap: .5rem; max-height: 60vh; overflow-y: auto; padding-right: .2rem; }
.v-event { font-size: .8rem; color: var(--v-muted); text-align: center; }
.v-event small { opacity: .8; }
.v-msg { background: var(--v-soft); border-radius: .7rem; padding: .5rem .75rem; max-width: 92%; }
.v-msg.is-me { align-self: flex-end; background: #e0f0fb; }
.dark .v-msg.is-me { background: #0c3554; }
.v-msg-h small { color: var(--v-muted); margin-left: .3rem; }
.v-msg-b { font-size: .92rem; overflow-wrap: anywhere; }

/* πίνακας */
.v-summary { display: flex; gap: .8rem; flex-wrap: wrap; }
.v-sum-box { display: flex; align-items: baseline; gap: .5rem; background: var(--v-bg); outline: 1px solid var(--v-line); border-radius: .8rem; padding: .7rem 1rem; }
.v-sum-box b { font-size: 1.6rem; color: var(--v-blue); }
.v-sum-box.is-bad b { color: var(--v-bad); }
.v-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: .7rem; padding-bottom: .5rem; align-items: start; }
.v-col { background: var(--v-soft); border-radius: .9rem; padding: .6rem; border-top: 4px solid var(--c); display: flex; flex-direction: column; gap: .5rem; min-height: 8rem; }
.v-col-h { display: flex; justify-content: space-between; font-weight: 800; color: var(--c); padding: 0 .2rem; }
.v-col-hint { font-size: .75rem; color: var(--v-muted); padding: 0 .2rem .2rem; }
.v-col-empty { color: var(--v-muted); text-align: center; padding: .6rem; }
.v-tile { display: flex; flex-direction: column; gap: .3rem; background: var(--v-bg); border-radius: .7rem; padding: .65rem .75rem;
  outline: 1px solid var(--v-line); box-shadow: 0 1px 2px rgb(0 0 0 / .05); transition: transform .1s; }
.v-tile:hover { transform: translateY(-1px); outline-color: var(--c); }
.v-tile.is-overdue { outline: 2px solid var(--v-bad); }
.v-tile-client { font-size: .78rem; font-weight: 700; color: var(--v-muted); text-transform: uppercase; letter-spacing: .02em; }
.v-tile-title { font-weight: 700; line-height: 1.3; }
.v-tile-meta { display: flex; flex-wrap: wrap; gap: .3rem; }
.v-tile-foot { font-size: .75rem; color: var(--v-muted); }

@media (max-width: 1100px) {
  .v-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .v-version { grid-template-columns: 1fr; }
  .v-player video { max-height: 70vh; }
  .v-inline-form, .v-upload-row { flex-direction: column; align-items: stretch; }
  .v-select { width: 100%; }
  .v-board { grid-template-columns: 1fr; overflow-x: visible; }
  .v-col { min-height: 0; }
  .v-shots li { grid-template-columns: 1fr; gap: .1rem; }
  .v-status-label { font-size: 1.25rem; }
}
