.asa-screen { color: var(--text, #242849); }
.asa-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.asa-header .modal-title { margin: 0; }
.asa-menu { position: relative; flex-shrink: 0; z-index: 5; }
.asa-hamburger { width: 48px; height: 48px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 1px solid #dcd5ff; border-radius: 13px; color: #6954dc; background: #f8f6ff; cursor: pointer; list-style: none; }
.asa-hamburger span { width: 22px; height: 2px; background: currentColor; }
.asa-menu summary::-webkit-details-marker, .asa-row-menu summary::-webkit-details-marker { display: none; }
.asa-menu-panel { position: absolute; left: 0; top: 56px; width: 270px; max-width: calc(100vw - 80px); padding: 14px; background: white; border: 1px solid #ded8ff; border-radius: 16px; box-shadow: 0 14px 36px #29234e22; display: grid; gap: 10px; }
[dir=ltr] .asa-menu-panel { left: auto; right: 0; }
.asa-filters { display: grid; gap: 12px; padding: 14px; background: #f9f8ff; border: 1px solid #e7e4f5; border-radius: 14px; margin-bottom: 16px; }
.asa-screen > .asa-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.asa-report-filters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.asa-filters label, .asa-form label { display: grid; gap: 8px; font-weight: 600; }
.asa-filters select, .asa-filters input, .asa-form input, .asa-form select { width: 100%; min-width: 0; min-height: 43px; border: 1px solid #e0e2ef; border-radius: 10px; padding: 9px 12px; color: inherit; background: #fff; font: inherit; }
.asa-filters > button { align-self: end; min-height: 43px; }
.asa-period-hint { grid-column: 1 / -1; color: #777e9a; font-weight: normal; line-height: 1.7; }
.asa-summary, .asa-hint { color: #777e9a; font-size: 13px; line-height: 1.8; margin: 12px 0; }
.asa-table-wrap { max-height: 54vh; overflow: auto; border-radius: 14px; border: 1px solid #e4e5f2; }
.asa-table { width: 100%; min-width: 820px; }
.asa-table th { position: sticky; top: 0; z-index: 1; background: #f8f7fd; }
.asa-table td { vertical-align: top; }
.asa-table td:last-child { min-width: 65px; }
.asa-table td:nth-child(8) { min-width: 180px; max-width: 260px; white-space: normal; line-height: 1.8; }
.asa-empty { padding: 38px 20px !important; text-align: center; color: #777e9a; }
.asa-row-menu summary { cursor: pointer; list-style: none; color: #6954dc; border: 1px solid #ded8ff; border-radius: 9px; width: 34px; height: 34px; display: grid; place-items: center; font-size: 20px; margin: auto; }
.asa-row-menu[open] { min-width: 150px; }
.asa-row-menu > div { display: grid; margin-top: 6px; border: 1px solid #e2ddff; border-radius: 10px; padding: 5px; background: #fff; box-shadow: 0 5px 18px #29234e12; }
.asa-row-menu button { background: transparent; border: 0; font: inherit; text-align: start; padding: 10px; border-radius: 7px; cursor: pointer; color: #5244ab; }
.asa-row-menu button:hover { background: #f1edff; }
.asa-row-menu .asa-danger-text { color: #bc394e; }
.asa-footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; border-top: 1px solid #e5e6f2; margin-top: 20px; padding-top: 16px; }
.asa-error { color: #b52e46; background: #fff1f3; border-radius: 10px; padding: 12px; line-height: 1.7; }
.asa-form { display: grid; gap: 18px; }
.asa-form fieldset { border: 1px solid #e5e6f2; border-radius: 14px; padding: 14px; min-width: 0; }
.asa-coaches { display: grid; gap: 10px; margin-bottom: 12px; }
.asa-coach { display: flex; gap: 8px; }
.asa-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.asa-student { background: #f3f0ff; padding: 14px; border-radius: 10px; font-weight: 600; }
.asa-student span { color: #777e9a; margin-inline-start: 16px; }
.asa-calendar { max-width: 480px; margin: auto; }
.asa-calendar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; direction: ltr; }
.asa-calendar button { border: 1px solid #e2def6; background: #fff; border-radius: 9px; min-height: 36px; color: #5443bd; cursor: pointer; font: inherit; }
.asa-calendar-head button { width: 38px; font-size: 24px; }
.asa-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.asa-calendar-grid span { font-size: 11px; color: #777e9a; padding-bottom: 6px; }
.asa-calendar button[aria-pressed=true] { color: #fff; background: #6954dc; border-color: #6954dc; box-shadow: 0 3px 8px #6954dc33; }
.asa-calendar button:disabled { color: #b1b3be; background: #f5f5f8; cursor: default; opacity: .7; }
.asa-calendar button:focus-visible, .asa-row-menu summary:focus-visible, .asa-hamburger:focus-visible { outline: 2px solid #6954dc; outline-offset: 3px; }
.asa-selected { color: #6954dc; margin-bottom: 0; font-weight: 600; }
@media (max-width: 600px) {
  .asa-screen > .asa-filters, .asa-report-filters, .asa-dates { grid-template-columns: 1fr; }
  .asa-header { align-items: flex-start; }
  .asa-header .modal-title { font-size: 21px; }
}
@media print {
  .asa-print { font-family: Arial, sans-serif; color: #111; font-size: 11px; width: 100%; min-width: 0; max-width: none; padding: 0; box-sizing: border-box; }
  .asa-print h1 { font-size: 20px; text-align: center; margin: 0 0 8px; }
  .asa-print > p { text-align: center; margin: 7px 0; }
  .asa-print-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin: 10px 0 14px; }
  .asa-print-field { display: inline-flex; gap: 6px; align-items: baseline; white-space: nowrap; unicode-bidi: isolate; }
  .asa-print table { width: 100%; min-width: 0 !important; table-layout: fixed; border-collapse: collapse; font-size: 10px; }
  .asa-print th, .asa-print td { border: 1px solid #777; padding: 7px 5px; white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.5; }
  .asa-print th { background: #f0eef8 !important; }
  .asa-print th:first-child { width: 5%; }
  .asa-print th:nth-child(2) { width: 17%; }
  .asa-print th:nth-child(3) { width: 8%; }
  .asa-print th:nth-child(4) { width: 12%; }
  .asa-print th:nth-child(5) { width: 13%; }
  .asa-print th:nth-child(6), .asa-print th:nth-child(7) { width: 10%; }
  .asa-print thead { display: table-header-group; }
  .asa-print tr { break-inside: avoid; }
}
