.original-mode .oc-note{font-size:11px;color:#586580;margin:8px 4px}.original-mode .original-fixed-crm{height:100%;display:flex;flex-direction:column}.original-mode .original-fixed-crm .fc-scroll{flex:1;overflow:auto}.original-fixed-crm table{min-width:1300px;width:100%;table-layout:fixed}.original-fixed-crm td:nth-child(2){width:38%;white-space:pre-wrap;max-height:80px}.original-fixed-crm th:nth-child(2){width:38%}.original-fixed-crm td{height:40px;text-align:center}.original-fixed-crm td:nth-child(1){width:130px}.original-fixed-crm dialog{max-width:650px;border:1px solid #a4a8c8}.original-fixed-crm dialog pre{white-space:pre-wrap}.original-mode .original-fixed-crm footer{text-align:right}.original-mode .original-fixed-crm footer button{min-width:190px}.original-mode .original-message-search .ms-filters{display:flex;flex-wrap:wrap;gap:8px;padding:10px;background:#f1f1f1}.original-message-search .ms-filters label{font-size:11px;display:flex;align-items:center;gap:5px}.original-message-search input:not([type=date]){width:95px}.original-message-search .ms-table{overflow:auto;min-height:65vh}.original-message-search table{width:100%;min-width:1350px;font-size:11px}.original-message-search td{white-space:pre-wrap}.original-message-search td:nth-child(8){min-width:320px;max-width:450px}.original-mode .original-reservation-calendar{display:flex;min-height:80vh;background:white;gap:8px}.original-mode .original-reservation-calendar .rc-side{width:220px;flex:none;background:#f3f4f7;padding:10px;display:flex;flex-direction:column;gap:15px}.original-mode .original-reservation-calendar .rc-main{flex:1;min-width:0}.original-reservation-calendar .rc-top,.original-reservation-calendar .rc-bar{display:flex;gap:8px;padding:10px;background:#f2f2f4;align-items:center}.original-reservation-calendar .rc-sum{margin-left:auto}.original-reservation-calendar .rc-tabs{display:flex;gap:4px;flex:1}.original-reservation-calendar .rc-tabs .active{background:#686fae;color:white}.original-reservation-calendar .rc-wrap{overflow:auto;max-height:65vh}.original-reservation-calendar table{min-width:1150px;width:100%;font-size:11px}.original-reservation-calendar td{white-space:pre-wrap}.original-reservation-calendar .cancelled{color:#9294a1;background:#fafafa}.original-reservation-calendar .selected{background:#e1e2ec}.original-reservation-calendar .oc-calendar-summary{display:grid;grid-template-columns:repeat(7,minmax(85px,1fr));gap:1px;background:#d5d7df}.original-reservation-calendar .oc-calendar-summary:empty{display:none}.original-reservation-calendar .oc-calendar-summary button{min-height:50px;background:white;color:#53649a;text-align:left;padding:10px;border-radius:0}.original-reservation-calendar footer,.original-message-search footer{display:flex;justify-content:flex-end;gap:12px;padding:8px}.original-mode .original-fixed-crm th,.original-mode .original-message-search th,.original-mode .original-reservation-calendar th{background:#fafafa;border-bottom:1px solid #7075bc;font-weight:400}.original-mode .original-fixed-crm td,.original-mode .original-message-search td,.original-mode .original-reservation-calendar td{border-bottom:1px solid #ededed;padding:6px}.original-mode .original-fixed-crm tbody tr:nth-child(odd),.original-mode .original-message-search tbody tr:nth-child(odd){background:#fafafa}
.original-mode .original-fixed-crm .fc-content{height:32px;overflow:hidden;white-space:pre-wrap;font-size:11px;line-height:16px}.original-mode .original-fixed-crm td{height:40px;padding:3px;font-size:11px}.original-mode .original-fixed-crm footer{display:flex;justify-content:flex-end;padding:5px}.original-fixed-crm td:nth-child(6){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.original-fixed-crm th:nth-child(1){width:130px}.original-fixed-crm th:nth-child(6){width:120px}
.original-mode .oc-day-grid{table-layout:fixed;min-width:700px}.original-mode .oc-day-grid th:first-child{width:80px}.original-mode .oc-day-grid tbody tr{height:37px}.original-mode .oc-day-grid tbody th{background:#f6f6f9;border-bottom:1px solid #e5e5ec}.original-mode .oc-day-grid td{vertical-align:top;border:1px solid #e9e9ed;padding:2px;min-height:37px}.original-mode .oc-day-grid .oc-booking{display:block;width:100%;height:auto;min-height:30px;background:#e8e5fa;border-left:4px solid #8982bd;color:#263b5e;text-align:left;white-space:pre-wrap;font-size:11px;padding:4px}.original-mode .oc-day-grid .oc-booking.cancelled{background:#eee;color:#888;border-color:#bbb}.original-reservation-calendar .rc-top strong{font-size:18px}.original-mode .original-fixed-crm .fc-scroll{min-height:0}
.original-mode .oc-calendar-summary strong{text-align:center;padding:5px;background:#f3f3f7;color:#606a8e;font-size:12px}.original-mode .oc-calendar-summary>span{background:#fafafa}
.original-mode .original-reservation-calendar button,.original-mode .original-reservation-calendar input,.original-mode .original-reservation-calendar select,.original-mode .original-message-search button,.original-mode .original-message-search input,.original-mode .original-message-search select{border-radius:0;border:1px solid #d4d7e1;font-size:12px}.original-mode .oc-calendar-summary button{border:0}.original-mode .oc-reservation-history{width:1050px;max-width:90vw;border:1px solid #b4b7c9;padding:12px}.original-mode .oc-reservation-history>div{max-height:60vh;overflow:auto}.original-mode .oc-reservation-history table{min-width:850px}.original-mode .original-reservation-calendar .rc-tabs button{padding:8px}
.original-mode .original-message-search{height:100%;display:flex;flex-direction:column;background:#fff;position:relative}
.original-mode .original-message-search .ms-filters{gap:8px;padding:9px 10px;align-items:center;flex-wrap:nowrap;min-height:48px;border-bottom:1px solid #ddd}
.original-message-search .ms-filters label{white-space:nowrap;gap:5px;font-size:11px}
.original-message-search .ms-filters input{height:24px;padding:2px 5px;width:100px!important}
.original-message-search .ms-filters input[type=date]{width:94px!important;font-size:10px}
.original-message-search .ms-filters select{height:24px;width:108px;padding:2px 4px;font-size:11px;color:#777}
.original-message-search .ms-filters select[name=title]{width:90px}
.original-message-search .ms-actions{display:flex;gap:6px;margin-left:auto}
.original-mode .original-message-search button{background:#6873af;color:white;border:0;padding:5px 12px;font-size:11px;height:27px}
.original-mode .original-message-search button[type=reset]{background:#79b9cf}
.original-message-search .ms-extra{position:relative;font-size:10px;color:#707793}
.original-message-search .ms-extra summary{cursor:pointer;white-space:nowrap}
.original-message-search .ms-extra[open]{position:absolute;right:12px;top:49px;z-index:5;padding:10px;background:white;border:1px solid #adb0c8;box-shadow:0 3px 9px #0002}
.original-message-search .ms-extra[open] label{margin:8px 0}
.original-mode .original-message-search .oc-note{order:4;margin:3px 8px;font-size:10px}
.original-message-search .ms-table{flex:1;min-height:65vh;overflow:auto}
.original-message-search .ms-table table{table-layout:fixed;min-width:1300px;width:100%;border-collapse:collapse}
.original-mode .original-message-search .ms-table th{height:32px;padding:3px 8px;background:#fafafa;font-size:11px;text-align:center}
.original-mode .original-message-search .ms-table td{height:28px;padding:2px 7px;text-align:center;font-size:11px;line-height:14px;border-bottom:1px solid #eee;overflow-wrap:anywhere}
.original-message-search .ms-table th:nth-child(4),.original-message-search .ms-table th:nth-child(5){width:14%}
.original-message-search .ms-table th:nth-child(8){width:26%}
.original-message-search .ms-table th:nth-child(9){width:65px}
.original-message-search .ms-table td:nth-child(8){text-align:left;white-space:pre-wrap}
.original-mode .original-message-search .ms-table tbody tr{background:white;cursor:pointer}
.original-mode .original-message-search .ms-table tbody tr:hover,.original-mode .original-message-search .ms-table tbody tr.selected{background:#e0e1eb}
.original-message-search .ms-table td button{padding:3px 9px;height:24px}
@media(max-width:1500px){.original-mode .original-message-search .ms-filters{flex-wrap:wrap}.original-message-search .ms-extra[open]{top:83px}}
.original-mode .fixed-source-editor .fc-scroll table{table-layout:fixed;min-width:1300px}.fixed-source-editor th:nth-child(1){width:155px}.original-mode .fixed-source-editor th:nth-child(2){width:36%}.fixed-source-editor th:nth-child(3),.fixed-source-editor th:nth-child(4){width:85px}.fixed-source-editor th:nth-child(5),.fixed-source-editor th:nth-child(6),.fixed-source-editor th:nth-child(9),.fixed-source-editor th:nth-child(10){width:88px}.fixed-source-editor th:nth-child(7){width:85px}.fixed-source-editor th:nth-child(8){width:190px}.original-mode .fixed-source-editor td{height:40px;padding:2px;text-align:center}.fixed-source-editor .fc-content{height:35px;overflow:hidden;white-space:pre-wrap;text-align:center;font-size:11px;line-height:13px}.original-mode .fixed-source-editor th{height:32px;white-space:nowrap;background:#fafafa}.original-mode .fixed-source-editor button{background:#9ea6c9;color:white;border:0;border-radius:0;padding:8px 12px;font-size:11px;width:100%;white-space:nowrap}.fixed-source-editor .fc-time{display:flex}.fixed-source-editor select{height:36px;width:100%;border:1px solid #ddd;border-radius:0;background:white;font-size:11px;color:#767676}.fixed-source-editor select:disabled{background:#d4d4d4;color:#aaa}.fixed-source-editor input[type=checkbox]{width:17px;height:17px}.original-mode .fixed-source-editor tbody tr.selected{background:#e0e1eb}.original-mode .fixed-source-editor footer .fc-save{background:#6873ad;max-width:190px}.fixed-source-editor .fc-preview-dialog{width:600px;max-width:90vw;border:1px solid #9ca3c5}.fixed-source-editor .fc-preview-dialog pre{white-space:pre-wrap;font:13px/1.6 sans-serif}.fixed-source-editor>.oc-note{order:3}
.original-mode .fixed-source-editor .fcs-preview{position:static;display:inline-block;width:100%;height:auto}.fixed-source-editor .fcs-preview-dialog{width:600px;max-width:90vw;border:1px solid #9ca3c5}.fixed-source-editor .fcs-preview-dialog pre{white-space:pre-wrap;font:13px/1.6 sans-serif}
.fixed-template-preview{position:fixed;inset:0;margin:auto;width:760px;max-width:96vw;height:700px;max-height:96vh;border:1px solid #9a9eb3;padding:0;background:#f2f2f2;color:#172745;font:11px 'Malgun Gothic',sans-serif;z-index:5000;overflow:hidden}.fixed-template-preview>header{height:29px;display:flex;justify-content:space-between;align-items:center;padding:0 7px}.fixed-template-preview>header button{width:27px!important;height:25px;padding:0!important;background:transparent!important;color:#172745!important;font-size:20px!important}.fixed-template-preview .ftp-layout{height:calc(100% - 47px);display:grid;grid-template-columns:47% minmax(0,1fr);gap:7px;padding:0 4px}.fixed-template-preview textarea{width:100%;height:100%;min-height:0;resize:none;overflow-y:scroll;border:1px solid #777fb5;border-radius:0;background:white;color:#15345c;font:12px/1.5 'Malgun Gothic',sans-serif;padding:4px}.fixed-template-preview .ftp-layout>section{display:flex;min-width:0;min-height:0;flex-direction:column;gap:6px}.fixed-template-preview section>b{height:20px;padding:6px 8px 0;font-weight:400}.fixed-template-preview .ftp-buttons{height:245px;flex:none;background:#e1e1e1;overflow:auto}.fixed-template-preview table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:10px}.fixed-template-preview th{height:30px;font-weight:400;border-bottom:1px solid #aaa;color:#666}.fixed-template-preview td{padding:5px;overflow-wrap:anywhere;vertical-align:top;border-bottom:1px solid #ccc}.fixed-template-preview section>label{display:flex;align-items:center;min-height:26px;color:#aaa}.fixed-template-preview input{width:18px;height:18px}.fixed-template-preview .ftp-image{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;background:white;overflow:auto}.fixed-template-preview .ftp-image:empty:before{content:'No image'}.fixed-template-preview>p{height:17px;margin:0 6px;font-size:10px;overflow:hidden}
.original-mode .fixed-source-editor .crm-template-picker button{width:auto;padding:5px 9px}.original-mode .fixed-source-editor .crm-template-picker .tp-select{width:100%}.original-mode .fixed-source-editor .crm-template-picker th{height:30px;width:auto}.original-mode .fixed-source-editor .crm-template-picker td{height:28px;padding:4px;text-align:left}.original-mode .fixed-source-editor .crm-template-picker .tp-list th:first-child,.original-mode .fixed-source-editor .crm-template-picker .tp-list td:first-child{width:78%}.original-mode .fixed-source-editor .crm-template-picker input[type=radio]{width:15px;height:15px}
body.original-mode .fixed-template-preview{width:760px;max-width:96vw;height:700px;max-height:96vh}
.original-mode .fixed-source-editor .fixed-template-preview table{min-width:0;width:100%;table-layout:fixed}.original-mode .fixed-source-editor .fixed-template-preview th{width:33.333%;height:30px;border-radius:0;font-weight:400}.original-mode .fixed-source-editor .fixed-template-preview td{height:auto;text-align:left;white-space:pre-wrap}.fixed-template-preview textarea:focus{outline:1px solid #747cbb}.fixed-template-preview .ftp-image:not(:has(img)):before{content:'▧';font-size:28px;color:#aaa;display:block;line-height:34px}
body.original-mode .crm-template-picker{width:1112px;height:710px;max-width:96vw;max-height:96vh}body.original-mode .fixed-template-preview{width:754px;height:701px;max-width:96vw;max-height:96vh}.crm-template-picker .tp-image img,.fixed-template-preview .ftp-image img{width:100%;height:calc(100% - 20px);max-height:calc(100% - 20px)!important;min-height:0;object-fit:contain;flex:1}.crm-template-picker .tp-image small,.fixed-template-preview .ftp-image small{font-size:9px;line-height:15px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:none}
