:root { --blue: #1664d9; --blue-d: #0f4fb0; --bg: #f1f5fb; --tx: #14213d; --mut: #6b7a90; --line: #e3eaf3; --green: #1fa84f; --red: #e03131; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: var(--bg); color: var(--tx); }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; }
svg.i { width: 1.1em; height: 1.1em; vertical-align: -0.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* antet */
.hd { background: var(--blue); color: #fff; padding: calc(14px + env(safe-area-inset-top)) 16px 20px; }
.hd.page { display: flex; align-items: center; gap: 8px; padding-bottom: 20px; }
.hd.page h1 { flex: 1; text-align: center; font-size: 17px; margin: 0; font-weight: 700; padding-right: 36px; }
.hd .back { background: none; border: 0; color: #fff; font-size: 22px; width: 36px; height: 36px; padding: 0; }
.logo-row { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.logo small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0; opacity: .85; margin-top: 3px; }
.bell { position: relative; background: none; border: 0; color: #fff; font-size: 24px; padding: 4px; }
.bell b { position: absolute; top: -2px; right: -4px; background: var(--red); color: #fff; border-radius: 10px; font-size: 11px; min-width: 18px; line-height: 18px; text-align: center; padding: 0 4px; }
.locsel { margin-top: 14px; background: #fff; border-radius: 12px; padding: 0 12px; display: flex; align-items: center; gap: 10px; color: var(--tx); }
.locsel svg { color: var(--blue); }
.locsel select { flex: 1; border: 0; background: transparent; font-weight: 600; font-size: 15px; padding: 12px 0; color: var(--tx); outline: none; }

.sheet { background: var(--bg); border-radius: 22px 22px 0 0; margin-top: -12px; padding: 16px 16px 150px; min-height: 70vh; position: relative; }

/* indicatori */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.stat { border-radius: 16px; padding: 14px 8px; text-align: center; }
.stat .ic { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; }
.stat .num { font-size: 26px; font-weight: 800; line-height: 1.1; }
.stat .label { font-size: 12px; font-weight: 600; margin-top: 2px; }
.stat.todo { background: #d9e8fd; color: #0f4fb0; } .stat.todo .ic { background: var(--blue); }
.stat.over { background: #fde0e0; color: #b42318; } .stat.over .ic { background: var(--red); }
.stat.done { background: #d8f3e2; color: #11713a; } .stat.done .ic { background: var(--green); }
.sec { display: flex; justify-content: space-between; align-items: center; margin: 22px 2px 6px; }
.sec h2 { margin: 0; font-size: 18px; font-weight: 800; }
.sec a, .sec button { color: var(--blue); font-weight: 600; font-size: 13px; text-decoration: none; background: none; border: 0; padding: 4px; }

/* rânduri task */
.list { background: #fff; border-radius: 16px; padding: 0 12px; box-shadow: 0 2px 10px rgba(20,33,61,.05); }
a.trow { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
a.trow:last-child { border-bottom: 0; }
.th { width: 76px; height: 76px; border-radius: 12px; background: #e6edf7 center/cover; flex: none; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #9db0cc; }
.th.red { box-shadow: -4px 0 0 var(--red); }
.rb { flex: 1; min-width: 0; }
.rt { font-weight: 800; font-size: 15px; }
.rd { color: #4a5a72; font-size: 13px; margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 8px; }
.tag.todo { background: #d9e8fd; color: #0f4fb0; } .tag.lucru { background: #ece3fb; color: #6a3fc0; } .tag.late { background: var(--red); color: #fff; } .tag.fin { background: #d8f3e2; color: #11713a; }
.tag.s1 { background: #dff0ff; color: #1b69b3; } .tag.s2 { background: #e6e1fb; color: #5b45c8; } .tag.s3 { background: #fdf0d2; color: #a15c07; }
.when { font-size: 12px; color: var(--mut); margin-top: 6px; }
.chev { color: #a5b3c7; font-size: 20px; }
.empty { text-align: center; color: var(--mut); padding: 26px 10px; }

/* navigare jos + buton */
.fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); width: min(448px, calc(100% - 32px)); z-index: 4; }
.fab button, .big { width: 100%; border: 0; border-radius: 14px; padding: 15px; background: var(--green); color: #fff; font: inherit; font-size: 16px; font-weight: 800; box-shadow: 0 8px 20px rgba(31,168,79,.28); display: flex; align-items: center; justify-content: center; gap: 8px; }
.big { margin-top: 14px; box-shadow: none; }
.big.blue { background: var(--blue); } .big.sec { background: #fff; color: var(--tx); border: 1px solid #cdd8e8; font-weight: 600; flex-direction: column; gap: 2px; padding: 12px; }
.big.sec small { font-weight: 400; color: var(--mut); font-size: 11px; }
.big[disabled] { opacity: .4; }
nav.bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--line); display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 5; }
nav.bar a { flex: 1; text-align: center; text-decoration: none; color: #8a97ab; font-size: 11px; padding: 4px; }
nav.bar a svg { display: block; width: 24px; height: 24px; margin: 0 auto 2px; }
nav.bar a.on { color: var(--blue); font-weight: 700; }

/* formular */
.form { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 2px 10px rgba(20,33,61,.05); }
.form label.l { display: block; font-weight: 800; margin: 18px 0 8px; font-size: 15px; }
.form label.l:first-child { margin-top: 0; }
input, select, textarea { width: 100%; font: inherit; padding: 12px; border: 1px solid #cdd8e8; border-radius: 12px; background: #fff; color: var(--tx); }
textarea { min-height: 84px; resize: vertical; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px dashed #a9bde0; color: var(--tx); border-radius: 14px; padding: 22px 10px; cursor: pointer; background: #f8fbff; font-weight: 600; }
.drop svg { width: 30px; height: 30px; color: var(--blue); } .drop small { font-weight: 400; color: var(--mut); font-size: 12px; }
.drop input { display: none; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.photos .ph { width: 88px; height: 88px; border-radius: 12px; background: #e6edf7 center/cover; position: relative; border: 0; padding: 0; }
.photos .ph.x::after { content: "✕"; position: absolute; top: 3px; right: 4px; color: #fff; background: #000a; border-radius: 50%; width: 22px; height: 22px; text-align: center; line-height: 22px; font-size: 13px; }
.q { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.q button { border: 1px solid #cdd8e8; background: #fff; color: #344054; border-radius: 20px; padding: 7px 12px; font: inherit; font-size: 12px; font-weight: 600; }
.err { color: var(--red); margin-top: 10px; font-size: 14px; }
.hint { font-size: 12px; color: var(--mut); text-align: center; margin-top: 6px; }

/* detalii */
.banner { border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 14px; }
.banner span { flex: 1; } .banner small { text-align: right; font-weight: 600; font-size: 12px; line-height: 1.3; }
.banner.red { background: #fde0e0; color: #b42318; } .banner.blue { background: #d9e8fd; color: #0f4fb0; } .banner.green { background: #d8f3e2; color: #11713a; } .banner.violet { background: #ece3fb; color: #6a3fc0; }
.dt h2 { margin: 4px 0 2px; font-size: 20px; } .dt p { margin: 0 0 10px; color: #3d4c63; }
.pills { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; }
.pill { font-size: 12px; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; }
.big-ph { width: 100%; height: 190px; border-radius: 14px; background: #e6edf7 center/cover; border: 0; display: block; margin-bottom: 8px; }
.info div { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.info div:last-child { border-bottom: 0; } .info svg { color: var(--mut); margin-top: 2px; flex: none; } .info small { display: block; color: var(--mut); font-size: 11px; }
.tl { border-left: 2px solid #cdd8e8; margin: 6px 0 0 6px; padding-left: 14px; }
.tl div { margin-bottom: 12px; font-size: 14px; } .meta { color: var(--mut); font-size: 12px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin: -4px 0 14px; }
.tabs button { flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 4px; font: inherit; font-weight: 600; color: var(--mut); }
.tabs button.on { color: var(--blue); border-color: var(--blue); }
.chipset { display: flex; gap: 8px; margin-bottom: 12px; }
.chipset button { border: 1px solid #cdd8e8; background: #fff; border-radius: 20px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; color: #344054; }
.chipset button.on { background: var(--blue); color: #fff; border-color: var(--blue); }

#toast { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); background: #14213d; color: #fff; padding: 10px 16px; border-radius: 20px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: 90%; }
#toast.on { opacity: 1; }
#lightbox { position: fixed; inset: 0; background: #000e; z-index: 40; display: flex; align-items: center; justify-content: center; }
#lightbox[hidden] { display: none; } #lightbox img { max-width: 100%; max-height: 100%; }
.loginbox { max-width: 360px; margin: 0 auto; padding: 14vh 20px 0; text-align: center; }
.loginbox .logo { color: var(--blue); font-size: 34px; } .loginbox .logo small { color: var(--mut); font-size: 13px; }
.loginbox form { margin-top: 28px; } .loginbox input { margin-bottom: 10px; }

/* pagini meniu / administrare */
.card { background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 2px 10px rgba(20,33,61,.05); margin-bottom: 12px; }
.adm .row { display: flex; gap: 10px; } .adm .row > * { flex: 1; } .row { display: flex; gap: 10px; } .row > * { flex: 1; }
.btn { display: block; width: 100%; border: 0; border-radius: 14px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; padding: 14px; margin-top: 12px; }
.btn.sec { background: #fff; color: var(--blue); border: 1px solid #cdd8e8; } .btn.small { font-size: 13px; padding: 10px; }
.adm h2 { font-size: 16px; margin: 22px 0 8px; }
.adm .it { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.adm .it span { flex: 1; } .adm .it button { border: 0; background: transparent; color: var(--red); font-size: 18px; }
.adm .meta { color: var(--mut); font-size: 12px; }

/* acasă: locații */
a.loc { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(20,33,61,.05); color: inherit; text-decoration: none; }
.locico { width: 64px; height: 64px; border-radius: 12px; background: #dbe7f8; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 30px; flex: none; }
.locb { flex: 1; min-width: 0; } .locn { font-weight: 800; font-size: 15px; margin-bottom: 8px; } .locn svg { color: var(--blue); }
.mini { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.mini span { border-radius: 10px; padding: 6px 2px; text-align: center; font-size: 10px; font-weight: 600; } .mini b { display: block; font-size: 17px; }
.m1 { background: #d9e8fd; color: #0f4fb0; } .m2 { background: #fde0e0; color: #b42318; } .m3 { background: #d8f3e2; color: #11713a; }
.stats .stat { padding: 12px 6px; }
/* notificări / iconițe rotunde */
.nic { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; background: #e8edf4; }
.nic.sm { width: 30px; height: 30px; font-size: 15px; background: #e8f0fd; color: var(--blue); }
.nic.b { background: #d9e8fd; color: var(--blue); } .nic.g { background: #d8f3e2; color: var(--green); } .nic.r { background: #fde0e0; color: var(--red); }
a.trow .nic { margin-right: 0; }
/* raport */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rt4 { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 2px 10px rgba(20,33,61,.05); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rn { font-size: 24px; font-weight: 800; line-height: 1.1; } .rt4 .meta { font-size: 11px; }
.tr { width: 100%; font-size: 12px; font-weight: 700; border-radius: 8px; padding: 5px 8px; background: #eef2f7; color: var(--mut); } .tr small { font-weight: 500; margin-left: 4px; }
.tr.good { background: #d8f3e2; color: #11713a; } .tr.bad { background: #fde0e0; color: #b42318; }
.bar1 { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-weight: 600; font-size: 14px; } .bar1 span { width: 56px; } .bar1 b { width: 28px; text-align: right; }
.trk { flex: 1; background: #e8edf4; height: 10px; border-radius: 6px; overflow: hidden; } .trk i { display: block; height: 100%; border-radius: 6px; background: var(--blue); }
.trk i.s1 { background: #4a9be8; } .trk i.s2 { background: #7b61d9; } .trk i.s3 { background: #f2a33a; }
a.big { text-decoration: none; }
/* profil */
.pitem { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 0; border-radius: 16px; padding: 12px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(20,33,61,.05); color: inherit; text-decoration: none; text-align: left; font: inherit; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: #d9e8fd; color: var(--blue); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; flex: none; }
/* activitate + comentarii */
.ev { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14px; } .evs { margin-top: 2px; }
.quote { background: #f3f6fb; border-radius: 10px; padding: 8px 10px; margin: 4px 0; font-size: 13px; color: #3d4c63; }
.cbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--line); display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); z-index: 6; }
.cbar input { flex: 1; } .cbar button { width: 46px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font-size: 20px; }

/* filtre, căutare, grafic, timeline */
.fbtn { display: flex; align-items: center; gap: 6px; border: 1px solid #cdd8e8; background: #fff; border-radius: 12px; padding: 0 14px; font: inherit; font-weight: 600; font-size: 14px; color: var(--tx); }
.fbtn.on { border-color: var(--blue); color: var(--blue); }
.opts { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: 12px; font: inherit; text-align: left; color: var(--tx); }
.opt:last-child { border-bottom: 0; } .opt.on { background: #e9f1fd; } .opt span { flex: 1; font-size: 15px; } .opt b { font-weight: 500; color: var(--mut); }
i.rd { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--blue); flex: none; position: relative; }
i.rd.chk::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; background: var(--blue); }
i.dot, .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.lnk { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--blue); font: inherit; font-weight: 600; text-decoration: underline; }
.rem { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mut); margin: 4px 0 0; text-align: left; } .rem input { width: auto; }
.pr { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .pr .trk { flex: 1; } .pr b { font-size: 12px; color: var(--mut); width: 34px; text-align: right; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 130px; overflow-x: auto; padding-top: 6px; }
.cg { flex: 1; min-width: 14px; max-width: 44px; display: flex; flex-direction: column; align-items: center; height: 100%; }
.cb { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 1px; } .cb i { display: block; width: 45%; min-height: 2px; border-radius: 3px 3px 0 0; }
.cg span { font-size: 9px; color: var(--mut); margin-top: 3px; }
.evs { position: relative; }
.ev { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14px; align-items: flex-start; }
.ev .tm { width: 40px; font-size: 12px; color: var(--mut); padding-top: 6px; flex: none; }
.ev .nic.sm { margin-top: 0; }

/* telefon comun: tura activă + predare */
.shiftb { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-left: 5px solid var(--blue); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(20,33,61,.05); }
.shiftb .pass { background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; border-radius: 10px; padding: 10px 14px; white-space: nowrap; }
.chks { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; } .chk input { width: auto; }

.btn.delu { background: #fff; color: #e03131; border: 1px solid #f1b4b4; margin-top: 8px; }
