/* Podglad symulatora Akademii Excela (R5, Z-4352) - TYLKO strona testowa. Style .xl skopiowane z kursu mamy (style.css, tylko odczyt), kolor akcentu zmieniony: platforma nie uzywa zieleni Microsoftu. */
.ax-lekcja--pelna, .ax-symulator {
  --fs: 18px;
  --green: #1f6f8b; --green-d: #17566c; --green-l: #dcedf3; --green-ll: #eef6f9;
  --ink: #1f2328; --muted: #5f6670; --line: #d9dde3; --bg: #f6f6f3; --card: #fff;
  --red: #b42318; --red-l: #fdecea; --yellow-l: #fff8e1; --blue: #1f5fbf;
}
.xl { position: relative; border: 1px solid #b9bec6; border-radius: 8px; background: #fff; font-size: .9rem; user-select: none; }
.xl-toolbar { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; padding: .4rem .5rem; background: #f3f6f4; border-bottom: 1px solid #d0d6d2; border-radius: 8px 8px 0 0; }
.xl-btn { font: inherit; font-size: .85rem; padding: .3rem .6rem; background: #fff; border: 1px solid #c8cdd3; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.xl-btn:hover { background: var(--green-l); border-color: var(--green); }
.xl-btn.primary { background: var(--green); color: #fff; border-color: var(--green); }
.xl-bold { font-weight: 800; min-width: 2rem; }
.xl-sep { width: 1px; height: 1.5rem; background: #cfd5d1; margin: 0 .2rem; }
.xl-select { font: inherit; font-size: .85rem; padding: .25rem; border: 1px solid #c8cdd3; border-radius: 6px; background: #fff; }
.xl-fbar { display: flex; align-items: stretch; border-bottom: 1px solid #d0d6d2; }
.xl-name { width: 5.5rem; font: inherit; font-family: Consolas, monospace; font-weight: 700; text-align: center; border: none; border-right: 1px solid #d0d6d2; padding: .35rem; }
.xl-fx { padding: .35rem .6rem; color: var(--muted); font-style: italic; font-family: Georgia, serif; border-right: 1px solid #d0d6d2; }
.xl-finput { flex: 1; font-family: Consolas, "Courier New", monospace; font-size: .95rem; border: none; padding: .35rem .6rem; outline: none; min-width: 0; }
.xl-finput:focus { background: #fffef0; }
.xl-wrap { position: relative; overflow: auto; max-height: 30rem; outline: none; }
.xl-grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-family: Calibri, "Segoe UI", Arial, sans-serif; }
.xl-grid th, .xl-grid td { border-right: 1px solid #e1e4e8; border-bottom: 1px solid #e1e4e8; height: 1.9rem; padding: 0 .35rem; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.xl-grid thead th { position: sticky; top: 0; z-index: 3; background: #f0f2f1; color: #444; font-weight: 400; text-align: center; border-bottom: 1px solid #c6ccc8; }
.xl-grid th.xl-ch { position: sticky; top: 0; }
.xl-grid th.hl, .xl-grid th.xl-rh.hl { background: #d3e7d6; color: var(--green-d); font-weight: 700; border-bottom-color: var(--green); }
.xl-corner { position: sticky; left: 0; z-index: 4 !important; width: 2.6rem; min-width: 2.6rem; background: #e7eae8 !important; cursor: pointer; }
.xl-rh { position: sticky; left: 0; z-index: 2; background: #f0f2f1; color: #444; font-weight: 400; text-align: center; width: 2.6rem; min-width: 2.6rem; border-right: 1px solid #c6ccc8 !important; cursor: pointer; }
.xl-ch { cursor: pointer; position: relative; }
.xl-resize { position: absolute; right: -3px; top: 0; bottom: 0; width: 7px; cursor: col-resize; z-index: 5; }
.xl-grid td { background: #fff; cursor: cell; position: relative; }
.xl-grid td.num { text-align: right; }
.xl-grid td.err { color: var(--red); text-align: center; font-weight: 600; }
.xl-grid td.b { font-weight: 700; }
.xl-grid td.insel { background-color: #e8f2ea; }
.xl-grid td.active { background-color: #fff !important; }
.xl-grid td.locked { color: #666; }
.xl-grid td.has-f { padding-right: 1.5rem; }
.xl-fbtn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 1.15rem; height: 1.15rem; border: 1px solid #a9b0b7; border-radius: 3px; background: #fff; font-size: .7rem; line-height: 1.05rem; text-align: center; cursor: pointer; color: #333; font-weight: 400; }
.xl-fbtn.on { background: #dbe8fb; border-color: var(--blue); color: var(--blue); }
.xl-selbox { position: absolute; border: 2px solid var(--green); pointer-events: none; z-index: 1; margin: -1px 0 0 -1px; }
.xl-handle { position: absolute; width: 9px; height: 9px; background: var(--green); border: 1.5px solid #fff; cursor: crosshair; z-index: 2; }
.xl-ants { position: absolute; border: 2px dashed var(--green); pointer-events: none; z-index: 1; animation: ants 1s linear infinite; margin: -1px 0 0 -1px; }
@keyframes ants { 50% { border-color: #7fbf98; } }
.xl-fillbox { position: absolute; border: 2px dashed #555; pointer-events: none; z-index: 1; margin: -1px 0 0 -1px; }
.xl-editor { position: absolute; z-index: 6; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: .9rem; border: 2px solid var(--green); padding: 0 .3rem; outline: none; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.xl-status { display: flex; gap: 1.4rem; justify-content: flex-end; padding: .3rem .8rem; background: #f3f6f4; border-top: 1px solid #d0d6d2; font-size: .82rem; color: #444; border-radius: 0 0 8px 8px; min-height: 1.9rem; }
.xl-status .xl-st-sel { margin-right: auto; order: -1; color: var(--muted); }
.xl-status.flash { justify-content: flex-start; background: #fff4c2; color: #5a4a00; font-weight: 600; }
.xl-chart { border-top: 1px solid #d0d6d2; padding: .6rem; }
.xl-svg { width: 100%; max-width: 640px; height: auto; font-family: "Segoe UI", Arial, sans-serif; }
.xl-pop { position: absolute; z-index: 30; background: #fff; border: 1px solid #9aa3ad; border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .2); padding: .7rem; width: 300px; font-size: .88rem; user-select: none; }
.xl-modal { width: auto; min-width: 340px; max-width: 520px; }
.xl-pop-t { font-weight: 700; margin-bottom: .4rem; }
.xl-pop-list { max-height: 13rem; overflow: auto; border: 1px solid var(--line); border-radius: 5px; padding: .3rem .5rem; margin-bottom: .5rem; }
.xl-pop-list label { display: block; padding: .12rem 0; cursor: pointer; }
.xl-pop-num { margin: .3rem 0 .5rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.xl-pop-num select, .xl-pop-num input, .xl-pop select, .xl-pop input[type=text] { font: inherit; padding: .2rem .3rem; border: 1px solid #b9bec6; border-radius: 4px; }
.xl-pop-b { display: flex; gap: .4rem; justify-content: flex-end; margin-top: .5rem; flex-wrap: wrap; }
.xl-pop-body .xl-row { display: flex; gap: .4rem; align-items: center; margin: .4rem 0; flex-wrap: wrap; }
.xl-lbl { min-width: 12.5rem; }
.xl-radio { margin-right: .8rem; cursor: pointer; }
.xl-hint { font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }

/* układ ćwiczenia: zadania obok arkusza na szerokich ekranach */
.paneltitle { font-weight: 700; color: var(--green-d); text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
.exgrid { display: flex; flex-direction: column-reverse; gap: 1rem; }
.exsheet { min-width: 0; }
@media (min-width: 1280px) {
  .exgrid { display: grid; grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); align-items: start; }
  .expanel { position: sticky; top: 4.6rem; max-height: calc(100vh - 5.5rem); overflow: auto; padding-right: .3rem; }
  .expanel .task { padding: .45rem .55rem; font-size: .95rem; }
  .expanel .exacts .btn.big { font-size: .98rem; padding: .55rem 1rem; }
  .exsheet .xl-wrap { max-height: calc(100vh - 13rem); }
}
.task code { white-space: normal; word-break: break-word; }
/* R5: lista rozwijana, komunikat poprawnosci, zakreslenie nieprawidlowych, obszar rozlania, zakladki skoroszytu */
.xl td { position: relative; }
.xl-dvbtn { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 1.1rem; display: grid; place-items: center; background: #f1f3f5; border: 1px solid #b9bec6; font-size: .75rem; cursor: pointer; color: #333; }
.xl-dv-list { padding: 0; max-height: 14rem; overflow: auto; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.xl-dv-opt { padding: .25rem .6rem; cursor: pointer; white-space: nowrap; }
.xl-dv-opt:hover, .xl-dv-opt.on { background: #dcedf3; }
.xl-dv-err .xl-dv-msg { padding: .4rem 0 .6rem 2.2rem; position: relative; max-width: 26rem; }
.xl-dv-err .xl-dv-msg::before { content: "✕"; position: absolute; left: 0; top: .25rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #c42b1c; color: #fff; display: grid; place-items: center; font-weight: 700; }
.xl td.xl-invalid { outline: 2px solid #d62828; outline-offset: -3px; border-radius: 40%; }
.xl td.xl-sp-t { border-top: 1.5px solid #3b7dd8; } .xl td.xl-sp-b { border-bottom: 1.5px solid #3b7dd8; }
.xl td.xl-sp-l { border-left: 1.5px solid #3b7dd8; } .xl td.xl-sp-r { border-right: 1.5px solid #3b7dd8; }
.xl-book { border: 1px solid #b9bec6; border-radius: 8px; background: #fff; }
.xl-book .xl { border: none; border-radius: 8px 8px 0 0; }
.xl-tabs { display: flex; gap: 2px; padding: 0 .5rem; background: #eef0f2; border-top: 1px solid #c8cdd3; border-radius: 0 0 8px 8px; }
.xl-tab { font: inherit; font-size: .82rem; padding: .3rem .9rem; border: 1px solid transparent; border-top: none; background: transparent; cursor: pointer; color: #333; }
.xl-tab.on { background: #fff; border-color: #c8cdd3; color: var(--green-d); font-weight: 600; border-bottom: 3px solid var(--green); }
