operations-schedule.component.scss 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. :host {
  2. --schedule-green: #176c55;
  3. --schedule-green-soft: #eaf5f1;
  4. --schedule-border: #dce6e2;
  5. --schedule-text-muted: #6f7e79;
  6. }
  7. .page-header {
  8. display: flex;
  9. align-items: flex-end;
  10. justify-content: space-between;
  11. gap: 18px;
  12. }
  13. .page-header h1 {
  14. margin: 8px 0 10px;
  15. }
  16. .page-header span {
  17. color: var(--schedule-text-muted);
  18. }
  19. .page-header button,
  20. .toolbar > button,
  21. .drawer footer button {
  22. display: inline-flex;
  23. align-items: center;
  24. justify-content: center;
  25. gap: 7px;
  26. min-height: 42px;
  27. padding: 9px 15px;
  28. border: 1px solid var(--schedule-border);
  29. border-radius: 12px;
  30. background: #fff;
  31. color: #33463f;
  32. font-weight: 700;
  33. transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  34. }
  35. .page-header button:hover,
  36. .toolbar > button:hover,
  37. .drawer footer button:hover {
  38. border-color: #9db8ae;
  39. box-shadow: 0 6px 16px rgba(29, 73, 58, .09);
  40. transform: translateY(-1px);
  41. }
  42. button:focus-visible,
  43. input:focus-visible,
  44. select:focus-visible,
  45. textarea:focus-visible {
  46. outline: 3px solid rgba(31, 130, 98, .2);
  47. outline-offset: 2px;
  48. }
  49. .toolbar input,
  50. .toolbar select,
  51. .drawer input,
  52. .drawer select,
  53. .drawer textarea {
  54. border-radius: 12px;
  55. }
  56. .toolbar > button,
  57. .toolbar label input,
  58. .toolbar label select,
  59. .toolbar .segmented {
  60. box-sizing: border-box;
  61. height: 44px;
  62. min-height: 44px;
  63. }
  64. .toolbar .segmented {
  65. flex: 0 0 auto;
  66. align-items: stretch;
  67. }
  68. .toolbar .segmented button {
  69. min-height: 36px;
  70. }
  71. .toolbar .coach-filter {
  72. flex: 0 1 360px;
  73. width: 360px;
  74. min-width: 260px;
  75. max-width: 360px;
  76. }
  77. .toolbar .coach-filter select {
  78. width: 100%;
  79. }
  80. .toolbar .latest-data {
  81. flex: 0 0 auto;
  82. margin-left: auto;
  83. white-space: nowrap;
  84. }
  85. @media (min-width: 1001px) {
  86. .toolbar > .segmented {
  87. width: 210px;
  88. }
  89. .toolbar > .segmented button {
  90. flex: 1 1 0;
  91. padding-inline: 14px;
  92. white-space: nowrap;
  93. }
  94. .toolbar .date-filter {
  95. flex: 0 0 220px;
  96. width: 220px;
  97. }
  98. .toolbar .date-filter input {
  99. width: 100%;
  100. }
  101. }
  102. .toolbar .segmented,
  103. .drawer > .segmented {
  104. border-radius: 13px;
  105. }
  106. .toolbar .segmented button,
  107. .drawer > .segmented button {
  108. border-radius: 10px;
  109. }
  110. .summary-grid {
  111. grid-template-columns: repeat(5, minmax(0, 1fr));
  112. }
  113. .calendar {
  114. gap: 8px;
  115. }
  116. .calendar-row {
  117. min-height: 74px;
  118. overflow: hidden;
  119. border-radius: 14px;
  120. transition: border-color .18s ease, box-shadow .18s ease;
  121. }
  122. .calendar-row:hover {
  123. border-color: #c5d8d1;
  124. box-shadow: 0 5px 14px rgba(34, 71, 59, .06);
  125. }
  126. .coach-label {
  127. padding: 11px 14px;
  128. }
  129. .appointment-strip {
  130. min-height: 72px;
  131. padding: 8px 10px;
  132. }
  133. .appointment {
  134. min-width: 220px;
  135. border: 1px solid #d7ebe4;
  136. border-left: 4px solid #2a8b6d;
  137. border-radius: 12px;
  138. text-align: left;
  139. }
  140. .schedule-content-header {
  141. flex-wrap: wrap;
  142. gap: 12px 20px;
  143. }
  144. .schedule-content-header > div:first-child {
  145. display: grid;
  146. gap: 4px;
  147. }
  148. .schedule-content-header > div:first-child span {
  149. color: var(--schedule-text-muted);
  150. font-size: 12px;
  151. }
  152. .status-legend {
  153. display: flex;
  154. flex-wrap: wrap;
  155. justify-content: flex-end;
  156. gap: 7px 12px;
  157. }
  158. .status-legend > span {
  159. display: inline-flex;
  160. align-items: center;
  161. gap: 5px;
  162. color: #5f6f69;
  163. font-size: 11px;
  164. font-weight: 700;
  165. white-space: nowrap;
  166. }
  167. .status-legend i {
  168. width: 9px;
  169. height: 9px;
  170. border-radius: 999px;
  171. background: var(--status-color);
  172. box-shadow: 0 0 0 3px var(--status-bg);
  173. }
  174. .status-upcoming {
  175. --status-color: #2563eb;
  176. --status-bg: #eff6ff;
  177. --status-border: #bfdbfe;
  178. }
  179. .status-live {
  180. --status-color: #15803d;
  181. --status-bg: #ecfdf3;
  182. --status-border: #bbf7d0;
  183. }
  184. .status-coach-ended {
  185. --status-color: #7c3aed;
  186. --status-bg: #f5f3ff;
  187. --status-border: #ddd6fe;
  188. }
  189. .status-confirmed {
  190. --status-color: #0f766e;
  191. --status-bg: #f0fdfa;
  192. --status-border: #99f6e4;
  193. }
  194. .status-completed {
  195. --status-color: #64748b;
  196. --status-bg: #f8fafc;
  197. --status-border: #dbe3ec;
  198. }
  199. .status-overdue {
  200. --status-color: #dc2626;
  201. --status-bg: #fff1f2;
  202. --status-border: #fecdd3;
  203. }
  204. .status-cancelled {
  205. --status-color: #c2410c;
  206. --status-bg: #fff7ed;
  207. --status-border: #fed7aa;
  208. }
  209. .status-neutral {
  210. --status-color: #64748b;
  211. --status-bg: #f8fafc;
  212. --status-border: #e2e8f0;
  213. }
  214. .appointment.status-upcoming,
  215. .appointment.status-live,
  216. .appointment.status-coach-ended,
  217. .appointment.status-confirmed,
  218. .appointment.status-completed,
  219. .appointment.status-overdue,
  220. .appointment.status-cancelled,
  221. .appointment.status-neutral {
  222. border-color: var(--status-border);
  223. border-left-color: var(--status-color);
  224. background: var(--status-bg);
  225. }
  226. .appointment.status-overdue strong,
  227. .appointment.status-overdue small,
  228. .appointment.status-cancelled strong,
  229. .appointment.status-cancelled small {
  230. color: var(--status-color);
  231. }
  232. .status-badge {
  233. border: 1px solid var(--status-border);
  234. background: var(--status-bg);
  235. color: var(--status-color);
  236. }
  237. .drawer {
  238. width: min(720px, 100%);
  239. padding: 28px 30px;
  240. border-radius: 24px 0 0 24px;
  241. background: #f8fbfa;
  242. }
  243. .drawer header {
  244. align-items: flex-start;
  245. }
  246. .drawer header p {
  247. margin: 0 0 6px;
  248. color: #6e7d78;
  249. letter-spacing: .12em;
  250. }
  251. .drawer header h2 {
  252. margin: 0 0 7px;
  253. }
  254. .drawer header span {
  255. color: var(--schedule-text-muted);
  256. font-size: 13px;
  257. }
  258. .drawer .icon-button {
  259. display: inline-grid;
  260. place-items: center;
  261. width: 40px;
  262. height: 40px;
  263. border: 1px solid var(--schedule-border);
  264. border-radius: 12px;
  265. background: #fff;
  266. color: #4f625b;
  267. }
  268. .drawer > .segmented {
  269. margin-bottom: 20px;
  270. padding: 4px;
  271. }
  272. .drawer > .segmented button {
  273. flex: 1;
  274. min-height: 38px;
  275. font-weight: 700;
  276. }
  277. .form-grid {
  278. gap: 17px 14px;
  279. }
  280. .form-grid label > span:first-child {
  281. display: flex;
  282. align-items: center;
  283. justify-content: space-between;
  284. gap: 8px;
  285. }
  286. .form-grid label > span:first-child small {
  287. color: #8a9792;
  288. font-size: 10px;
  289. font-weight: 500;
  290. }
  291. .search-field {
  292. position: relative;
  293. z-index: 1;
  294. }
  295. .search-field:focus-within {
  296. z-index: 12;
  297. }
  298. .search-control {
  299. position: relative;
  300. display: flex !important;
  301. align-items: center !important;
  302. min-height: 46px;
  303. border: 1px solid var(--schedule-border);
  304. border-radius: 13px;
  305. background: #fff;
  306. color: #87948f;
  307. transition: border-color .18s ease, box-shadow .18s ease;
  308. }
  309. .search-control:focus-within {
  310. border-color: #6fa992;
  311. box-shadow: 0 0 0 4px rgba(34, 126, 96, .1);
  312. }
  313. .search-control.selected {
  314. border-color: #9fc9ba;
  315. background: #fbfefd;
  316. }
  317. .search-control > lucide-icon {
  318. position: absolute;
  319. left: 13px;
  320. display: inline-flex;
  321. pointer-events: none;
  322. }
  323. .search-control input {
  324. width: 100%;
  325. min-height: 44px;
  326. padding: 10px 42px 10px 40px;
  327. border: 0;
  328. border-radius: 13px;
  329. background: transparent;
  330. color: #23372f;
  331. }
  332. .search-control input:focus-visible {
  333. outline: 0;
  334. }
  335. .selected-mark {
  336. position: absolute;
  337. right: 12px;
  338. display: inline-flex !important;
  339. color: var(--schedule-green);
  340. }
  341. .search-results {
  342. position: absolute;
  343. z-index: 20;
  344. top: calc(100% + 7px);
  345. right: 0;
  346. left: 0;
  347. display: grid;
  348. max-height: 310px;
  349. padding: 7px;
  350. overflow: auto;
  351. border: 1px solid #d9e5e0;
  352. border-radius: 14px;
  353. background: #fff;
  354. box-shadow: 0 18px 46px rgba(24, 57, 46, .17);
  355. }
  356. .search-option {
  357. display: flex;
  358. align-items: center;
  359. justify-content: space-between;
  360. gap: 12px;
  361. width: 100%;
  362. min-height: 54px;
  363. padding: 9px 11px;
  364. border: 0;
  365. border-radius: 10px;
  366. background: #fff;
  367. color: #2c3f38;
  368. text-align: left;
  369. }
  370. .search-option:hover,
  371. .search-option:focus-visible,
  372. .search-option[aria-selected='true'] {
  373. background: var(--schedule-green-soft);
  374. }
  375. .search-option span,
  376. .search-option strong,
  377. .search-option small {
  378. display: block;
  379. }
  380. .search-option small {
  381. margin-top: 4px;
  382. color: #82908b;
  383. font-size: 11px;
  384. }
  385. .search-option em {
  386. flex: none;
  387. padding: 4px 8px;
  388. border-radius: 999px;
  389. background: #eff5f2;
  390. color: #60736c;
  391. font-size: 10px;
  392. font-style: normal;
  393. }
  394. .muted-option {
  395. border-bottom: 1px solid #edf1ef;
  396. }
  397. .search-empty {
  398. display: grid;
  399. min-height: 72px;
  400. place-items: center;
  401. color: #7c8a85;
  402. font-size: 12px;
  403. text-align: center;
  404. }
  405. .drawer footer {
  406. padding-top: 18px;
  407. border-top: 1px solid #e5ece9;
  408. }
  409. @media (max-width: 1300px) {
  410. .summary-grid {
  411. grid-template-columns: repeat(3, minmax(0, 1fr));
  412. }
  413. .toolbar .coach-filter {
  414. flex: 1 1 280px;
  415. width: auto;
  416. max-width: 340px;
  417. }
  418. }
  419. @media (max-width: 700px) {
  420. .page-header {
  421. align-items: flex-start;
  422. }
  423. .drawer {
  424. padding: 22px 18px;
  425. border-radius: 0;
  426. }
  427. .summary-grid {
  428. grid-template-columns: 1fr;
  429. }
  430. .toolbar .coach-filter {
  431. flex-basis: 100%;
  432. width: 100%;
  433. max-width: none;
  434. }
  435. .toolbar .latest-data {
  436. margin-left: 0;
  437. }
  438. }