Files
MBN_STOCK_WEBVIEW/Web/styles.css

282 lines
20 KiB
CSS

:root {
color-scheme: dark;
--bg: #07101d;
--surface: #0d1929;
--surface-2: #111f32;
--surface-3: #16263b;
--border: #1e314a;
--border-soft: #17283d;
--text: #e8eff8;
--muted: #8799af;
--muted-2: #5e728b;
--mint: #32d5a4;
--mint-soft: rgba(50, 213, 164, .13);
--blue: #56a8ff;
--amber: #ffba55;
--red: #ff6680;
--violet: #9b8cff;
--shadow: 0 18px 44px rgba(0, 0, 0, .24);
font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: var(--bg); color: var(--text); font-size: 13px; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); width: 100%; height: 100%; }
.sidebar {
display: flex;
min-height: 0;
flex-direction: column;
background: #091421;
border-right: 1px solid var(--border);
}
.brand-block { display: flex; align-items: center; gap: 11px; height: 82px; padding: 0 20px; border-bottom: 1px solid var(--border-soft); }
.brand-mark {
display: grid;
width: 37px;
height: 37px;
place-items: center;
border-radius: 11px;
background: linear-gradient(145deg, #49edbb, #1db989);
box-shadow: 0 8px 24px rgba(50, 213, 164, .2);
color: #05120e;
font-size: 18px;
font-weight: 900;
}
.brand-block strong { display: block; font-size: 13px; letter-spacing: .07em; }
.brand-block span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.market-nav { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 3px; overflow-y: auto; padding: 14px 11px; }
.nav-item {
display: grid;
grid-template-columns: 29px 1fr;
align-items: center;
min-height: 40px;
padding: 0 11px;
border: 1px solid transparent;
border-radius: 9px;
background: transparent;
color: var(--muted);
text-align: left;
cursor: pointer;
transition: .16s ease;
}
.nav-item span { display: grid; width: 22px; height: 22px; place-items: center; color: #647991; font-size: 12px; font-weight: 700; }
.nav-item:hover { background: rgba(255,255,255,.035); color: var(--text); }
.nav-item.active { border-color: rgba(50,213,164,.18); background: var(--mint-soft); color: #dffdf4; font-weight: 650; }
.nav-item.active span { color: var(--mint); }
.sidebar-status { padding: 14px 15px 17px; border-top: 1px solid var(--border-soft); background: rgba(0,0,0,.09); }
.status-row { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; margin: 7px 0; color: var(--muted); font-size: 10px; }
.status-row strong { color: #b9c6d5; font-size: 10px; font-weight: 600; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-dot.ok { background: var(--mint); box-shadow: 0 0 0 3px rgba(50,213,164,.1); }
.status-dot.warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(255,186,85,.1); }
.status-dot.pending, .status-dot.unconfigured { background: var(--muted-2); box-shadow: 0 0 0 3px rgba(94,114,139,.1); }
.status-dot.healthy { background: var(--mint); box-shadow: 0 0 0 3px rgba(50,213,164,.1); }
.status-dot.partial { background: var(--amber); box-shadow: 0 0 0 3px rgba(255,186,85,.1); }
.status-dot.error { background: var(--red); box-shadow: 0 0 0 3px rgba(255,102,128,.1); }
.runtime { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border-soft); color: var(--muted-2); font: 9px/1.4 Consolas, monospace; }
.workspace { min-width: 0; min-height: 0; overflow: auto; padding: 0 24px 22px; background: radial-gradient(circle at 76% -10%, rgba(44,104,132,.13), transparent 35%), var(--bg); }
.workspace-header { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 24px; }
.eyebrow, .panel-kicker { margin: 0 0 5px; color: var(--mint); font: 9px/1.2 Consolas, monospace; letter-spacing: .14em; }
h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.035em; }
.header-meta { display: flex; align-items: center; gap: 25px; }
.header-meta > div { display: flex; flex-direction: column; gap: 4px; }
.header-meta span { color: var(--muted-2); font-size: 9px; text-transform: uppercase; }
.header-meta strong { color: #cbd7e5; font: 12px Consolas, monospace; }
.ghost-button, .playlist-actions button, .event-log button {
min-height: 30px;
border: 1px solid var(--border);
border-radius: 7px;
background: var(--surface-2);
color: #aebed0;
cursor: pointer;
}
.ghost-button { padding: 0 12px; }
.ghost-button:hover, .playlist-actions button:hover, .event-log button:hover { border-color: #36506e; color: white; }
.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.summary-strip article { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; min-width: 0; min-height: 62px; gap: 11px; padding: 10px 13px; border: 1px solid var(--border-soft); border-radius: 11px; background: rgba(13,25,41,.78); }
.summary-strip strong, .summary-strip small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-strip strong { margin-bottom: 3px; font-size: 11px; }
.summary-strip small { color: var(--muted); font-size: 9px; }
.summary-strip b { align-self: start; margin-top: 4px; color: var(--muted-2); font: 8px Consolas, monospace; }
.metric-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; font: 10px Consolas, monospace; }
.metric-icon.mint { background: var(--mint-soft); color: var(--mint); }
.metric-icon.blue { background: rgba(86,168,255,.12); color: var(--blue); }
.metric-icon.amber { background: rgba(255,186,85,.12); color: var(--amber); }
.metric-icon.violet { background: rgba(155,140,255,.12); color: var(--violet); }
.metric-icon.database-icon.pending, .metric-icon.database-icon.unconfigured { background: rgba(94,114,139,.12); color: var(--muted); }
.metric-icon.database-icon.healthy { background: var(--mint-soft); color: var(--mint); }
.metric-icon.database-icon.partial { background: rgba(255,186,85,.12); color: var(--amber); }
.metric-icon.database-icon.error { background: rgba(255,102,128,.1); color: var(--red); }
.database-summary.healthy { border-color: rgba(50,213,164,.22); }
.database-summary.partial { border-color: rgba(255,186,85,.2); }
.database-summary.error { border-color: rgba(255,102,128,.24); }
.database-summary.healthy > b { color: var(--mint); }
.database-summary.partial > b { color: var(--amber); }
.database-summary.error > b { color: var(--red); }
.console-grid { display: grid; grid-template-columns: minmax(250px, .73fr) minmax(410px, 1.2fr) minmax(330px, 1fr); gap: 12px; min-height: 680px; height: calc(100vh - 188px); }
.panel { display: flex; min-width: 0; min-height: 0; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; background: rgba(13,25,41,.92); box-shadow: var(--shadow); overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; min-height: 67px; padding: 0 16px; border-bottom: 1px solid var(--border-soft); }
.panel-header h2 { margin: 0; font-size: 15px; font-weight: 650; }
.badge { padding: 4px 7px; border: 1px solid rgba(50,213,164,.22); border-radius: 10px; background: var(--mint-soft); color: var(--mint); font: 8px Consolas, monospace; letter-spacing: .05em; }
.badge.neutral { border-color: var(--border); background: var(--surface-2); color: var(--muted); }
.badge.live { border-color: rgba(50,213,164,.36); background: rgba(50,213,164,.16); box-shadow: 0 0 0 3px rgba(50,213,164,.04); }
.search-box { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 6px; height: 40px; margin: 13px 13px 10px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: #091522; }
.search-box > span { color: var(--muted); font-size: 17px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.search-box input::placeholder { color: #52657d; }
kbd { padding: 3px 5px; border: 1px solid #283c55; border-bottom-width: 2px; border-radius: 4px; color: #60748c; font: 8px Consolas, monospace; }
.catalog-tabs { display: flex; gap: 5px; padding: 0 13px 11px; border-bottom: 1px solid var(--border-soft); }
.catalog-tabs button { padding: 5px 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.catalog-tabs button.active { border-color: var(--border); background: var(--surface-3); color: white; }
.live-data-panel { display: flex; min-height: 235px; max-height: 54%; flex: 0 1 365px; flex-direction: column; border-bottom: 1px solid var(--border); background: #091522; overflow: hidden; }
.live-data-header { display: flex; min-height: 51px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 7px; border-bottom: 1px solid var(--border-soft); }
.live-data-header h3 { margin: 0; color: #dfe9f5; font-size: 11px; font-weight: 650; }
.live-data-header .panel-kicker { margin-bottom: 3px; }
.live-retry { min-height: 27px; padding: 0 9px; border: 1px solid #29415b; border-radius: 6px; background: var(--surface-2); color: #aebed0; font-size: 9px; cursor: pointer; }
.live-retry:hover { border-color: var(--mint); color: var(--mint); }
.database-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px 10px 0; }
.database-source { display: grid; grid-template-columns: 7px auto minmax(0, 1fr); align-items: center; min-width: 0; gap: 5px; min-height: 28px; padding: 0 7px; border: 1px solid var(--border-soft); border-radius: 6px; background: rgba(17,31,50,.72); }
.database-source .source-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }
.database-source strong { color: #aebed0; font-size: 8px; }
.database-source small { overflow: hidden; color: var(--muted-2); font-size: 8px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.database-source.healthy { border-color: rgba(50,213,164,.17); }
.database-source.healthy .source-dot { background: var(--mint); box-shadow: 0 0 0 2px rgba(50,213,164,.09); }
.database-source.healthy small { color: #79d9bd; }
.database-source.error { border-color: rgba(255,102,128,.2); }
.database-source.error .source-dot { background: var(--red); box-shadow: 0 0 0 2px rgba(255,102,128,.08); }
.database-source.error small { color: #dc8796; }
.database-source.pending .source-dot { animation: live-pulse 1.1s ease-in-out infinite; background: var(--blue); }
.database-source.unconfigured small { color: #657991; }
.live-data-state { display: flex; min-height: 42px; align-items: center; gap: 9px; margin: 7px 10px 0; padding: 7px 9px; border: 1px solid var(--border-soft); border-radius: 7px; background: rgba(13,25,41,.76); color: #b7c6d7; }
.live-data-state:empty { display: none; }
.live-data-state strong, .live-data-state small { display: block; }
.live-data-state strong { margin-bottom: 2px; font-size: 9px; }
.live-data-state small { overflow: hidden; color: var(--muted-2); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.live-data-state.error { border-color: rgba(255,102,128,.22); background: rgba(255,102,128,.055); }
.live-data-state.error strong { color: #ff9bad; }
.live-data-state.ready { border-color: rgba(50,213,164,.18); background: rgba(50,213,164,.055); }
.live-data-state.ready strong { color: #8bdcc4; }
.live-spinner { width: 16px; height: 16px; flex: 0 0 auto; border: 2px solid rgba(86,168,255,.2); border-top-color: var(--blue); border-radius: 50%; animation: live-spin .8s linear infinite; }
.live-error-icon { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgba(255,102,128,.13); color: var(--red); font: 700 10px Consolas, monospace; }
.live-data-tables { min-height: 0; flex: 1; overflow-y: auto; padding: 7px 10px 10px; }
.live-table-card { margin-bottom: 7px; border: 1px solid var(--border-soft); border-radius: 7px; background: rgba(13,25,41,.7); overflow: hidden; }
.live-table-card:last-child { margin-bottom: 0; }
.live-table-card > header { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 8px; border-bottom: 1px solid var(--border-soft); }
.live-table-card h4 { margin: 0 0 2px; color: #cbd8e7; font-size: 9px; }
.live-table-card header small { display: block; color: var(--muted-2); font-size: 7px; }
.live-source-badge { padding: 3px 5px; border: 1px solid rgba(86,168,255,.2); border-radius: 5px; background: rgba(86,168,255,.08); color: #79b7f8; font: 7px Consolas, monospace; }
.live-table-scroll { max-height: 145px; overflow: auto; }
.live-table { width: max-content; min-width: 100%; table-layout: auto; }
.live-table th { height: 27px; min-width: 76px; padding: 0 7px; background: #0c1a29; color: #70849c; font-size: 7px; white-space: nowrap; }
.live-table td { max-width: 210px; height: 27px; padding: 0 7px; overflow: hidden; color: #adbdcf; font: 8px Consolas, "Malgun Gothic", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.live-table tbody tr { cursor: default; }
.live-table tbody tr:hover { background: rgba(86,168,255,.035); }
.live-table-empty { margin: 0; padding: 15px 8px; color: var(--muted-2); font-size: 8px; text-align: center; }
@keyframes live-spin { to { transform: rotate(360deg); } }
@keyframes live-pulse { 50% { opacity: .35; } }
.catalog-list { min-height: 0; flex: 1; overflow-y: auto; padding: 8px; }
.catalog-item { display: grid; grid-template-columns: 34px 1fr 27px; align-items: center; min-height: 50px; gap: 9px; padding: 6px 7px; border: 1px solid transparent; border-radius: 8px; }
.catalog-item:hover { border-color: var(--border); background: rgba(255,255,255,.025); }
.cut-code { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 7px; background: var(--surface-3); color: #8ca2bc; font: 9px Consolas, monospace; }
.catalog-item strong, .catalog-item small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.catalog-item strong { margin-bottom: 3px; font-size: 10px; }
.catalog-item small { color: var(--muted-2); font-size: 8px; }
.add-cut { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid #29415b; border-radius: 7px; background: #102034; color: var(--mint); cursor: pointer; }
.add-cut:hover { border-color: var(--mint); background: var(--mint-soft); }
.catalog-empty { padding: 35px 10px; color: var(--muted); text-align: center; }
.playlist-actions { display: grid; grid-template-columns: auto 30px 30px auto 1fr auto auto; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
.playlist-actions button { padding: 0 9px; font-size: 9px; }
.playlist-actions button.danger { color: #ff9aad; }
.playlist-actions button.primary-soft { border-color: rgba(50,213,164,.23); background: var(--mint-soft); color: var(--mint); }
.table-wrap { position: relative; min-height: 0; flex: 1; overflow: auto; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
thead { position: sticky; z-index: 2; top: 0; background: #0d1929; }
th { height: 35px; border-bottom: 1px solid var(--border); color: var(--muted-2); font-size: 8px; font-weight: 600; text-align: left; text-transform: uppercase; }
td { height: 47px; border-bottom: 1px solid var(--border-soft); color: #b9c7d8; font-size: 10px; }
th, td { padding: 0 8px; }
.check-cell { width: 35px; text-align: center; }
.number-cell { width: 34px; color: var(--muted-2); text-align: center; }
.drag-cell { width: 42px; color: var(--muted-2); text-align: center; }
tbody tr { cursor: pointer; transition: .12s ease; }
tbody tr:hover { background: rgba(255,255,255,.022); }
tbody tr.active { background: var(--mint-soft); }
tbody tr.dragging { opacity: .42; }
tbody tr.drag-over { box-shadow: inset 0 2px var(--mint); }
td strong, td small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
td strong { margin-bottom: 3px; color: #d7e2ee; font-size: 10px; }
td small { color: var(--muted-2); font-size: 8px; }
.row-type { display: inline-block; padding: 3px 5px; border-radius: 5px; background: var(--surface-3); color: #7f96b0; font: 8px Consolas, monospace; }
input[type="checkbox"] { accent-color: var(--mint); }
.empty-state { position: absolute; inset: 36px 0 0; display: none; place-content: center; padding: 20px; color: var(--muted); text-align: center; }
.empty-state.show { display: grid; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { margin-bottom: 7px; color: #91a2b6; font-size: 11px; }
.empty-state span { color: var(--muted-2); font-size: 9px; }
.playout-panel { padding-bottom: 12px; }
.preview-stage { position: relative; display: grid; min-height: 255px; margin: 13px; place-items: center; overflow: hidden; border: 1px solid #29405a; border-radius: 9px; background: radial-gradient(circle at 50% 45%, #193552, #08121f 60%); }
.preview-stage::after { position: absolute; inset: 0; background-image: linear-gradient(rgba(65,101,133,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(65,101,133,.08) 1px, transparent 1px); background-size: 24px 24px; content: ""; }
.safe-area { position: relative; z-index: 1; width: 78%; padding: 31px 20px; border: 1px dashed rgba(137,167,195,.24); color: var(--muted); text-align: center; }
.safe-area span, .safe-area strong, .safe-area small { display: block; }
.safe-area span { margin-bottom: 13px; color: var(--mint); font: 8px Consolas, monospace; letter-spacing: .16em; }
.safe-area strong { margin-bottom: 7px; color: #e8f0fa; font-size: 16px; }
.safe-area small { color: #6f839b; font-size: 9px; }
.stage-corner { position: absolute; z-index: 2; width: 20px; height: 20px; border-color: var(--mint); border-style: solid; opacity: .7; }
.top-left { top: 10px; left: 10px; border-width: 1px 0 0 1px; }.top-right { top: 10px; right: 10px; border-width: 1px 1px 0 0; }.bottom-left { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }.bottom-right { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; }
.playout-controls { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 6px; padding: 0 13px 12px; }
.playout-controls button { display: flex; min-width: 0; height: 42px; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: #b5c4d5; font-size: 9px; font-weight: 700; cursor: pointer; }
.playout-controls button span { color: var(--muted-2); font: 8px Consolas, monospace; }
.playout-controls button:hover { filter: brightness(1.15); }
.playout-controls .prepare { border-color: rgba(86,168,255,.34); background: rgba(86,168,255,.1); color: #8ec4ff; }
.playout-controls .take-in { border-color: rgba(50,213,164,.38); background: var(--mint-soft); color: var(--mint); }
.playout-controls .take-out { border-color: rgba(255,102,128,.28); background: rgba(255,102,128,.08); color: #ff8fa2; }
.event-log { display: flex; min-height: 0; flex: 1; flex-direction: column; margin: 0 13px; border: 1px solid var(--border-soft); border-radius: 8px; background: #08131f; overflow: hidden; }
.event-log-header { display: flex; align-items: center; justify-content: space-between; min-height: 33px; padding: 0 10px; border-bottom: 1px solid var(--border-soft); }
.event-log-header strong { color: #7f92aa; font-size: 9px; }
.event-log button { min-height: 22px; padding: 0 7px; border: 0; background: transparent; color: var(--muted-2); font-size: 8px; }
.event-log ol { min-height: 0; margin: 0; padding: 6px 10px 8px 30px; overflow-y: auto; color: #7890aa; font: 9px/1.75 Consolas, monospace; }
.event-log li::marker { color: #40556d; }
.event-log time { margin-right: 8px; color: #455d77; }
.toast { position: fixed; z-index: 20; right: 22px; bottom: 20px; max-width: 320px; padding: 11px 14px; transform: translateY(25px); border: 1px solid rgba(50,213,164,.28); border-radius: 8px; background: #12273a; box-shadow: var(--shadow); color: #d9f7ef; font-size: 10px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: #263a51; background-clip: padding-box; }
@media (max-width: 1180px) {
.app-shell { grid-template-columns: 178px minmax(0, 1fr); }
.brand-block { padding: 0 14px; }
.console-grid { grid-template-columns: minmax(220px, .8fr) minmax(380px, 1.25fr); height: auto; }
.playout-panel { grid-column: 1 / -1; min-height: 520px; }
.summary-strip { grid-template-columns: repeat(2, 1fr); }
}