/* Compact, task-oriented PMS workspace. Scroll the content, not the shell. */
.document-lines {margin:12px 0;border:1px solid #dfe8e3;border-radius:12px;background:#fff;overflow:hidden}
.pms-document-layout>* , .pms-document-editor>[data-document-money] {min-width:0;max-width:100%}
.document-lines-toolbar {display:flex;align-items:center;gap:10px;padding:10px 12px;background:#f4f8f6}
.document-lines-toolbar span {font-size:11px;color:#657b70;flex:1}
.document-lines button {background:#edf4f0;color:#184e3d;padding:7px 10px;min-height:32px;border:0;border-radius:7px;font-size:12px;white-space:nowrap}
.document-lines-scroll {overflow:auto}
.document-lines table {width:100%;border-collapse:collapse;min-width:590px}
.document-lines th {font-size:11px;text-align:left;color:#667b71;padding:8px 6px;border-bottom:1px solid #e7ece9}
.document-lines td {padding:7px 5px;border-bottom:1px solid #eef2ef}
.document-lines th:first-child {width:40%}
.document-lines th:nth-child(2) {width:12%}
.document-lines th:nth-child(3) {width:19%}
.document-lines input,.document-lines select {box-sizing:border-box;width:100%;min-width:0!important;min-height:36px!important;height:36px;padding:6px 7px!important;margin:0!important;font-size:13px!important;border:1px solid #dce5df;border-radius:6px}
.document-lines output {font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.document-lines-totals {padding:12px;display:flex;gap:12px;justify-content:space-between;background:#fafcfb}
.document-lines-totals label {font-size:11px!important;max-width:120px}
.document-lines-totals [data-line-summary] {text-align:right;display:grid;gap:4px;font-size:12px;color:#62776b}
.document-lines-totals strong {font-size:21px;color:#174d3b;font-variant-numeric:tabular-nums}
.document-lines>p {padding:0 12px 8px;font-size:11px!important;margin:0!important}
[data-pms-panel=reports]>.pms-section-heading {margin-bottom:10px}
[data-pms-panel=reports]>.pms-section-heading .eyebrow {display:none}
[data-pms-panel=reports] .pms-section-heading h2 {font:650 20px/1.4 system-ui,sans-serif;margin:0}
[data-pms-panel=reports] .pms-section-heading p {font-size:12px;margin:4px 0}
[data-pms-panel=reports] .pms-report-controls {background:#fff;border:1px solid #e0e8e3;border-radius:12px;padding:12px;gap:12px}
[data-pms-panel=reports] .pms-report-controls input,[data-pms-panel=reports] .pms-report-controls select {min-height:38px;height:38px;padding:6px 10px}
[data-pms-panel=reports] .pms-report-privacy {font-size:11px;margin:8px 0}
[data-pms-panel=reports] .pms-report-privacy {padding:5px 2px;background:none;border:0;color:#748278;gap:8px}
[data-pms-panel=reports] .pms-report-controls {margin:0}
[data-pms-panel=reports] .pms-report-status {margin:4px 0;font-size:11px}
[data-pms-panel=reports] .pms-daily-report {gap:10px}
[data-pms-panel=reports] .pms-daily-report-section {padding:0;border:0}
.pms-report-booking {border:0;box-shadow:none}
[data-pms-panel=reports] .pms-report-warnings {border:0;border-left:3px solid #cba96d;background:#fffaf1;padding:8px 12px;font-size:12px;margin:8px 0}
[data-pms-panel=reports] .pms-report-warnings p {margin:2px 0}
[data-pms-panel=reports] .pms-summary-card {min-height:68px;padding:10px 14px;background:#fff;border:1px solid #e1e9e4;border-radius:10px}
[data-pms-panel=reports] .pms-summary-card strong {font-size:22px;font-variant-numeric:tabular-nums}
[data-pms-panel=reports] .pms-summary-card span {font-size:11px}
[data-pms-panel=reports] .pms-booking-table-wrap {max-height:58vh;overflow:auto;border-radius:10px;border:1px solid #e1e9e4;background:#fff}
[data-pms-panel=reports] .pms-booking-table {font-size:12px}
[data-pms-panel=reports] .pms-booking-table th {position:sticky;top:0;background:#edf4ef;z-index:1;padding:10px 12px;white-space:nowrap}
[data-pms-panel=reports] .pms-booking-table td {padding:10px 12px}
[data-pms-panel=reports] .pms-booking-table tbody tr:hover {background:#f5f9f7}
.pms-report-booking {padding:4px 7px!important;min-height:28px!important;font-size:12px!important;border-radius:5px;background:#edf5ef;color:#18503d}
@media(max-width:640px){
 .document-lines-toolbar{flex-wrap:wrap}.document-lines-toolbar span{flex-basis:100%;order:2}.document-lines-totals strong{font-size:18px}
 .document-lines table,.document-lines tbody{display:block;min-width:0;width:100%}.document-lines thead{display:none}
 .document-lines tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px;padding:9px;border-bottom:1px solid #dce7df}
 .document-lines td{display:block;min-width:0;border:0;padding:0}.document-lines td:first-child{grid-column:1/-1}
 .document-lines td:nth-child(2)::before{content:'数量'}.document-lines td:nth-child(3)::before{content:'税込単価'}
 .document-lines td:nth-child(4)::before{content:'税率'}.document-lines td:nth-child(5)::before{content:'金額'}
 .document-lines td::before{display:block;font-size:10px;color:#667b70;margin:2px 0}
 .document-lines td:nth-child(6){grid-column:1/-1;text-align:right}.document-lines td:nth-child(6) button{min-height:32px}
 .pms-document-editor input,.pms-document-editor textarea,.pms-document-editor select{max-width:100%;min-width:0;box-sizing:border-box}
 .pms-document-issuer-status,.pms-document-live-summary{overflow-wrap:anywhere}
 .pms-document-editor .dialog-actions button{white-space:normal;font-size:13px;padding:10px;max-width:100%}
}
@media print{.pms-report-booking{border:0!important;background:none!important}.pms-booking-table-wrap{max-height:none!important;overflow:visible!important}}
