/* V3.6.2 compact full-width layout; loaded after legacy styles */
main {width:100%;max-width:none;margin:0;padding:10px;min-width:0}
section {padding:12px;margin-bottom:10px;min-width:0}
main table {font-size:13px;line-height:1.35}
main table th,main table td {padding:5px 7px;vertical-align:middle}
main table th {line-height:1.3}
.scroll {max-width:100%;min-width:0}
#live-table {max-height:65vh;overflow:auto;isolation:isolate}
.records-table thead th {position:sticky;top:0;z-index:3;background:#eaf0f7}
.records-table thead th.fixed-date,.records-table thead th.fixed-name,.records-table thead th.fixed-phone,.records-table thead th.fixed-actions {z-index:5}
.records-table .fixed-date {width:110px;min-width:110px;max-width:110px;left:0}
.records-table .fixed-name {width:135px;min-width:135px;max-width:135px;left:110px}
.records-table .fixed-phone {width:135px;min-width:135px;max-width:135px;left:245px;white-space:nowrap}
.records-table th.fixed-name,.records-table th.fixed-phone {min-width:135px}
.records-table td.fixed-actions {white-space:nowrap;min-width:0;width:1%;background:#fff}
.records-table th.fixed-actions {min-width:0;background:#eaf0f7}
.records-table td.fixed-actions > a {display:inline-block!important;width:auto;min-height:0;margin:0 2px;padding:4px 5px;line-height:1.25;font-size:12px;white-space:nowrap;vertical-align:middle}
.records-table td.fixed-actions > a.danger {background:#a23b35;color:white;border-radius:4px;text-decoration:none}
.records-table td.fixed-actions > details {display:inline-block;vertical-align:middle;margin:0 2px;white-space:normal;font-size:12px}
.records-table td.fixed-actions > details[open] {display:block;white-space:normal;max-width:280px;margin:5px 0}
.records-table td.fixed-actions > details summary {cursor:pointer;white-space:nowrap}
.records-table td.fixed-actions > details input,.records-table td.fixed-actions > details button {padding:5px}
.phone-actions a {display:inline-block;margin:2px 3px;font-size:12px}
#live-search {display:flex;gap:6px;align-items:end;flex-wrap:wrap}
#live-search > label {flex:1 1 105px;min-width:95px}
#live-search > label:has(input[name=q]) {flex:3 1 230px;min-width:180px}
#live-search > button,#live-search > a.btn {flex:0 0 auto;width:auto;min-width:0;min-height:36px;padding:6px 9px;font-size:12px;line-height:1.3;white-space:nowrap;margin:0;text-align:center}
#live-search input,#live-search select {padding:7px;font-size:13px}
#live-count {margin:8px 0}
@media(max-width:900px){
 .records-table td.fixed-date,.records-table td.fixed-name,.records-table td.fixed-phone,.records-table td.fixed-actions {position:static}
 .records-table thead th.fixed-date,.records-table thead th.fixed-name,.records-table thead th.fixed-phone,.records-table thead th.fixed-actions {left:auto;right:auto;z-index:3}
 .records-table td.fixed-actions {box-shadow:none}
}
@media(max-width:600px){main{padding:6px}section{padding:8px}#live-table{max-height:none}#live-search > label:has(input[name=q]){flex-basis:100%}main table th,main table td{padding:5px 6px}}
