#lymt-lodging-app{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",sans-serif;color:#1f2937;max-width:1500px;margin:0 auto}.lymt-tabs{display:flex;flex-wrap:wrap;background:#0d08a8}.lymt-tabs a{color:#ff0;text-decoration:none;font-weight:700;padding:15px 24px}.lymt-tabs a.active,.lymt-tabs a:hover{background:#201ac9;color:#fff}.lymt-panel{padding:24px;background:#fff}.lymt-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.lymt-head h2{margin:0 0 16px}.lymt-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px}.lymt-table-wrap{overflow:auto;max-width:100%}#lymt-lodging-app table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}#lymt-lodging-app th,#lymt-lodging-app td{border:1px solid #d1d5db;padding:7px 9px;text-align:left}#lymt-lodging-app th{background:#f3f4f6}.lymt-form-card{background:#fafafa;border:1px solid #e5e7eb;padding:18px;border-radius:8px}.lymt-form-card form{display:grid;gap:8px;margin-bottom:10px}.lymt-form-card label{font-weight:600}.lymt-form-card input,.lymt-form-card select,.lymt-form-card textarea,.lymt-head select,.lymt-search{width:100%;box-sizing:border-box;padding:8px;border:1px solid #cbd5e1;border-radius:4px}.lymt-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lymt-primary,.lymt-btn,.lymt-danger{border:0;border-radius:5px;padding:9px 15px;cursor:pointer}.lymt-primary{background:#2563eb;color:#fff}.lymt-danger{background:#dc2626;color:#fff}.lymt-btn{background:#334155;color:#fff}.lymt-subtabs{display:flex;gap:10px;margin-bottom:20px}.lymt-subtabs a{padding:11px 30px;background:#f3f4a8;text-decoration:none;color:#374151}.lymt-subtabs a.active{background:#ef1724;color:#fff}.lymt-check{display:flex;align-items:center;gap:6px}.lymt-check input{width:auto}.lymt-login-card{width:420px!important;max-width:calc(100vw - 40px)!important;box-sizing:border-box;margin:50px auto!important;padding:26px 28px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.08)}.lymt-login-card form{display:grid;gap:10px}.lymt-login-card input{padding:10px;border:1px solid #cbd5e1;border-radius:5px}.lymt-error,.lymt-notice{padding:10px;background:#fee2e2;border:1px solid #fecaca;margin:10px 0}.lymt-calendar-title{font-size:24px;font-weight:700;margin:10px 0 15px}.lymt-cal{display:grid;grid-template-columns:repeat(7,1fr);border-top:1px solid #ddd;border-left:1px solid #ddd}.lymt-cal>div{min-height:105px;border-right:1px solid #ddd;border-bottom:1px solid #ddd;padding:7px}.lymt-cal .dow{min-height:auto;text-align:center;font-weight:700;color:#0800a0}.lymt-cal .other{color:#b8b8d9}.lymt-cal .today{background:#fff8d8}.lymt-day{cursor:pointer;text-decoration:underline;color:#0900a8}.lymt-count{display:block;margin-top:8px;font-size:12px;color:#475569;text-decoration:none}.lymt-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:99999;align-items:center;justify-content:center}.lymt-modal.open{display:flex}.lymt-modal-box{background:#fff;width:min(700px,92vw);max-height:80vh;overflow:auto;padding:22px;border-radius:8px;position:relative}.lymt-modal-x{position:absolute;right:12px;top:8px;border:0;background:none;font-size:28px;cursor:pointer}.lymt-search{max-width:260px}.lymt-assign-grid{display:grid;grid-template-columns:1fr;gap:20px}@media(max-width:900px){.lymt-grid{grid-template-columns:1fr}.lymt-tabs a{padding:11px 12px;font-size:14px}.lymt-panel{padding:12px}.lymt-cal>div{min-height:75px}.lymt-two{grid-template-columns:1fr}}

.lymt-login-temple{text-align:center;font-size:28px;font-weight:700;color:#63b9dc;margin:0 0 6px}.lymt-login-card h2{text-align:center;font-size:24px;margin:0 0 22px}.lymt-login-card label{font-weight:600}.lymt-login-card .lymt-primary{width:100%;font-size:16px;font-weight:700}.lymt-login-enter{display:block;box-sizing:border-box;text-align:center;text-decoration:none}
.lymt-login-divider{display:flex;align-items:center;gap:10px;margin:18px 0 12px;color:#64748b}.lymt-login-divider:before,.lymt-login-divider:after{content:"";height:1px;background:#e2e8f0;flex:1}.lymt-apply-open{width:100%;box-sizing:border-box;border:1px solid #2563eb;background:#fff;color:#2563eb;border-radius:5px;padding:10px 15px;font-size:16px;font-weight:700;cursor:pointer}.lymt-apply-open:hover{background:#eff6ff}.lymt-public-apply-box{width:min(620px,92vw)}.lymt-public-apply-box h2{text-align:center;margin:0 0 18px}.lymt-public-apply-form{display:grid;gap:9px}.lymt-public-apply-form label{font-weight:600}.lymt-public-apply-form input,.lymt-public-apply-form select,.lymt-public-apply-form textarea{width:100%;box-sizing:border-box;padding:9px;border:1px solid #cbd5e1;border-radius:5px}.lymt-success{padding:10px;background:#dcfce7;border:1px solid #86efac;color:#166534;margin:10px 0;border-radius:5px}

.lymt-phone-lookup-status{min-height:20px;font-size:13px;color:#475569;margin-top:-3px}.lymt-phone-matches{display:grid;gap:7px;padding:9px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px}.lymt-person-choice{text-align:left;padding:9px 11px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;cursor:pointer}.lymt-person-choice:hover{background:#eff6ff;border-color:#93c5fd}.lymt-person-fields{display:grid;gap:9px}

.lymt-event-period{margin-top:-3px;padding:7px 10px;border-radius:5px;background:#f8fafc;color:#475569;font-size:14px;font-weight:600;min-height:18px}.lymt-event-period:empty{display:none}

/* v2.0.7: keep the complete login/actions visible on shorter browser viewports */
.lymt-login-card{margin:24px auto!important;padding:20px 28px!important;}
.lymt-login-temple{font-size:26px!important;margin-bottom:2px!important;}
.lymt-login-card h2{font-size:23px!important;margin-bottom:14px!important;}
.lymt-login-card form{gap:6px!important;}
.lymt-login-card input{padding:8px 10px!important;}
.lymt-login-card .lymt-check{margin:1px 0!important;}
.lymt-login-divider{margin:10px 0 8px!important;}
.lymt-apply-open{padding:9px 15px!important;}
@media(max-height:650px){.lymt-login-card{margin:10px auto!important;padding:14px 24px!important}.lymt-login-temple{font-size:23px!important}.lymt-login-card h2{font-size:21px!important;margin-bottom:8px!important}.lymt-login-card form{gap:4px!important}.lymt-login-card input{padding:6px 9px!important}.lymt-login-divider{margin:6px 0!important}}
/* v2.1.0 fresh admin */
.lymt-system-title{display:flex;gap:12px;align-items:baseline;margin:0 0 14px}.lymt-system-title strong{font-size:22px}.lymt-system-title span{font-size:18px}.lymt-tab-logout{margin-left:auto}.lymt-placeholder{padding:30px 10px}.lymt-event-picker{display:flex;align-items:center;gap:10px;margin:12px 0 14px}.lymt-event-picker label{margin:0;font-weight:700}.lymt-event-picker select{max-width:520px}.lymt-filter-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px;background:#f6f7f7;border:1px solid #dcdcde;border-radius:6px;margin-bottom:8px}.lymt-filter-bar input,.lymt-filter-bar select{width:auto;min-width:125px;margin:0}.lymt-count{margin:8px 0}.lymt-sortable th[data-sort]{cursor:pointer;white-space:nowrap}.lymt-sortable th[data-sort]:after{content:' ↕';opacity:.4}.lymt-inline-delete{display:inline;margin-left:8px}.lymt-inline-delete button{border:0;background:none;padding:0;color:#b32d2e;cursor:pointer}.lymt-editor-modal{display:none;position:fixed;z-index:99999;inset:0;background:rgba(0,0,0,.45);padding:30px;overflow:auto}.lymt-editor-modal.is-open{display:block}.lymt-editor-box{position:relative;background:#fff;max-width:720px;margin:30px auto;padding:26px;border-radius:8px;box-shadow:0 12px 40px rgba(0,0,0,.22)}.lymt-editor-box .lymt-modal-x{position:absolute;right:16px;top:10px;font-size:28px;text-decoration:none;color:#555}.lymt-editor-box label{display:block;font-weight:600;margin-top:12px}.lymt-editor-box input,.lymt-editor-box select,.lymt-editor-box textarea{width:100%;box-sizing:border-box}.lymt-head{display:flex;justify-content:space-between;align-items:center;gap:12px}@media(max-width:700px){.lymt-filter-bar>*{width:100%!important}.lymt-event-picker{display:block}.lymt-event-picker select{width:100%;max-width:none}.lymt-editor-modal{padding:8px}.lymt-tabs{overflow:auto;white-space:nowrap}}

/* v2.1.1 法會資料：較緊湊、較大字體 */
#lymt-lodging-app .lymt-events-table{font-size:16px;table-layout:auto}
#lymt-lodging-app .lymt-events-table th{font-size:16px;font-weight:700;padding:8px 10px;line-height:1.25}
#lymt-lodging-app .lymt-events-table td{font-size:16px;padding:7px 10px;line-height:1.25}
#lymt-lodging-app .lymt-events-table th:first-child,#lymt-lodging-app .lymt-events-table td:first-child{width:72px}
#lymt-lodging-app .lymt-events-table th:nth-child(2),#lymt-lodging-app .lymt-events-table td:nth-child(2){width:70px}
#lymt-lodging-app .lymt-events-table th:nth-child(3),#lymt-lodging-app .lymt-events-table td:nth-child(3){width:90px}
#lymt-lodging-app .lymt-events-table th:nth-child(5),#lymt-lodging-app .lymt-events-table td:nth-child(5),#lymt-lodging-app .lymt-events-table th:nth-child(6),#lymt-lodging-app .lymt-events-table td:nth-child(6){width:150px}
.lymt-change-link{font-weight:700;text-decoration:none}
.lymt-event-editor-box{max-width:760px;padding:22px 26px}
.lymt-event-editor-box h3{margin:0 0 12px;font-size:25px}
.lymt-event-form-grid{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px 14px}
.lymt-event-form-grid .lymt-event-name-field{grid-column:2}
.lymt-event-form-grid label{margin-top:0;font-size:16px}
.lymt-event-form-grid input{font-size:16px;padding:8px 10px;min-height:40px}
.lymt-event-actions{margin-top:16px}
.lymt-event-delete-form{margin-top:18px;padding-top:16px;border-top:1px solid #ddd}
.lymt-event-delete-form .lymt-danger{margin:0}
@media(max-width:700px){.lymt-event-form-grid{grid-template-columns:1fr}.lymt-event-form-grid .lymt-event-name-field{grid-column:auto}}


/* v2.1.2 法會資料篩選 */
.lymt-event-filter-bar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:10px 12px;margin:0 0 8px;background:#f6f7f7;border:1px solid #dcdcde;border-radius:6px}
.lymt-event-filter-bar label{display:grid;gap:4px;font-size:14px;font-weight:700;margin:0}
.lymt-event-filter-bar select,.lymt-event-filter-bar input{min-width:145px;padding:7px 9px;font-size:15px;border:1px solid #cbd5e1;border-radius:4px;background:#fff}
.lymt-event-filter-bar #lymt-event-filter-keyword{min-width:240px}
#lymt-lodging-app .lymt-events-table th:nth-child(4),#lymt-lodging-app .lymt-events-table td:nth-child(4){width:120px}
#lymt-lodging-app .lymt-events-table th:nth-child(6),#lymt-lodging-app .lymt-events-table td:nth-child(6),#lymt-lodging-app .lymt-events-table th:nth-child(7),#lymt-lodging-app .lymt-events-table td:nth-child(7){width:150px}
.lymt-event-form-grid select{font-size:16px;padding:8px 10px;min-height:40px}
@media(max-width:700px){.lymt-event-filter-bar>*{width:100%}.lymt-event-filter-bar select,.lymt-event-filter-bar input,.lymt-event-filter-bar #lymt-event-filter-keyword{width:100%;min-width:0}}

/* v2.1.3 法會新增／異動視窗 */
.lymt-event-editor-box{max-width:760px!important;padding:20px 24px!important}
.lymt-event-editor-box h3{margin:0 0 14px!important;font-size:25px!important}
.lymt-event-form-grid{display:grid!important;grid-template-columns:1fr 2fr!important;gap:10px 16px!important}
.lymt-event-form-grid .lymt-event-name-field{grid-column:1 / -1!important}
.lymt-event-form-grid>div:nth-child(4),.lymt-event-form-grid>div:nth-child(5){grid-column:auto!important}
.lymt-event-form-grid label{margin:0 0 4px!important;font-size:16px!important}
.lymt-event-form-grid input,.lymt-event-form-grid select{min-height:40px!important;padding:7px 10px!important;font-size:16px!important}
.lymt-event-actions{display:flex!important;align-items:center!important;gap:10px!important;margin-top:16px!important}
.lymt-event-actions .lymt-primary,.lymt-event-actions .lymt-danger{margin:0!important;font-size:16px!important}
.lymt-event-delete-form{display:none!important;margin:0!important;padding:0!important;border:0!important}
@media(max-width:700px){.lymt-event-form-grid{grid-template-columns:1fr!important}.lymt-event-form-grid .lymt-event-name-field{grid-column:auto!important}}

/* v2.2.0 掛單／信眾資料統一法會資料操作風格 */
#lymt-lodging-app .lymt-data-table{font-size:15px;table-layout:auto}
#lymt-lodging-app .lymt-data-table th{font-size:15px;font-weight:700;padding:7px 9px;line-height:1.25;white-space:nowrap}
#lymt-lodging-app .lymt-data-table td{font-size:15px;padding:6px 9px;line-height:1.25}
.lymt-record-editor-box{max-width:760px!important;padding:20px 24px!important}
.lymt-record-editor-box h3{margin:0 0 14px!important;font-size:25px!important}
.lymt-record-form label{margin:8px 0 4px!important;font-size:16px!important;font-weight:600}
.lymt-record-form input,.lymt-record-form select,.lymt-record-form textarea{font-size:16px!important;padding:7px 10px!important}
.lymt-record-actions{display:flex;align-items:center;gap:10px;margin-top:16px}
.lymt-record-actions .lymt-primary,.lymt-record-actions .lymt-danger{margin:0!important;font-size:16px!important}
.lymt-hidden-delete-form{display:none!important}

/* v2.3.0 分配床位：旅館式日期床位表 */
.lymt-bed-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:8px 0 14px}.lymt-bed-controls label{display:grid;gap:4px;font-weight:700}.lymt-bed-controls select{min-width:220px}.lymt-bed-controls label:nth-child(3) select{min-width:90px}.lymt-bed-range{padding:8px 10px;background:#f8fafc;border-radius:5px;color:#475569}
.lymt-bed-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:14px;align-items:start}.lymt-unassigned{border:1px solid #dcdcde;border-radius:7px;background:#fff;overflow:hidden;position:sticky;top:10px}.lymt-unassigned h3{margin:0;padding:11px 12px;background:#f3f4f6;font-size:18px}.lymt-unassigned h3 span{font-size:14px;font-weight:500}.lymt-bed-help{font-size:13px;line-height:1.45;color:#64748b;padding:9px 12px;margin:0;border-bottom:1px solid #e5e7eb}.lymt-unassigned-list{max-height:68vh;overflow:auto;padding:8px}.lymt-unassigned-person{display:grid;gap:3px;width:100%;text-align:left;border:1px solid #d7dce2;background:#fff;border-radius:6px;padding:8px 9px;margin:0 0 7px;cursor:pointer}.lymt-unassigned-person:hover,.lymt-unassigned-person.is-selected{background:#eff6ff;border-color:#2563eb}.lymt-unassigned-person strong{font-size:16px}.lymt-unassigned-person span{font-size:12px;color:#64748b}.lymt-empty{padding:18px 10px;text-align:center;color:#64748b}
.lymt-bed-board{min-width:0}.lymt-bed-table-wrap{overflow:auto;border:1px solid #cbd5e1;max-height:72vh}.lymt-bed-table{border-collapse:separate!important;border-spacing:0!important;min-width:max-content;width:auto!important;margin:0!important}.lymt-bed-table th,.lymt-bed-table td{border-right:1px solid #9ca3af!important;border-bottom:1px solid #9ca3af!important;min-width:92px;height:42px;padding:5px 7px!important;text-align:center;white-space:nowrap;font-size:14px}.lymt-bed-table th{position:sticky;top:0;z-index:4;background:#dbeafe!important}.lymt-bed-table .sticky-col{position:sticky;z-index:3;min-width:90px}.lymt-bed-table th.sticky-col{z-index:6}.lymt-bed-table .room{left:0;background:#fef3c7!important}.lymt-bed-table .bed{left:90px;background:#fff7ed!important}.lymt-bed-table .event-day{background:#dbeafe!important}.lymt-bed-table td.lymt-bed-cell{cursor:pointer}.lymt-bed-table td.lymt-bed-cell:hover{outline:2px solid #2563eb;outline-offset:-2px}.lymt-bed-table td.occupied{background:#dcfce7!important;font-weight:700}.lymt-bed-table td.occupied.event-day{background:#bbf7d0!important}#lymt-bed-message{margin-top:8px;font-weight:700;color:#475569}
@media(max-width:900px){.lymt-bed-layout{grid-template-columns:1fr}.lymt-unassigned{position:static}.lymt-unassigned-list{max-height:240px}.lymt-bed-controls>*{width:100%}.lymt-bed-controls select{width:100%}}
/* v2.3.1 分配床位：緊湊未分配名單、日期格下拉安排 */
.lymt-bed-layout{grid-template-columns:235px minmax(0,1fr);gap:10px}
.lymt-bed-help{font-size:12px;padding:6px 9px;line-height:1.35}
.lymt-unassigned h3{padding:8px 9px;font-size:17px}
.lymt-unassigned-list{padding:5px;max-height:72vh}
.lymt-unassigned-person{display:grid;gap:1px;padding:5px 7px;margin:0 0 4px;border-radius:4px;cursor:grab}.lymt-unassigned-person:active{cursor:grabbing}.lymt-unassigned-person.is-dragging{opacity:.45}
.lymt-unassigned-person strong{font-size:14px;line-height:1.3}
.lymt-unassigned-person span{font-size:11px;line-height:1.25}
.lymt-bed-table-wrap{max-height:76vh;overflow:auto}
.lymt-bed-table th,.lymt-bed-table td{min-width:82px;height:36px;padding:2px 4px!important;font-size:13px}
.lymt-bed-table .sticky-col{min-width:78px}.lymt-bed-table .bed{left:78px}
.lymt-bed-person-select{width:74px;max-width:74px;min-width:0;height:28px!important;padding:1px 18px 1px 3px!important;font-size:12px!important;margin:0!important}
.lymt-bed-occupied-name{border:0;background:transparent;padding:0;margin:0;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
@media(max-width:900px){.lymt-bed-layout{grid-template-columns:1fr}}

/* v2.3.2 drag/drop bed assignment */
.lymt-bed-row.is-drop-target td{box-shadow:inset 0 2px 0 #2563eb,inset 0 -2px 0 #2563eb}.lymt-bed-row.is-drop-target .bed{background:#dbeafe!important}.lymt-bed-cell:empty{min-width:82px}.lymt-bed-person-select{display:none!important}

.lymt-unassigned-person.is-selected{outline:2px solid #2563eb;background:#eff6ff}

/* v2.4.0 compact page titles + bed settings */
#lymt-lodging-app .lymt-panel > .lymt-head h2,
#lymt-lodging-app .lymt-placeholder h2{font-size:32px!important;line-height:1.15;margin:8px 0 12px!important}
#lymt-lodging-app .lymt-panel{padding-top:14px}
.lymt-bed-create-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:10px;align-items:end}
.lymt-bed-preview-title{font-weight:700;margin:16px 0 7px}.lymt-bed-preview-title small{font-weight:400;color:#64748b;margin-left:8px}
.lymt-bed-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:6px;padding:10px;border:1px solid #dcdcde;border-radius:6px;background:#f8fafc;max-height:280px;overflow:auto}
.lymt-bed-preview label{display:flex!important;align-items:center;gap:7px;margin:0!important;padding:6px 8px;background:#fff;border:1px solid #e2e8f0;border-radius:4px;font-weight:500!important}.lymt-bed-preview input{width:auto!important;margin:0!important}
@media(max-width:700px){.lymt-bed-create-grid{grid-template-columns:1fr}}
/* v2.4.1 主功能按鈕＋設定管理次分類＋房間批次管理 */
.lymt-main-buttons{gap:8px;background:transparent;padding:0;margin-bottom:10px}.lymt-main-buttons a{background:#0d08a8;border-radius:5px;padding:10px 18px}.lymt-main-buttons a.active{background:#201ac9}.lymt-main-buttons .lymt-tab-logout{margin-left:auto}.lymt-setting-buttons{display:flex;gap:8px;margin:0 0 14px}.lymt-setting-buttons a{display:inline-block;padding:9px 18px;border-radius:5px;background:#e5e7eb;color:#1f2937;text-decoration:none;font-weight:700}.lymt-setting-buttons a.active{background:#2563eb;color:#fff}.lymt-head-actions{display:flex;gap:8px}.lymt-room-picker{display:flex;gap:10px;align-items:end;margin:0 0 16px}.lymt-room-picker label{font-weight:700}.lymt-room-picker select{min-width:260px}.lymt-panel>.lymt-head h2{font-size:30px;line-height:1.15;margin-bottom:10px}
/* v2.4.2 room bed detail */
.lymt-bed-preview-title{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.lymt-bed-preview-title small{display:block;width:100%}.lymt-bed-stats{font-weight:700;color:#334155}.lymt-bed-preview{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}.lymt-bed-detail-row{display:grid;grid-template-columns:minmax(150px,220px) 1fr;gap:10px;align-items:center}.lymt-bed-detail-row .lymt-bed-check{margin:0}.lymt-bed-memo{width:100%;min-width:0}@media(max-width:700px){.lymt-bed-detail-row{grid-template-columns:1fr}.lymt-bed-preview-title{gap:8px}}
/* v2.4.4 */
.lymt-room-usage{margin:10px 0;padding:9px 12px;background:#f6f7f7;border-radius:6px}.lymt-room-usage small{margin-left:8px;color:#646970}.lymt-room-picker{margin-bottom:14px}.lymt-room-picker select{min-width:260px}
/* v2.4.5 床位設定：以房間彙總顯示 */
#lymt-lodging-app .lymt-room-summary-table{width:100%;table-layout:fixed}
#lymt-lodging-app .lymt-room-summary-table th:nth-child(1),#lymt-lodging-app .lymt-room-summary-table td:nth-child(1){width:16%}
#lymt-lodging-app .lymt-room-summary-table th:nth-child(2),#lymt-lodging-app .lymt-room-summary-table td:nth-child(2){width:9%;text-align:center}
#lymt-lodging-app .lymt-room-summary-table th:nth-child(3),#lymt-lodging-app .lymt-room-summary-table td:nth-child(3){width:15%;text-align:center;overflow-wrap:break-word}
#lymt-lodging-app .lymt-room-summary-table th:nth-child(4),#lymt-lodging-app .lymt-room-summary-table td:nth-child(4){width:8%;text-align:center}
#lymt-lodging-app .lymt-room-summary-table th:nth-child(5),#lymt-lodging-app .lymt-room-summary-table td:nth-child(5){width:12%;text-align:center}
#lymt-lodging-app .lymt-room-summary-table th:nth-child(6),#lymt-lodging-app .lymt-room-summary-table td:nth-child(6){width:40%;text-align:left;overflow-wrap:break-word}
#lymt-lodging-app .lymt-room-note{margin-top:3px;font-size:13px;color:#64748b;white-space:normal}
#lymt-lodging-app .lymt-room-inactive{font-size:13px;color:#b42318;font-weight:700}
#lymt-lodging-app .lymt-bed-codes{white-space:normal;line-height:1.55;word-break:break-word}
#lymt-lodging-app #lymt-bed-all-search{min-width:380px;flex:1}
@media(max-width:800px){#lymt-lodging-app #lymt-bed-all-search{min-width:100%}#lymt-lodging-app .lymt-room-summary-table{min-width:900px}}
/* v2.5.0 */
.lymt-event-fields[hidden],.lymt-regular-options[hidden],.lymt-weekday-wrap[hidden]{display:none!important}
.lymt-regular-options{padding:12px;margin:10px 0;border:1px solid #d8dee8;border-radius:8px;background:#f8fafc}
.lymt-segment-dates{display:grid;gap:8px;margin:10px 0}.lymt-segment-dates label{font-size:13px}.lymt-segment-dates input{width:100%}
\n/* v2.5.1：95% 全寬、登入者資訊、主分頁辨識、掛單篩選區 */\n#lymt-lodging-app{width:95%!important;max-width:none!important;margin:0 auto!important;box-sizing:border-box}\n.lymt-system-header{display:flex;align-items:baseline;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:0 0 14px}\n.lymt-system-header .lymt-system-title{margin:0}\n.lymt-login-user{font-size:15px;font-weight:700;color:#475569;white-space:nowrap}\n.lymt-login-account{font-weight:500;color:#64748b}\n.lymt-main-buttons{display:flex!important;align-items:center!important;gap:8px!important;background:transparent!important;padding:0!important;margin-bottom:10px!important}\n.lymt-main-buttons a{background:#e5e7eb!important;color:#334155!important;border:1px solid #cbd5e1!important;border-radius:6px!important;padding:10px 18px!important;box-shadow:none!important}\n.lymt-main-buttons a:hover{background:#dbeafe!important;color:#1d4ed8!important}\n.lymt-main-buttons a.active{background:#0d08a8!important;color:#fff!important;border-color:#0d08a8!important}\n.lymt-main-buttons .lymt-tab-logout{margin-left:auto!important;background:#0d08a8!important;color:#ff0!important;border-color:#0d08a8!important}\n#lymt-lodging-app .lymt-filter-bar{display:grid!important;grid-template-columns:auto minmax(130px,1fr) minmax(170px,1.3fr) minmax(120px,.75fr) minmax(150px,.9fr) minmax(145px,.9fr) minmax(125px,.75fr) minmax(160px,1fr) auto;gap:8px!important;align-items:center!important;padding:12px 14px!important}\n#lymt-lodging-app .lymt-filter-bar strong{white-space:nowrap}\n#lymt-lodging-app .lymt-filter-bar input,#lymt-lodging-app .lymt-filter-bar select{width:100%!important;min-width:0!important;box-sizing:border-box!important}\n#lymt-lodging-app .lymt-filter-bar .lymt-clear-filter{white-space:nowrap}\n@media(max-width:1200px){#lymt-lodging-app .lymt-filter-bar{grid-template-columns:auto repeat(4,minmax(150px,1fr))}.lymt-filter-bar .lymt-clear-filter{width:auto!important}}\n@media(max-width:800px){#lymt-lodging-app{width:96%!important}.lymt-system-header{align-items:flex-start}.lymt-login-user{width:100%}#lymt-lodging-app .lymt-filter-bar{display:flex!important}.lymt-main-buttons .lymt-tab-logout{margin-left:0!important}}\n
/* v2.5.2 compact header, one-line controls and recurrence preview */
#lymt-lodging-app .lymt-system-header{display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;margin-bottom:10px!important}
#lymt-lodging-app .lymt-system-title{grid-column:2;justify-self:center;display:flex!important;align-items:center!important;gap:10px!important;margin:0!important}
#lymt-lodging-app .lymt-system-title strong,#lymt-lodging-app .lymt-system-title span{font-size:20px!important;font-weight:700!important;line-height:1.2!important}
#lymt-lodging-app .lymt-login-user{grid-column:3;justify-self:end;text-align:right;font-size:13px!important;font-weight:500!important}
#lymt-lodging-app .lymt-event-picker{display:grid!important;grid-template-columns:auto 150px auto minmax(280px,520px) auto!important;gap:8px!important;align-items:center!important}
#lymt-lodging-app .lymt-event-picker select{width:100%!important;max-width:none!important;min-width:0!important;height:40px!important}
#lymt-lodging-app .lymt-event-picker .lymt-event-period{font-size:14px!important;padding:7px 10px!important;white-space:nowrap!important}
#lymt-lodging-app .lymt-filter-bar{display:grid!important;grid-template-columns:auto minmax(300px,1fr) 105px 125px 125px 125px auto!important;gap:7px!important;align-items:center!important;padding:9px 12px!important}
#lymt-lodging-app .lymt-filter-bar input,#lymt-lodging-app .lymt-filter-bar select{height:38px!important;font-size:14px!important;padding:5px 8px!important}
#lymt-lodging-app .lymt-keyword-filter{min-width:0!important}
.lymt-check-row{display:flex;flex-wrap:wrap;gap:7px 12px;padding:8px 0}.lymt-check-row label{display:inline-flex!important;align-items:center;gap:4px;margin:0!important;font-weight:500!important}.lymt-check-row input{width:auto!important;margin:0!important}.lymt-month-days{max-height:150px;overflow:auto;border:1px solid #dcdcde;padding:10px;border-radius:5px}.lymt-recurrence-preview{margin:12px 0;padding:10px;background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px}.lymt-recurrence-dates{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:7px}.lymt-recurrence-dates label{display:inline-flex!important;align-items:center;gap:4px;margin:0!important;font-weight:500!important}.lymt-recurrence-dates input{width:auto!important}.lymt-application-page{width:min(900px,95%);margin:28px auto}.lymt-application-title{text-align:center;font-size:24px;font-weight:700;margin-bottom:18px}.lymt-public-apply-standalone{background:#fff;border:1px solid #dcdcde;border-radius:8px;padding:22px}.lymt-public-apply-standalone label{display:block;font-weight:600;margin-top:12px}.lymt-public-apply-standalone input,.lymt-public-apply-standalone select,.lymt-public-apply-standalone textarea{width:100%;box-sizing:border-box}
@media(max-width:900px){#lymt-lodging-app .lymt-system-header{display:flex!important;justify-content:center!important}#lymt-lodging-app .lymt-login-user{width:100%;text-align:right}#lymt-lodging-app .lymt-event-picker,#lymt-lodging-app .lymt-filter-bar{display:flex!important;flex-wrap:wrap!important}#lymt-lodging-app .lymt-filter-bar>*{width:auto!important}#lymt-lodging-app .lymt-keyword-filter{flex:1 1 280px!important}}

/* v2.5.3 tables / tabs / gender */
#lymt-lodging-app{width:95%;max-width:none}
#lymt-lodging-app .lymt-table-wrap{max-height:520px;overflow:auto;border:1px solid #e2e8f0;border-radius:6px}
#lymt-lodging-app .lymt-table-wrap table{margin:0}
#lymt-lodging-app .lymt-table-wrap thead th{position:sticky;top:0;z-index:4;background:#eef2f7}
.lymt-table-export-bar{display:flex;justify-content:flex-end;margin:8px 0 6px}
.lymt-export-excel{background:#16794b;color:#fff;border:0;border-radius:5px;padding:8px 14px;font-weight:700;cursor:pointer}
.lymt-tabs{background:transparent;gap:8px}
.lymt-tabs a{background:#e7e9ff;color:#312e81;border:1px solid #c7d2fe;border-radius:6px}
.lymt-tabs a.active{background:#1712b8;color:#fff;border-color:#1712b8;box-shadow:0 2px 6px rgba(23,18,184,.2)}
.lymt-tabs a:hover{background:#312bd0;color:#fff}
.lymt-subtabs a,.lymt-setting-buttons a{background:#eef2f7!important;color:#334155!important;border:1px solid #cbd5e1!important;border-radius:6px!important}
.lymt-subtabs a.active,.lymt-setting-buttons a.active{background:#1d4ed8!important;color:#fff!important;border-color:#1d4ed8!important;box-shadow:0 2px 5px rgba(29,78,216,.18)}
.lymt-gender-male{color:#1558b0!important}.lymt-gender-female{color:#c0266d!important}
.lymt-unassigned-person.lymt-gender-male strong,.lymt-bed-occupied-name.lymt-gender-male{color:#1558b0!important}
.lymt-unassigned-person.lymt-gender-female strong,.lymt-bed-occupied-name.lymt-gender-female{color:#c0266d!important}

/* v2.5.4 lodging date confirmation */
.lymt-date-confirm-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.lymt-date-confirm-head label{margin:0!important;font-weight:700}.lymt-stay-days{font-size:14px;color:#1d4ed8}
.lymt-date-week-head,.lymt-date-calendar{display:grid;grid-template-columns:repeat(7,minmax(72px,1fr));gap:5px}
.lymt-date-week-head span{text-align:center;font-weight:700;background:#e8edf5;border:1px solid #cbd5e1;padding:7px 4px;border-radius:4px}
.lymt-date-calendar{margin-top:5px}.lymt-date-cell{min-height:44px;display:flex!important;align-items:center;justify-content:center;gap:6px!important;margin:0!important;padding:7px 4px;border:1px solid #d7dde7;border-radius:5px;background:#fff;font-weight:500!important}
.lymt-date-cell input{width:auto!important;margin:0!important}.lymt-date-empty{min-height:44px}.lymt-date-list-cell{white-space:normal;min-width:190px;line-height:1.45}
@media(max-width:760px){.lymt-date-week-head,.lymt-date-calendar{grid-template-columns:repeat(7,minmax(42px,1fr));font-size:12px}.lymt-date-cell{padding:5px 2px}.lymt-date-cell span{font-size:11px}}

/* v2.5.5 per-day bed selection */
.lymt-date-cell{flex-direction:column;align-items:stretch!important}.lymt-date-check{display:flex;align-items:center;justify-content:center;gap:6px}.lymt-date-bed{width:100%!important;min-width:0!important;font-size:12px!important;padding:4px!important;height:auto!important}.lymt-phone-lookup-status:empty{display:none}.lymt-date-list-cell:empty{min-width:70px}

/* v2.5.7 calendar alignment / alternate bed / SMS */
.lymt-date-week-head,.lymt-date-calendar{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:6px!important}
.lymt-date-week-head span,.lymt-date-cell,.lymt-date-empty{box-sizing:border-box;width:100%}
.lymt-date-empty{min-height:0}
.lymt-date-cell.lymt-alt-bed{background:#fff4d6!important;border-color:#e5a50a!important;box-shadow:inset 0 0 0 1px rgba(229,165,10,.15)}
.lymt-date-cell.lymt-alt-bed .lymt-date-bed{background:#fffaf0!important;border-color:#d99a00!important}
.lymt-sms-confirm{margin:14px 0 10px!important;padding:10px 12px;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:6px;font-weight:700!important}

/* v2.5.8 integrated SMS tab */
.lymt-sms-integrated{width:100%;}
.lymt-sms-integrated .lymt-sms-app{max-width:none!important;margin:0!important;}

/* v2.5.9 true seven-column lodging calendar */
.lymt-recurrence-dates{display:block!important;width:100%!important;margin-top:7px}
.lymt-date-week-head,.lymt-date-calendar{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:6px!important;width:100%!important;max-width:none!important}
.lymt-date-week-head span{width:100%!important;min-width:0!important;min-height:58px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.lymt-date-calendar{grid-auto-rows:minmax(88px,auto)}
.lymt-date-cell,.lymt-date-empty{width:100%!important;min-width:0!important;min-height:88px!important;box-sizing:border-box}
.lymt-date-empty{display:block;border:1px solid #e5e7eb;border-radius:5px;background:#fbfcfd}
@media(max-width:760px){.lymt-date-week-head span{min-height:46px}.lymt-date-calendar{grid-auto-rows:minmax(74px,auto)}.lymt-date-cell,.lymt-date-empty{min-height:74px!important}}

/* v2.5.10 public application refinements */
.lymt-public-apply-form .lymt-public-phone-status{display:none!important;margin:0!important;padding:0!important;min-height:0!important;height:0!important;border:0!important}
.lymt-public-apply-form .lymt-event-period{display:block!important;margin-top:6px!important}
.lymt-public-apply-form .lymt-event-period:empty{display:none!important}

/* v2.5.13 unified lodging form layout */
.lymt-phone-lookup-status[hidden]{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important}
.lymt-pair-type-event,.lymt-pair-phone-reason{align-items:start}
.lymt-pair-type-event>div,.lymt-pair-phone-reason>div{min-width:0}
@media (min-width:700px){
 .lymt-modal .lymt-two,.lymt-public-wrap .lymt-two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
}

/* v2.5.14 compact lodging-date calendar
   Empty weekday cells should not create tall blank boxes. */
.lymt-date-calendar,
.lymt-date-grid{
  align-items:start!important;
  grid-auto-rows:auto!important;
}
.lymt-date-calendar .lymt-date-cell,
.lymt-date-grid .lymt-date-cell,
.lymt-date-calendar .lymt-cal-cell,
.lymt-date-grid .lymt-cal-cell{
  min-height:0!important;
  height:auto!important;
  padding-top:8px!important;
  padding-bottom:8px!important;
  align-self:start!important;
}
.lymt-date-calendar .lymt-date-cell:empty,
.lymt-date-grid .lymt-date-cell:empty,
.lymt-date-calendar .lymt-cal-cell:empty,
.lymt-date-grid .lymt-cal-cell:empty{
  height:0!important;
  min-height:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
  border-color:transparent!important;
  background:transparent!important;
}

/* v2.5.15 unified lodging editor/application layout */
.lymt-public-wrap .lymt-public-card,
.lymt-modal .lymt-modal-card{box-sizing:border-box}
.lymt-public-wrap .lymt-two,
.lymt-modal .lymt-two{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 gap:12px 18px!important;
 align-items:start!important;
}
.lymt-public-wrap .lymt-two>div,
.lymt-modal .lymt-two>div{min-width:0!important;width:auto!important}
.lymt-public-wrap .lymt-two input,
.lymt-public-wrap .lymt-two select,
.lymt-modal .lymt-two input,
.lymt-modal .lymt-two select{width:100%!important;max-width:none!important}
.lymt-phone-lookup-status,
.lymt-public-phone-status{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important}
@media (min-width:700px){
 .lymt-public-wrap .lymt-pair-type-event,
 .lymt-public-wrap .lymt-pair-phone-reason,
 .lymt-modal .lymt-pair-type-event,
 .lymt-modal .lymt-pair-phone-reason{display:grid!important;grid-template-columns:1fr 1fr!important}
}
@media (max-width:699px){
 .lymt-public-wrap .lymt-two,.lymt-modal .lymt-two{grid-template-columns:1fr!important}
}

/* v2.5.16 actual form structure: public + admin editor */
.lymt-public-apply-form .lymt-two,
.lymt-record-form .lymt-two{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 gap:12px 18px!important;
 align-items:start!important;
}
.lymt-public-apply-form .lymt-two>div,
.lymt-record-form .lymt-two>div{min-width:0!important}
.lymt-public-apply-form input,.lymt-public-apply-form select,
.lymt-record-form input,.lymt-record-form select{box-sizing:border-box}
.lymt-public-apply-form .lymt-two input,.lymt-public-apply-form .lymt-two select,
.lymt-record-form .lymt-two input,.lymt-record-form .lymt-two select{width:100%!important}
.lymt-phone-lookup-status[hidden],.lymt-phone-matches[hidden]{display:none!important}
@media(max-width:699px){
 .lymt-public-apply-form .lymt-two,.lymt-record-form .lymt-two{grid-template-columns:1fr!important}
}


/* v2.5.21 public shortcode: compact empty calendar cells + inline SMS confirmation */
.lymt-public-apply-form .lymt-date-calendar{
  grid-auto-rows:auto!important;
  align-items:start!important;
}
.lymt-public-apply-form .lymt-date-empty{
  min-height:0!important;
  height:0!important;
  padding:0!important;
  border-color:transparent!important;
  background:transparent!important;
}
.lymt-public-apply-form .lymt-date-cell{
  min-height:0!important;
  height:auto!important;
  padding:10px 8px!important;
  align-self:start!important;
}
.lymt-public-apply-standalone .lymt-sms-confirm,
.lymt-public-apply-form .lymt-sms-confirm,
.lymt-record-form .lymt-sms-confirm{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
}
.lymt-public-apply-standalone .lymt-sms-confirm input[type="checkbox"],
.lymt-public-apply-form .lymt-sms-confirm input[type="checkbox"],
.lymt-record-form .lymt-sms-confirm input[type="checkbox"]{
  width:auto!important;
  margin:0!important;
  flex:0 0 auto!important;
}

/* v2.5.22 standalone application success popout */
.lymt-apply-success-popout{
 position:fixed!important; inset:0!important; z-index:999999!important;
 background:rgba(0,0,0,.42)!important; display:flex!important;
 align-items:center!important; justify-content:center!important; padding:20px!important;
}
.lymt-apply-success-box{
 width:min(420px,92vw)!important; background:#fff!important; border-radius:14px!important;
 padding:28px!important; text-align:center!important; box-shadow:0 18px 55px rgba(0,0,0,.22)!important;
}
.lymt-apply-success-title{font-size:28px!important;font-weight:800!important;margin-bottom:10px!important;}
.lymt-apply-success-text{font-size:18px!important;margin-bottom:22px!important;}
.lymt-apply-success-box .lymt-primary{min-width:120px!important;}

/* v2.5.23：所有篩選區桌面版維持單行，選項欄位使用 select */
#lymt-lodging-app .lymt-filter-bar,#lymt-lodging-app .lymt-event-filter-bar,#lymt-lodging-app .lymt-bed-filter-bar{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:7px!important;overflow-x:auto!important;white-space:nowrap!important}
#lymt-lodging-app .lymt-filter-bar>*,#lymt-lodging-app .lymt-event-filter-bar>*,#lymt-lodging-app .lymt-bed-filter-bar>*{flex:0 0 auto!important}
#lymt-lodging-app .lymt-filter-bar .lymt-keyword-filter{flex:1 1 320px!important;min-width:260px!important}
#lymt-lodging-app .lymt-filter-bar input,#lymt-lodging-app .lymt-filter-bar select{width:auto!important;min-width:115px!important}


/* v2.5.25 MMS preparation + SMS counter */
.lymt-mms-panel{border:1px solid #d7dce2;border-radius:10px;padding:14px 16px;margin-bottom:12px;background:#fff}
.lymt-mms-title{font-size:18px;font-weight:800;margin-bottom:5px}.lymt-mms-help{font-size:14px;line-height:1.55;margin-bottom:10px;color:#444}
.lymt-mms-upload{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.lymt-mms-upload input[type=file]{width:auto!important;max-width:460px}
.lymt-mms-preview{display:flex;align-items:center;gap:12px;margin:10px 0}.lymt-mms-preview img{width:110px;height:80px;object-fit:contain;border:1px solid #ddd;border-radius:6px;background:#fafafa}
.lymt-mms-remove{margin:0 0 10px}.lymt-sms-counter{padding:8px 12px;margin:0 0 10px;border-radius:7px;background:#f3f6f8;font-weight:700}.lymt-mms-ok{margin-bottom:10px}

/* Cancelled lodging records: strike through the entire row for clear visual identification. */
.lymt-data-table tr.lymt-cancelled-row > td,
.lymt-data-table tr.lymt-cancelled-row > td * {
  text-decoration: line-through !important;
  text-decoration-thickness: 1.5px;
}

/* v2.5.32 inline lodging flags */
#lymt-lodging-app .lymt-inline-flags{display:flex!important;align-items:center!important;gap:36px!important;grid-column:1/-1;margin:2px 0 8px!important}#lymt-lodging-app .lymt-inline-flags .lymt-check{display:inline-flex!important;align-items:center!important;gap:7px!important;margin:0!important;font-weight:700!important}#lymt-lodging-app .lymt-inline-flags input[type=checkbox]{width:20px!important;height:20px!important;margin:0!important;flex:0 0 auto!important}

/* v2.5.56: link selectors fill their own row without clipping */
.lymt-event-form-grid.lymt-link-form-grid{grid-template-columns:minmax(170px,220px) minmax(0,1fr)!important;width:100%;max-width:100%;align-items:end}
.lymt-link-form-grid>div{min-width:0}
.lymt-link-form-grid select{display:block;width:100%!important;max-width:100%;box-sizing:border-box}
.lymt-import-preview-form{margin:12px 0 18px;padding:14px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033}
.lymt-import-preview-form .lymt-table-wrap{overflow-x:auto}
.lymt-import-preview-form table{min-width:850px}
@media(max-width:700px){.lymt-event-form-grid.lymt-link-form-grid{grid-template-columns:minmax(0,1fr)!important}}

/* v2.5.57: import preview popout */
#lymt-lodging-app .lymt-import-preview-overlay{position:fixed;inset:0;z-index:100010;background:rgba(15,23,42,.62);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
#lymt-lodging-app .lymt-import-preview-dialog{position:relative;width:min(1500px,94vw);max-height:85vh;background:#fff;border-radius:12px;box-shadow:0 20px 65px rgba(0,0,0,.3);overflow:auto;padding:22px;box-sizing:border-box}
#lymt-lodging-app .lymt-import-preview-form{margin:0;padding:0;border:0;background:#fff}
#lymt-lodging-app .lymt-import-preview-x{position:absolute;right:15px;top:10px;background:transparent;border:0;color:#334155;font-size:36px;line-height:1;cursor:pointer;z-index:2}
#lymt-lodging-app .lymt-import-preview-form h3{padding-right:42px}
#lymt-lodging-app .lymt-import-preview-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:16px}
@media(max-width:700px){#lymt-lodging-app .lymt-import-preview-overlay{padding:7px}#lymt-lodging-app .lymt-import-preview-dialog{width:100%;max-height:92vh;padding:15px}}

/* v2.5.59 掛單篩選、工具列、統計 */
#lymt-lodging-app .lymt-apply-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;margin:10px 0;background:#f5f7fa;border-radius:8px;}
#lymt-lodging-app .lymt-apply-filters .lymt-keyword-filter{flex:1 1 260px;min-width:170px;}
#lymt-lodging-app .lymt-apply-filters select{flex:0 1 auto;max-width:180px;}
#lymt-lodging-app .lymt-apply-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0;}
#lymt-lodging-app .lymt-apply-toolbar .lymt-apply-import-form,#lymt-lodging-app .lymt-apply-toolbar .lymt-table-export-bar{margin:0!important;padding:0!important;}
#lymt-lodging-app .lymt-apply-toolbar button{white-space:nowrap;min-height:37px;}
#lymt-lodging-app .lymt-apply-summary{display:flex;flex-wrap:wrap;gap:10px 22px;background:#f4f6f8;border:1px solid #dde3e8;border-radius:8px;padding:11px 14px;margin:10px 0;color:#1e293b;font-size:15px;}
@media(max-width:640px){#lymt-lodging-app .lymt-apply-filters select{flex:1 1 145px;max-width:none;}#lymt-lodging-app .lymt-apply-toolbar{gap:7px;}#lymt-lodging-app .lymt-apply-summary{gap:8px 13px;}}

/* v2.5.67: link fields are a separate full-width grid, not a nested grid cell. */
#lymt-lodging-app .lymt-event-editor-box .lymt-link-form-grid{display:grid!important;grid-template-columns:minmax(180px,240px) minmax(0,1fr)!important;width:100%!important;gap:12px 16px!important;margin-top:16px;align-items:end}
#lymt-lodging-app .lymt-event-editor-box .lymt-link-form-grid>div{min-width:0!important;width:100%!important}
#lymt-lodging-app .lymt-event-editor-box .lymt-link-form-grid select{width:100%!important;max-width:100%!important;min-width:0!important}
#lymt-lodging-app .lymt-event-editor-box .lymt-link-help{display:block;clear:both;width:100%;margin:10px 0 18px;font-size:14px;color:#334155;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:700px){#lymt-lodging-app .lymt-event-editor-box .lymt-link-form-grid{grid-template-columns:minmax(0,1fr)!important}}

/* v2.5.74：床位安排左欄加寬，完整顯示姓名與日期；右欄保留水平捲動 */
#lymt-lodging-app .lymt-bed-layout{grid-template-columns:minmax(340px,380px) minmax(0,1fr)!important;gap:14px!important}
#lymt-lodging-app .lymt-bed-layout .lymt-unassigned-person strong{font-size:15px;line-height:1.45;overflow-wrap:anywhere}
#lymt-lodging-app .lymt-bed-layout .lymt-unassigned-person span{font-size:13px;line-height:1.4}
#lymt-lodging-app .lymt-bed-layout .lymt-bed-board{min-width:0}
#lymt-lodging-app .lymt-bed-table thead th:not(.sticky-col){min-width:100px;white-space:nowrap}
@media(max-width:900px){#lymt-lodging-app .lymt-bed-layout{grid-template-columns:minmax(0,1fr)!important}}

/* v2.5.95: compact label/control rows in the lodging record editor. */
#apply-editor .lymt-record-form{display:grid;gap:10px}
#apply-editor .lymt-record-form .lymt-inline-field{display:grid!important;grid-template-columns:112px minmax(0,1fr);gap:5px 10px;align-items:center;min-width:0}
#apply-editor .lymt-record-form .lymt-inline-field[hidden]{display:none!important}
#apply-editor .lymt-record-form .lymt-inline-field>label{margin:0!important;line-height:1.4;font-size:16px!important}
#apply-editor .lymt-inline-field>input:not([type="hidden"]),
#apply-editor .lymt-inline-field>select,
#apply-editor .lymt-inline-field>textarea{grid-column:2;width:100%!important;min-width:0;box-sizing:border-box;margin:0!important}
#apply-editor .lymt-inline-field>.lymt-event-period,
#apply-editor .lymt-inline-field>.lymt-phone-lookup-status,
#apply-editor .lymt-inline-field>.lymt-phone-matches{grid-column:2;margin:0!important}
#apply-editor .lymt-inline-field>input[type="hidden"]{display:none!important}
#apply-editor .lymt-record-form .lymt-two{gap:10px 18px!important}
#apply-editor .lymt-record-form .lymt-inline-flags{margin:0!important}
#apply-editor .lymt-record-form .lymt-inline-flags label{margin:0!important}
#apply-editor .lymt-note-field{align-items:start!important}
#apply-editor .lymt-record-editor-box h3{margin-bottom:12px!important}
@media(max-width:699px){
 #apply-editor .lymt-record-form .lymt-inline-field{grid-template-columns:100px minmax(0,1fr);gap:5px 8px}
}

#apply-editor .lymt-record-form>.lymt-regular-options{display:grid;grid-template-columns:112px minmax(0,1fr);gap:5px 10px;align-items:center}
#apply-editor .lymt-record-form>.lymt-regular-options[hidden]{display:none!important}
#apply-editor .lymt-regular-options>label{margin:0!important}
#apply-editor .lymt-regular-options>.lymt-repeat-options{grid-column:1/-1}
@media(max-width:699px){#apply-editor .lymt-record-form>.lymt-regular-options{grid-template-columns:100px minmax(0,1fr)}}

/* v2.5.97: selection controls the fill; alternate bed controls the border. */
.lymt-recurrence-dates .lymt-date-cell{background:#fff!important;border-color:#d7dde7!important;box-shadow:none!important}
.lymt-recurrence-dates .lymt-date-cell:has(input[name="recurrence_dates[]"]:checked){background:#dcfce7!important;border-color:#86c99b!important}
.lymt-recurrence-dates .lymt-date-cell.lymt-alt-bed:has(input[name="recurrence_dates[]"]:checked){border-color:#d99a00!important;box-shadow:inset 0 0 0 1px #d99a00!important}
.lymt-recurrence-dates .lymt-date-cell:not(:has(input[name="recurrence_dates[]"]:checked)) .lymt-date-bed{background:#fff!important;border-color:#d7dde7!important}

/* v2.5.104: emphasize exceptional stay periods and reasons in the roster. */
#apply-new-table tr.lymt-period-highlight-row > td{color:#a04400}
#apply-new-table tr.lymt-period-highlight-row > td:nth-child(10){font-weight:700}

/* SMS reply results, in both summary and detail. */
.lymt-reply-badge{display:inline-block;padding:2px 7px;border-radius:4px;font-weight:700;white-space:pre-wrap}
.lymt-reply-confirm{color:#166534;background:#dcfce7}
.lymt-reply-cancel{color:#991b1b;background:#fee2e2}
.lymt-reply-waiting{color:#92400e;background:#fef3c7}
.lymt-reply-neutral{color:#475569;background:#f1f5f9}
.lymt-reply-option-0{color:#1e40af;background:#dbeafe}
.lymt-reply-option-1{color:#6b21a8;background:#f3e8ff}
.lymt-reply-option-2{color:#155e75;background:#cffafe}
.lymt-reply-option-3{color:#9d174d;background:#fce7f3}
.lymt-reply-option-4{color:#3730a3;background:#e0e7ff}
.lymt-sms-detail-table th[data-sort]{cursor:pointer;white-space:nowrap}
.lymt-sms-detail-table th[data-sort]::after{content:' ↕';color:#64748b}
.lymt-sms-detail-table th[data-dir=asc]::after{content:' ↑'}
.lymt-sms-detail-table th[data-dir=desc]::after{content:' ↓'}

/* Non-chanting reasons highlight only their own cell, independent of stay period. */
#apply-new-table td.lymt-reason-highlight-cell{background:#f3e8ff;font-weight:700}

/* v2.5.109 application notice and front-end data settings */
.lymt-application-fields{border:0;margin:0;padding:0;min-width:0;width:100%}
.lymt-application-fields[hidden],.lymt-notice-gate[hidden]{display:none!important}
.lymt-notice-content{white-space:pre-wrap;overflow-wrap:anywhere;max-height:50vh;overflow-y:auto;border:1px solid #cbd5e1;border-radius:6px;padding:18px;line-height:1.8;background:#fff;color:#1e293b}
.lymt-notice-gate .lymt-check{display:flex;gap:8px;align-items:center}
.lymt-notice-gate input[type=checkbox]{width:auto;flex:none}
.lymt-notice-gate button:disabled{opacity:.5;cursor:not-allowed}
.lymt-eligibility-fields{border:0;margin:0;padding:0;min-width:0;width:100%}
#lymt-online-bulk{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0}
#lymt-online-bulk input[type=checkbox],#people-new-table input[type=checkbox]{width:auto}
.lymt-phone-lookup-status:not([hidden]){display:block;color:#a12820;margin:8px 0}

/* v2.5.112 compact online-application bulk controls */
#lymt-lodging-app #lymt-online-bulk{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start;gap:12px;width:100%;overflow-x:auto;margin:12px 0}
#lymt-lodging-app #lymt-online-bulk>label{display:inline-flex!important;align-items:center;gap:6px;white-space:nowrap;flex:0 0 auto;width:auto!important;margin:0!important}
#lymt-lodging-app #lymt-online-bulk>select,#lymt-lodging-app #lymt-online-bulk>button{flex:0 0 auto;width:auto!important;max-width:none!important;margin:0!important;white-space:nowrap}
#lymt-lodging-app #lymt-online-bulk input[type=checkbox]{width:auto!important;margin:0}
#lymt-lodging-app #lymt-online-bulk>input[type=hidden]{display:none!important}

/* v2.5.120 房間批次選取與排序 */
#beds-new-table th:first-child,#beds-new-table td:first-child{width:42px;min-width:42px;text-align:center}
#beds-new-table th:nth-child(2){width:14%}
#beds-new-table th:nth-child(3){width:9%}
#beds-new-table th:nth-child(4){width:16%}
#beds-new-table th:nth-child(5){width:8%}
#beds-new-table th:nth-child(6){width:12%}
#beds-new-table th:nth-child(7){width:auto}
#beds-new-table td:last-child{overflow-wrap:anywhere;word-break:normal}

/* v2.5.122: compact leading columns in seven-column room table, override legacy six-column widths */
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table{width:100%;table-layout:fixed;min-width:1050px}
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table th:nth-child(1),#lymt-lodging-app table#beds-new-table.lymt-room-summary-table td:nth-child(1){width:4%;text-align:center}
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table th:nth-child(2),#lymt-lodging-app table#beds-new-table.lymt-room-summary-table td:nth-child(2){width:10%;text-align:left}
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table th:nth-child(3),#lymt-lodging-app table#beds-new-table.lymt-room-summary-table td:nth-child(3){width:8%;text-align:center}
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table th:nth-child(4),#lymt-lodging-app table#beds-new-table.lymt-room-summary-table td:nth-child(4){width:13%;text-align:center}
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table th:nth-child(5),#lymt-lodging-app table#beds-new-table.lymt-room-summary-table td:nth-child(5){width:7%;text-align:center}
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table th:nth-child(6),#lymt-lodging-app table#beds-new-table.lymt-room-summary-table td:nth-child(6){width:11%;text-align:center}
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table th:nth-child(7),#lymt-lodging-app table#beds-new-table.lymt-room-summary-table td:nth-child(7){width:47%;text-align:left;overflow-wrap:normal;word-break:normal;white-space:normal}

/* v2.5.123: 前六欄依內容最小寬度，最後一欄自動填滿剩餘空間 */
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table{width:100%;min-width:0;table-layout:auto}
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table th:nth-child(-n+6),
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table td:nth-child(-n+6){width:1px;min-width:0;white-space:nowrap;overflow-wrap:normal;word-break:normal}
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table th:nth-child(1),
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table td:nth-child(1){width:42px;min-width:42px;text-align:center}
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table th:nth-child(7),
#lymt-lodging-app table#beds-new-table.lymt-room-summary-table td:nth-child(7){width:auto;min-width:260px;text-align:left;white-space:normal;overflow-wrap:break-word;word-break:normal}

.lymt-event-room-picker{margin:14px 0;padding:14px;border:1px solid #d8dee6;border-radius:8px}.lymt-event-room-picker p{font-size:13px;color:#596579;margin:5px 0 12px}.lymt-event-room-group{padding:10px 0;border-top:1px solid #e3e7ed}.lymt-event-room-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.lymt-event-room-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:8px}.lymt-event-room-items label{white-space:nowrap}.lymt-events-table td:nth-child(5){min-width:230px;max-width:420px;white-space:normal;overflow-wrap:anywhere}

/* v2.5.127: event room selection layout, scoped to modal */
#lymt-lodging-app .lymt-event-editor-box .lymt-event-room-picker{box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow:hidden;padding:16px;margin:14px 0}
#lymt-lodging-app .lymt-event-editor-box .lymt-event-room-group{min-width:0;padding:16px 0}
#lymt-lodging-app .lymt-event-editor-box .lymt-event-room-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-bottom:12px}
#lymt-lodging-app .lymt-event-editor-box .lymt-event-room-heading>label{display:inline-flex!important;align-items:center;gap:6px;flex:0 0 auto;width:auto!important;margin:0!important;white-space:nowrap}
#lymt-lodging-app .lymt-event-editor-box .lymt-event-room-items{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px 14px!important;min-width:0;width:100%;align-items:start}
#lymt-lodging-app .lymt-event-editor-box .lymt-event-room-items>label{box-sizing:border-box;display:flex!important;align-items:flex-start;justify-content:flex-start;gap:7px;min-width:0;width:100%!important;max-width:100%;margin:0!important;padding:5px 2px;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;line-height:1.4;text-align:left}
#lymt-lodging-app .lymt-event-editor-box .lymt-event-room-items input[type=checkbox],#lymt-lodging-app .lymt-event-editor-box .lymt-event-room-heading input[type=checkbox]{position:static!important;display:inline-block!important;flex:0 0 17px!important;width:17px!important;height:17px!important;min-width:17px!important;margin:2px 0 0!important;padding:0!important}
@media(max-width:650px){#lymt-lodging-app .lymt-event-editor-box .lymt-event-room-items{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:420px){#lymt-lodging-app .lymt-event-editor-box .lymt-event-room-items{grid-template-columns:minmax(0,1fr)!important}}

/* v2.5.134: compact one-line lodging event selector */
#lymt-lodging-app form.lymt-event-picker{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;width:100%;min-width:0;box-sizing:border-box}
#lymt-lodging-app form.lymt-event-picker>label{flex:0 0 auto!important;width:auto!important;white-space:nowrap!important;margin:0!important}
#lymt-lodging-app form.lymt-event-picker>select{flex:0 0 auto!important;width:145px!important;min-width:0!important;max-width:none!important;box-sizing:border-box}
#lymt-lodging-app form.lymt-event-picker>select[name="apply_year"]{width:110px!important}
#lymt-lodging-app form.lymt-event-picker>select[name="event_no"]{flex:1 1 260px!important;width:auto!important;min-width:190px!important}
#lymt-lodging-app form.lymt-event-picker>.lymt-event-period{flex:0 0 auto!important;white-space:nowrap!important;font-size:13px!important}
@media(max-width:850px){#lymt-lodging-app form.lymt-event-picker{flex-wrap:wrap!important}#lymt-lodging-app form.lymt-event-picker>select[name="event_no"]{flex:1 1 220px!important}}

/* v2.5.136: missing people comparison modal desktop layout */
#lymt-missing-people-modal .lymt-missing-people-box {width:95vw;max-width:1600px;max-height:94vh;overflow:auto;box-sizing:border-box;}
#lymt-missing-people-modal .lymt-table-wrap {width:100%;max-width:100%;overflow-x:auto;}
#lymt-missing-people-modal .lymt-missing-people-table {width:100%;min-width:1000px;table-layout:auto;font-size:13px;border-collapse:collapse;}
#lymt-missing-people-modal .lymt-missing-people-table th,
#lymt-missing-people-modal .lymt-missing-people-table td {font-size:13px;line-height:1.45;padding:7px 8px;vertical-align:top;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;}
#lymt-missing-people-modal .lymt-missing-people-table th:nth-child(1),
#lymt-missing-people-modal .lymt-missing-people-table td:nth-child(1) {width:44px;min-width:44px;text-align:center;}
#lymt-missing-people-modal .lymt-missing-people-table th:nth-child(2),
#lymt-missing-people-modal .lymt-missing-people-table td:nth-child(2) {width:66px;min-width:66px;}
#lymt-missing-people-modal .lymt-missing-people-table th:nth-child(3) {width:18%;}
#lymt-missing-people-modal .lymt-missing-people-table th:nth-child(4) {width:110px;}
#lymt-missing-people-modal .lymt-missing-people-table th:nth-child(5),
#lymt-missing-people-modal .lymt-missing-people-table th:nth-child(6) {width:75px;}
#lymt-missing-people-modal .lymt-missing-people-table th:nth-child(7) {width:42px;}
#lymt-missing-people-modal .lymt-missing-people-table th:nth-child(8) {width:22%;}
#lymt-missing-people-modal .lymt-missing-people-table th:nth-child(9) {width:205px;}
#lymt-missing-people-modal .lymt-missing-people-table td:nth-child(9) select {display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin:0 0 5px;font-size:13px;padding:5px;}
@media(max-width:800px){#lymt-missing-people-modal .lymt-missing-people-box{width:98vw;padding:12px;}#lymt-missing-people-modal .lymt-missing-people-table{min-width:1000px;}}

/* v2.5.137: override legacy record editor 760px !important constraint */
#lymt-lodging-app #lymt-missing-people-modal .lymt-editor-box.lymt-record-editor-box.lymt-missing-people-box{width:calc(100vw - 48px)!important;max-width:1600px!important;min-width:0!important;box-sizing:border-box!important;margin:12px auto!important;padding:22px 26px!important;}
#lymt-missing-people-modal .lymt-missing-people-table{white-space:normal!important;}
@media(max-width:800px){#lymt-lodging-app #lymt-missing-people-modal .lymt-editor-box.lymt-record-editor-box.lymt-missing-people-box{width:calc(100vw - 16px)!important;padding:12px!important;}}

.lymt-history-open{border:0;background:transparent;color:#1d4ed8;text-decoration:underline;cursor:pointer;font:inherit;white-space:nowrap;padding:2px 4px}.lymt-history-box{width:min(1100px,95vw)!important;max-width:1100px!important;max-height:90vh;overflow:auto;position:relative}.lymt-history-close{position:absolute;right:18px;top:12px;font-size:30px;border:0;background:transparent;cursor:pointer}.lymt-history-summary{font-weight:700;margin:12px 0}.lymt-history-switch{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.lymt-history-switch button{padding:8px 14px;cursor:pointer}.lymt-history-switch button.active{background:#2458e8;color:white}.lymt-history-note{font-size:13px;color:#64748b}#lymt-people-history-modal .lymt-data-table td{white-space:normal;overflow-wrap:anywhere}#people-new-table .lymt-history-open{font-size:inherit}

/* v2.5.140: people keyword and history dialog */
#lymt-lodging-app .lymt-people-filter .lymt-people-keyword{width:340px!important;min-width:220px!important;max-width:100%;flex:1 1 300px}
#lymt-lodging-app #lymt-people-history-modal.is-open{display:block!important;z-index:100020!important}
#lymt-lodging-app #people-new-table .lymt-history-open{border:0!important;background:transparent!important;color:#1d4ed8!important;border-radius:0!important;padding:2px 4px!important;min-width:0!important;min-height:0!important;box-shadow:none!important;text-decoration:underline!important;cursor:pointer!important}

/* v2.5.141: history is a plain text link; modal is moved to document.body */
#people-new-table button.lymt-history-open{appearance:none!important;-webkit-appearance:none!important;background:none!important;background-color:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline-offset:2px!important;padding:0!important;margin:0!important;color:#1d4ed8!important;text-decoration:underline!important;font:inherit!important;font-weight:600!important;line-height:inherit!important;min-width:0!important;min-height:0!important;cursor:pointer!important;}
body>#lymt-people-history-modal{position:fixed!important;inset:0!important;z-index:2147483000!important;}
body>#lymt-people-history-modal.is-open{display:block!important;}

/* Check lodging records: keep select-all checkbox and caption together. */
#lymt-lodging-app #lymt-missing-people-modal label.lymt-missing-select-all-row{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;width:max-content!important;max-width:100%!important;white-space:nowrap!important;margin:8px 0 12px!important;vertical-align:middle!important;}
#lymt-lodging-app #lymt-missing-people-modal label.lymt-missing-select-all-row input[type="checkbox"]{display:inline-block!important;position:static!important;flex:0 0 auto!important;width:16px!important;height:16px!important;margin:0!important;vertical-align:middle!important;}

/* v2.5.143: missing lodging people bulk actions and sortable columns */
#lymt-missing-people-modal .lymt-missing-bulk-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:10px 0 12px;}
#lymt-missing-people-modal .lymt-missing-bulk-bar .lymt-missing-select-all-row{margin:0!important;}
#lymt-missing-people-modal .lymt-missing-people-table{table-layout:auto!important;}
#lymt-missing-people-modal .lymt-missing-people-table th:nth-child(3){width:22%;}
#lymt-missing-people-modal .lymt-missing-people-table th:nth-child(8){width:30%;}
#lymt-missing-people-modal .lymt-missing-people-table th[data-sort]{cursor:pointer;}
#lymt-missing-people-modal .lymt-missing-people-table th[data-sort]:hover{background:#e0e8f2;}

/* Period/date mismatch takes priority over row highlights. */
#apply-new-table tbody tr td.lymt-period-error-cell{background:#ffe477!important;color:#302500!important;font-weight:700;}

/* Front-end permission management */
.lymt-permission-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.lymt-permission-top h2{margin:0}.lymt-permission-top p{margin:8px 0 0}.lymt-permission-scroll{overflow:auto;max-height:58vh}.lymt-permission-edit{padding:8px 16px!important}.lymt-permission-modal[hidden]{display:none!important}.lymt-permission-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:12px}.lymt-permission-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.62)}.lymt-permission-dialog{position:relative;background:#fff;color:#1e293b;border-radius:12px;width:min(740px,100%);max-height:94vh;overflow:auto;padding:22px;box-shadow:0 15px 45px #0004}.lymt-permission-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.lymt-permission-dialog-head h3{margin:0 0 16px}.lymt-permission-dialog-head button{font-size:28px;border:0;background:transparent;cursor:pointer}.lymt-permission-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lymt-permission-fields label{font-weight:600;display:block}.lymt-permission-fields input{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:9px;border:1px solid #cbd5e1;border-radius:6px}.lymt-permission-table th:not(:first-child),.lymt-permission-table td:not(:first-child){text-align:center}.lymt-permission-table input{width:19px;height:19px}.lymt-permission-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.lymt-permission-actions button{padding:10px 20px;border-radius:6px;cursor:pointer}.lymt-permission-open{overflow:hidden}@media(max-width:600px){.lymt-permission-fields{grid-template-columns:1fr}.lymt-permission-dialog{padding:14px}.lymt-permission-top>button{width:100%}}

/* Permission column select-all controls */
.lymt-permission-select-all-label{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;cursor:pointer}.lymt-permission-select-all-label input{width:18px;height:18px;cursor:pointer;accent-color:#1677ff;vertical-align:middle}

/* v2.5.157 - Permission page: full-width list and transient save dialog */
.lymt-permission-admin{width:100%;max-width:none;box-sizing:border-box}
.lymt-permission-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}
.lymt-permission-top>div{flex:1;min-width:220px}
.lymt-permission-top h2{font-size:clamp(25px,3vw,36px);line-height:1.2}
.lymt-permission-top p{font-size:15px;color:#475569;line-height:1.6}
.lymt-permission-top>button{flex:0 0 auto;white-space:nowrap}
.lymt-permission-users-scroll{max-height:none;width:100%;border:1px solid #d9e0e8;border-radius:9px;overflow-x:auto;overflow-y:visible}
.lymt-permission-users-table{width:100%!important;min-width:680px;border-collapse:collapse;table-layout:auto}
.lymt-permission-users-table th,.lymt-permission-users-table td{padding:12px 15px!important;vertical-align:middle;text-align:left}
.lymt-permission-users-table th{background:#f1f5f9;font-weight:700}
.lymt-permission-users-table th:nth-child(1){width:19%}.lymt-permission-users-table th:nth-child(2){width:18%}.lymt-permission-users-table th:nth-child(3){width:38%}.lymt-permission-users-table th:nth-child(4){width:12%;white-space:nowrap}.lymt-permission-users-table th:nth-child(5){width:13%;white-space:nowrap}
.lymt-permission-users-table tbody tr:nth-child(even){background:#f8fafc}
.lymt-permission-users-table td:nth-child(3){overflow-wrap:anywhere}
.lymt-permission-notice-modal{position:fixed;inset:0;z-index:1000002;display:flex;align-items:center;justify-content:center;padding:16px}
.lymt-permission-notice-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.5)}
.lymt-permission-notice-dialog{position:relative;width:min(390px,100%);background:white;border-radius:14px;padding:28px 22px;text-align:center;box-shadow:0 20px 60px #0003;color:#1e293b}
.lymt-permission-notice-icon{margin:0 auto 12px;width:48px;height:48px;border-radius:50%;background:#dcfce7;color:#15803d;font-size:28px;font-weight:700;line-height:48px}
.lymt-permission-notice-dialog h3{font-size:23px;margin:0 0 8px}.lymt-permission-notice-dialog p{font-size:16px;margin:0 0 20px}.lymt-permission-notice-dialog button{min-width:110px;padding:10px 22px;border-radius:7px}
@media(max-width:600px){.lymt-permission-top{align-items:stretch}.lymt-permission-top>button{width:auto}.lymt-permission-users-table th,.lymt-permission-users-table td{padding:9px!important}}

/* v2.5.158: list occupies its own row beneath heading and add button */
.lymt-permission-admin .lymt-permission-top{width:100%;box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}
.lymt-permission-admin .lymt-permission-users-scroll{display:block;clear:both;width:100%;margin-top:12px}

/* v2.5.159: improve readability of permission user list only */
.lymt-permission-admin .lymt-permission-users-table thead th{font-size:19px!important;font-weight:700;line-height:1.45}
.lymt-permission-admin .lymt-permission-users-table tbody td{font-size:20px!important;line-height:1.55}
.lymt-permission-admin .lymt-permission-users-table tbody td:nth-child(4){font-size:19px!important}
.lymt-permission-admin .lymt-permission-users-table th,.lymt-permission-admin .lymt-permission-users-table td{padding:14px 16px!important}
.lymt-permission-admin .lymt-permission-users-table .lymt-permission-edit{font-size:19px!important;line-height:1.35;padding:9px 19px!important;white-space:nowrap}
@media(max-width:600px){
 .lymt-permission-admin .lymt-permission-users-table{min-width:650px}
 .lymt-permission-admin .lymt-permission-users-table thead th{font-size:16px!important}
 .lymt-permission-admin .lymt-permission-users-table tbody td{font-size:17px!important}
 .lymt-permission-admin .lymt-permission-users-table tbody td:nth-child(4){font-size:16px!important}
 .lymt-permission-admin .lymt-permission-users-table th,.lymt-permission-admin .lymt-permission-users-table td{padding:10px 12px!important}
 .lymt-permission-admin .lymt-permission-users-table .lymt-permission-edit{font-size:17px!important;padding:8px 14px!important}
}
