.mt-page { max-width: 1560px; margin: 0 auto; color: var(--text, #233c44); font-family: inherit; }
.mt-page *, .mt-reminder-form * { box-sizing: border-box; }
.mt-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.mt-header p { margin: 0; color: #597078; font-size: 13px; }
.mt-toolbar { display: flex; gap: 10px; align-items: center; }
.mt-search { display: flex; gap: 8px; align-items: center; padding: 0 12px; border: 1px solid #cddbdc; border-radius: 8px; background: #fff; color: #627d82; }
#myTicketsPage .mt-search input { width: 240px; max-width: 100%; border: 0; background: transparent; color: #233c44; padding: 12px 0; font: inherit; font-size: 13px; outline: none; box-shadow: none; }
.mt-page button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; padding: 8px 11px; border: 1px solid #ccdadd; border-radius: 6px; background: #fff; color: #284b53; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.mt-page button:hover:enabled { background: #edf6f3; border-color: #86aaa5; }
.mt-page button:disabled { opacity: .4; cursor: default; }
.mt-page button:focus-visible, .mt-page textarea:focus-visible, .mt-search:focus-within, .mt-reminder-form input:focus-visible { outline: 3px solid #6cadb5; outline-offset: 2px; }
.mt-page [hidden] { display: none !important; }
.mt-overview { display: flex; gap: 12px 24px; flex-wrap: wrap; border-block: 1px solid #d9e3e4; padding: 16px 0; font-size: 13px; color: #5d737a; }
.mt-overview b { margin-right: 4px; color: #244d52; font-size: 20px; font-weight: 700; }
.mt-overview .mt-alert, .mt-overview .mt-alert b, .mt-alert { color: #ab382f; }
.mt-help { margin: 13px 0 18px; color: #61777d; font-size: 12px; }
.mt-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.mt-card { display: grid; grid-template-columns: 25px minmax(210px, 1.4fr) minmax(260px, 1fr) 34px; align-items: center; gap: 15px; padding: 19px 15px 19px 10px; border: 1px solid #d5e2e2; border-left: 3px solid #449381; border-radius: 9px; background: #fff; box-shadow: 0 2px 4px #213e3c03; }
.mt-card-due { border-left-color: #c16829; }
.mt-page .mt-grip { height: 46px; padding: 3px; border: 0; background: transparent; color: #89a09f; font-size: 21px; cursor: grab; }
.mt-page .mt-grip:active { cursor: grabbing; }
.mt-context { min-width: 0; }
.mt-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; font-size: 11px; color: #647d80; }
.mt-meta > strong { color: #27625c; font-size: 12px; letter-spacing: .2px; }
.mt-meta > span:not(.mt-state) { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-state, .mt-urgent { padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 600; background: #edf3f2; color: #406c65; }
.mt-state-waiting_part, .mt-state-waiting_client { background: #fff3db; color: #86611c; }
.mt-state-ready { background: #e5f4ed; color: #246c4d; }
.mt-state-irreparable, .mt-urgent { background: #fcebe8; color: #ad4538; }
.mt-context h3 { margin: 9px 0 5px; font-size: 16px; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }
.mt-issue { margin: 0 0 13px; font-size: 12px; line-height: 1.6; color: #64797c; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.mt-date { margin-left: 3px; color: #7b8e91; font-size: 10px; }
.mt-note { align-self: stretch; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-left: 16px; border-left: 1px solid #edf1f1; }
.mt-note > label { font-size: 11px; font-weight: 600; color: #536f72; }
.mt-note textarea { width: 100%; flex: 1; min-height: 70px; resize: vertical; padding: 9px 10px; border: 1px solid #d5e1e0; border-radius: 5px; color: #294a4e; background: #fcfefd; font: inherit; font-size: 12px; line-height: 1.55; }
.mt-note textarea::placeholder { color: #91a1a2; }
.mt-note > div { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 34px; }
.mt-note small { flex: 1; font-size: 10px; color: #708c87; }
.mt-page [data-mt-action="save"]:enabled { background: #176c5b; color: #fff; border-color: #176c5b; }
.mt-order { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mt-order span { color: #7a9190; font-size: 11px; font-variant-numeric: tabular-nums; }
.mt-order button { padding: 6px; min-height: 29px; width: 29px; border-color: #dfe7e6; }
.mt-reminder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf1ef; color: #58736a; font-size: 11px; }
.mt-reminder > span { flex: 1 1 150px; }
.mt-reminder strong { display: block; font-size: 11px; font-weight: 600; }
.mt-reminder small { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.mt-due { color: #a4511b; }
.mt-reminder button { min-height: 29px; padding: 5px 8px; font-size: 10px; }
.mt-update { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; margin-bottom: 15px; background: #fff7e3; border: 1px solid #ead9af; border-radius: 7px; font-size: 12px; }
.mt-empty { padding: 55px 20px; text-align: center; color: #6d8585; }
.mt-empty > .ti { font-size: 42px; color: #4e9586; }
.mt-empty h3 { margin: 15px 0 9px; color: #355c5c; font-size: 18px; }
.mt-empty p { font-size: 13px; }
.mt-feedback { min-height: 20px; font-size: 12px; color: #246e5d; margin: 16px 0; }
.mt-dragging { opacity: .45; }
.mt-drop-before { box-shadow: 0 -3px #25887c; }
.mt-drop-after { box-shadow: 0 3px #25887c; }
.mt-reminder-form { display: grid; gap: 18px; padding: 20px 24px; }
.mt-reminder-form label { display: grid; gap: 8px; color: #30575d; font-size: 13px; font-weight: 600; }
.mt-reminder-form input { width: 100%; min-height: 42px; padding: 10px; border: 1px solid #bed2d1; border-radius: 6px; background: #fff; color: #264f52; font: inherit; }
.mt-reminder-form p { margin: 0; color: #6a7f83; font-size: 12px; line-height: 1.6; }
.mt-reminder-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.mt-reminder-form [role="alert"] { font-size: 12px; color: #ab382f; }
@media (max-width: 1050px) {
  .mt-card { grid-template-columns: 25px minmax(0, 1fr) 34px; }
  .mt-note { grid-column: 2; border-left: 0; border-top: 1px solid #edf1f1; padding: 12px 0 0; }
  .mt-note textarea { min-height: 68px; }
  .mt-order { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 650px) {
  .mt-header { flex-direction: column; align-items: stretch; gap: 16px; }
  .mt-toolbar { align-items: stretch; }
  .mt-search { flex: 1; min-width: 0; }
  #myTicketsPage .mt-search input { width: 100%; min-width: 0; }
  .mt-toolbar button span { display: none; }
  .mt-overview { gap: 12px 17px; font-size: 11px; }
  .mt-overview b { font-size: 17px; }
  .mt-card { grid-template-columns: minmax(0, 1fr) 34px; gap: 12px; padding: 15px 10px 15px 13px; }
  .mt-grip { display: none !important; }
  .mt-note { grid-column: 1; }
  .mt-order { grid-column: 2; }
  .mt-context h3 { font-size: 15px; }
  .mt-meta > span:not(.mt-state) { max-width: 160px; }
  .mt-date { display: block; width: 100%; margin-top: 3px; }
  .mt-reminder-form { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) { .mt-page { scroll-behavior: auto; } }
