/* EasyLearning 3.1.30.21 – redesign administrace. Vse vyhradne ve .shell. */
.shell {--el321-border:#dde6e3;--el321-ink:#263b49;--el321-muted:#5e707b;--el321-quiet:#f7faf8;--el321-focus:#2e778a;}
.shell,.shell .main,.shell .panel,.shell .cards {min-width:0;max-width:100%}
.shell .main {padding:clamp(17px,2.1vw,31px) clamp(16px,2.4vw,36px) 80px}
.shell .top {background:transparent;border-bottom:0;padding-bottom:7px;margin-bottom:19px;gap:18px;flex-wrap:wrap}
.shell .top h1 {font-size:clamp(26px,2.5vw,35px);line-height:1.14;letter-spacing:-.044em;font-weight:770}
.shell .top .muted{font-size:14px;margin:6px 0 0}
.shell .top-actions .btn.primary {padding:11px 18px}
.shell .sidebar {background:#f0f5f2!important;border-right-color:#dce8df!important;padding:18px 12px;gap:16px}
.shell .sidebar .brand-admin-link {border-radius:12px;padding:7px 9px}
.shell .sidebar nav {gap:4px}
.shell .sidebar nav button,.shell .sidebar nav a {font-size:13px;min-height:40px;line-height:1.35}
.shell .sidebar nav button.active,.shell .sidebar nav a.active {font-weight:750}
.shell .side-foot{border-top:1px solid #d9e6df;padding-top:16px}
/* Chytre kombinovatelne filtry */
.shell .el321-filter-panel {padding:20px 22px 17px;margin-bottom:19px;border:1px solid var(--el321-border);background:#fff;border-radius:18px;box-shadow:0 4px 20px #1e4d4008}
.shell .el321-filter-heading {display:flex;align-items:start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 15px}
.shell .el321-filter-heading h2 {margin:0 0 2px;font-size:18px;letter-spacing:-.025em}
.shell .el321-filter-heading p {margin:0;font-size:12px}
.shell .el321-filter-heading .btn {min-height:37px;white-space:normal}
.shell .el321-kpis {display:flex;gap:7px;flex-wrap:wrap;margin:0 0 15px}
.shell .el321-kpis span {padding:7px 12px;border-radius:9px;background:#eff5f1;border:1px solid #e0eae4;color:#385b4a;font-size:12px}
.shell .el321-kpis span:nth-child(2){background:#f3f0e9;border-color:#ede5d7;color:#80613c}
.shell .el321-kpis span:nth-child(3){background:#eaf2f7;border-color:#d9e7f0;color:#345e7a}
.shell .el321-kpis strong {font-weight:800;font-variant-numeric:tabular-nums;font-size:14px}
.shell .el321-filter-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}
.shell .el321-filter-grid label {font-size:12px;color:#526772;font-weight:700;min-width:0;min-height:0;margin:0}
.shell .el321-filter-grid .el321-search-label {grid-column:span 2}
.shell .el321-filter-grid select,.shell .el321-filter-grid input {margin:0;width:100%;min-width:0;min-height:43px;padding:10px 12px;background:#fcfdfc;border-color:#cfded8;font-size:13px;color:var(--el321-ink)}
.shell .el321-filter-grid input[type=search] {background:#f8fbf9}
.shell .el321-filter-footer,.shell .el325-filter-summary {display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;border-top:1px solid #edf1ee;margin-top:16px;padding-top:12px;font-size:12px;color:#526671}
.shell .el321-filter-footer strong,.shell .el325-filter-summary strong {font-size:12px;color:#334d59}
/* Vsechny seznamy obsahu maji stejnou mrizku, nikdy vodorovny scroll stranky. */
.shell .el321-admin-cards,.shell #groupsList>.cards {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important;align-items:stretch;max-width:100%;overflow:visible}
.shell .el321-entity-card {min-width:0;max-width:100%;overflow:visible;display:flex;flex-direction:column;gap:12px;padding:19px;border:1px solid var(--el321-border);border-radius:16px;background:#fff;box-shadow:0 4px 15px rgba(31,65,58,.045);height:auto;min-height:0}
.shell .el321-entity-card:hover {border-color:#bad5c7;box-shadow:0 8px 25px rgba(36,68,62,.07);transform:none}
.shell .el321-entity-card .card-top,.shell .el321-entity-card .group-card-meta {display:flex;gap:6px;flex-wrap:wrap;margin-bottom:0;align-items:center}
.shell .el321-entity-card .chip,.shell .el321-entity-card .group-category-label,.shell .el321-entity-card .group-status-label {font-size:11px;line-height:1.3;padding:6px 10px;border-radius:100px;font-weight:750}
.shell .el321-entity-card .chip.link {background:#f4ecdc;color:#775926}
.shell .el321-entity-card .chip.private {background:#eaf0f4;color:#4c6678}
.shell .el321-entity-card .chip.public {background:#e5f3eb;color:#2d674d}
.shell .el321-entity-card .chip.paused {background:#f7eae8;color:#9b4e43}
.shell .el321-entity-card .group-status-label.el321-status-active {background:#e6f2eb;color:#246344}
.shell .el321-entity-card .group-status-label.el321-status-paused {background:#faf0df;color:#835825}
.shell .el321-entity-card .group-status-label.el321-status-archived {background:#edf0f2;color:#61717b}
.shell .el321-entity-card h3 {font-size:17px;line-height:1.3;font-weight:750;min-height:0;max-width:100%;overflow-wrap:anywhere;letter-spacing:-.025em;margin:1px 0 0}
.shell .el321-card-summary {font-size:12.5px;line-height:1.65;color:#637681;margin:0!important;flex:none!important;min-height:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.shell .el321-card-meta {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;font-size:12px;color:#526875;min-width:0;margin:0}
.shell .el321-card-meta>span {min-width:0}
.shell .el321-entity-card .el321-id {display:inline-flex;min-height:28px;padding:4px 8px;font-size:11px;line-height:1;font-variant-numeric:tabular-nums;max-width:100%;white-space:normal}
.shell .el321-entity-card .el321-order-controls {min-height:0;padding-top:1px;border-top:1px solid #edf1ef}
.shell .el321-entity-card .el321-order-controls .btn {min-height:30px;font-size:11px}
.shell .el321-entity-card .quick-publish.el321-quick {display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px;border-radius:12px;background:#f6f9f7;border:1px solid #edf1ed;margin:0}
.shell .el321-entity-card .quick-publish.el321-quick label {margin:0;font-size:11px;min-width:0;max-width:100%}
.shell .el321-entity-card .quick-publish.el321-quick label:first-child {flex:1 1 140px}
.shell .el321-entity-card .quick-publish.el321-quick select {min-height:35px;padding:6px 9px;font-size:12px}
.shell .el321-entity-card .quick-publish.el321-quick input[type=checkbox] {width:18px;height:18px}
.shell .el321-archive-note {font-size:12px;background:#f2f4f5;border-radius:9px;color:#61717b;padding:9px 10px}
.shell .el321-card-actions {border-top:1px solid #ecf1ee;padding-top:13px;margin-top:auto!important;display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap}
.shell .el321-card-actions>.btn {min-height:37px;white-space:normal;font-size:12px;padding:8px 11px}
.shell .el321-card-more {position:relative;margin-left:0;min-width:0}
.shell .el321-card-more>summary {list-style:none;cursor:pointer;display:flex;align-items:center;min-height:37px;border-radius:9px;font-size:12px!important;padding:8px 11px;white-space:normal}
.shell .el321-card-more>summary::-webkit-details-marker {display:none}
.shell .el321-card-more>summary::after {content:'⌄';margin-left:8px}
.shell .el321-card-more[open]>summary::after {content:'⌃'}
.shell .el321-more-list {position:absolute;z-index:20;right:0;top:calc(100% + 7px);width:min(270px,calc(100vw - 30px));display:grid;gap:5px;padding:9px;background:white;border:1px solid #d7e3de;border-radius:12px;box-shadow:0 12px 36px #273d3d26}
.shell .el321-more-list button {width:100%;text-align:left;justify-content:flex-start;font-size:12px;min-height:35px;padding:8px 10px;white-space:normal}
.shell .el321-archived {border-style:dashed;background:#fcfcfb}
.shell .el321-empty {grid-column:1/-1;min-height:110px;display:grid;place-items:center;text-align:center}
/* Testy – zachovavaji puvodni logiku kombinovanych filtru. */
.shell .el325-test-filters.el321-filter-panel {padding:20px 22px 17px}
.shell .el325-filter-grid {gap:11px}
.shell .el325-filter-grid label {font-size:12px}
.shell #el325TestCards.el321-admin-cards>.el321-entity-card {gap:11px}
.shell #el325TestCards .el321-entity-card .actions {margin-top:auto;border-top:1px solid #edf1ef;padding-top:12px}
.shell #el325TestCards .el321-entity-card .actions .btn {min-height:36px;padding:7px 10px;white-space:normal}
.shell #el325TestCards .el321-entity-card .test-category-select {margin-bottom:0}
/* Lepsi orientace v administraci mimo seznamy */
.shell .panel {border-color:#e0e8e4}
.shell .section-title {margin-top:26px}
.shell .results th {font-weight:750;text-transform:none}
.shell .btn:focus-visible,.shell input:focus-visible,.shell select:focus-visible,.shell summary:focus-visible {outline:3px solid #3e8292!important;outline-offset:2px!important}
@media(max-width:1350px){
 .shell .el321-admin-cards,.shell #groupsList>.cards {grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:970px){
 .shell .el321-filter-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .shell .el321-filter-grid .el321-search-label {grid-column:span 2}
 .shell .el321-admin-cards,.shell #groupsList>.cards {grid-template-columns:repeat(1,minmax(0,1fr))!important}
}
@media(max-width:780px){
 .shell .main {padding:18px 14px 70px}
 .shell .el321-admin-cards,.shell #groupsList>.cards {grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:650px){
 .shell .main {padding:16px 12px 70px}
 .shell .el321-filter-panel,.shell .el325-test-filters.el321-filter-panel {padding:16px 13px}
 .shell .el321-admin-cards,.shell #groupsList>.cards {grid-template-columns:1fr!important;gap:13px!important}
 .shell .el321-filter-grid {grid-template-columns:1fr}
 .shell .el321-filter-grid .el321-search-label {grid-column:auto}
 .shell .el321-filter-heading {align-items:stretch}
 .shell .el321-entity-card {padding:16px}
 .shell .el321-more-list {right:auto;left:0}
 .shell .top-actions {width:100%}
 .shell .top-actions>.btn {flex:1}
}
@media(prefers-reduced-motion:reduce){.shell .el321-entity-card,.shell .btn {transition:none}}

/* „public“ je zároveň stará globální třída stránky; v kartě statusu ji izolujeme. */
.shell .el321-entity-card .card-top>.chip.public{display:inline-flex!important;align-items:center!important;min-height:0!important;width:auto!important;max-width:max-content!important;height:auto!important;min-width:0!important;margin:0!important;padding:6px 10px!important;border-radius:999px!important;font-size:11px!important;line-height:1.3!important;background:#e5f3eb!important;color:#2d674d!important}
.shell .el321-entity-card .quick-publish.el321-quick .quick-demo{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;min-width:0!important;flex:0 0 auto!important;justify-content:flex-start!important}
.shell .el321-entity-card .quick-publish.el321-quick .quick-demo input{display:block!important;margin:0!important;flex:0 0 18px!important}

/* Testy: stejne kompaktni nastavovani viditelnosti a Demo jako u kurzu. */
.shell #el325TestCards.el321-admin-cards .el321-entity-card .quick-publish{display:flex!important;align-items:end!important;justify-content:space-between!important;gap:10px!important;flex-wrap:wrap!important;padding:12px!important;background:#f6f9f7!important;border:1px solid #edf1ed!important;border-radius:12px!important;margin:0!important}
.shell #el325TestCards.el321-admin-cards .el321-entity-card .quick-publish>label{margin:0!important;min-width:0!important;font-size:11px!important}
.shell #el325TestCards.el321-admin-cards .el321-entity-card .quick-publish>label:first-child{flex:1 1 140px!important}
.shell #el325TestCards.el321-admin-cards .el321-entity-card .quick-publish>label select{min-height:35px!important;padding:6px 9px!important;font-size:12px!important}
.shell #el325TestCards.el321-admin-cards .el321-entity-card .quick-publish>label.quick-demo{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important;white-space:nowrap!important}
.shell #el325TestCards.el321-admin-cards .el321-entity-card .quick-publish>label.quick-demo input{width:18px!important;height:18px!important;min-height:0!important;margin:0!important}

/* 3.1.30.22: jednotne kategorie pro kurzy a testy */
.el322-category-manager .category-manage{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%;padding:10px 12px;border:1px solid #dce6e7;border-radius:12px;background:#f8fbfa}
.el322-category-manager .category-manage small{font-size:12px;color:#576d77}
.el322-category-chip{background:#e7f1ef;color:#24595a;border:1px solid #cee1dc;font-size:.78rem;max-width:100%;white-space:normal}
.el322-category-manager summary{cursor:pointer}
@media(max-width:620px){.el322-category-manager .category-manage{display:flex;width:100%}.el322-category-manager .category-chips{display:grid;grid-template-columns:1fr}}

/* 3.1.30.23 – rychlá kategorie přímo na kartě kurzu. */
.shell #courseFilteredCards .el323-quick-category{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0;padding:11px 12px;border:1px solid #e3eae8;border-radius:12px;background:#f3f8f6;color:#506b68;font-size:12px;font-weight:650;}
.shell #courseFilteredCards .el323-quick-category select{width:100%;min-width:0;min-height:40px;max-width:100%;font-size:13px;font-weight:550;background:#fff;border-color:#ccdcd7;}
.shell #courseFilteredCards .el323-quick-category select:disabled{opacity:.7;cursor:not-allowed;}
@media(max-width:650px){
 .shell #courseFilteredCards .quick-publish.el321-quick{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center!important;gap:10px!important;}
 .shell #courseFilteredCards .quick-publish.el321-quick>label:first-child{width:auto!important;min-width:0!important;flex:none!important;}
 .shell #courseFilteredCards .quick-publish.el321-quick .quick-demo{width:auto!important;margin:0!important;padding:0!important;align-self:center!important;}
}
