#view-master-logbook{max-width:1150px;margin:auto;padding:16px;color:#eaf8ff}#view-master-logbook .ml-panel{background:#10263f;border:1px solid #295779;border-radius:16px;padding:16px;margin:12px 0}#view-master-logbook .ml-note{color:#b9d6e6;font-size:.88rem}#view-master-logbook .ml-status{color:#88e9ff}#view-master-logbook .ml-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}#view-master-logbook button{background:#0b4265;border:1px solid #43add5;color:#fff;border-radius:10px;min-height:40px;padding:8px 13px;cursor:pointer}#view-master-logbook .ml-danger{border-color:#e88b89}#view-master-logbook button:disabled{opacity:.5}#view-master-logbook input{background:#061727;border:1px solid #437393;color:#fff;border-radius:8px;padding:9px;min-height:40px;max-width:100%}#view-master-logbook .ml-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}#view-master-logbook label{display:flex;flex-direction:column;gap:5px;font-size:.82rem}#view-master-logbook .ml-table-wrap{overflow:auto;max-height:460px}#view-master-logbook table{border-collapse:collapse;width:100%;white-space:nowrap}#view-master-logbook td,#view-master-logbook th{padding:9px;text-align:left;border-bottom:1px solid #2e4a60}#view-master-logbook td button{margin-right:5px}@media(max-width:700px){#view-master-logbook{padding:8px}#view-master-logbook .ml-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#view-master-logbook .ml-actions{flex-direction:column}#view-master-logbook .ml-actions>*{width:100%}}

/* Contacts: responsive navigation and desktop-readable table. */
#view-master-logbook .ml-contact-controls{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:10px 0}
#view-master-logbook .ml-contact-controls input[type=search]{flex:1 1 260px;min-width:0}
#view-master-logbook .ml-page-size-label{min-width:130px;flex:0 0 auto}
#view-master-logbook .ml-page-size-label select{background:#061727;color:#fff;border:1px solid #437393;border-radius:8px;padding:9px;min-height:40px;width:100%}
#view-master-logbook .ml-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:14px 0 3px;flex-wrap:wrap}
#view-master-logbook .ml-page-number{font-variant-numeric:tabular-nums;min-width:95px;text-align:center}
#view-master-logbook .ml-pagination button:disabled{opacity:.4;cursor:not-allowed}
#view-master-logbook .ml-contacts-panel .ml-table-wrap{max-height:none;overflow-x:auto}
#view-master-logbook .ml-contacts-panel td:last-child{white-space:nowrap}
@media(min-width:1024px){
  #view-master-logbook{max-width:1600px;width:100%;}
  #view-master-logbook .ml-contacts-panel{padding:22px 26px}
  #view-master-logbook .ml-contacts-panel table{width:100%;table-layout:auto;font-size:.95rem}
  #view-master-logbook .ml-contacts-panel th{position:sticky;top:0;background:#10263f;z-index:1}
  #view-master-logbook .ml-contacts-panel tr:hover td{background:rgba(46,150,196,.09)}
  #view-master-logbook .ml-contact-controls input[type=search]{max-width:560px}
}
@media(max-width:700px){
  #view-master-logbook .ml-contact-controls{align-items:stretch}
  #view-master-logbook .ml-contact-controls input[type=search]{flex-basis:100%;width:100%}
  #view-master-logbook .ml-page-size-label{width:100%}
  #view-master-logbook .ml-pagination{justify-content:center}
}

/* Desktop/laptop unified Logbook: release the legacy 620px main-column limit.
   Only when the Logbook is visible; other app pages and mobile remain untouched. */
@media (min-width: 900px) {
  body main:has(> #view-qso:not([hidden])) {
    max-width: 1660px !important;
    width: calc(100% - 40px) !important;
    margin-inline: auto !important;
    padding-inline: clamp(12px, 2vw, 32px) !important;
  }
  body main:has(> #view-qso:not([hidden])) > #view-qso {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  #view-qso #dhl-unified-tools,
  #view-qso #dhl-unified-tools .ml-contacts-panel {
    width: 100%; max-width: none; min-width: 0;
  }
  #view-qso #dhl-unified-tools .ml-contacts-panel .ml-table-wrap {
    width: 100%; max-width: 100%; overflow-x: auto;
  }
  #view-qso #dhl-unified-tools .ml-contacts-panel table {width: 100%;}
}
