/*
 * DXSpider Web
 *
 * Styles for the DXSpider web user interface.
 *
 * Copyright (c) 2026 Dirk Koopman G1TLH
 */
/* DXSpider Web 2.8.3 - 2026-09-16 */

:root{font-family:Arial,Helvetica,sans-serif;color:#172033;background:#eef3f8}
*{box-sizing:border-box}html,body{height:100%;overflow:hidden}body{margin:0;background:#eef3f8;color:#172033;display:flex;flex-direction:column}
button,input,select{font:inherit}.topbar{height:72px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 20px;background:#fff;border-bottom:1px solid #cbd6e2}
.brand,.nodeCall{font-size:28px;font-weight:700;color:#155aa8}.nodeCall{text-align:center}.topActions{justify-self:end;display:flex;gap:12px;align-items:center}
button{border:1px solid #9eb3c9;background:#fff;color:#174f8a;border-radius:6px;padding:7px 12px;cursor:pointer}button:hover{background:#edf5fd}
.tabs{display:flex;gap:5px;padding:10px 14px;background:#dfeaf5;border-bottom:1px solid #c3d1df;flex-wrap:wrap}.tabs button.active{background:#155aa8;color:#fff;border-color:#155aa8}
.workspace{flex:1;min-height:0;padding:12px;overflow:hidden}.panel{display:none;height:100%;background:#fff;border:1px solid #cbd6e2;border-radius:8px;padding:12px;overflow:hidden}.panel.active{display:flex;flex-direction:column}
.panelHead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.panelHead h2{margin:0;color:#155aa8}.panelHead>div{display:flex;align-items:center;gap:7px}.counter{min-width:32px;text-align:right;color:#617386}
.toolbar{display:flex;gap:16px;margin-bottom:8px}.resultArea{flex:1;min-height:0;overflow-y:auto;overflow-x:auto;background:#f8fbfe;border:1px solid #d5e0ea;border-radius:6px;padding:8px;color:#172033}
table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:5px 8px;border-bottom:1px solid #e0e7ee;white-space:nowrap}th{position:sticky;top:0;background:#eaf2fa;color:#174f8a}
pre{margin:0;font:13px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap}.bottomAction{display:flex;justify-content:flex-end;padding-top:8px}
.commandBar{display:flex;gap:8px;padding-top:8px}.commandBar input{flex:1}
input,select{border:1px solid #aebfd0;background:#fff;color:#172033;border-radius:5px;padding:7px 8px}
dialog{border:0;border-radius:10px;padding:0;box-shadow:0 18px 60px #0005}dialog::backdrop{background:#27415f66}.dialogCard{min-width:330px;max-width:620px;background:#fff;color:#172033;padding:20px}.dialogCard.wide{width:min(620px,90vw)}.dialogCard h2{margin-top:0;color:#155aa8}.dialogCard label{display:block;margin:10px 0;font-weight:600}.dialogCard label input,.dialogCard label select{display:block;margin-top:5px;width:100%;font-weight:400}.compactFields{display:flex;gap:14px}.compactFields label{flex:0 0 auto}.compactFields input{width:150px!important}.dialogActions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.error{color:#a40000;min-height:1.2em}.result{min-height:1.2em;white-space:pre-wrap;margin-top:8px}
footer{flex:0 0 auto;min-height:30px;padding:7px 14px;color:#647587;background:#fff;border-top:1px solid #cbd6e2;display:flex;justify-content:space-between;align-items:center}
@media(max-width:700px){.brand,.nodeCall{font-size:21px}.topbar{padding:0 10px}.compactFields{flex-direction:column}.compactFields input{width:100%!important}}

.bottomCommand{display:flex;gap:8px;align-items:end;padding-top:8px;flex:0 0 auto}.bottomCommand label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600}.bottomCommand .grow{flex:1}.bottomCommand .grow input{width:100%}.inlineResult{align-self:center;max-width:35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#617386}footer .copyright{font-size:12px;color:#647587}

.brandCopyright{font-size:12px;font-weight:400;color:#647587;vertical-align:middle;margin-left:6px;white-space:nowrap}
.noticeText{line-height:1.45;max-width:460px}

.brand{font-size:30px;font-weight:800;line-height:1}
.brandCopyright{font-size:9px;font-weight:400;color:#647587;vertical-align:middle;margin-left:5px;white-space:nowrap}
.consoleOutput{white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.consoleCommandLine{font-weight:700;white-space:pre-wrap;margin:0 0 2px 0}
.consoleResponse{font-weight:400;white-space:pre-wrap;margin:0 0 4px 0}

.brand{font-size:34px;font-weight:800;line-height:1;display:flex;align-items:flex-end;gap:7px}
.brandCopyright{font-size:11px;font-weight:400;line-height:1.05;color:#647587;margin:0 0 2px 0;white-space:nowrap}

/* v2.3.8 final header sizing/alignment */
.brand{font-size:36px;font-weight:800;line-height:1;display:flex;align-items:flex-end;gap:8px}
.brandCopyright{font-size:12px;font-weight:400;line-height:1;color:#647587;margin:0 0 2px 0;white-space:nowrap}

/* v2.4.3: Console is untouched. Other response panes use its typography/size. */
.feedlog,.commandOutput,#spotRows{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:inherit;
  line-height:normal;
}
#spotRows td{font:inherit}

/* Spots: stable column geometry for C, R, or combined view. */
.spotTable{table-layout:fixed;min-width:1080px}
.spotTable .spotColSource{width:3.2%}
.spotTable .spotColUtc{width:4.8%}
.spotTable .spotColFreq{width:7%}
.spotTable .spotColDx{width:8%}
.spotTable .spotColSpotter{width:9%}
.spotTable .spotColComment{width:38%}
.spotTable .spotColLocDx,.spotTable .spotColLocSpott{width:4.6%}
.spotTable .spotColCqDx,.spotTable .spotColCqSpott{width:3%}
.spotTable .spotColItuDx,.spotTable .spotColItuSpott{width:3%}
.spotTable th,.spotTable td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spotTable thead .spotHeadGroup th{text-align:center;vertical-align:middle}
.spotTable thead .spotHeadGroup th[rowspan]{text-align:left}
.spotTable thead .spotHeadSub th{text-align:center;font-size:12px;padding-top:3px;padding-bottom:4px;top:27px}
.spotTable thead .spotHeadGroup th{top:0}
/* Numeric frequency aligns right; paired DX/Spotter metadata stays compact and centered. */
.spotTable th:nth-child(3),.spotTable td:nth-child(3){text-align:right}
.spotTable thead .spotHeadGroup th:nth-child(3){text-align:right}
.spotTable td:nth-child(n+7):nth-child(-n+12){text-align:center;padding-left:4px;padding-right:4px}
.spotTable thead .spotHeadSub th{padding-left:4px;padding-right:4px}
.spotTable thead .spotHeadGroup th[colspan="2"]{padding-left:4px;padding-right:4px}

/* Registration is intentionally compact; the spot dialog keeps the normal wide card. */
.dialogCard.registerCard{width:min(360px,90vw);min-width:0;max-width:360px}

/* Restricted actions: keep the hint beside the action and inside the visible panel. */
.restrictedControl{display:inline-block;position:relative}
.restrictedControl.restricted button,.restrictedArea.restricted form{opacity:.38;filter:grayscale(.75)}
.restrictedControl.restricted,.restrictedArea.restricted{cursor:not-allowed;position:relative}
.restrictedControl.restricted::after,.restrictedArea.restricted::after{
  content:attr(data-restricted-tip);position:absolute;z-index:1000;width:300px;max-width:min(300px,70vw);
  padding:7px 9px;border-radius:5px;background:#26384b;color:#fff;font-size:12px;line-height:1.3;
  white-space:normal;opacity:0;pointer-events:none;transition:opacity .12s;box-shadow:0 4px 14px #0003
}
/* Send Spot lives in the panel header: show the hint below/right so panel clipping cannot hide it. */
.restrictedControl.restricted::after{right:0;top:calc(100% + 6px)}
/* Send Ann lives at the bottom: show the hint immediately above the Send end of the form. */
.restrictedArea.restricted::after{right:0;bottom:44px}
.restrictedControl.restricted:hover::after,.restrictedArea.restricted:hover::after{opacity:1}
.restrictedArea.restricted form{pointer-events:none}
#registerComment{display:block;margin-top:5px;width:100%;resize:vertical;font:inherit;border:1px solid #aebfd0;border-radius:5px;padding:7px 8px;color:#172033;background:#fff}


/* 2.6.0 UI fix12: keep the real table geometry from fix9.
   Move only the Freq content left by twice the current Freq/DX visual gap,
   using cell padding (not transform/relative positioning). */
.spotTable th:nth-child(3),
.spotTable td:nth-child(3){padding-right:32px}


/* 2.6.0 UI fix13: Register help and clean sticky spot-header edge. */
.registerHelp{display:inline-block;position:relative}
.registerHelp::after{
  content:attr(data-register-tip);position:absolute;z-index:1200;right:0;top:calc(100% + 6px);
  width:320px;max-width:min(320px,75vw);padding:7px 9px;border-radius:5px;
  background:#26384b;color:#fff;font-size:12px;line-height:1.3;white-space:normal;
  opacity:0;pointer-events:none;transition:opacity .12s;box-shadow:0 4px 14px #0003
}
.registerHelp:hover::after{opacity:1}
/* The generic resultArea top padding left a scrollable strip above the sticky
   two-row spot header. Remove only that top inset; other result panes are untouched. */
.spotResultArea{padding-top:0}

/* 2.6.0 UI final alignment: C/R source and feed selectors beside Spots. */
.spotTitleLine{display:flex;align-items:center;gap:22px;min-width:0}
.spotTitleLine h2{margin:0}
.spotFeedChecks{display:flex;align-items:center;gap:14px;font-weight:600;font-size:14px}
.spotFeedChecks label{display:flex;align-items:center;gap:4px;cursor:pointer;white-space:nowrap}
.spotTable thead .spotHeadGroup th:first-child,
.spotTable tbody td:first-child{text-align:center;padding-left:0;padding-right:0}

/* 2.7.0 authenticated-session indicator */
body.authenticated #loginButton{background:#dff2e3;border-color:#6fa77b;color:#195b2b;font-weight:700}


/* 2.8.0 anonymous access: C/R reception only until Login. */
.fieldHint{font-size:12px;font-weight:400;color:#647587}
.loginRestricted{position:relative;opacity:.38;filter:grayscale(.75) blur(.25px);cursor:not-allowed}
.loginRestricted::after{content:attr(data-login-tip);position:absolute;z-index:1400;width:300px;max-width:min(300px,72vw);padding:7px 9px;border-radius:5px;background:#26384b;color:#fff;font-size:12px;font-weight:400;line-height:1.3;white-space:normal;opacity:0;pointer-events:none;transition:opacity .12s;box-shadow:0 4px 14px #0003}
.tabs .loginRestricted::after{left:0;top:calc(100% + 6px)}
.registerHelp.loginRestricted::after,.restrictedControl.loginRestricted::after{right:0;top:calc(100% + 6px)}
.loginRestricted:hover::after{opacity:1}
.registerHelp.loginRestricted button,.restrictedControl.loginRestricted button{opacity:.38;filter:grayscale(.75);pointer-events:none}


/* 2.8.1 anonymous RX-only mode */
.anonymousBadge{
  color:#b00020;font-weight:800;font-size:14px;letter-spacing:.2px;
  padding:4px 8px;border:1px solid #e0a5ae;border-radius:5px;background:#fff3f5
}
.loginOnlyControl{display:inline-block;position:relative}
.loginOnlyControl.loginRestricted button{
  opacity:.38;filter:grayscale(.75) blur(.25px);cursor:not-allowed
}
.loginOnlyControl.loginRestricted button{pointer-events:none}
.loginOnlyControl.loginRestricted::after{
  content:attr(data-login-tip);position:absolute;z-index:1400;width:300px;
  max-width:min(300px,72vw);padding:7px 9px;border-radius:5px;
  background:#26384b;color:#fff;font-size:12px;font-weight:400;line-height:1.3;
  white-space:normal;opacity:0;pointer-events:none;transition:opacity .12s;
  box-shadow:0 4px 14px #0003
}
.loginOnlyControl.loginRestricted::after{right:0;top:calc(100% + 6px)}
.loginOnlyControl.loginRestricted:hover::after{opacity:1}

/* ANN send form: anonymous gets Login tooltip; logged-in unregistered keeps Registration tooltip. */
.restrictedArea.loginRestricted{cursor:not-allowed;position:relative}
.restrictedArea.loginRestricted form{opacity:.38;filter:grayscale(.75) blur(.25px);pointer-events:none}
.restrictedArea.loginRestricted::after{content:attr(data-login-tip)}
.restrictedArea.loginRestricted:hover::after{opacity:1}


/* 2.8.3: Send Spot hint must overlay the sticky spot table header. */
#spots .panelHead{position:relative;z-index:50;overflow:visible}
#spots .resultArea{position:relative;z-index:1}
#spots .spotTable th{z-index:2}
#spotRestricted{z-index:60}
#spotRestricted::after{z-index:5000}

/* Register is intentionally available to Anonymous users. */
.registerHelp.loginRestricted button{opacity:1;filter:none;pointer-events:auto}


/* 2.8.5 - unified help popup appearance.
   Use the same solid treatment as the Register hint for every hover hint. */
[data-login-tip]::after,
[data-register-tip]::after,
[data-restricted-tip]::after,
.loginRestricted::after,
.restricted::after,
.loginOnlyControl.loginRestricted::after,
.restrictedArea.loginRestricted::after {
  background:#26384b !important;
  color:#fff !important;
  opacity:0;
  filter:none !important;
  backdrop-filter:none !important;
  text-shadow:none !important;
  border:0 !important;
  box-shadow:0 4px 14px rgba(0,0,0,.22) !important;
}
[data-login-tip]:hover::after,
[data-register-tip]:hover::after,
[data-restricted-tip]:hover::after,
.loginRestricted:hover::after,
.restricted:hover::after,
.loginOnlyControl.loginRestricted:hover::after,
.restrictedArea.loginRestricted:hover::after {
  opacity:1;
}


/* 2.8.6 - tooltip opacity fix.
   Never dim/filter the element that owns ::after: CSS opacity/filter also
   composites its tooltip. Dim only the control/content underneath it. */
.loginRestricted{
  opacity:1 !important;
  filter:none !important;
}

/* Disabled top tabs: pale/soft control, but its popup remains fully opaque. */
.tabs button.loginRestricted{
  background:#eef1f4 !important;
  border-color:#d6dce2 !important;
  color:#a8b0b8 !important;
  text-shadow:0 0 1px rgba(120,128,136,.55);
}

/* Inline Login-only controls: dim the button, not its tooltip-owning wrapper. */
.loginOnlyControl.loginRestricted button,
.restrictedControl.loginRestricted button{
  opacity:.38 !important;
  filter:grayscale(.75) blur(.25px) !important;
  pointer-events:none;
}

/* Login-only areas: dim only their functional content. */
.restrictedArea.loginRestricted form{
  opacity:.38 !important;
  filter:grayscale(.75) blur(.25px) !important;
  pointer-events:none;
}

/* Every informational popup uses the same solid Register treatment. */
.registerHelp::after,
.loginRestricted::after,
.restrictedControl.restricted::after,
.restrictedArea.restricted::after,
.loginOnlyControl.loginRestricted::after,
.restrictedArea.loginRestricted::after{
  background:#26384b !important;
  color:#fff !important;
  opacity:0;
  filter:none !important;
  backdrop-filter:none !important;
  border:0 !important;
  text-shadow:none !important;
  box-shadow:0 4px 14px rgba(0,0,0,.22) !important;
}
.registerHelp:hover::after,
.loginRestricted:hover::after,
.restrictedControl.restricted:hover::after,
.restrictedArea.restricted:hover::after,
.loginOnlyControl.loginRestricted:hover::after,
.restrictedArea.loginRestricted:hover::after{
  opacity:1 !important;
}


/* 2.8.7 - ANN Send informational popup above the Send control. */
#annRestricted::after{
  top:auto !important;
  bottom:calc(100% + 8px) !important;
  left:auto !important;
  right:0 !important;
  transform:none !important;
  z-index:5000 !important;
}
#annRestricted{
  position:relative !important;
  overflow:visible !important;
  z-index:70 !important;
}
#ann .panelHead,
#ann .panel,
#ann form{
  overflow:visible !important;
}

.commandSeparator{min-height:1em}
