/* ===== السحب والإفلات للترولات وصفحات صالات الفقاسة ===== */
.trol.dnd { cursor: grab; user-select: none; transition: transform .1s, box-shadow .1s; } .trol.dnd:active { cursor: grabbing; }
.trol.pick { outline: 3px solid #1e88e5; transform: scale(1.06); } .trol.over, .hbox.over, .tb-setter.over { box-shadow: 0 0 0 3px #43a047 inset; background: #e8f5e9; }
.trol.moved { opacity: .45; cursor: default; } .trolgrid.sm { grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 4px; margin: 6px 0; } .trolgrid.sm .tbar { height: 30px; }
.dnd-hint { background: #e3f2fd; border: 1px dashed #64b5f6; border-radius: 8px; padding: 6px 10px; margin: 6px 0; font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; margin: 8px 0; } .tb-arrow { font-size: 28px; align-self: center; color: var(--mut); }
.tb-setter, .tb-room { background: #fff8e1; border: 1px solid #ffe082; border-radius: 10px; padding: 10px; } .tb-room { background: #fce4ec; border-color: #f48fb1; }
.tb-h { font-weight: 700; margin-bottom: 6px; } .tb-h small { font-weight: 400; color: var(--mut); }
.hboxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.hbox { background: #fff; border: 2px dashed #f06292; border-radius: 10px; padding: 8px; min-height: 96px; cursor: pointer; } .hbox.full { border-style: solid; border-color: #bdbdbd; opacity: .8; } .hbox.target { border-color: #1e88e5; }
.hb-n { font-weight: 700; font-size: 15px; } .hb-t { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.tchip { display: inline-flex; align-items: center; gap: 2px; min-width: 22px; height: 22px; justify-content: center; border-radius: 5px; color: #fff; font-size: 11px; font-weight: 700; background: #8d6e63; padding: 0 4px; }
.tchip.old { background: #bdbdbd; } .tchip.free { background: #eeeeee; color: #9e9e9e; } .tchip i { font-style: normal; cursor: pointer; margin-inline-start: 2px; opacity: .85; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
@media (max-width: 800px) { .tboard { grid-template-columns: 1fr; } .tb-arrow { transform: rotate(-90deg); justify-self: center; } }
[data-theme="dark"] :is(.tb-setter, .tb-room, .hbox, .dnd-hint) { background: var(--card); color: var(--txt); border-color: var(--line); } [data-theme="dark"] .trol.over, [data-theme="dark"] .hbox.over { background: #18291c; }/* ===== رسمة الماكينة وأنواع الحضانات ===== */
.mach { background: #eceff1; border: 3px solid #78909c; border-radius: 12px; padding: 8px; margin: 6px 0; direction: ltr; overflow-x: auto; }
.mach-in { display: grid; gap: 5px; } .mach.sm { padding: 5px; border-width: 2px; } .mach.sm .mach-in { gap: 3px; }
.mcell { border-radius: 6px; padding: 2px; } .mcell .trol { margin: 0; } .mcell > b { display: block; text-align: center; padding: 10px 0; font-size: 12px; }
.mcell.z-A { background: #ef9a9a; } .mcell.z-B { background: #ffe082; } .mcell.z-C { background: #a5d6a7; } .mcell.z-U { background: #b3e5fc; }
.mcell.cw { border-right: 4px solid #0288d1; } .mach.sm .mcell .tbar { height: 26px; } .mach.sm .mcell .trol small { display: none; }
.mfan { display: flex; align-items: center; justify-content: space-around; background: #455a64; color: #fff; border-radius: 6px; padding: 3px; height: 100%; min-height: 26px; } .mfan.v { flex-direction: column; min-width: 26px; }
.mfan span { font-size: 18px; animation: mspin 3s linear infinite; display: inline-block; } .mfan i { font-style: normal; color: #ff7043; font-size: 14px; }
@keyframes mspin { to { transform: rotate(360deg); } }
.mdoor { text-align: center; font-size: 11px; color: #546e7a; border-top: 3px dashed #90a4ae; margin-top: 6px; padding-top: 2px; }
.zleg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; margin: 4px 0 8px; } .zleg i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; margin-inline-end: 3px; }
.mtypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; } .mtype { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; } .mtype.on { border-color: var(--pri); }
.mt-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .mt-h h3 { margin: 0; }
.tbl.spec th { width: 150px; white-space: nowrap; } .tbl.spec td { font-size: 13px; }
.sugg { background: #fff3e0; border: 1px solid #ffcc80; border-radius: 10px; padding: 10px; margin: 8px 0; } .sg-h { font-weight: 700; margin-bottom: 4px; } .sg-h small { font-weight: 400; color: var(--mut); }
.zchip { padding: 2px 8px; border-radius: 10px; font-size: 12px; color: #333; }
@media (max-width: 600px) { .mtypes { grid-template-columns: 1fr; } }
[data-theme="dark"] .mach { background: #1b2420; border-color: #546e7a; } [data-theme="dark"] :is(.mtype, .sugg) { background: var(--card); color: var(--txt); border-color: var(--line); }
[data-theme="dark"] .mcell.z-A { background: #5d2b2b; } [data-theme="dark"] .mcell.z-B { background: #5a4a14; } [data-theme="dark"] .mcell.z-C { background: #234a2a; } [data-theme="dark"] .mcell.z-U { background: #17394a; }
.mcell { position: relative; } .plab { position: absolute; top: 1px; inset-inline-start: 2px; font-size: 9px; font-weight: 700; color: #37474f; background: #ffffffcc; border-radius: 3px; padding: 0 2px; z-index: 1; pointer-events: none; }
.zleg .src { color: var(--pri-d); } .note.warn { background: #fff3e0; border-color: #ffb74d; }
.hboxes.big { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } .hbox.chosen { border-style: solid; border-color: #2e7d32; background: #f1f8e9; }
.hb-n label { cursor: pointer; } .hb-n input { vertical-align: middle; width: 16px; height: 16px; }
.trol .x { position: absolute; top: -4px; inset-inline-end: -2px; background: #e53935; color: #fff; border-radius: 50%; width: 14px; height: 14px; font-size: 9px; line-height: 14px; text-align: center; cursor: pointer; } .mcell .trol { position: relative; }
.trol.old { opacity: .7; } .full-set { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
[data-theme="dark"] .hbox.chosen { background: #18291c; }
/* ===== صفحة الكود (موبايل) وتحليلات الفقاسة ===== */
.codep { max-width: 720px; margin: 0 auto; } .cp-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; } .cp-h h1 { margin: 0; }
.cp-info { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; } .cp-info span { background: var(--pri-l); border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.cp-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 12px 0; }
.cp-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--card, #fff); color: var(--txt); text-align: start; cursor: pointer; font: inherit; min-height: 92px; }
.cp-btn .i { font-size: 26px; } .cp-btn b { font-size: 15px; } .cp-btn small { color: var(--mut); } .cp-btn.done { border-color: #66bb6a; background: #f1f8e9; } .cp-btn:active { transform: scale(.98); }
.btn.big { font-size: 17px; padding: 14px 18px; width: 100%; justify-content: center; }
.tstat { position: relative; background: #fff; border: 3px solid #eceff1; border-radius: 8px; padding: 3px 4px 6px; font-size: 10px; line-height: 1.35; min-width: 74px; }
.tstat b { display: block; font-size: 12px; text-align: center; } .tstat span { display: flex; justify-content: space-between; gap: 3px; } .tstat i { font-style: normal; font-weight: 700; }
.tstat em { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 0 0 6px 6px; }
@media (max-width: 600px) { .cp-acts { grid-template-columns: 1fr 1fr; } .cp-btn { min-height: 84px; padding: 10px; } }
[data-theme="dark"] .cp-btn.done { background: #18291c; } [data-theme="dark"] .tstat { background: var(--card); color: var(--txt); }
