html body #rfi-panel #panel.ops-console-active:has(#navis-notam-layer) .ops-empty-row {display:none!important;}
#panel.ops-console-active #navis-notam-layer {display:none!important;}
html body #panel.ops-console-active[data-ops-tab="notam"] #navis-notam-layer,
html body #panel.ops-console-active[data-ops-tab="all"] #navis-notam-layer {
 display:flex!important;flex-direction:column!important;gap:8px;min-height:0;max-height:none;flex-shrink:0;padding:12px;box-sizing:border-box;overflow:visible;color:#dce9f4;text-align:left;
}
.notam-day-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;}
#navis-notam-layer h3{font:600 14px/1.4 system-ui,sans-serif;margin:0;}
#navis-notam-layer p{margin:0;font:12px/1.5 system-ui,sans-serif;}
.notam-day-status{color:#67d6ee;flex-shrink:0;}
#navis-notam-layer .notam-day-scope{font-size:11px;color:#9dafc2;flex-shrink:0;}
.notam-day-toggle{display:flex!important;align-items:center;gap:7px;margin:0;font:12px/1.4 system-ui,sans-serif;flex-shrink:0;}
.notam-day-toggle input{width:16px;height:16px;accent-color:#47cdeb;}
/* The panel owns scrolling; notices grow with their content. */
.notam-day-list{overflow:visible;min-height:0;display:flex;flex-direction:column;gap:6px;padding-right:3px;}
.notam-day-card{border:1px solid #2c435b;border-radius:8px;background:#102238;flex-shrink:0;padding:9px;}
.notam-day-card[role="button"]{cursor:pointer;}
.notam-day-card[role="button"]:hover{border-color:#4f849f;}
.notam-day-card.is-selected{border-color:#55c6e9;box-shadow:inset 3px 0 #55c6e9;background:#132d42;}
.notam-day-card:focus-visible{outline:2px solid #55c6e9;outline-offset:2px;}
#navis-notam-layer summary{cursor:pointer;padding:9px;list-style:revert;font:12px/1.4 system-ui,sans-serif;}
#navis-notam-layer summary b{color:#68d9ee;margin-right:7px;}
.notam-day-place{color:#b6c9da;}
.notam-day-heading{display:flex;align-items:start;justify-content:space-between;gap:6px;width:100%;}
.notam-day-identity{min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;}
#navis-notam-layer .notam-day-identity b{margin:0;white-space:nowrap;}
.notam-day-identity b{color:#68d9ee;}
.notam-day-navigation-note{display:block;margin-top:3px;color:#8fb2c7;font-size:10px;}
.notam-day-title{display:block;margin-top:4px;}
.notam-day-body{padding:6px 0 0;display:flex;flex-direction:column;gap:6px;}
#navis-notam-layer .notam-day-full-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.45;}
.notam-day-original> b{font-size:10px;color:#a6bed1;}
.notam-day-original pre{white-space:pre-wrap;overflow-wrap:anywhere;font:10px/1.4 monospace;margin:3px 0 0;padding:6px;background:#081522;max-height:none;overflow:visible;user-select:text;}
.notam-day-footer{margin-top:6px;padding-top:4px;border-top:1px solid #294258;display:flex;flex-direction:column;gap:2px;}
.notam-day-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
#navis-notam-layer button,#navis-notam-layer a{font:12px/1.4 system-ui,sans-serif;border:1px solid #33536d;border-radius:6px;padding:6px 8px;color:#dce9f4;background:#163047;text-decoration:none;cursor:pointer;}
#navis-notam-layer button:disabled{opacity:.5;cursor:default;}
#navis-notam-layer small{font:10px/1.4 system-ui,sans-serif;color:#9dafc2;}
@media(max-width:768px){html body #panel.ops-console-active[data-ops-tab="notam"] #navis-notam-layer{padding:10px;}}
#navis-notam-layer .notam-day-when {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:5px 8px;margin-top:7px;padding-top:6px;border-top:1px solid #294258;color:#e2edf7;font:11px/1.5 system-ui,sans-serif;}
#navis-notam-layer .notam-day-when > span {display:flex;flex-direction:column;min-width:0;}
#navis-notam-layer .notam-day-when b {font-size:10px;color:#91adc2;margin:0;font-weight:500;}
#navis-notam-layer .notam-day-zone {align-self:end;color:#7dcfdf;font-size:10px;}
#navis-notam-layer .notam-day-coordinates,#navis-notam-layer .notam-day-issued,#navis-notam-layer .notam-day-schedule {display:block;margin-top:4px;color:#a6bed1;font:10px/1.5 system-ui,sans-serif;overflow-wrap:anywhere;}
#navis-notam-layer .notam-day-issued {color:#89a0b6;}
.notam-map-info {white-space:pre-line;max-width:310px;font:12px/1.5 system-ui,sans-serif;}
.notam-map-label,.leaflet-tooltip.notam-map-tooltip {padding:7px 10px;border:1px solid #648ba7;border-radius:5px;background:#071521;color:#fff;font:600 12px/1.4 Geist,"IBM Plex Sans KR",system-ui,sans-serif;text-align:center;white-space:pre-line;max-width:280px;box-sizing:border-box;pointer-events:none;box-shadow:0 2px 8px #0008;}
.notam-map-label {position:absolute;left:0;top:0;z-index:5;contain:layout style;}
.notam-map-label[hidden] {display:none!important;}
.leaflet-tooltip-top.notam-map-tooltip::before {border-top-color:#648ba7;}
@media(max-width:380px){#navis-notam-layer .notam-day-when{font-size:10px;gap:4px;}}

/* Keep date/count groups and each complete timestamp together. */
html body #rfi-panel #panel.ops-console-active:is([data-ops-tab="notam"],[data-ops-tab="all"]) #navis-notam-layer {
 grid-template-columns:minmax(0,1fr);
 grid-template-rows:repeat(5,auto);
}
html body #rfi-panel #panel.ops-console-active #navis-notam-layer .notam-day-header {grid-column:1;grid-row:1;}
html body #rfi-panel #panel.ops-console-active #navis-notam-layer .notam-day-status {
 grid-column:1;grid-row:2;display:flex;flex-wrap:wrap;gap:2px 8px;font-size:11px;
}
#navis-notam-layer .notam-day-status > span {white-space:nowrap;}
html body #rfi-panel #panel.ops-console-active #navis-notam-layer .notam-day-controls {
 grid-column:1;grid-row:3;display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;
}
#navis-notam-layer .notam-day-filter {font:11px/1.4 system-ui,sans-serif;color:#dce9f4;background:#163047;border:1px solid #33536d;border-radius:6px;padding:4px 6px;max-width:100%;}
html body #rfi-panel #panel.ops-console-active #navis-notam-layer .notam-day-toggle {font-size:11px;white-space:nowrap;gap:5px;}
html body #rfi-panel #panel.ops-console-active #navis-notam-layer .notam-day-list {grid-column:1;grid-row:4;}
html body #rfi-panel #panel.ops-console-active #navis-notam-layer .notam-day-scope {grid-column:1;grid-row:5;}
html body #rfi-panel #panel.ops-console-active #navis-notam-layer .notam-day-when {display:flex;flex-direction:column;gap:2px;}
html body #rfi-panel #panel.ops-console-active #navis-notam-layer .notam-day-when > span {display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:baseline;gap:6px;}
#navis-notam-layer .notam-day-clock,#navis-notam-layer .notam-day-zone {white-space:nowrap;font-variant-numeric:tabular-nums;}
#navis-notam-layer .notam-day-match {display:block;margin-top:4px;color:#7dcfdf;font:10px/1.4 system-ui,sans-serif;}
html body #rfi-panel #panel.ops-console-active:is([data-ops-tab="notam"],[data-ops-tab="all"]) #navis-notam-layer[data-notam-count="0"] {grid-template-rows:repeat(5,auto);}
html body #rfi-panel #panel.ops-console-active #navis-notam-layer[data-notam-count="0"] .notam-day-list {min-height:0;}

/* Compact summaries stay visible; source text and technical metadata open on demand. */
html body #panel.ops-console-active #navis-notam-layer .notam-day-card {padding:8px 10px;}
html body #panel.ops-console-active #navis-notam-layer .notam-day-identity {flex:1;flex-wrap:nowrap;gap:7px;}
html body #panel.ops-console-active #navis-notam-layer .notam-day-place {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;}
html body #panel.ops-console-active #navis-notam-layer .notam-day-no-location {white-space:nowrap;font-size:9px;}
html body #panel.ops-console-active #navis-notam-layer .notam-day-summary {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:3px 0 0;font-size:11px;line-height:1.4;overflow-wrap:anywhere;}
html body #rfi-panel #panel.ops-console-active #navis-notam-layer .notam-day-when {display:flex;flex-flow:row wrap;align-items:baseline;gap:2px 10px;border:0;margin-top:4px;padding:0;font-size:10px;line-height:1.4;}
html body #rfi-panel #panel.ops-console-active #navis-notam-layer .notam-day-when > span {display:inline-flex;flex-flow:row nowrap;align-items:baseline;gap:4px;white-space:nowrap;}
html body #panel.ops-console-active #navis-notam-layer .notam-day-card-foot {display:flex;align-items:baseline;gap:8px;margin-top:3px;}
html body #panel.ops-console-active #navis-notam-layer .notam-day-match {margin:0;font-size:9px;white-space:nowrap;}
html body #panel.ops-console-active #navis-notam-layer .notam-day-original {flex:1;min-width:0;}
html body #panel.ops-console-active #navis-notam-layer .notam-day-original > summary {padding:0;color:#8db9cf;font-size:10px;line-height:1.5;width:fit-content;}
html body #panel.ops-console-active #navis-notam-layer .notam-day-card-foot:has(details[open]) {display:block;}
html body #panel.ops-console-active #navis-notam-layer .notam-day-card-foot:has(details[open]) > .notam-day-match {display:none;}
html body #panel.ops-console-active #navis-notam-layer .notam-day-full-text {margin-top:5px;}
html body #panel.ops-console-active #navis-notam-layer .notam-day-original pre {margin-top:5px;padding:6px;}
html body #panel.ops-console-active #navis-notam-layer .notam-day-footer {font-size:10px;}
html body #panel.ops-console-active #navis-notam-layer .notam-day-schedule {margin:3px 0 0;line-height:1.35;}

/* A selected cluster shows its regional notices beside its case, using one live panel. */
html body #panel.ops-console-active[data-ops-tab="cases"] #navis-notam-layer[data-notam-inline="true"] {
 display:flex!important;flex-direction:column;gap:7px;padding:10px;margin:8px 0 12px;border:1px solid #294258;border-radius:10px;background:#0b1b2c;
}
html body #panel.ops-console-active #navis-notam-layer[data-notam-inline="true"] {flex-shrink:0;min-width:0;}
#navis-notam-layer[data-notam-inline="true"] .notam-day-scope {font-size:10px;}
html body #panel.ops-console-active #navis-notam-layer[data-notam-inline="true"] .notam-day-summary {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

html body #panel.ops-console-active #navis-notam-layer[data-notam-inline="true"] .notam-day-header>button,
html body #panel.ops-console-active #navis-notam-layer[data-notam-inline="true"] .notam-day-filter {display:none;}
html body #panel.ops-console-active #navis-notam-layer[data-notam-inline="true"] .notam-day-controls {justify-content:flex-end;}

/* One master switch remains reachable while panels are closed. */
html body #navis-notam-visibility {
 position:fixed;z-index:13000;top:16px;right:278px;min-height:42px;box-sizing:border-box;
 display:flex;align-items:center;justify-content:center;gap:7px;padding:0 11px;
 border:1px solid #33536d;border-radius:10px;background:#091728;color:#dce9f4;
 font:600 12px/1.2 Geist,"IBM Plex Sans KR",system-ui,sans-serif;cursor:pointer;
}
#navis-notam-visibility input {width:16px;height:16px;margin:0;accent-color:#47cdeb;cursor:pointer;}
#navis-notam-visibility:focus-within {outline:2px solid #47cdeb;outline-offset:2px;}
html body #rfi-panel #panel.ops-console-active #navis-notam-layer[data-notam-enabled="false"] {display:none!important;}
@media(max-width:768px),(max-height:520px) {
 html body #navis-notam-visibility {top:64px;right:12px;min-height:32px;padding:0 9px;border-radius:8px;}
 html body #rfi-panel:has(#navis-notam-visibility) #cursor-ll {top:104px!important;}
}

/* Compact identities also annotate automatically displayed reference regions. */
.notam-map-label--context,.leaflet-tooltip.notam-map-label--context {max-width:190px;padding:4px 7px;font-size:11px;line-height:1.3;white-space:pre;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;}

.leaflet-tooltip.notam-map-label--context {width:max-content;max-width:min(190px,calc(100vw - 32px));}
.notam-map-label--context .notam-map-info {font:inherit;max-width:none;white-space:pre;overflow:hidden;text-overflow:ellipsis;}

.leaflet-tooltip-left.notam-map-label--context::before{border-left-color:#648ba7;}
