/* FastWork v16.9.5 — быстрые ответы, защита пруфов, календарь и диалоги */

/* Быстрые ответы менеджера */
.fw-v1695-quick-host{position:relative!important}
.fw-v1695-quick-toolbar{position:absolute;right:12px;bottom:calc(100% + 7px);z-index:38;display:flex;align-items:center;gap:7px}
.fw-v1695-template-manage{height:32px;display:inline-flex!important;align-items:center;gap:7px;padding:0 11px!important;border:1px solid #d6e2db!important;border-radius:10px!important;background:#fff!important;color:#26372e!important;box-shadow:0 7px 20px rgba(24,48,34,.08)!important;font-size:12px!important;font-weight:800!important;cursor:pointer}
.fw-v1695-template-manage:hover{border-color:#11b967!important;background:#f0fbf5!important;color:#087e46!important}
.fw-v1695-template-manage svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fw-v1695-quick-menu{position:absolute;left:8px;right:8px;bottom:calc(100% + 43px);z-index:60;max-height:360px;overflow:auto;padding:8px;border:1px solid #d8e5de;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(20,44,30,.22)}
.fw-v1695-quick-option{width:100%;display:grid!important;grid-template-columns:minmax(0,1fr);gap:4px;padding:10px 12px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#1d2b23!important;text-align:left!important;cursor:pointer}
.fw-v1695-quick-option:hover,.fw-v1695-quick-option.active{background:#eafaf2!important}
.fw-v1695-quick-option>span{display:flex;align-items:center;gap:9px;min-width:0}
.fw-v1695-quick-option b{flex:0 0 auto;color:#078a4b;font-size:12px}
.fw-v1695-quick-option strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.fw-v1695-quick-option small{overflow:hidden;color:#6d7b73;font-size:12px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.fw-v1695-quick-empty{padding:15px;color:#6f7e76;font-size:13px;text-align:center}.fw-v1695-quick-empty.error{color:#b53f4b}

.fw-v1695-template-overlay{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:24px;background:rgba(19,31,24,.56);backdrop-filter:blur(8px)}
.fw-v1695-template-modal{width:min(1120px,96vw);height:min(780px,94vh);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid #dce6e0;border-radius:24px;background:#f8faf9;color:#17251d;box-shadow:0 40px 110px rgba(0,0,0,.28)}
.fw-v1695-template-modal>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:21px 24px;border-bottom:1px solid #dfe8e3;background:#fff}
.fw-v1695-template-modal>header span{color:#0b9f58;font-size:10px;font-weight:900;letter-spacing:.12em}.fw-v1695-template-modal>header h2{margin:4px 0 2px;font-size:25px}.fw-v1695-template-modal>header p{margin:0;color:#6a7971;font-size:13px}
.fw-v1695-template-modal>header>button{width:39px;height:39px;border:1px solid #d8e2dc;border-radius:12px;background:#f5f8f6;color:#425148;font-size:24px;cursor:pointer}
.fw-v1695-template-grid{min-height:0;display:grid;grid-template-columns:390px minmax(0,1fr);gap:0}
.fw-v1695-template-form{min-height:0;overflow:auto;padding:20px;border-right:1px solid #dfe8e3;background:#fff}
.fw-v1695-template-form label{display:grid;gap:6px;margin-bottom:13px;color:#33443a;font-size:12px;font-weight:800}.fw-v1695-template-form input,.fw-v1695-template-form select,.fw-v1695-template-form textarea{width:100%;border:1px solid #d5e1da;border-radius:12px;background:#fbfdfc;color:#15231b;padding:11px 12px;font:inherit;font-size:14px;outline:0}.fw-v1695-template-form input:focus,.fw-v1695-template-form select:focus,.fw-v1695-template-form textarea:focus{border-color:#0fbd69;box-shadow:0 0 0 3px rgba(15,189,105,.12)}
.fw-v1695-template-form .two{display:grid;grid-template-columns:1fr 110px;gap:10px}.fw-v1695-template-form .check{display:flex;grid-template-columns:none;align-items:center;gap:9px}.fw-v1695-template-form .check input{width:18px;height:18px;margin:0}.fw-v1695-template-form .actions{display:flex;gap:9px}.fw-v1695-template-form .actions button{min-height:42px;padding:0 14px;border:1px solid #cfdcd5;border-radius:11px;background:#fff;color:#25372d;font-weight:850;cursor:pointer}.fw-v1695-template-form .actions .primary{border-color:#18d579;background:#18d579;color:#062517}.fw-v1695-template-form .status{min-height:20px;margin:10px 0 0;color:#0a8a4b;font-size:12px}
.fw-v1695-template-list{min-height:0;overflow:auto;padding:16px;display:grid;align-content:start;gap:10px}
.fw-v1695-template-list article{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:start;padding:14px;border:1px solid #dce6e0;border-radius:15px;background:#fff}.fw-v1695-template-list article.inactive{opacity:.58}.fw-v1695-template-list .order{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#ecf8f1;color:#078d4c;font-weight:900}.fw-v1695-template-list .copy{min-width:0}.fw-v1695-template-list .copy>div{display:flex;align-items:center;gap:8px;min-width:0}.fw-v1695-template-list .copy b{color:#07924e}.fw-v1695-template-list .copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fw-v1695-template-list .copy em{padding:4px 7px;border-radius:999px;background:#f1f5f2;color:#6a7870;font-size:10px;font-style:normal}.fw-v1695-template-list p{margin:7px 0 0;color:#66766d;font-size:12px;line-height:1.4}.fw-v1695-template-list .buttons{display:flex;gap:6px}.fw-v1695-template-list .buttons button{height:34px;padding:0 10px;border:1px solid #d5e0da;border-radius:9px;background:#fff;color:#34463c;font-size:11px;font-weight:800;cursor:pointer}.fw-v1695-template-list .buttons button:last-child{color:#b53e4b}.fw-v1695-template-list .loading,.fw-v1695-template-list .empty,.fw-v1695-template-list .error{padding:28px;color:#6f7e76;text-align:center}

/* Календарь доставки — только ближайшие 30 дней, год ставится системой */
.fw-v1695-date-host{position:relative!important;min-width:0}
.fw-v1695-native-date{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.fw-v1695-date-trigger{width:100%;min-height:50px;display:grid!important;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:7px 12px!important;border:1px solid #cfe0d6!important;border-radius:13px!important;background:#fff!important;color:#1b2d23!important;text-align:left!important;cursor:pointer}
.fw-v1695-date-trigger:hover{border-color:#10b866!important;background:#f1fbf6!important}.fw-v1695-date-trigger svg{grid-row:1/3;width:22px;height:22px;fill:none;stroke:#0aa359;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.fw-v1695-date-trigger span{font-size:14px;font-weight:850}.fw-v1695-date-trigger small{color:#76847c;font-size:11px}
.fw-v1695-date-popover{position:fixed;left:0;top:0;z-index:10040;width:min(520px,calc(100vw - 24px));padding:14px;border:1px solid #d7e4dd;border-radius:17px;background:#fff;box-shadow:0 26px 72px rgba(17,43,28,.23)}
.fw-v1695-date-popover header{margin-bottom:10px}.fw-v1695-date-popover header b{display:block;font-size:15px}.fw-v1695-date-popover header span{display:block;margin-top:3px;color:#6e7d75;font-size:11px}.fw-v1695-date-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;max-height:250px;overflow:auto}.fw-v1695-date-days button{min-height:56px;display:grid;place-items:center;gap:2px;padding:5px;border:1px solid #e0e8e3;border-radius:11px;background:#f8faf9;color:#2d3d34;cursor:pointer}.fw-v1695-date-days button:hover,.fw-v1695-date-days button.selected{border-color:#11c16c;background:#e9fbf2;color:#087b44}.fw-v1695-date-days small{font-size:9px;text-transform:uppercase}.fw-v1695-date-days b{font-size:12px}

/* Диалог задания: прокручивается переписка, а не вся страница */
@media (min-width:851px){
 html.fw-v1695-task-page,html.fw-v1695-task-page body{height:100%;overflow:hidden!important}
 html.fw-v1695-task-page .dashboard-main{height:100dvh;overflow:hidden!important}
 html.fw-v1695-task-page .dashboard-content{overflow:hidden!important;padding-bottom:0!important}
 html.fw-v1695-task-page .fw-task-chat-v1591{height:100%!important;min-height:0!important;overflow:hidden!important}
 html.fw-v1695-task-page .fw-task-chat-shell-v1591{height:100%!important;min-height:0!important;overflow:hidden!important}
 html.fw-v1695-task-page .fw-task-info-v1591{height:100%;overscroll-behavior:contain}
 html.fw-v1695-task-page .fw-task-dialog-v1591{height:100%;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;overflow:hidden!important}
 html.fw-v1695-task-page .fw-task-dialog-messages-v1591{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
 html.fw-v1695-task-page .fw-task-dialog-controls-v1591{max-height:188px;overflow:auto;overscroll-behavior:contain;padding:8px 10px!important;gap:6px!important}
}
.fw-task-dialog-composer-rich-v1616{grid-template-columns:48px 48px minmax(0,1fr) 50px!important;gap:8px!important;padding:9px 11px!important;background:#fff!important}
.fw-task-dialog-composer-rich-v1616 .fw-v1695-icon-button{width:48px!important;min-height:48px!important;display:grid!important;place-items:center!important;border:1px solid #d9e5de!important;border-radius:14px!important;background:#fff!important;color:#58675f!important;box-shadow:none!important;cursor:pointer!important}
.fw-task-dialog-composer-rich-v1616 .fw-v1695-icon-button.attach,.fw-task-dialog-composer-rich-v1616 .fw-v1695-icon-button.emoji{border-radius:50%!important;background:#f3f6f4!important}
.fw-task-dialog-composer-rich-v1616 .fw-v1695-icon-button:hover{border-color:#13bd6a!important;background:#effaf4!important;color:#08914e!important}
.fw-task-dialog-composer-rich-v1616 .fw-v1695-icon-button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transform:none!important}
.fw-task-dialog-composer-rich-v1616 .fw-v1695-icon-button.send{border-color:#16d277!important;background:#16d277!important;color:#06351e!important;border-radius:14px!important}
.fw-task-dialog-composer-rich-v1616 .fw-v1695-icon-button.send:disabled{border-color:#e2e8e4!important;background:#e2e8e4!important;color:#98a49d!important;opacity:1!important;cursor:not-allowed!important}
.fw-task-dialog-composer-rich-v1616 textarea{min-height:48px!important;border-radius:14px!important}
.fw-task-chat-emoji-picker-v1616{left:56px!important;bottom:calc(100% + 9px)!important}
.fw-task-partner-button-v1591,.fw-task-step-button-v1591{min-height:44px!important;box-shadow:none!important}

/* Чат поддержки не перекрывает собственную кнопку */
.fw-lsb1539-panel[data-fw-no-overlap="1"]{bottom:168px!important;max-height:calc(100dvh - 184px)!important}
.fw-lsb1539-launcher[data-fw-no-overlap="1"]{isolation:isolate}

@media (max-width:760px){
 .fw-v1695-template-overlay{padding:0}.fw-v1695-template-modal{width:100vw;height:100dvh;border-radius:0}.fw-v1695-template-grid{grid-template-columns:1fr}.fw-v1695-template-form{border-right:0;border-bottom:1px solid #dfe8e3}.fw-v1695-template-list{min-height:260px}.fw-v1695-template-list article{grid-template-columns:38px minmax(0,1fr)}.fw-v1695-template-list .buttons{grid-column:2;justify-content:flex-start}.fw-v1695-quick-toolbar{right:6px}.fw-v1695-template-manage span{display:none}.fw-v1695-date-days{grid-template-columns:repeat(4,minmax(0,1fr))}
 .fw-task-dialog-composer-rich-v1616{grid-template-columns:42px 42px minmax(0,1fr) 44px!important}.fw-task-dialog-composer-rich-v1616 .fw-v1695-icon-button{width:42px!important;min-height:42px!important;border-radius:12px!important}
 .fw-lsb1539-panel[data-fw-no-overlap="1"]{bottom:112px!important;max-height:calc(100dvh - 124px)!important}.fw-lsb1539-launcher[data-fw-no-overlap="1"]{isolation:isolate}
}
