.manager-fold > summary { display:none; }
.instructor-dashboard-heading { gap:8px !important; align-items:center; margin-bottom:12px !important; }
.instructor-dashboard-heading > div { flex:1; min-width:0; }
.instructor-dashboard-heading .workspace-subtitle { font-size:13px; }
.instructor-dashboard-heading h3 { font-size:24px; }
.instructor-dashboard-heading .btn { min-height:44px; white-space:nowrap; }
.instructor-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:16px 0 8px; }
.instructor-section-heading :is(h3,h5) { margin:0 !important; }
.instructor-section-heading a { font-size:14px; text-decoration:none; }
.instructor-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:16px; }
.instructor-counts > * { padding:12px 8px; border:1px solid #e0e7ef; border-radius:10px; background:white; text-align:center; text-decoration:none; color:#26394f; }
.instructor-counts strong { display:block; font-size:24px; line-height:1.2; margin-bottom:4px; }
.instructor-counts span { font-size:13px; }
.instructor-order-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.instructor-order-card { display:block; border:1px solid #dde5f0; border-radius:12px; background:#fff; color:#20334e; padding:12px; text-decoration:none; }
.instructor-order-card:hover { border-color:#829ecc; background:#fafcff; }
.instructor-order-card:focus-visible { outline:3px solid #729ee9; outline-offset:2px; }
.instructor-order-card-top, .instructor-order-card-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.instructor-order-card-top > strong { font-size:16px; }
.instructor-order-card-name { font-weight:600; margin:6px 0; }
.instructor-order-card-meta { color:#62728a; font-size:13px; }
.instructor-fold { border:1px solid #dde5f0; border-radius:10px; background:#fff; margin:10px 0; }
.instructor-fold > summary { padding:12px; cursor:pointer; font-size:14px; font-weight:600; min-height:44px; }
.instructor-fold[open] > summary { border-bottom:1px solid #e6ecf3; }
.instructor-fold > .card { border:0; box-shadow:none; margin:0 !important; }
.instructor-fold > .quick-add-row { margin:0 !important; border:0; }
.instructor-detail .order-actionbar { position:static; padding:0 0 8px; }
.instructor-detail .order-actionbar h3 { font-size:22px; }
.instructor-more-actions { position:relative; }
.instructor-more-actions > summary { cursor:pointer; font-size:13px; padding:10px 8px; min-height:44px; }
.instructor-more-actions[open] button { position:absolute; left:0; top:100%; white-space:nowrap; background:white; z-index:30; }
.instructor-order-intro { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.instructor-order-intro > span { font-size:13px; color:#62728a; }
.instructor-weapons, .instructor-ammo { border:1px solid #dde5f0; border-radius:12px; background:white; padding:12px; margin:12px 0; }
.instructor-weapons .instructor-section-heading, .instructor-ammo .instructor-section-heading { margin-top:0; }
.instructor-section-heading > span { font-size:13px; color:#62728a; }
.instructor-weapon-line { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:10px 0; border-top:1px solid #edf1f6; }
.instructor-weapon-line > div { min-width:0; flex:1; }
.instructor-weapon-line strong { font-size:15px; }
.instructor-weapon-line code { display:inline-block; white-space:nowrap; direction:ltr; }
.instructor-ammo-line { display:grid; grid-template-columns:minmax(0,1fr) repeat(2,minmax(0,1fr)); gap:8px; padding:10px 0; border-top:1px solid #edf1f6; align-items:center; text-align:center; font-size:16px; }
.instructor-ammo-line > :first-child { text-align:right; }
.instructor-ammo-labels { font-size:12px; color:#62728a; border:0; padding:0 0 6px; }
.instructor-request-ammo { width:100%; margin-top:8px; min-height:44px; }
.instructor-order-filters { display:flex; gap:6px; margin:12px 0 16px; }
.instructor-order-filters a { padding:10px 14px; min-height:44px; text-decoration:none; border-radius:8px; color:#52657f; background:#eaf0f8; }
.instructor-order-filters a.selected { background:#2864d7; color:white; }
@media(max-width:767px) {
    .instructor-order-list { grid-template-columns:1fr; }
    .instructor-my-orders h3 { font-size:22px; }
    .instructor-detail .mobile-readable-table td { flex-direction:row; align-items:center; justify-content:space-between; gap:8px; }
    .instructor-detail .mobile-readable-table tr { gap:8px; padding:10px; }
    .instructor-detail .mobile-readable-table td[data-label="פעולות"] { flex-direction:row; justify-content:flex-start; flex-wrap:wrap; grid-column:1 / -1; }
    .instructor-detail .mobile-readable-table td[data-label="פעולות"]::before { display:none; }
    .instructor-detail .mobile-readable-table td[data-label="פעולות"] .btn { width:auto; min-width:44px; margin:0 !important; }
    .instructor-detail .mobile-readable-table td[data-label="זמנים"] { grid-column:1 / -1; font-size:12px !important; }
    .instructor-detail .instructor-empty-name { display:none !important; }
    .instructor-detail .instructor-add-tools .col-md-2 { width:50%; }
    .instructor-detail .instructor-add-tools .col-md-4 { width:100%; }
    .instructor-detail .instructor-add-tools :is(input,select) { font-size:16px; min-height:44px; }
    .instructor-new-order .new-order-actionbar { position:static; }
    .instructor-new-order .form-text { line-height:1.4; }
}

.instructor-tool-details { padding:0 12px; }
.instructor-tool-detail { padding:14px 0; }
.instructor-tool-detail + .instructor-tool-detail { border-top:1px solid #e4eaf2; }
.instructor-tool-detail > header, .instructor-caliber-detail > header { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:12px; }
.instructor-tool-detail > header strong { font-size:16px; }
.instructor-tool-detail > footer { display:flex; gap:8px; margin-top:12px; }
.instructor-tool-detail .btn { min-height:44px; font-size:14px; }
.instructor-detail-pair { display:flex; justify-content:space-between; gap:12px; padding:5px 0; font-size:14px; }
.instructor-detail-pair > :first-child { color:#62728a; }
.instructor-name-edit { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.instructor-name-edit input { width:100%; font-size:16px; }
.detail-field-label { font-size:13px; color:#62728a; }
.instructor-detail .instructor-ammo-details > .card-header { display:none !important; }
.instructor-detail .instructor-ammo-details > .card-body { padding:12px; }
.instructor-caliber-details { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; }
.instructor-caliber-detail { background:#f7f9fc; border:1px solid #e1e8f1; border-radius:10px; padding:12px; }
.instructor-caliber-detail > header strong { font-size:18px; }
.instructor-caliber-detail > header span { font-size:12px; color:#62728a; }
.instructor-caliber-detail dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; margin:0; }
.instructor-caliber-detail dl > div { min-width:0; }
.instructor-caliber-detail dt { font-weight:400; color:#62728a; font-size:13px; line-height:1.5; }
.instructor-caliber-detail dd { margin:2px 0 0; font-size:19px; font-weight:600; direction:ltr; text-align:right; }
.instructor-caliber-remaining dd { color:#198260; }
.instructor-quota-reference { border-top:1px solid #e1e8f1; padding-top:8px; margin:10px 0 0; font-size:12px; color:#62728a; }
.instructor-history-heading { margin:16px 0 8px; }
@media(max-width:767px) {
 .instructor-caliber-details { grid-template-columns:1fr; }
 .instructor-detail .instructor-history-table td { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:4px; }
 .instructor-detail .instructor-history-table td::before { font-size:12px; font-weight:400; }
 .instructor-detail .instructor-history-table td[data-label="הערות"] { grid-column:1 / -1; }
}

/* Package one: compact, readable instructor order fields. */
.instructor-new-order .new-order-ammo-list { display:grid; gap:8px; max-width:560px; }
.instructor-new-order .new-order-ammo-row { display:grid; grid-template-columns:minmax(0,1fr) 104px 44px; gap:4px 8px; align-items:center; padding:10px 12px; border:1px solid #e1e8f1; border-radius:10px; }
.instructor-new-order .new-order-caliber-name { min-width:0; margin:0; font-weight:600; overflow-wrap:break-word; line-height:1.4; }
.instructor-new-order .new-order-ammo-row input { width:100%; min-width:0; min-height:44px; font-size:16px; text-align:center; }
.instructor-new-order .new-order-remove { width:44px; min-width:44px; height:44px; padding:0; }
.instructor-new-order .new-order-ammo-hint { grid-column:1 / -1; font-size:13px; color:#62728a; line-height:1.4; }
.instructor-new-order .new-order-quota-warning { color:#925b06; font-weight:600; }
.instructor-new-order .new-order-add-caliber { display:flex; gap:8px; margin-top:8px; max-width:560px; }
.instructor-new-order .new-order-add-caliber select { flex:1; min-width:0; min-height:44px; font-size:16px; }
.instructor-new-order .new-order-add-caliber button { min-height:44px; min-width:64px; }
.instructor-new-order .new-order-quota-help { margin-top:4px; font-size:13px; font-weight:400; color:#62728a; }
.instructor-new-order .new-order-quota-help summary { cursor:pointer; min-height:44px; display:flex; align-items:center; text-decoration:underline; }
.instructor-new-order .new-order-quota-help[open] summary { margin-bottom:4px; }
.instructor-new-order .new-order-quota-help summary:focus-visible { outline:2px solid #2864d7; outline-offset:2px; border-radius:4px; }
@media(max-width:767px) {
 .instructor-new-order .new-order-ammo-row { grid-template-columns:minmax(0,1fr) 88px 44px; padding:8px; }
 .instructor-new-order .order-weapons button { min-width:44px; min-height:44px; }
}

/* Package two: clear fault state and stable mixed-direction numbers. */
.order-detail-screen .order-fault-explanation { color:#9e2632; font-size:13px; line-height:1.5; margin-top:6px; max-width:34rem; white-space:normal; }
.order-detail-screen code[dir="ltr"], .order-detail-screen bdi[dir="ltr"] { unicode-bidi:isolate; display:inline-block; }
.instructor-detail .instructor-caliber-detail header { align-items:flex-start; }
.instructor-detail .instructor-caliber-detail header strong { overflow-wrap:anywhere; }
@media(max-width:767px) { .order-detail-screen .order-fault-explanation { max-width:100%; } }
