/* eMOV: tag checklist, tag chips, oneCalendar MOV section, eMOV tab, MOV Tags page. */

/* Tag checklist (My Requests, oneCalendar) */
.mov-picker{display:flex;flex-direction:column;gap:10px;max-height:260px;overflow-y:auto;padding:2px}
.mov-group{border:0;margin:0;padding:0}
.mov-group legend{padding:0;margin-bottom:6px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.mov-group{display:flex;flex-wrap:wrap;gap:6px}
.mov-group legend{width:100%}
.mov-tag{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1.5px solid var(--border);border-radius:999px;background:var(--card);font-size:12.5px;font-weight:600;color:var(--slate);cursor:pointer}
.mov-tag input{width:14px;height:14px;margin:0;accent-color:var(--blue)}
.mov-tag:has(input:checked){border-color:var(--blue);background:var(--blue-lt);color:var(--blue)}
.mov-tag:has(input:focus-visible){box-shadow:0 0 0 3px rgba(79,107,246,.35)}
.mov-tag small{font-weight:500;color:var(--muted)}
.mov-empty{margin:0;font-size:12.5px;color:var(--muted)}
.mov-chip{display:inline-block;margin:2px 4px 2px 0;padding:1px 9px;border-radius:999px;background:var(--blue-lt);color:var(--blue);font-size:11.5px;font-weight:700}
.mr-tags legend{font-size:13px;font-weight:600;color:var(--mr-ink,var(--slate));margin-bottom:8px}

/* oneCalendar MOV section */
.oc-mov{margin-top:16px;padding-top:14px;border-top:1px solid var(--border)}
.oc-mov h3{margin:0 0 10px}
.oc-mov-tags{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.oc-mov-tags .btn{align-self:flex-start}
.oc-mov-links{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-bottom:10px}
.oc-mov-link{display:flex;flex-direction:column;gap:4px;font-size:12.5px}
.oc-mov-row{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) minmax(0,2fr) auto}
.oc-new-tags{border:1px dashed var(--border);border-radius:12px;padding:10px 12px}

/* eMOV tab */
.emov-layout{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:20px;align-items:start}
.emov-tags{position:sticky;top:96px;display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 140px)}
.emov-tags .pe-search input{width:100%;height:40px;padding:0 12px;border-radius:10px;border:1.5px solid var(--border);background:var(--card);color:var(--slate)}
.emov-tag-list{list-style:none;margin:0;padding:0;overflow-y:auto;display:flex;flex-direction:column;gap:2px}
.emov-group{padding:10px 8px 4px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.emov-tag{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:var(--slate);font:600 13px var(--font);text-align:left;cursor:pointer}
.emov-tag:hover{background:var(--blue-lt)}
.emov-tag.is-active{background:var(--blue);color:#fff}
.emov-tag.is-empty{color:var(--muted)}
.emov-tag.is-active.is-empty{color:#fff}
.emov-count{flex:0 0 auto;min-width:24px;padding:1px 7px;border-radius:999px;background:var(--bg);color:var(--muted);font-size:11.5px;font-weight:800;text-align:center}
.emov-tag.is-active .emov-count{background:rgba(255,255,255,.25);color:#fff}
.emov-heading{margin:4px 0 2px;font-size:17px;font-weight:800;color:var(--slate)}
.emov-sub{margin:18px 0 8px;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.emov-sub span{font-weight:600}
.emov-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.emov-item{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:var(--card)}
.emov-item b{font-size:14px;color:var(--slate)}
.emov-item-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.emov-ref{font:700 12px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--blue)}
.emov-files{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.emov-file{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--slate);font:600 12px var(--font);cursor:pointer}
.emov-file:hover{border-color:var(--blue);color:var(--blue)}
.emov-file .ui-icon{width:14px;height:14px}
.emov-qrs{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.emov-qr{display:flex;gap:10px;align-items:center;margin:0;padding:8px;border:1px solid var(--border);border-radius:12px;background:#fff}
.emov-qr img{width:112px;height:112px;flex:0 0 auto}
.emov-qr figcaption{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#334155;max-width:180px}
.emov-qr figcaption a{color:#1d4ed8;font-weight:700;overflow-wrap:anywhere}
.emov-toolbar{margin-bottom:6px}
@media (max-width:900px){
  .emov-layout{grid-template-columns:minmax(0,1fr)}
  .emov-tags{position:static;max-height:none}
  .emov-tag-list{max-height:220px}
}

/* MOV Tags page (General Configuration) */
.mt-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.2fr) minmax(0,.6fr);gap:12px}
.mt-grid label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:var(--muted)}
.mt-grid input{height:40px;padding:0 12px;border-radius:10px;border:1.5px solid var(--border);background:var(--card);color:var(--slate);font:600 13.5px var(--font)}
.mt-grid .mt-wide{grid-column:1/3}
.mt-grid .mt-check{flex-direction:row;align-items:center;gap:8px;align-self:end;height:40px}
.mt-grid .mt-check input{width:16px;height:16px}
.mt-error{min-height:1em;margin:8px 0 0;color:var(--red);font-size:12.5px}
.mt-actions{display:flex;gap:8px}
#tab-config-movtags tr.is-inactive td{opacity:.6}
@media (max-width:640px){.mt-grid{grid-template-columns:minmax(0,1fr)}.mt-grid .mt-wide{grid-column:auto}}

/* Printing: the eMOV list and the QR sheet replace the page. */
#mov-print-sheet{display:none}
@media print{
  body.emov-printing #tab-emov>.card,body.emov-printing #print-card{display:none!important}
  body.emov-printing #emov-print-sheet{display:block!important;font-size:10.5px;color:#000}
  #emov-print-sheet table{width:100%;border-collapse:collapse}
  #emov-print-sheet th,#emov-print-sheet td{padding:4px 6px;border:1px solid #ccc;text-align:left;vertical-align:top}
  body.mov-printing>*:not(#mov-print-sheet){display:none!important}
  body.mov-printing #mov-print-sheet{display:block!important;color:#000}
  #mov-print-sheet h2{margin:0 0 4px;font-size:15px}
  #mov-print-sheet p{margin:0 0 10px;font-size:10.5px;color:#444}
  .mov-qr-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0}
  .mov-qr-block{display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px;border:1px dashed #999;break-inside:avoid;text-align:center;font-size:10px}
  .mov-qr-block img{width:150px;height:150px}
  .mov-qr-block b{font-size:11px}
  .mov-qr-block small{overflow-wrap:anywhere;color:#333}
}

/* Layout fixes inside other components' styles. */
#tab-emov .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.emov-tags .pe-search{flex:0 0 auto}
.mov-picker .mov-tag{display:inline-flex!important;flex-direction:row!important;align-items:center;width:auto}
.mov-picker .mov-tag input{width:14px!important;height:14px!important;min-height:0;flex:0 0 auto;margin:0}
.oc-dialog .mov-picker{max-height:none}
.oc-mov-link{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--border);border-radius:12px;font-size:12.5px;min-width:0}
.oc-mov-link a{overflow-wrap:anywhere}
.oc-mov-link img{width:140px;height:140px;background:#fff;padding:4px;border-radius:8px}
fieldset.mr-tags{border:0;padding:0;margin-left:0;margin-right:0;min-width:0}
fieldset.mr-tags>legend{padding:0}
.mr-tags .mov-group legend{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
