.sadpd-phonebook-dialog{width:min(530px,96vw);max-height:88dvh;overflow:auto;border:1px solid #cbd5e1;border-radius:10px;padding:15px;color:#26364a;background:white}
.sadpd-phone-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.sadpd-phone-head button{font-size:20px;border:0;background:transparent}
.sadpd-phonebook-dialog h3{font-size:15px;margin:20px 0 8px}.sadpd-phone-row{padding:10px 0;border-bottom:1px solid #e2e8f0}.sadpd-phone-row a{display:inline-block;margin-left:8px;color:#1764a7}
.sadpd-phone-plate{display:grid;gap:8px;padding:12px 0;border-bottom:1px solid #ddd}.sadpd-phone-plate select,.sadpd-phone-plate button{min-height:38px;max-width:100%}
/* Desktop uses the same module actions as the mobile FullCator menu. */
.sadpd-desktop-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 10px;padding:0}
.sadpd-desktop-actions button{border:1px solid #cbd5e1;background:#f6f9fc;color:#253c57;border-radius:8px;min-height:38px;padding:7px 11px;font:inherit;cursor:pointer}
.sadpd-desktop-actions button:hover,.sadpd-desktop-actions button:focus-visible{background:#e3edf8}
@media(max-width:800px){.sadpd-desktop-actions{display:none}}
.sadpd-phone-admin{margin-top:18px;padding:12px;border-top:1px solid #cbd5e1}
.sadpd-phone-admin form{display:grid;gap:8px;margin:12px 0}
.sadpd-phone-admin input,.sadpd-phone-admin button{min-height:36px;max-width:100%}
.sadpd-phone-admin>button{display:block;margin:6px 0}

.sadpd-phone-admin label{display:flex;flex-direction:column;gap:4px}
.sadpd-phone-admin-row{display:flex;align-items:center;gap:8px;border-top:1px solid #e0e6ee;padding:8px 0;flex-wrap:wrap}
.sadpd-phone-admin-row span{flex:1 1 180px}
.sadpd-phone-admin-actions{display:flex;flex-wrap:wrap;gap:8px}
.sadpd-phone-admin-row button{min-height:34px}

/* FullCator phonebook: compact, readable, mobile-friendly. */
.sadpd-phonebook-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:18px 20px 20px;border-radius:15px;border:1px solid #c7d6e6;box-shadow:0 18px 55px #16365433;color:#203951;background:#fff}
.sadpd-phonebook-dialog::backdrop{background:#142a4380}
.sadpd-phone-head{padding-bottom:12px;border-bottom:1px solid #dce6f0}
.sadpd-phone-head strong{font-size:clamp(18px,4.5vw,23px);color:#183c60}
.sadpd-phone-head button{width:38px;height:38px;flex:none;display:grid;place-items:center;border:1px solid #d1deeb;border-radius:9px;background:#f0f5fa;color:#183c60;cursor:pointer}
.sadpd-phonebook-dialog h3{font-size:15px;color:#1c507f;background:#edf4fb;border-left:4px solid #327bb5;border-radius:5px;padding:10px 12px;margin:18px 0 7px}
.sadpd-phone-row{display:flex;flex-direction:column;gap:5px;padding:12px 10px;border-bottom:1px solid #e1e9f1;min-width:0}
.sadpd-phone-row:nth-of-type(even){background:#f8fbfe}
.sadpd-phone-row b{font-size:15px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.sadpd-phone-row a{display:inline-flex;align-items:center;align-self:flex-start;margin:0;padding:3px 0;color:#1768a6;font-size:16px;font-weight:600;text-decoration:none;overflow-wrap:anywhere}
.sadpd-phone-row a::before{content:'☎';font-size:15px;margin-right:9px;color:#2779b5}
.sadpd-phone-row a:hover{text-decoration:underline}
@media(max-width:600px){.sadpd-phonebook-dialog{padding:14px 14px 18px}.sadpd-phone-row{padding:10px 8px}}

.sadpd-plate-title{display:block;width:100%;padding:11px 8px;text-align:left;font:inherit;font-weight:750;color:#194c7a;background:#eef4fb;border:0;border-radius:7px;cursor:pointer}
.sadpd-phone-plate .sadpd-phone-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 6px}
.sadpd-plate-editor{width:min(440px,calc(100vw - 24px));border:1px solid #c7d6e6;border-radius:12px;padding:16px;background:#fff;color:#203951}
.sadpd-plate-editor::backdrop{background:#142a4380}
.sadpd-plate-editor label{display:block;margin:14px 0;font-weight:600}
.sadpd-plate-editor select{display:block;width:100%;min-height:44px;margin-top:6px}
.sadpd-plate-editor [data-save]{min-height:44px;padding:8px 22px}

/* Vehicle assignment: pinned title/close, only first + last name and phone. */
.sadpd-phonebook-dialog{display:flex;flex-direction:column;overflow:hidden;padding-top:0!important}
.sadpd-phonebook-dialog>.sadpd-phone-head{position:sticky;top:0;z-index:5;flex:none;background:#fff;padding:12px 0;border-bottom:1px solid #dce6f0}
.sadpd-phonebook-dialog>.sadpd-phone-plate,.sadpd-phonebook-dialog>.sadpd-phone-admin,.sadpd-phonebook-dialog>h3,.sadpd-phonebook-dialog>p{flex:none}
.sadpd-phonebook-dialog{overflow-y:auto;overscroll-behavior:contain}
.sadpd-phone-plate .sadpd-plate-contact{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 5px;text-align:left;border-bottom:1px solid #e1e9f1}
.sadpd-phone-plate .sadpd-plate-contact b{font-size:15px;font-weight:650;text-align:left;min-width:0}
.sadpd-phone-plate .sadpd-plate-contact a{color:#1768a6;font-size:15px;font-weight:600;text-decoration:none;white-space:nowrap}
@media(max-width:600px){.sadpd-phone-plate .sadpd-plate-contact{flex-wrap:wrap}}

.sadpd-plate-editor{max-height:88dvh;overflow-y:auto}
.sadpd-plate-editor>.sadpd-phone-head{position:sticky;top:-16px;z-index:2;background:#fff;padding:10px 0}
.sadpd-plate-picker{display:grid;gap:5px;margin:14px 0}
.sadpd-plate-picker>strong{font-size:14px;color:#375671;padding:4px}
.sadpd-plate-choice{width:100%;min-height:43px;padding:11px 12px;border:0;border-radius:8px;background:#eef4fb;color:#203951;text-align:left;font:inherit;cursor:pointer}
.sadpd-plate-choice.selected{background:#d9e9fa;font-weight:750}
.sadpd-plate-choice:active{background:#c9dff5}

/* SAD Pd phonebook: keep name left, phone right on all screen sizes. */
.sadpd-phonebook-dialog .sadpd-phone-row{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.sadpd-phonebook-dialog .sadpd-phone-row b{flex:1;min-width:0}
.sadpd-phonebook-dialog .sadpd-phone-row a{flex:none;align-self:center;margin-left:auto;text-align:right;white-space:nowrap}
@media(max-width:380px){.sadpd-phonebook-dialog .sadpd-phone-row{gap:6px}.sadpd-phonebook-dialog .sadpd-phone-row a{font-size:13px}}
