/* Keep every rich-text toolbar and editor in the same border-box coordinate system.
   The shared editor observes user resizing as well as responsive layout changes. */
.t6-admin-editor{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.t6-admin-editor .quill{min-width:0!important;max-width:100%!important;box-sizing:border-box}
.t6-admin-editor .ql-toolbar,.t6-admin-editor .ql-container{max-width:100%;min-width:0;box-sizing:border-box}
.t6-admin-editor .ql-container{width:100%!important;margin:0;padding:0}
/* Title search always occupies one third of the inner filter row, including rows
   with one or two filters. Other controls keep their own widths and can wrap. */
div:has(>input:is([placeholder*="наименованию"],[placeholder*="искать по названию"])){display:flex!important;flex-wrap:wrap!important;align-items:center;gap:15px;box-sizing:border-box;min-width:0}
input:is([placeholder*="наименованию"],[placeholder*="искать по названию"]){width:33.333333%!important;flex:0 0 33.333333%!important;min-width:0!important;max-width:33.333333%!important;box-sizing:border-box}
/* Match the FAQ list title to the table's existing 30px side insets. */
.t6-event-content ._questionsPageContent_hyr3j_1{padding:0!important}
.t6-event-content ._questionTableWrapper_hyr3j_5{padding-top:28px}
.t6-event-content ._table-title_hyr3j_8{margin:0 0 20px;padding:0 30px;line-height:1.35}
.t6-event-documents h2{font-size:18px;font-weight:700;border-bottom:1px solid #e1e1e1;padding-bottom:15px;margin-bottom:20px}
.t6-event-document-upload{margin:20px 0}
/* The original upload button supplies its own link/button styling. */
.t6-event-documents .t6-event-document-upload>button{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;min-height:40px;justify-content:flex-start;font-weight:600}
.t6-event-document-hint{font-size:14px;color:#868686;line-height:1.5;margin:8px 0 0}
@media(max-width:1100px){.t6-event-content ._questionsPageContent_hyr3j_1{padding:0!important}}
@media(max-width:540px){.t6-event-content ._questionTableWrapper_hyr3j_5{padding-top:20px}.t6-event-content ._table-title_hyr3j_8{padding:0 16px}}
.t6-event-documents fieldset>p{margin:16px 0 20px}
.t6-event-documents ol{margin:20px 0}
/* One route: title and description on the left, a matching map-code field on the right. */
.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1){display:block;padding:0;min-width:0;box-sizing:border-box}
.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1)>h4{margin:0 0 12px;font-size:14px;line-height:1.5}
.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1)>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch;min-width:0}
.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1)>div>div{min-width:0;max-width:100%;box-sizing:border-box}
.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1)>div>div:first-child{gap:12px}
.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1) [class*=_inputEl_]{width:100%;max-width:100%;margin:0!important;min-width:0}
.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1) textarea[name$=".desc"]{height:116px!important;min-height:116px;resize:vertical}
.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1)>div>div:last-child{height:100%}
.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1)>div>div:last-child>label{height:100%;display:flex;flex-direction:column}
.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1) textarea[name$=".location"]{height:100%!important;min-height:166px;flex:1;resize:vertical}
.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1):not(:last-child){margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid #e1e1e1}
@media(max-width:768px){.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1)>div{grid-template-columns:minmax(0,1fr);gap:12px}.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1) textarea[name$=".location"]{height:140px!important;min-height:140px}.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1) textarea[name$=".desc"]{height:100px!important;min-height:100px}}
.t6-event-content[data-event-section=materials] :is(._routeItem_xckor_1,._placementItem_4zvok_1) [class*=_inputEl_]{margin:0!important}
@media(max-width:768px){.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1)>div>div:last-child,.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1)>div>div:last-child>label{height:auto}.t6-event-content :is(._routeItem_xckor_1,._placementItem_4zvok_1) textarea[name$=".location"]{flex:initial}}

/* Hide hint icons, preserving text/content tooltips and the editor's link dialogs. */
._tooltipWrapper_1psfw_1:has(>svg>circle){display:none!important}
.t6-event-content [class*=_inputWrapperTextArea_]>div:first-child{width:100%!important}
/* Section names are already present in event navigation. */
.t6-event-content ._questionTableWrapper_hyr3j_5{padding-top:24px}

/* No admin page is mounted until the server has confirmed the session. */
html.t6-auth-screen{min-width:0!important;background:#fff}
body.t6-auth-screen{background:linear-gradient(270deg,#00a69c80 4.78%,#286a91 39.47%);min-height:100vh;min-height:100dvh;min-width:0!important}
body.t6-auth-screen #root,body.t6-auth-screen #modal-root{min-width:0!important}
body.t6-auth-screen ._modal_1fvt7_1{background:transparent;width:100%;height:100dvh;min-height:100vh;padding:16px;box-sizing:border-box}
body.t6-auth-screen ._modalContent_1fvt7_16{max-width:100%;max-height:calc(100dvh - 32px)}
body.t6-auth-screen ._authModal_1ovtg_1{width:530px;max-width:calc(100vw - 32px)}
.t6-login-error{color:#d9001b;font-size:14px;line-height:1.5;margin:0 0 16px}

/* Align every top-level content panel with the shared header container. */
._contentWrapper_ol6tj_22>.t6-admin-content-panel{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
._contentWrapper_ol6tj_22>.t6-hero-editor{width:100%;max-width:100%;min-width:0;margin-left:0;margin-right:0;box-sizing:border-box}

/* Legal text starts at the same content column as every admin panel. */
@media(min-width:769px) and (max-width:1100px){body.t6-event-admin .t6-admin-footer-container{padding-left:30px}}
/* Summary counts use the complete live collection, independently of table filters. */
.t6-admin-list-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:12px 24px;padding:0 28px;margin:0 0 20px}
.t6-admin-list-heading h3{padding:0!important;margin:0!important}
.t6-admin-list-summary{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:14px;line-height:1.5;color:#68787e}
.t6-admin-list-summary strong{font-weight:600;color:#184f71}
/* Keep the news action row close to the last row, including short/empty lists. */
.t6-admin-content-panel:has(>.t6-admin-news-list){min-height:0}
.t6-admin-news-list ._newsTable_lldyl_5{padding-bottom:0}
.t6-admin-news-list>._tableFooterWrapper_em2m5_1{position:static;margin-top:16px;width:100%;box-sizing:border-box}

/* Event lists use the news list's 30px inset below the action/count row.
   Keep pagination in flow rather than reserving fixed-height blank space. */
.t6-event-content:has(.t6-admin-table-actions){padding-bottom:30px!important}
.t6-event-content :is(div,section):has(.t6-admin-table-actions){padding-bottom:0!important;margin-bottom:0!important;min-height:0!important;height:auto!important}
.t6-event-content .t6-admin-table-actions{position:static;inset:auto;width:100%;box-sizing:border-box;padding:0 28px;margin:16px 0 0}
.t6-event-content:has(.t6-admin-table-actions) ._customTable_xz97e_1{padding-bottom:0}

/* Match the 30px news-list inset below the final event form action row. */
.t6-event-content:has(.t6-admin-form-actions){padding-bottom:30px!important}
.t6-event-workspace .t6-event-content :is(div,section,form):has(.t6-admin-form-actions){padding-bottom:0!important;margin-bottom:0!important;min-height:0!important;height:auto!important}
.t6-event-content .t6-admin-form-actions{margin-bottom:0!important}
/* The repeated return link already exists above these event editors. */
.t6-event-content :is(div,section):has(.t6-admin-form-actions):has(>[class*=_adminReturnLink_]:first-child)>[class*=_adminReturnLink_]:last-child{display:none}

/* Keep the action track unchanged; share the removed venue track across the three content columns. */
._eventsTable_1s6fn_10{
 --event-original-unit:min(calc((100% - 510px)/2.8),calc((100% - 310px)/3.8),calc((100% - 260px)/4),20%);
 --event-original-title:max(300px,calc(var(--event-original-unit)*2.8));
 --event-date-width:calc(max(130px,calc(var(--event-original-unit)*.5)) + var(--event-original-title)/6);
 --event-released-width:max(200px,var(--event-original-unit));
 grid-template-columns:calc(var(--event-original-title)*2/3 + var(--event-released-width)/3) calc(var(--event-date-width) + var(--event-released-width)/3) calc(var(--event-date-width) + var(--event-released-width)/3) max(50px,calc(var(--event-original-unit)*.2));
}
._eventsTable_1s6fn_10 td{padding-top:10px;padding-bottom:10px;overflow-wrap:anywhere}
.t6-event-list-start{display:flex;flex-direction:column;gap:5px;min-width:0}
.t6-event-list-moment{white-space:nowrap}
.t6-event-list-venue{font-size:13px;line-height:1.4;color:#68787e}
._eventsTable_1s6fn_10 .hidden-cell .t6-event-list-venue{color:inherit}
._eventsTable_1s6fn_10 td:nth-child(2),._eventsTable_1s6fn_10 td:nth-child(3){align-items:flex-start}

/* Rules use the native news editor without nested cards or material-specific field overrides. */
.t6-event-content .t6-event-rules-form form>._adminSection_1xvvb_1{padding:0;border-radius:0;box-shadow:none;max-width:1140px;margin-bottom:55px}
.t6-event-content .t6-event-rules-form form>._adminSection_1xvvb_1:nth-of-type(2){margin-bottom:0}
.t6-event-content .t6-event-rules-form .ql-editor{min-height:0;max-height:none;height:100%;padding:12px 15px;font:14px/1.42 'Open Sans',sans-serif}
.t6-event-content .t6-event-rules-form input._controlledInput_nyrk1_35{line-height:1.15}
