/* Termini: stranica profesora (.tm) i widget za rezervaciju (.tmw) */
.tm,.tmw{--red:#D5224C;--red-d:#B01A3D;--tint:#FFF0F3;--tint2:#FFE3EA;--ink:#1D1B22;--mut:#6B6A75;--line:#ECEAEE;--green:#107C41}

/* ---------- stranica Moji termini ---------- */
.tm .tm-wrap{max-width:860px;margin:0 auto;padding:0 18px 64px;display:flex;flex-direction:column;gap:16px}
.tm .tm-card{background:#fff;border-radius:22px;box-shadow:0 0 0 1px var(--line);padding:24px}
.tm .tm-card h2{font-size:19px;font-weight:800;letter-spacing:-.02em;margin:0 0 14px}
.tm .tm-n{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:12px;background:var(--red);color:#fff;font-size:13px;margin-left:6px;padding:0 7px}
.tm .tm-req{box-shadow:0 0 0 2px var(--red)}
.tm .tm-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.tm .tm-row:first-of-type{border-top:0}
.tm .tm-row b{display:block;font-size:16px}
.tm .tm-row span{display:block;color:var(--mut);font-size:14.5px}
.tm .tm-row em{display:block;font-style:normal;color:var(--mut);font-size:14px;margin-top:2px}
.tm .tm-act{display:flex;gap:8px}
.tm .tm-act a{min-height:42px;padding:0 20px;border-radius:999px;display:inline-flex;align-items:center;font-weight:700;font-size:15px;text-decoration:none}
.tm .tm-yes{background:var(--green);color:#fff}
.tm .tm-no{background:var(--tint);color:var(--ink)}
.tm .tm-mode{display:flex;align-items:center;justify-content:space-between;gap:16px}
.tm .tm-mode h2{margin-bottom:4px}
.tm .tm-mode p{margin:0;color:var(--mut);font-size:15px}
.tm .tm-sw{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:700;flex-shrink:0}
.tm .tm-sw input{position:absolute;opacity:0;pointer-events:none}
.tm .tm-sw span{width:50px;height:30px;border-radius:15px;background:#D9D6DD;position:relative;transition:.2s}
.tm .tm-sw span:after{content:"";position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.2s}
.tm .tm-sw input:checked+span{background:var(--green)}
.tm .tm-sw input:checked+span:after{left:23px}
.tm .tm-sw input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}
.tm .tm-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
@media (max-width:720px){.tm .tm-grid{grid-template-columns:1fr}.tm .tm-mode{flex-direction:column;align-items:flex-start}}
.tm .tm-l{font-weight:700;font-size:14.5px;margin:0 0 10px}
.tm .tm-cal{max-width:340px}
.tm .mz-cal-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.tm .mz-cal-h strong{font-size:16px;font-weight:800;letter-spacing:-.02em}
.tm .mz-cal-h button{width:36px;height:36px;border:0;border-radius:50%;background:var(--tint);color:var(--ink);font-size:20px;line-height:1;cursor:pointer}
.tm .mz-cal-h button:hover{background:var(--tint2)}
.tm .mz-cal-w,.tm .mz-cal-g{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.tm .mz-cal-w span{font-size:12px;font-weight:700;color:var(--mut);padding:6px 0}
.tm .mz-cal-g button{aspect-ratio:1;border:0;border-radius:50%;background:none;font:inherit;font-size:15px;font-weight:600;color:var(--ink);cursor:pointer;padding:0}
.tm .mz-cal-g button:hover:not(:disabled){background:var(--tint2)}
.tm .mz-cal-g button.today{box-shadow:inset 0 0 0 1.5px var(--red)}
.tm .mz-cal-g button.on{background:var(--red);color:#fff}
.tm .mz-cal-g button:disabled{color:#C9C5CD;cursor:default}
.tm .tm-times{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;max-height:232px;overflow-y:auto;padding:2px}
.tm .tm-times button{min-height:40px;border:0;border-radius:12px;background:var(--tint);font:inherit;font-weight:700;font-size:14.5px;color:var(--ink);cursor:pointer}
.tm .tm-times button:hover{background:var(--tint2)}
.tm .tm-times button.on{background:var(--red);color:#fff}
.tm .tm-rep{display:flex;align-items:center;gap:8px;margin:16px 0;font-size:15px;cursor:pointer}
.tm .tm-save[disabled]{opacity:.45;cursor:default}
.tm .tm-msg{margin:10px 0 0;color:var(--red-d);font-size:14.5px;min-height:1px}
.tm .tm-empty{color:var(--mut);margin:0}
.tm .tm-day{padding:12px 0;border-top:1px solid var(--line)}
.tm .tm-day:first-of-type{border-top:0}
.tm .tm-day>b{display:block;margin-bottom:8px;font-size:15px}
.tm .tm-chips{display:flex;flex-wrap:wrap;gap:8px}
.tm .tm-chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 6px 0 14px;border-radius:999px;background:var(--tint);font-weight:700;font-size:14.5px}
.tm .tm-chip small{font-weight:600;color:var(--mut);padding-right:8px}
.tm .tm-chip.is-taken{background:#E8F4EC;color:var(--green);padding-right:6px}
.tm .tm-chip button{width:26px;height:26px;border:0;border-radius:50%;background:transparent;color:var(--mut);font-size:18px;line-height:1;cursor:pointer}
.tm .tm-chip button:hover{background:var(--tint2);color:var(--red-d)}
.tm .tm-lock{text-align:center;background:#fff;border-radius:22px;box-shadow:0 0 0 1px var(--line);padding:40px 24px}
.tm .tm-lock i{font-size:34px;color:var(--red);margin-bottom:12px}
.tm .tm-lock h2{font-size:22px;font-weight:800;letter-spacing:-.02em;margin:0 0 8px}
.tm .tm-lock p{color:var(--mut);margin:0 0 18px}
.tm .tm-ans{margin-top:40px}
.tm .mz-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 26px;border:0;border-radius:999px;background:var(--red);color:#fff;font:inherit;font-weight:700;font-size:16px;cursor:pointer;text-decoration:none}
.tm .mz-btn:hover{background:var(--red-d)}

.tm .tm-price{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.tm .tm-price h2{margin-bottom:4px}
.tm .tm-price p{margin:0;color:var(--mut);font-size:15px}
.tm .tm-price-f{display:flex;gap:8px;flex:1;min-width:260px;max-width:420px}
.tm .tm-price-f input{flex:1;min-height:50px;padding:0 16px;border:0;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--line);font:inherit;font-size:16px;background:#fff;min-width:0}
.tm .tm-price-f input:focus{outline:0;box-shadow:inset 0 0 0 2px var(--red)}
.tm .tm-price .tm-msg{flex-basis:100%}
.tm .tm-hint{background:var(--tint);box-shadow:none}
.tm .tm-hint p{margin:0;font-weight:600}

/* ---------- widget na profilu ---------- */
.tmw .tmw-sub{margin:-4px 0 14px;color:var(--mut);font-size:14.5px}
.tmw .tmw-days{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:none}
.tmw .tmw-days::-webkit-scrollbar{display:none}
.tmw .tmw-day{flex:0 0 auto;width:68px;padding:8px 0;border:0;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);display:flex;flex-direction:column;align-items:center;gap:1px;cursor:pointer;color:var(--ink);font-family:inherit}
.tmw .tmw-day small{font-size:12px;color:var(--mut);font-weight:600;text-transform:uppercase}
.tmw .tmw-day b{font-size:20px;font-weight:800;line-height:1.2}
.tmw .tmw-day:hover{box-shadow:inset 0 0 0 1.5px var(--red)}
.tmw .tmw-day.on{background:var(--red);box-shadow:none;color:#fff}
.tmw .tmw-day.on small{color:rgba(255,255,255,.85)}
.tmw .tmw-times{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px;margin-top:6px}
.tmw .tmw-t{min-height:44px;border:0;border-radius:12px;background:var(--tint);font:inherit;font-weight:700;font-size:15px;color:var(--ink);cursor:pointer}
.tmw .tmw-t:hover{background:var(--red);color:#fff}
.tmw .tmw-dlg{border:0;border-radius:24px;padding:0;width:min(420px,calc(100vw - 28px));box-shadow:0 30px 80px rgba(29,27,34,.3);margin:auto !important;position:fixed;inset:0;color:var(--ink);font-family:inherit}
.tmw .tmw-dlg::backdrop{background:rgba(29,27,34,.5)}
.tmw .tmw-dlg form{padding:28px 24px 24px;position:relative}
.tmw .tmw-dlg h3{font-size:22px;font-weight:800;letter-spacing:-.02em;margin:0 0 4px}
.tmw .tmw-when{margin:0 0 16px;color:var(--red-d);font-weight:700}
.tmw .tmw-dlg label{display:block;font-weight:700;font-size:14.5px;margin:12px 0 6px}
.tmw .tmw-dlg input[type=text]{width:100%;min-height:50px;padding:0 16px;border:0;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--line);font:inherit;font-size:16px;background:#fff}
.tmw .tmw-dlg input[type=text]:focus{outline:0;box-shadow:inset 0 0 0 2px var(--red)}
.tmw .tmw-hp{position:absolute !important;left:-9999px !important;width:1px !important;height:1px !important;opacity:0}
.tmw .tmw-err{color:var(--red-d);font-size:14.5px;margin:10px 0 0;min-height:1px}
.tmw .tmw-go{width:100%;min-height:52px;margin-top:16px;border:0;border-radius:999px;background:var(--red);color:#fff;font:inherit;font-weight:700;font-size:16px;cursor:pointer}
.tmw .tmw-go:hover{background:var(--red-d)}
.tmw .tmw-go[disabled]{opacity:.6;cursor:default}
.tmw .tmw-x{position:absolute;right:12px;top:12px;width:36px;height:36px;border:0;border-radius:50%;background:var(--tint);color:var(--ink);font-size:22px;line-height:1;cursor:pointer}
.tmw #tmwStep2{text-align:center;padding-top:8px}
.tmw .tmw-ok{width:60px;height:60px;border-radius:50%;background:#E8F4EC;color:var(--green);display:grid;place-items:center;font-size:24px;margin:0 auto 12px}
.tmw #tmwStep2 p{color:var(--mut);margin:6px 0 0}

html{scroll-behavior:smooth}
.tmw{scroll-margin-top:90px}

/* podešavanja */
.tm .tm-set{display:flex;flex-direction:column;gap:18px}
.tm .tm-set-r label{display:block;font-weight:700;font-size:15px;margin-bottom:8px}
.tm .tm-set-r label small{font-weight:500;color:var(--mut)}
.tm .tm-set-r .tm-price-f{max-width:420px}
.tm .tm-set-sw{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:18px}
.tm .tm-set-sw label:first-child{margin-bottom:2px}
.tm .tm-set-sw p{margin:0;color:var(--mut);font-size:14.5px}
.tm .tm-set-sw .tm-sw{margin:0}
.tm .tm-okp{color:var(--green);font-weight:700;font-size:14.5px;white-space:nowrap}

/* kartica Rezervacije na Moj profil */
.tmp{--red:#D5224C;--red-d:#B01A3D;--tint:#FFF0F3;--ink:#1D1B22;--mut:#6B6A75;--line:#ECEAEE;--green:#107C41;background:#fff;border-radius:20px;box-shadow:0 0 0 1px var(--line);padding:20px 22px;margin-bottom:20px;font-family:inherit;color:var(--ink)}
.tmp.has-new{box-shadow:0 0 0 2px var(--red)}
.tmp-h{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.tmp-h h2{font-size:18px;font-weight:800;letter-spacing:-.02em;margin:0;display:flex;align-items:center;gap:8px}
.tmp-h h2 i{color:var(--red)}
.tmp-h a{font-weight:700;font-size:14.5px;color:var(--red-d);text-decoration:none}
.tmp-h a:hover{text-decoration:underline}
.tmp-n{background:var(--red);color:#fff;border-radius:999px;font-size:12.5px;padding:2px 10px;font-weight:700}
.tmp-empty{margin:0;color:var(--mut);font-size:15px}
.tmp-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.tmp-row b{display:block;font-size:15.5px}
.tmp-row span{color:var(--mut);font-size:14px}
.tmp-act{display:flex;gap:8px}
.tmp-act a{min-height:40px;padding:0 18px;border-radius:999px;display:inline-flex;align-items:center;font-weight:700;font-size:14.5px;text-decoration:none}
.tmp-yes{background:var(--green);color:#fff}
.tmp-no{background:var(--tint);color:var(--ink)}
.tmp .tmp-ok{color:var(--green);font-weight:700;font-size:14px;white-space:nowrap}
.tm .tm-card.tm-price{display:block}

/* kompaktna kartica Rezervacije */
.tmp{padding:14px 18px;margin-bottom:16px;border-radius:18px}
.tmp-h{margin-bottom:2px}
.tmp-h h2{font-size:16px}
.tmp-row{padding:10px 0}
.tmp-act a{min-height:36px;padding:0 16px;font-size:14px}
.tmp.tmp-line{display:flex;align-items:center;gap:10px;box-shadow:none;background:#F7F6F8;font-size:14.5px;color:var(--mut)}
.tmp.tmp-line i{color:var(--mut)}
.tmp.tmp-line span{flex:1;min-width:0}
.tmp.tmp-line b{color:var(--ink)}
.tmp.tmp-line a{font-weight:700;color:var(--red-d);text-decoration:none;white-space:nowrap}
.tmp.tmp-line a:hover{text-decoration:underline}

.tm .tm-more summary{cursor:pointer;font-weight:700;color:var(--red-d);padding:12px 0 0;list-style:none}
.tm .tm-more summary::-webkit-details-marker{display:none}
.tm .tm-more[open] summary{display:none}
.tmp .tmp-more{display:block;font-weight:700;font-size:14.5px;color:var(--red-d);text-decoration:none;padding-top:10px;border-top:1px solid var(--line)}
.tmp .tmp-more:hover{text-decoration:underline}

/* hover: tekst ostaje čitljiv */
.tm a.tm-yes,.tmp a.tmp-yes,.tm a.tm-yes:visited,.tmp a.tmp-yes:visited{color:#fff !important}
.tm a.tm-yes:hover,.tm a.tm-yes:focus,.tmp a.tmp-yes:hover,.tmp a.tmp-yes:focus{background:#0B6334;color:#fff !important;text-decoration:none}
.tm a.tm-no,.tmp a.tmp-no,.tm a.tm-no:visited,.tmp a.tmp-no:visited{color:#1D1B22 !important}
.tm a.tm-no:hover,.tm a.tm-no:focus,.tmp a.tmp-no:hover,.tmp a.tmp-no:focus{background:#FFE3EA;color:#1D1B22 !important;text-decoration:none}

.tm .tm-lnk{margin:10px 0 0}
.tm .tm-lnk a{font-weight:700;color:var(--red-d);text-decoration:none}
.tm .tm-lnk a:hover{text-decoration:underline}

/* ispravke: okvir bez prekida, hover čitljiv */
.hp.tm .tm-wrap{padding-top:6px;overflow:visible}
.hp.tm .tm-card.tm-req{box-shadow:none;border:2px solid var(--red)}
.tmp.has-new{box-shadow:none;border:2px solid var(--red)}
.hp.tm a.tm-yes,.hp.tm a.tm-yes:link,.hp.tm a.tm-yes:visited{background:#107C41;color:#fff !important;transition:background .15s}
.hp.tm a.tm-yes:hover,.hp.tm a.tm-yes:focus,.hp.tm a.tm-yes:active{background:#0D6637;color:#fff !important;text-decoration:none !important}
.hp.tm a.tm-no,.hp.tm a.tm-no:link,.hp.tm a.tm-no:visited{background:#FFF0F3;color:#1D1B22 !important;transition:background .15s}
.hp.tm a.tm-no:hover,.hp.tm a.tm-no:focus,.hp.tm a.tm-no:active{background:#FFD9E2;color:#1D1B22 !important;text-decoration:none !important}
.tmp a.tmp-yes,.tmp a.tmp-yes:link,.tmp a.tmp-yes:visited{background:#107C41;color:#fff !important}
.tmp a.tmp-yes:hover,.tmp a.tmp-yes:focus,.tmp a.tmp-yes:active{background:#0D6637;color:#fff !important;text-decoration:none !important}
.tmp a.tmp-no,.tmp a.tmp-no:link,.tmp a.tmp-no:visited{background:#FFF0F3;color:#1D1B22 !important}
.tmp a.tmp-no:hover,.tmp a.tmp-no:focus,.tmp a.tmp-no:active{background:#FFD9E2;color:#1D1B22 !important;text-decoration:none !important}

/* prekidač u Podešavanjima */
.tm .tm-set-r label.tm-sw{display:flex;align-items:center;gap:10px;margin:0;font-size:15px;font-weight:700;flex-shrink:0;position:relative}
.tm .tm-set-sw>div label{display:block;margin:0 0 2px}

.tm .tm-card h2+.tm-sub{margin:-8px 0 8px;color:var(--mut);font-size:14.5px}

/* prekidač Rezervacije | Slobodni termini */
.tm .tm-seg{display:flex;gap:4px;padding:4px;border-radius:999px;background:var(--tint);align-self:center;margin:0 auto 4px}
.tm .tm-seg a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 22px;border-radius:999px;font-weight:700;font-size:15.5px;color:var(--ink) !important;text-decoration:none !important;transition:background .15s}
.tm .tm-seg a:hover{background:var(--tint2)}
.tm .tm-seg a.on{background:var(--red);color:#fff !important}
.tm .tm-seg a span{background:var(--red);color:#fff;border-radius:999px;font-size:12.5px;padding:1px 8px}
.tm .tm-seg a.on span{background:#fff;color:var(--red)}

.tmw .tmw-price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;background:var(--tint);border-radius:14px;padding:12px 16px;margin:0 0 14px}
.tmw .tmw-price span{color:var(--mut);font-size:14.5px;font-weight:600}
.tmw .tmw-price b{font-size:20px;font-weight:800;letter-spacing:-.02em;color:var(--ink)}

.tmw .tmw-login{margin:-6px 0 6px;font-size:14.5px;color:var(--mut)}
.tmw .tmw-login a{color:var(--red-d);font-weight:700;text-decoration:underline}

.tm .tm-st{display:inline-flex;align-items:center;min-height:32px;padding:0 14px;border-radius:999px;font-weight:700;font-size:14px;background:var(--tint);color:var(--ink)}
.tm .tm-st.is-ok{background:#E8F4EC;color:var(--green)}
.tm .tm-st.is-no{background:#F1F0F3;color:var(--mut)}

.tm .tm-st{gap:6px}
.tm .tm-st.is-ok{background:#DFF3E6;color:#0E6B39}
.tm .tm-st.is-ok i{color:#107C41;font-size:16px}
.tm .tm-st.is-pend i{color:var(--mut)}

.tm .tm-cas b{font-size:17px}
.tm .tm-cas em{display:block;font-style:normal;color:var(--mut);font-size:14.5px;margin-top:2px}
@media (max-width:560px){
  .tm .tm-wrap{padding:0 16px 48px}
  .tm .tm-card{padding:20px 18px}
  .tm .tm-cas{flex-direction:column;align-items:flex-start;gap:10px}
  .tm .tm-cas .tm-st{align-self:flex-start}
}

.tm .tm-prev{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#FFF7E6;border:1.5px solid #F2D9A6;border-radius:20px;padding:18px 20px}
.tm .tm-prev>i{font-size:26px;color:#B7791F}
.tm .tm-prev>div{flex:1;min-width:220px}
.tm .tm-prev b{display:block;font-size:16px;margin-bottom:2px}
.tm .tm-prev span{color:var(--mut);font-size:14.5px}

.tm .tm-off{opacity:.5;filter:grayscale(.5);user-select:none;pointer-events:none}
.tm .tm-off .mz-btn{background:#9A98A2}

.tm .tm-times button:disabled{opacity:.45;cursor:not-allowed;background:#F1F0F3;color:var(--mut)}
.tm .tm-times button:disabled:hover{background:#F1F0F3}
.tm .tm-lockn{font-weight:600;color:var(--mut);font-size:13px;margin-left:6px}
