/* Shared interaction fixes: loaded after dashboard themes. */
.crm-shell .crm-request-filters{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.crm-shell .crm-request-filters input[name=q]{flex:1 1 240px;width:auto;min-width:180px}
.crm-shell .crm-request-filters select{flex:0 1 140px;width:auto;min-width:120px}
.crm-shell .crm-request-filters :is(button,.crm-button){flex:0 0 auto;white-space:nowrap}
.crm-shell .crm-work-table .crm-date-fields{display:grid;gap:8px}
.crm-shell .crm-work-table .crm-date-label{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:8px;margin:0;font-size:12px}
.crm-shell .crm-work-table .crm-date-label input{width:100%;min-width:0;min-height:36px;height:36px;padding:6px 9px;font-size:13px}
.crm-shell .crm-work-table td{padding-top:14px;padding-bottom:14px;vertical-align:middle}
.crm-shell .crm-work-table .crm-save-state:empty{display:none}
.crm-table-hint{font-size:12px;color:#686158;margin:0 0 12px}
@media(max-width:760px){.crm-shell .crm-request-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.crm-shell .crm-request-filters input[name=q]{grid-column:1/-1;width:100%;min-width:0}.crm-shell .crm-request-filters select{width:100%;min-width:0}.crm-shell .crm-request-filters :is(button,.crm-button){width:100%}}
@container(max-width:860px){.crm-shell .crm-work-table .crm-date-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-shell .crm-work-table .crm-date-label{grid-template-columns:minmax(0,1fr);gap:5px}}
@container(max-width:380px){.crm-shell .crm-work-table .crm-date-fields{grid-template-columns:minmax(0,1fr)}.crm-shell .crm-work-table .crm-date-label{grid-template-columns:65px minmax(0,1fr)}}
.nc-drawer:not(.is-open){visibility:hidden;pointer-events:none}
.nc-drawer.is-open{visibility:visible}
@media(max-width:1100px){.req-body-grid{grid-template-columns:minmax(0,1fr)}}
.request-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.request-action-row button{flex:0 0 auto;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.request-action-row .request-delete-btn{width:auto;min-width:64px;padding:8px 12px;color:#a52a20;background:#fff5f3;border:1px solid #e7c6bf;border-radius:8px}
@container(max-width:1000px){
  table.hk-wide-table{display:block}
  .hk-wide-table thead{display:none}
  .hk-wide-table tbody{display:grid;gap:14px}
  .hk-wide-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px;border-bottom:1px solid #e4dfd5}
  .hk-wide-table tbody td{display:block;width:auto!important;min-width:0!important;max-width:100%;padding:0!important;border:0}
  .hk-wide-table tbody td[data-label]:before{content:attr(data-label);display:block;font-size:11px;font-weight:600;color:#686158;margin-bottom:6px}
  .hk-wide-table tbody td:first-child,.hk-wide-table tbody td:last-child,.hk-wide-table .hk-full-cell{grid-column:1/-1}
  .hk-wide-table .hk-full-cell:before{display:none}
}
.crm-shell :is(.proj-more-btn,.icon-button){padding:0;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;color:#352d25!important;background:#fff}
.crm-shell :is(.proj-more-btn,.icon-button) svg{flex-shrink:0;min-width:14px;min-height:14px}
.crm-shell :is(.crm-actions,.crm-row-actions,.srv-action-row,.nc-actions){display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.crm-shell .srv-action-row{min-width:190px}
.crm-shell .srv-action-row .proj-more-btn{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;color:#352d25!important;background:#fff;border:1px solid #d4cfc6}
.crm-shell .srv-action-row .service-content-link{width:auto;min-width:110px;height:auto;min-height:38px;padding:8px 12px;white-space:nowrap;word-break:normal}
.crm-shell .srv-action-row svg{width:16px;height:16px;flex:0 0 16px;display:block;stroke:currentColor}
.crm-shell .srv-action-row .js-delete-service{color:#a52a20!important;background:#fff5f3}
.crm-shell table:has(.srv-action-row) :is(th,td):last-child{width:210px}
.crm-shell :is(button,.crm-button){max-width:100%;overflow-wrap:normal}
.crm-shell input[type=file]{box-sizing:border-box;max-width:100%;min-width:0;height:auto;padding:10px;line-height:1.6;background:#faf9f6}
.crm-shell input[type=file]::file-selector-button{padding:8px 12px;margin:0 12px 0 0;border:1px solid #cfc4b4;border-radius:8px;background:#fff;color:#352d25;cursor:pointer}
.field-requirement{display:inline-block;margin:4px 0 4px 8px;font-size:12px;font-weight:600;color:#8a430c;line-height:1.5}
.field-requirement.is-optional{color:#686158;font-weight:400}
.post-section>h2{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}
#content-form .post-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0}
#content-form .post-actions button{margin:0;min-height:40px;height:auto;padding:10px 14px;white-space:normal;line-height:1.4}
#content-form .post-photo{padding:16px;background:#faf9f6;border:1px solid #e4dfd5;border-radius:12px;min-width:0}
#content-form .post-photo input[type=file]{display:block;width:100%;margin:12px 0}
#content-form .post-photo button{margin:8px 0 0;background:#fff;color:#763126!important;border:1px solid #d4cfc6}
#content-form button:disabled{opacity:1;color:#6b6257!important;background:#eee9e1;border:1px solid #d6cec3;cursor:not-allowed}
#content-form :is(.post-item,.post-section,.content-fields>div){min-width:0}
#content-form .content-fields{grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr))}
#content-form .post-section small{line-height:1.6}
#content-form .post-section input[type=checkbox]{width:auto}
.publish-guide{padding:14px 18px;background:#fff6e7;border:1px solid #ecd3aa;border-radius:10px;line-height:1.6}
@media(max-width:600px){#content-form .post-section{padding:16px}#content-form .post-item{padding:12px}#content-form .post-actions{align-items:stretch}#content-form .post-actions button{flex:1 1 160px}.crm-shell .srv-action-row{min-width:0}}
