app.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. // Fonts
  2. //@import url('https://fonts.bunny.net/css?family=Nunito');
  3. // Variables
  4. @import 'variables';
  5. // Bootstrap
  6. @import 'bootstrap/scss/bootstrap';
  7. @import "bootstrap-icons/font/bootstrap-icons.css";
  8. .invalid-feedback {
  9. display: block !important;
  10. }
  11. .nav-link.active {
  12. font-weight: bold;
  13. }
  14. td p {
  15. margin-bottom: 0;
  16. }
  17. .alerts{
  18. position: absolute;
  19. right: 0;
  20. top: 0;
  21. opacity: 0.95;
  22. z-index: 999;
  23. div {
  24. padding-left: 3rem;
  25. padding-right: 3rem;
  26. }
  27. }
  28. .table-buttons {
  29. position: fixed;
  30. right: 0;
  31. opacity: 0.7;
  32. z-index: 999;
  33. }
  34. .table-buttons:hover {
  35. opacity: 1;
  36. }
  37. .js-main-table-scroll {
  38. overflow: auto;
  39. position: relative;
  40. z-index: 20;
  41. }
  42. .js-main-table-scroll:has(.dropdown-menu.show) {
  43. overflow: visible;
  44. }
  45. .js-main-table-scroll .table {
  46. margin-bottom: 0;
  47. }
  48. .js-main-table-scroll thead th {
  49. position: sticky;
  50. top: 0;
  51. z-index: 3;
  52. background-color: var(--bs-primary-bg-subtle);
  53. }
  54. .js-main-table-scroll .table-head-shadow th {
  55. box-shadow: 0 8px 14px -10px rgba(0, 0, 0, 0.35);
  56. }
  57. .js-main-table-scroll thead th:has(.dropdown-menu.show) {
  58. z-index: 10;
  59. }
  60. .js-main-table-scroll thead th .dropdown-menu {
  61. z-index: 1080;
  62. }
  63. .js-subtable-scroll {
  64. overflow: auto;
  65. }
  66. .js-subtable-scroll .table {
  67. margin-bottom: 0;
  68. }
  69. .js-subtable-scroll thead th {
  70. position: sticky;
  71. top: 0;
  72. z-index: 2;
  73. background-color: var(--bs-primary-bg-subtle);
  74. }
  75. .table {
  76. tr th {
  77. background-color: var(--bs-primary-bg-subtle);
  78. vertical-align: middle;
  79. }
  80. td {
  81. cursor: pointer;
  82. }
  83. th {
  84. border-right: 1px solid #d7d7d7;
  85. }
  86. font-size: 0.8rem;
  87. }
  88. .table-interactive tbody tr {
  89. transition: background-color 0.12s ease-in-out;
  90. }
  91. .table-interactive tbody tr:hover > td {
  92. background-color: #f2f7ff;
  93. }
  94. .table-interactive tbody tr.is-selected > td {
  95. background-color: #dbe7ff;
  96. }
  97. .table-interactive tbody tr.is-selected:hover > td {
  98. background-color: #cfe0ff;
  99. }
  100. .maf:hover {
  101. background-color: #fff8ca;
  102. }
  103. .quantity {
  104. padding: 3px;
  105. }
  106. .pagination .text-muted {
  107. padding-right: 1rem;
  108. }
  109. .table-pagination-row {
  110. padding-top: 0.25rem !important;
  111. padding-bottom: 0.25rem !important;
  112. background-color: var(--bs-body-bg);
  113. box-shadow: 0 -8px 14px -10px rgba(0, 0, 0, 0.35);
  114. position: relative;
  115. z-index: 1;
  116. }
  117. .table-pagination-row .pagination {
  118. margin-bottom: 0;
  119. }
  120. .table-pagination-row .pagination .page-link {
  121. padding: 0.2rem 0.45rem;
  122. }
  123. .table-pagination-row .col-form-label {
  124. margin-bottom: 0;
  125. padding-top: 0.15rem;
  126. padding-bottom: 0.15rem;
  127. }
  128. .cursor-pointer {
  129. cursor: pointer;
  130. }
  131. .highlight {
  132. background-color: yellow;
  133. }
  134. .rm-but {
  135. position: absolute;
  136. margin-left: -18px;
  137. margin-top: 1px;
  138. }
  139. .maf-img {
  140. max-height: 100px;
  141. max-width: 100px;
  142. }
  143. .vertical {
  144. writing-mode: sideways-lr;
  145. vertical-align: middle;
  146. text-align: center;
  147. }
  148. .vertical th{
  149. writing-mode: sideways-lr;
  150. vertical-align: middle;
  151. text-align: center;
  152. }
  153. .svod tr {
  154. text-align: center;
  155. }
  156. .svod-6, .svod-7 {
  157. background-color: #86b7fe !important;
  158. }
  159. .svod-8, .svod-9 {
  160. background-color: #fec886 !important;
  161. }
  162. .svod-10, .svod-11 {
  163. background-color: #ccffd8 !important;
  164. }
  165. .svod-12, .svod-13 {
  166. background-color: #54ab4e !important;
  167. }
  168. .svod-14, .svod-15 {
  169. background-color: #effc76 !important;
  170. }
  171. .svod-20, .svod-21, .svod-16, .svod-17, .svod-18, .svod-19{
  172. background-color: #c4c4c4 !important;
  173. }
  174. .svod-26, .svod-27, .svod-22, .svod-23, .svod-24, .svod-25{
  175. background-color: #a4f7ff !important;
  176. }
  177. .svod-32, .svod-33, .svod-28, .svod-29, .svod-30, .svod-31{
  178. background-color: #ffc0c0 !important;
  179. }
  180. // Markdown content styles
  181. .markdown-content {
  182. scroll-behavior: smooth;
  183. h1, h2, h3, h4, h5, h6 {
  184. margin-top: 1.5rem;
  185. margin-bottom: 0.75rem;
  186. scroll-margin-top: 1rem;
  187. }
  188. h1 { font-size: 1.75rem; }
  189. h2 { font-size: 1.5rem; border-bottom: 1px solid #dee2e6; padding-bottom: 0.5rem; }
  190. h3 { font-size: 1.25rem; }
  191. h4 { font-size: 1.1rem; }
  192. table {
  193. width: 100%;
  194. margin-bottom: 1rem;
  195. border-collapse: collapse;
  196. th, td {
  197. padding: 0.5rem;
  198. border: 1px solid #dee2e6;
  199. cursor: default;
  200. }
  201. th {
  202. background-color: var(--bs-primary-bg-subtle);
  203. }
  204. }
  205. pre {
  206. background-color: #f8f9fa;
  207. padding: 1rem;
  208. border-radius: 0.25rem;
  209. overflow-x: auto;
  210. code {
  211. color: inherit;
  212. }
  213. }
  214. code {
  215. color: #d63384;
  216. background-color: #f8f9fa;
  217. padding: 0.2rem 0.4rem;
  218. border-radius: 0.25rem;
  219. }
  220. hr {
  221. margin: 2rem 0;
  222. border-top: 1px solid #dee2e6;
  223. }
  224. ul, ol {
  225. padding-left: 1.5rem;
  226. margin-bottom: 1rem;
  227. }
  228. blockquote {
  229. border-left: 4px solid #dee2e6;
  230. padding-left: 1rem;
  231. color: #6c757d;
  232. margin: 1rem 0;
  233. }
  234. }
  235. .is-hidden {
  236. display: none;
  237. }
  238. .max-h-50vh {
  239. max-height: 50vh;
  240. }
  241. .table-initial-hidden {
  242. display: none;
  243. min-height: 380px;
  244. }
  245. .img-max-40 {
  246. max-height: 40px;
  247. }
  248. .img-max-50 {
  249. max-width: 50px;
  250. }
  251. .img-max-150 {
  252. max-width: 150px;
  253. }
  254. .img-max-200 {
  255. max-width: 200px;
  256. }
  257. .color-input {
  258. height: 32px;
  259. }
  260. .week-number-input {
  261. width: 3rem;
  262. }
  263. .filter-menu-compact {
  264. width: 170px;
  265. }
  266. .filter-menu-wide {
  267. width: 300px;
  268. }
  269. .filter-list-scroll {
  270. max-height: 200px;
  271. overflow-y: scroll;
  272. }
  273. .tooltip-help {
  274. cursor: help;
  275. text-decoration: underline dotted;
  276. }
  277. .autocomplete-dropdown {
  278. position: absolute;
  279. top: 100%;
  280. left: 0;
  281. right: 0;
  282. z-index: 1050;
  283. background: white;
  284. border: 1px solid #dee2e6;
  285. border-top: none;
  286. border-radius: 0 0 0.375rem 0.375rem;
  287. max-height: 250px;
  288. overflow-y: auto;
  289. display: none;
  290. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  291. }
  292. .autocomplete-dropdown.autocomplete-dropdown--order {
  293. max-height: 300px;
  294. }
  295. .autocomplete-dropdown .autocomplete-item {
  296. padding: 8px 12px;
  297. cursor: pointer;
  298. border-bottom: 1px solid #f0f0f0;
  299. }
  300. .autocomplete-dropdown.autocomplete-dropdown--order .autocomplete-item {
  301. padding: 10px 12px;
  302. }
  303. .autocomplete-dropdown .autocomplete-item:last-child {
  304. border-bottom: none;
  305. }
  306. .autocomplete-dropdown .autocomplete-item:hover,
  307. .autocomplete-dropdown .autocomplete-item.active {
  308. background-color: #e9ecef;
  309. }
  310. .autocomplete-dropdown .autocomplete-item .code,
  311. .autocomplete-dropdown .autocomplete-item .article {
  312. font-weight: 600;
  313. color: #495057;
  314. }
  315. .autocomplete-dropdown .autocomplete-item .description,
  316. .autocomplete-dropdown .autocomplete-item .used-in-maf {
  317. font-size: 0.875em;
  318. color: #6c757d;
  319. }
  320. .spare-part-dropdown {
  321. position: absolute;
  322. top: 100%;
  323. left: 0;
  324. right: 0;
  325. z-index: 1050;
  326. background: white;
  327. border: 1px solid #dee2e6;
  328. border-top: none;
  329. border-radius: 0 0 0.375rem 0.375rem;
  330. max-height: 250px;
  331. overflow-y: auto;
  332. display: none;
  333. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  334. }
  335. .spare-part-dropdown .sp-item {
  336. padding: 8px 12px;
  337. cursor: pointer;
  338. border-bottom: 1px solid #f0f0f0;
  339. }
  340. .spare-part-dropdown .sp-item:last-child {
  341. border-bottom: none;
  342. }
  343. .spare-part-dropdown .sp-item:hover,
  344. .spare-part-dropdown .sp-item.active {
  345. background-color: #e9ecef;
  346. }
  347. .spare-part-dropdown .sp-item .sp-article {
  348. font-weight: 600;
  349. color: #495057;
  350. }
  351. .spare-part-dropdown .sp-item .sp-used {
  352. font-size: 0.875em;
  353. color: #6c757d;
  354. }
  355. .action-toolbar {
  356. display: flex;
  357. flex-wrap: wrap;
  358. gap: 0.25rem;
  359. justify-content: flex-end;
  360. align-items: flex-start;
  361. }
  362. .report-tabs {
  363. flex-wrap: nowrap;
  364. overflow-x: auto;
  365. overflow-y: hidden;
  366. -webkit-overflow-scrolling: touch;
  367. }
  368. .report-tabs .nav-link {
  369. white-space: nowrap;
  370. }
  371. .report-tab-content {
  372. padding: 0.75rem;
  373. }
  374. .schedule-week-controls {
  375. display: flex;
  376. flex-wrap: wrap;
  377. justify-content: flex-end;
  378. gap: 0.5rem;
  379. }
  380. .schedule-week-controls > div {
  381. padding: 0 !important;
  382. }
  383. @media (min-width: 768px) {
  384. .report-tab-content {
  385. padding: 3rem;
  386. }
  387. }
  388. @media (max-width: 767.98px) {
  389. .alerts {
  390. position: fixed;
  391. left: 0;
  392. right: 0;
  393. top: 0;
  394. padding: 0.5rem;
  395. }
  396. .alerts div {
  397. padding-left: 1rem;
  398. padding-right: 1rem;
  399. }
  400. .table-buttons {
  401. position: sticky;
  402. bottom: 0;
  403. right: auto;
  404. width: 100%;
  405. display: flex !important;
  406. flex-direction: row !important;
  407. justify-content: space-around;
  408. opacity: 0.96;
  409. border-radius: 0.375rem 0.375rem 0 0 !important;
  410. }
  411. .js-main-table-scroll {
  412. padding-bottom: 2.75rem;
  413. }
  414. .table {
  415. font-size: 0.875rem;
  416. }
  417. .vertical,
  418. .vertical th {
  419. writing-mode: horizontal-tb;
  420. }
  421. .filter-menu-wide {
  422. width: min(95vw, 320px);
  423. }
  424. .filter-sort-controls {
  425. width: 100% !important;
  426. flex-direction: column;
  427. gap: 0.5rem;
  428. }
  429. .filter-menu-wide [id^="bulk-toggle_"],
  430. .filter-menu-wide [id^="modal-footer_"] {
  431. flex-direction: column;
  432. gap: 0.5rem;
  433. }
  434. .filter-menu-wide .btn.w-50,
  435. .filter-menu-wide .btn.w-100 {
  436. width: 100% !important;
  437. }
  438. .table-pagination-row {
  439. row-gap: 0.5rem;
  440. }
  441. .schedule-week-controls {
  442. justify-content: flex-start;
  443. }
  444. .action-toolbar {
  445. justify-content: flex-start;
  446. }
  447. }
  448. .notification-bell-link {
  449. position: relative;
  450. }
  451. .notification-badge-dot {
  452. position: absolute;
  453. top: -2px;
  454. right: -2px;
  455. width: 9px;
  456. height: 9px;
  457. border-radius: 50%;
  458. background: #dc3545;
  459. }
  460. .notifications-list {
  461. display: flex;
  462. flex-direction: column;
  463. gap: 8px;
  464. }
  465. .notification-item {
  466. border: 1px solid #ddd;
  467. border-radius: 8px;
  468. padding: 10px 12px;
  469. cursor: pointer;
  470. }
  471. .notification-unread {
  472. background: #fce7ea;
  473. cursor: pointer;
  474. }
  475. .notification-read-platform {
  476. background: #e7f1ff;
  477. }
  478. .notification-read-reclamation {
  479. background: #e9f8ef;
  480. }
  481. .notification-read-schedule {
  482. background: #fff4e6;
  483. }
  484. .ws-notification-container {
  485. position: fixed;
  486. right: 16px;
  487. bottom: 16px;
  488. z-index: 2000;
  489. display: flex;
  490. flex-direction: column;
  491. gap: 10px;
  492. width: min(360px, calc(100vw - 24px));
  493. }
  494. .ws-notification-popup {
  495. border: 1px solid #d8d8d8;
  496. border-radius: 8px;
  497. background: #fff;
  498. box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  499. padding: 10px;
  500. }
  501. .ws-notification-header {
  502. display: flex;
  503. justify-content: space-between;
  504. align-items: center;
  505. gap: 8px;
  506. margin-bottom: 6px;
  507. }
  508. .ws-notification-body {
  509. font-size: 14px;
  510. }
  511. @media (max-width: 767.98px) {
  512. .notification-bell-link {
  513. display: inline-flex !important;
  514. margin-left: auto;
  515. }
  516. }
  517. // Chat component styles (from partials/chat.blade.php)
  518. .chat-block {
  519. --chat-height: 420px;
  520. }
  521. .chat-card {
  522. border: 1px solid var(--bs-border-color);
  523. border-radius: 0.75rem;
  524. background: var(--bs-light-bg-subtle, #f8f9fa);
  525. }
  526. .chat-messages-wrap {
  527. position: relative;
  528. padding: 0.75rem;
  529. }
  530. .chat-messages {
  531. max-height: var(--chat-height);
  532. overflow-y: auto;
  533. padding-right: 0.35rem;
  534. scroll-behavior: smooth;
  535. }
  536. .chat-message {
  537. border: 1px solid rgba(0, 0, 0, 0.08);
  538. border-radius: 0.75rem;
  539. background: #fff;
  540. padding: 0.75rem 0.875rem;
  541. margin-bottom: 0.625rem;
  542. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  543. }
  544. .chat-message:last-child {
  545. margin-bottom: 0;
  546. }
  547. .chat-message-header {
  548. display: flex;
  549. justify-content: space-between;
  550. gap: 0.75rem;
  551. flex-wrap: wrap;
  552. font-size: 0.875rem;
  553. }
  554. .chat-message-text {
  555. margin-top: 0.5rem;
  556. white-space: pre-wrap;
  557. line-height: 1.35;
  558. }
  559. .chat-message-files {
  560. margin-top: 0.625rem;
  561. display: flex;
  562. flex-wrap: wrap;
  563. gap: 0.5rem;
  564. }
  565. .chat-message-files img {
  566. width: 84px;
  567. height: 84px;
  568. object-fit: cover;
  569. }
  570. .chat-scroll-bottom {
  571. position: absolute;
  572. right: 1rem;
  573. bottom: 1rem;
  574. z-index: 2;
  575. border-radius: 999px;
  576. box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.18);
  577. }
  578. .chat-recipient-list {
  579. max-height: 320px;
  580. overflow-y: auto;
  581. border: 1px solid var(--bs-border-color);
  582. border-radius: 0.5rem;
  583. padding: 0.5rem 0.75rem;
  584. }
  585. .chat-recipient-item[hidden] {
  586. display: none !important;
  587. }
  588. .chat-recipient-summary {
  589. min-height: 1.25rem;
  590. }
  591. // Schedule calendar styles (from schedule/index.blade.php)
  592. .schedule-month {
  593. table-layout: fixed;
  594. }
  595. .schedule-day {
  596. height: 110px;
  597. vertical-align: top;
  598. position: relative;
  599. }
  600. .schedule-day-link {
  601. display: inline-block;
  602. font-weight: 600;
  603. text-decoration: none;
  604. color: #0d6efd;
  605. }
  606. .schedule-dots {
  607. margin-top: 6px;
  608. display: flex;
  609. flex-wrap: wrap;
  610. gap: 4px;
  611. }
  612. .schedule-dot {
  613. width: 12px;
  614. height: 12px;
  615. border-radius: 50%;
  616. display: inline-block;
  617. border: 1px solid rgba(0, 0, 0, 0.1);
  618. }
  619. .schedule-outside {
  620. background: #f8f9fa;
  621. color: #9aa0a6;
  622. }
  623. .schedule-today {
  624. outline: 2px solid rgba(13, 110, 253, 0.5);
  625. outline-offset: -2px;
  626. }
  627. .schedule-legend-items {
  628. display: flex;
  629. flex-wrap: wrap;
  630. gap: 10px 16px;
  631. align-items: center;
  632. }
  633. .schedule-legend-item {
  634. display: inline-flex;
  635. align-items: center;
  636. gap: 6px;
  637. font-size: 0.9rem;
  638. }
  639. .schedule-legend-name {
  640. white-space: nowrap;
  641. }
  642. // Table sortable header styles (from reports/index.blade.php)
  643. .sortable-header {
  644. cursor: pointer;
  645. user-select: none;
  646. }
  647. // Notification settings table (from partials/notification-settings-table.blade.php)
  648. .section-header-row {
  649. background-color: #d4edda;
  650. }