m22tc_styles.scss 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866
  1. // ============================================================
  2. // M22 TECH CONSULTING - THEME STYLES
  3. // Futurismo Cálido + Glassmorphism
  4. // ============================================================
  5. //
  6. // CONTEXTOS VISUALES:
  7. // 1. Login/Auth: 100% Dark + Glassmorphism intenso
  8. // 2. Sidebar: Dark + Glassmorphism sutil
  9. // 3. Contenido Principal: Light + Glassmorphism elegante
  10. //
  11. // ============================================================
  12. // -------------------------------------------------------
  13. // VARIABLES
  14. // -------------------------------------------------------
  15. $m22-midnight: #0F111A;
  16. $m22-sidebar-dark: #1C1633;
  17. $m22-orange: #FF7C00;
  18. $m22-magenta: #E0407B;
  19. $m22-content-light: #F8F8F8;
  20. $m22-white: #FFFFFF;
  21. $m22-text-dark: #1A1A1A;
  22. $m22-text-muted: #6B7280;
  23. $m22-text-light: #A0A0A0;
  24. // -------------------------------------------------------
  25. // 0. EARLY INIT - Prevent sidebar flash on page load
  26. // -------------------------------------------------------
  27. // This class is applied to <html> by an inline script in <head>
  28. // before the page renders, preventing the visual flash when
  29. // restoring collapsed state from localStorage.
  30. html.m22-sidebar-collapsed-init {
  31. // Sidebar VISIBLE but in collapsed state - NO transitions
  32. .m22-sidebar {
  33. width: 72px !important;
  34. // Kill ALL transitions during init
  35. &, *, *::before, *::after {
  36. transition: none !important;
  37. animation: none !important;
  38. }
  39. // CRITICAL: Fix icon positions to prevent movement
  40. .nav-link {
  41. position: relative !important;
  42. justify-content: center !important;
  43. padding: 0.75rem !important;
  44. // Apply to both icon selectors to cover all cases
  45. i.sidebar-icon,
  46. .fa:first-child {
  47. position: relative !important;
  48. flex-shrink: 0 !important;
  49. width: 20px !important;
  50. min-width: 20px !important;
  51. text-align: center !important;
  52. margin: 0 !important;
  53. }
  54. }
  55. // Also fix nav container padding to match collapsed state
  56. .sidebar-nav {
  57. padding: 1rem 0.5rem !important;
  58. }
  59. // Fix header padding and alignment
  60. .sidebar-header {
  61. padding: 0.75rem !important;
  62. justify-content: center !important;
  63. }
  64. // Hide logo when collapsed (same as normal collapsed state)
  65. .sidebar-logo {
  66. display: none !important;
  67. }
  68. // Center collapse button
  69. .sidebar-collapse-btn {
  70. margin: 0 auto !important;
  71. }
  72. // Fix footer padding
  73. .sidebar-footer {
  74. padding: 0.5rem !important;
  75. }
  76. // Fix user info when collapsed
  77. .sidebar-user-info {
  78. justify-content: center !important;
  79. padding: 0.5rem !important;
  80. }
  81. // Fix logout button when collapsed
  82. .sidebar-logout {
  83. padding: 0.625rem !important;
  84. }
  85. // Hide text elements - use absolute to remove from flow
  86. .sidebar-text,
  87. .sidebar-title,
  88. .sidebar-logo-text {
  89. opacity: 0 !important;
  90. visibility: hidden !important;
  91. width: 0 !important;
  92. position: absolute !important;
  93. left: -9999px !important; // Move off-screen to prevent layout shift
  94. }
  95. // SMART: Hide the original icon, show correct one via CSS
  96. .sidebar-collapse-btn {
  97. position: relative !important;
  98. i {
  99. // Hide original icon content
  100. visibility: hidden !important;
  101. position: relative;
  102. // Show chevron-right via ::after
  103. &::after {
  104. content: "\f054"; // fa-chevron-right
  105. font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome;
  106. font-weight: 900;
  107. visibility: visible !important;
  108. position: absolute;
  109. left: 0;
  110. top: 0;
  111. }
  112. }
  113. }
  114. }
  115. // Main content with correct margin - NO transitions
  116. #wrapwrap.o_has_m22_sidebar main.o_main_with_sidebar {
  117. margin-left: 72px !important;
  118. transition: none !important;
  119. }
  120. // When expanded (remove init class), allow normal behavior
  121. &:not(.m22-sidebar-collapsed-init) {
  122. .m22-sidebar {
  123. width: 260px !important;
  124. .sidebar-text,
  125. .sidebar-title,
  126. .sidebar-logo-text {
  127. opacity: 1 !important;
  128. visibility: visible !important;
  129. width: auto !important;
  130. position: static !important;
  131. left: auto !important;
  132. }
  133. }
  134. #wrapwrap.o_has_m22_sidebar main.o_main_with_sidebar {
  135. margin-left: 260px !important;
  136. }
  137. }
  138. // After JS initializes, enable transitions
  139. &.m22-sidebar-initialized {
  140. .m22-sidebar {
  141. transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  142. // Show original icon (JS already set the correct class)
  143. .sidebar-collapse-btn i {
  144. visibility: visible !important;
  145. &::after {
  146. display: none;
  147. }
  148. }
  149. // Enable transitions for children
  150. .sidebar-text,
  151. .sidebar-title,
  152. .sidebar-logo-text,
  153. .nav-link,
  154. .sidebar-footer {
  155. transition: opacity 0.2s ease, visibility 0.2s ease !important;
  156. }
  157. }
  158. #wrapwrap.o_has_m22_sidebar main.o_main_with_sidebar {
  159. transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  160. }
  161. }
  162. }
  163. // -------------------------------------------------------
  164. // 1. BASE STYLES (When M22 Theme is Active)
  165. // -------------------------------------------------------
  166. // Body base - Light background for content area
  167. // Note: Login pages have their own dark background via login_custom.xml
  168. #wrapwrap.o_has_m22_sidebar {
  169. background-color: $m22-content-light;
  170. // Subtle gradient texture for glassmorphism effect
  171. background-image:
  172. radial-gradient(ellipse 80% 50% at 10% 20%, rgba($m22-orange, 0.04), transparent 50%),
  173. radial-gradient(ellipse 80% 50% at 90% 80%, rgba($m22-magenta, 0.04), transparent 50%);
  174. background-attachment: fixed;
  175. min-height: 100vh;
  176. }
  177. // -------------------------------------------------------
  178. // 2. SIDEBAR - DARK GLASSMORPHISM
  179. // -------------------------------------------------------
  180. $sidebar-width-expanded: 260px;
  181. $sidebar-width-collapsed: 72px;
  182. $sidebar-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  183. .m22-sidebar {
  184. position: fixed;
  185. top: 0;
  186. left: 0;
  187. bottom: 0;
  188. width: $sidebar-width-expanded;
  189. height: 100vh;
  190. z-index: 100;
  191. // Dark Glassmorphism
  192. background: rgba($m22-midnight, 0.95);
  193. backdrop-filter: blur(20px);
  194. -webkit-backdrop-filter: blur(20px);
  195. border-right: 1px solid rgba(255, 255, 255, 0.08);
  196. box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  197. // Smooth width transition
  198. transition: width $sidebar-transition;
  199. // Prevent horizontal scroll - critical fix
  200. overflow: hidden;
  201. // Sidebar Header
  202. .sidebar-header {
  203. flex-shrink: 0;
  204. border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  205. min-height: 64px;
  206. display: flex;
  207. align-items: center;
  208. overflow: hidden;
  209. }
  210. // Logo area
  211. .sidebar-logo {
  212. display: flex;
  213. align-items: center;
  214. overflow: hidden;
  215. flex-shrink: 0;
  216. img {
  217. max-height: 32px;
  218. width: auto;
  219. flex-shrink: 0;
  220. transition: opacity $sidebar-transition;
  221. }
  222. }
  223. // Navigation container
  224. .sidebar-nav {
  225. flex: 1;
  226. overflow-y: auto;
  227. overflow-x: hidden;
  228. padding: 1rem 0.75rem;
  229. // Hide scrollbar when collapsed
  230. &::-webkit-scrollbar {
  231. width: 4px;
  232. }
  233. }
  234. // Nav Links - Base state
  235. .nav-link {
  236. display: flex;
  237. align-items: center;
  238. color: $m22-text-light;
  239. border-radius: 8px;
  240. padding: 0.75rem 1rem;
  241. margin-bottom: 4px;
  242. text-decoration: none;
  243. position: relative;
  244. overflow: hidden;
  245. transition:
  246. background $sidebar-transition,
  247. color 0.2s ease,
  248. padding $sidebar-transition;
  249. // Icon styling
  250. i.sidebar-icon,
  251. .fa:first-child {
  252. width: 20px;
  253. min-width: 20px;
  254. text-align: center;
  255. font-size: 1.1rem;
  256. flex-shrink: 0;
  257. transition: margin $sidebar-transition;
  258. }
  259. // Text styling
  260. .sidebar-text {
  261. margin-left: 12px;
  262. white-space: nowrap;
  263. overflow: hidden;
  264. text-overflow: ellipsis;
  265. transition:
  266. opacity 0.15s ease,
  267. visibility 0.15s ease,
  268. margin $sidebar-transition;
  269. }
  270. &:hover {
  271. color: $m22-white;
  272. background: rgba(255, 255, 255, 0.08);
  273. }
  274. &.active {
  275. background: linear-gradient(90deg, rgba($m22-orange, 0.15), rgba($m22-magenta, 0.1));
  276. color: $m22-orange;
  277. // Active indicator bar
  278. &::before {
  279. content: '';
  280. position: absolute;
  281. left: 0;
  282. top: 50%;
  283. transform: translateY(-50%);
  284. width: 3px;
  285. height: 60%;
  286. background: $m22-orange;
  287. border-radius: 0 2px 2px 0;
  288. }
  289. }
  290. }
  291. // Sidebar Footer
  292. .sidebar-footer {
  293. flex-shrink: 0;
  294. border-top: 1px solid rgba(255, 255, 255, 0.08);
  295. padding: 0.75rem;
  296. overflow: hidden;
  297. }
  298. // User info section
  299. .sidebar-user-info {
  300. display: flex;
  301. align-items: center;
  302. padding: 0.5rem;
  303. border-radius: 8px;
  304. margin-bottom: 0.5rem;
  305. overflow: hidden;
  306. transition: background 0.2s ease;
  307. &:hover {
  308. background: rgba(255, 255, 255, 0.05);
  309. }
  310. }
  311. // User Avatar
  312. .user-avatar {
  313. width: 36px;
  314. height: 36px;
  315. min-width: 36px;
  316. background: linear-gradient(135deg, $m22-orange, $m22-magenta);
  317. border-radius: 50%;
  318. display: flex;
  319. align-items: center;
  320. justify-content: center;
  321. color: $m22-white;
  322. font-size: 0.875rem;
  323. flex-shrink: 0;
  324. }
  325. // Collapse Button - Modern design
  326. .sidebar-collapse-btn {
  327. width: 32px;
  328. height: 32px;
  329. min-width: 32px;
  330. display: flex;
  331. align-items: center;
  332. justify-content: center;
  333. border-radius: 8px;
  334. background: rgba(255, 255, 255, 0.05);
  335. border: 1px solid rgba(255, 255, 255, 0.1);
  336. color: $m22-text-light;
  337. cursor: pointer;
  338. transition: all 0.2s ease;
  339. padding: 0;
  340. flex-shrink: 0;
  341. i {
  342. font-size: 0.875rem;
  343. transition: transform 0.3s ease;
  344. }
  345. &:hover {
  346. background: rgba(255, 255, 255, 0.1);
  347. border-color: rgba(255, 255, 255, 0.2);
  348. color: $m22-white;
  349. }
  350. &:active {
  351. transform: scale(0.95);
  352. }
  353. }
  354. // Logout Button
  355. .sidebar-logout {
  356. display: flex;
  357. align-items: center;
  358. justify-content: center;
  359. width: 100%;
  360. padding: 0.625rem 1rem;
  361. color: $m22-text-light;
  362. border: 1px solid rgba(255, 255, 255, 0.15);
  363. border-radius: 8px;
  364. background: transparent;
  365. text-decoration: none;
  366. font-size: 0.875rem;
  367. transition: all 0.2s ease;
  368. overflow: hidden;
  369. i {
  370. flex-shrink: 0;
  371. }
  372. &:hover {
  373. background: rgba(239, 68, 68, 0.15);
  374. border-color: rgba(239, 68, 68, 0.4);
  375. color: #EF4444;
  376. }
  377. }
  378. // =========================================
  379. // COLLAPSED STATE - Desktop Only
  380. // =========================================
  381. &[data-collapsed="true"] {
  382. width: $sidebar-width-collapsed;
  383. // Header adjustments
  384. .sidebar-header {
  385. padding: 0.75rem !important;
  386. justify-content: center;
  387. }
  388. // Hide logo when collapsed
  389. .sidebar-logo {
  390. display: none;
  391. }
  392. // Center collapse button
  393. .sidebar-collapse-btn {
  394. margin: 0 auto;
  395. }
  396. // Nav adjustments
  397. .sidebar-nav {
  398. padding: 1rem 0.5rem;
  399. }
  400. // Nav link adjustments
  401. .nav-link {
  402. justify-content: center;
  403. padding: 0.75rem;
  404. // Hide text
  405. .sidebar-text {
  406. opacity: 0;
  407. visibility: hidden;
  408. width: 0;
  409. margin-left: 0;
  410. position: absolute;
  411. }
  412. // Center icon
  413. i.sidebar-icon,
  414. .fa:first-child {
  415. margin: 0;
  416. }
  417. // Adjust active indicator for collapsed
  418. &.active::before {
  419. height: 40%;
  420. }
  421. // Tooltip on hover when collapsed
  422. &::after {
  423. content: attr(title);
  424. position: absolute;
  425. left: calc(100% + 12px);
  426. top: 50%;
  427. transform: translateY(-50%);
  428. background: rgba($m22-midnight, 0.95);
  429. backdrop-filter: blur(10px);
  430. color: $m22-white;
  431. padding: 0.5rem 0.75rem;
  432. border-radius: 6px;
  433. font-size: 0.8125rem;
  434. white-space: nowrap;
  435. opacity: 0;
  436. visibility: hidden;
  437. pointer-events: none;
  438. transition: opacity 0.2s ease, visibility 0.2s ease;
  439. z-index: 1000;
  440. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  441. border: 1px solid rgba(255, 255, 255, 0.1);
  442. }
  443. &:hover::after {
  444. opacity: 1;
  445. visibility: visible;
  446. }
  447. }
  448. // Footer adjustments
  449. .sidebar-footer {
  450. padding: 0.5rem;
  451. }
  452. // User info when collapsed
  453. .sidebar-user-info {
  454. justify-content: center;
  455. padding: 0.5rem;
  456. .sidebar-text {
  457. display: none;
  458. }
  459. }
  460. // Logout button when collapsed
  461. .sidebar-logout {
  462. padding: 0.625rem;
  463. .sidebar-text {
  464. display: none;
  465. }
  466. }
  467. }
  468. }
  469. // -------------------------------------------------------
  470. // 3. MAIN CONTENT AREA - LIGHT GLASSMORPHISM
  471. // -------------------------------------------------------
  472. #wrapwrap.o_has_m22_sidebar {
  473. main.o_main_with_sidebar {
  474. margin-left: $sidebar-width-expanded !important;
  475. min-height: 100vh;
  476. padding: 1.5rem 2rem;
  477. transition: margin-left $sidebar-transition;
  478. @media (max-width: 991px) {
  479. margin-left: 0 !important;
  480. padding: 1rem;
  481. padding-bottom: 80px; // Space for bottom nav
  482. }
  483. }
  484. }
  485. // Glassmorphism Cards (Light Mode)
  486. .m22-card,
  487. .card,
  488. #wrapwrap.o_has_m22_sidebar .card {
  489. background: rgba($m22-white, 0.75);
  490. backdrop-filter: blur(12px);
  491. -webkit-backdrop-filter: blur(12px);
  492. border: 1px solid rgba(0, 0, 0, 0.06);
  493. border-radius: 12px;
  494. box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  495. transition: all 0.3s ease;
  496. &:hover {
  497. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  498. border-color: rgba($m22-orange, 0.15);
  499. }
  500. }
  501. // -------------------------------------------------------
  502. // 4. TYPOGRAPHY - CONTEXT AWARE
  503. // -------------------------------------------------------
  504. // Light Context (Content Area)
  505. #wrapwrap.o_has_m22_sidebar {
  506. color: $m22-text-dark;
  507. h1, h2, h3, h4, h5, h6,
  508. .h1, .h2, .h3, .h4, .h5, .h6 {
  509. color: $m22-text-dark !important;
  510. font-family: 'Inter', sans-serif;
  511. font-weight: 700;
  512. }
  513. p, .text-muted {
  514. color: $m22-text-muted;
  515. }
  516. // Links
  517. a:not(.nav-link):not(.btn) {
  518. color: $m22-orange;
  519. text-decoration: none;
  520. transition: color 0.2s ease;
  521. &:hover {
  522. color: darken($m22-orange, 10%);
  523. }
  524. }
  525. }
  526. // Dark Context (Sidebar) - Already handled in .m22-sidebar
  527. // -------------------------------------------------------
  528. // 5. TABLES - LIGHT MODE GLASSMORPHISM
  529. // -------------------------------------------------------
  530. #wrapwrap.o_has_m22_sidebar {
  531. .table,
  532. .o_portal_my_doc_table,
  533. table {
  534. background: rgba($m22-white, 0.8);
  535. backdrop-filter: blur(8px);
  536. border-radius: 12px;
  537. overflow: hidden;
  538. border-collapse: separate;
  539. border-spacing: 0;
  540. thead {
  541. background: rgba($m22-content-light, 0.9);
  542. th {
  543. color: $m22-text-dark;
  544. font-weight: 600;
  545. font-size: 0.75rem;
  546. text-transform: uppercase;
  547. letter-spacing: 0.05em;
  548. padding: 1rem 1.5rem;
  549. border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  550. }
  551. }
  552. tbody {
  553. tr {
  554. transition: background 0.2s ease;
  555. &:hover {
  556. background: rgba($m22-orange, 0.04);
  557. }
  558. td {
  559. padding: 1rem 1.5rem;
  560. color: $m22-text-dark;
  561. border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  562. vertical-align: middle;
  563. }
  564. &:last-child td {
  565. border-bottom: none;
  566. }
  567. }
  568. }
  569. // Links in tables
  570. a {
  571. color: $m22-orange;
  572. font-weight: 500;
  573. &:hover {
  574. text-decoration: underline;
  575. }
  576. }
  577. }
  578. }
  579. // -------------------------------------------------------
  580. // 6. BADGES & STATUS INDICATORS
  581. // -------------------------------------------------------
  582. // Universal badge styling for light content backgrounds
  583. // Ensures all Bootstrap badges are visible with proper contrast
  584. .badge {
  585. font-weight: 500;
  586. padding: 0.35em 0.75em;
  587. border-radius: 9999px;
  588. font-size: 0.75rem;
  589. letter-spacing: 0.01em;
  590. }
  591. // Primary - Orange M22 style
  592. .badge-primary,
  593. .text-bg-primary {
  594. background: rgba($m22-orange, 0.15) !important;
  595. color: darken($m22-orange, 5%) !important;
  596. }
  597. // Secondary - Gray
  598. .badge-secondary,
  599. .text-bg-secondary {
  600. background: rgba(107, 114, 128, 0.15) !important;
  601. color: #4B5563 !important;
  602. }
  603. // Success - Green
  604. .badge-paid,
  605. .badge-success,
  606. .text-bg-success {
  607. background: rgba(34, 197, 94, 0.15) !important;
  608. color: #16A34A !important;
  609. }
  610. // Warning - Yellow/Amber
  611. .badge-pending,
  612. .badge-warning,
  613. .text-bg-warning {
  614. background: rgba(234, 179, 8, 0.15) !important;
  615. color: #CA8A04 !important;
  616. }
  617. // Danger - Red
  618. .badge-overdue,
  619. .badge-danger,
  620. .text-bg-danger {
  621. background: rgba(239, 68, 68, 0.15) !important;
  622. color: #DC2626 !important;
  623. }
  624. // Info - Cyan/Blue
  625. .badge-info,
  626. .text-bg-info {
  627. background: rgba(59, 130, 246, 0.15) !important;
  628. color: #2563EB !important;
  629. }
  630. // Light - Gray with dark text (CRITICAL for helpdesk stages)
  631. .badge-light,
  632. .text-bg-light,
  633. .bg-200 {
  634. background: rgba(0, 0, 0, 0.06) !important;
  635. color: $m22-text-dark !important;
  636. }
  637. // Dark - Dark bg with light text
  638. .badge-dark,
  639. .text-bg-dark {
  640. background: rgba($m22-midnight, 0.85) !important;
  641. color: $m22-white !important;
  642. }
  643. // -------------------------------------------------------
  644. // 7. BUTTONS - M22 STYLE
  645. // -------------------------------------------------------
  646. .btn-m22-primary,
  647. .btn-primary {
  648. background: linear-gradient(90deg, $m22-orange, $m22-magenta) !important;
  649. border: none !important;
  650. color: $m22-white !important;
  651. font-weight: 600;
  652. padding: 0.625rem 1.25rem;
  653. border-radius: 8px;
  654. box-shadow: 0 4px 12px rgba($m22-orange, 0.25);
  655. transition: all 0.3s ease;
  656. &:hover {
  657. transform: translateY(-1px);
  658. box-shadow: 0 6px 20px rgba($m22-orange, 0.35);
  659. opacity: 0.95;
  660. }
  661. &:active {
  662. transform: translateY(0);
  663. }
  664. }
  665. .btn-outline-primary {
  666. color: $m22-orange !important;
  667. border-color: $m22-orange !important;
  668. background: transparent !important;
  669. &:hover {
  670. background: rgba($m22-orange, 0.1) !important;
  671. }
  672. }
  673. // -------------------------------------------------------
  674. // 8. FORM INPUTS - LIGHT GLASSMORPHISM
  675. // -------------------------------------------------------
  676. #wrapwrap.o_has_m22_sidebar {
  677. .form-control,
  678. .form-select,
  679. input[type="text"],
  680. input[type="email"],
  681. input[type="password"],
  682. input[type="number"],
  683. textarea,
  684. select {
  685. background: rgba($m22-white, 0.9);
  686. backdrop-filter: blur(4px);
  687. border: 1px solid rgba(0, 0, 0, 0.1);
  688. border-radius: 8px;
  689. color: $m22-text-dark;
  690. padding: 0.625rem 1rem;
  691. transition: all 0.2s ease;
  692. &:focus {
  693. border-color: $m22-orange;
  694. box-shadow: 0 0 0 3px rgba($m22-orange, 0.15);
  695. outline: none;
  696. }
  697. &::placeholder {
  698. color: $m22-text-muted;
  699. }
  700. }
  701. label {
  702. color: $m22-text-dark;
  703. font-weight: 500;
  704. font-size: 0.875rem;
  705. }
  706. }
  707. // -------------------------------------------------------
  708. // 9. BREADCRUMBS
  709. // -------------------------------------------------------
  710. #wrapwrap.o_has_m22_sidebar {
  711. .breadcrumb {
  712. background: transparent;
  713. padding: 0;
  714. margin-bottom: 1.5rem;
  715. .breadcrumb-item {
  716. color: $m22-text-muted;
  717. font-size: 0.875rem;
  718. a {
  719. color: $m22-text-muted;
  720. &:hover {
  721. color: $m22-orange;
  722. }
  723. }
  724. &.active {
  725. color: $m22-text-dark;
  726. font-weight: 500;
  727. }
  728. + .breadcrumb-item::before {
  729. color: $m22-text-muted;
  730. }
  731. }
  732. }
  733. }
  734. // -------------------------------------------------------
  735. // 10. MOBILE SIDEBAR & BOTTOM NAV
  736. // -------------------------------------------------------
  737. @media (max-width: 991px) {
  738. .m22-sidebar {
  739. width: 280px;
  740. transform: translateX(-100%);
  741. transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  742. z-index: 1050;
  743. &.m22-sidebar-open {
  744. transform: translateX(0);
  745. }
  746. }
  747. }
  748. // Sidebar Backdrop (Mobile)
  749. .m22-sidebar-backdrop {
  750. position: fixed;
  751. inset: 0;
  752. background: rgba(0, 0, 0, 0.5);
  753. backdrop-filter: blur(4px);
  754. z-index: 1040;
  755. opacity: 0;
  756. visibility: hidden;
  757. transition: all 0.3s ease;
  758. &.visible {
  759. opacity: 1;
  760. visibility: visible;
  761. }
  762. }
  763. // Bottom Navigation (Mobile)
  764. .m22-bottom-nav {
  765. position: fixed;
  766. bottom: 0;
  767. left: 0;
  768. right: 0;
  769. background: rgba($m22-midnight, 0.95);
  770. backdrop-filter: blur(20px);
  771. -webkit-backdrop-filter: blur(20px);
  772. border-top: 1px solid rgba(255, 255, 255, 0.1);
  773. z-index: 1030;
  774. padding: 0.5rem 0;
  775. .bottom-nav-item {
  776. color: $m22-text-light;
  777. text-decoration: none;
  778. transition: all 0.2s ease;
  779. padding: 0.5rem;
  780. flex: 1;
  781. text-align: center;
  782. i, .fa {
  783. font-size: 1.25rem;
  784. display: block;
  785. margin-bottom: 0.25rem;
  786. }
  787. .bottom-nav-label {
  788. font-size: 0.7rem;
  789. display: block;
  790. }
  791. &:hover,
  792. &.active {
  793. color: $m22-orange;
  794. }
  795. // More button styling
  796. &#m22_more_btn {
  797. color: $m22-text-light;
  798. &:hover,
  799. &:focus {
  800. color: $m22-orange;
  801. outline: none;
  802. }
  803. }
  804. }
  805. }
  806. // -------------------------------------------------------
  807. // 10.1. BOTTOM SHEET (iOS Style with Tailwind)
  808. // -------------------------------------------------------
  809. // Override Tailwind classes to match theme colors
  810. #m22_bottom_sheet {
  811. position: fixed;
  812. top: 0;
  813. left: 0;
  814. right: 0;
  815. bottom: 0;
  816. z-index: 1050; // Above bottom nav (1030)
  817. // Hidden by default (CSS fallback if Tailwind doesn't work)
  818. display: none;
  819. pointer-events: none;
  820. &.visible {
  821. display: block;
  822. pointer-events: auto;
  823. }
  824. // Backdrop with theme colors
  825. #m22_bottom_sheet_backdrop {
  826. position: absolute;
  827. top: 0;
  828. left: 0;
  829. right: 0;
  830. bottom: 0;
  831. background: rgba($m22-midnight, 0.75);
  832. backdrop-filter: blur(8px);
  833. -webkit-backdrop-filter: blur(8px);
  834. opacity: 0;
  835. transition: opacity 0.3s ease;
  836. &.show {
  837. opacity: 1;
  838. }
  839. }
  840. // Sheet content - Theme integration
  841. #m22_bottom_sheet_content {
  842. position: absolute;
  843. bottom: 0;
  844. left: 0;
  845. right: 0;
  846. background: rgba($m22-white, 0.98);
  847. backdrop-filter: blur(20px);
  848. -webkit-backdrop-filter: blur(20px);
  849. box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  850. border-radius: 24px 24px 0 0;
  851. max-height: 85vh;
  852. display: flex;
  853. flex-direction: column;
  854. transform: translateY(100%);
  855. transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  856. &.show {
  857. transform: translateY(0);
  858. }
  859. // Handle indicator
  860. .rounded-full {
  861. background: rgba($m22-text-muted, 0.3);
  862. }
  863. // Header
  864. h3 {
  865. color: $m22-text-dark;
  866. }
  867. // Sheet items with theme colors
  868. .m22-sheet-item {
  869. color: $m22-text-dark;
  870. &:hover {
  871. background: rgba($m22-orange, 0.08);
  872. i {
  873. color: $m22-orange;
  874. }
  875. }
  876. i.fa:first-child {
  877. color: $m22-text-muted;
  878. transition: color 0.2s ease;
  879. }
  880. }
  881. // Close button
  882. button#m22_bottom_sheet_close {
  883. background: rgba($m22-content-light, 0.9);
  884. color: $m22-text-dark;
  885. &:hover {
  886. background: rgba($m22-content-light, 1);
  887. color: $m22-orange;
  888. }
  889. }
  890. // Scrollbar styling for sheet content
  891. .overflow-y-auto {
  892. &::-webkit-scrollbar {
  893. width: 4px;
  894. }
  895. &::-webkit-scrollbar-track {
  896. background: transparent;
  897. }
  898. &::-webkit-scrollbar-thumb {
  899. background: rgba($m22-orange, 0.3);
  900. border-radius: 2px;
  901. &:hover {
  902. background: rgba($m22-orange, 0.5);
  903. }
  904. }
  905. }
  906. }
  907. }
  908. // Dark mode support (if implemented later)
  909. @media (prefers-color-scheme: dark) {
  910. #m22_bottom_sheet {
  911. #m22_bottom_sheet_content {
  912. background: rgba($m22-midnight, 0.98);
  913. h3 {
  914. color: $m22-white;
  915. }
  916. .m22-sheet-item {
  917. color: $m22-white;
  918. &:hover {
  919. background: rgba($m22-orange, 0.15);
  920. }
  921. }
  922. button#m22_bottom_sheet_close {
  923. background: rgba($m22-sidebar-dark, 0.9);
  924. color: $m22-white;
  925. &:hover {
  926. background: rgba($m22-sidebar-dark, 1);
  927. }
  928. }
  929. }
  930. }
  931. }
  932. // -------------------------------------------------------
  933. // 11. GRADIENT TEXT UTILITY
  934. // -------------------------------------------------------
  935. .text-gradient {
  936. background: linear-gradient(90deg, $m22-orange, $m22-magenta);
  937. -webkit-background-clip: text;
  938. -webkit-text-fill-color: transparent;
  939. background-clip: text;
  940. }
  941. // -------------------------------------------------------
  942. // 12. SCROLLBAR STYLING
  943. // -------------------------------------------------------
  944. .m22-sidebar .sidebar-nav,
  945. #wrapwrap.o_has_m22_sidebar main {
  946. scroll-behavior: smooth;
  947. &::-webkit-scrollbar {
  948. width: 6px;
  949. }
  950. &::-webkit-scrollbar-track {
  951. background: transparent;
  952. }
  953. &::-webkit-scrollbar-thumb {
  954. background: rgba($m22-orange, 0.3);
  955. border-radius: 3px;
  956. &:hover {
  957. background: rgba($m22-orange, 0.5);
  958. }
  959. }
  960. }
  961. // Dark scrollbar for sidebar
  962. .m22-sidebar .sidebar-nav {
  963. &::-webkit-scrollbar-track {
  964. background: rgba(255, 255, 255, 0.05);
  965. }
  966. }
  967. // -------------------------------------------------------
  968. // 13. PORTAL-SPECIFIC OVERRIDES
  969. // -------------------------------------------------------
  970. #wrapwrap.o_has_m22_sidebar {
  971. // Hide duplicate sidebar elements in "My Account" page only
  972. .o_portal_wrap {
  973. // Hide the offcanvas sidebar (mobile duplicate)
  974. #accountOffCanvas {
  975. display: none !important;
  976. }
  977. }
  978. // Portal container
  979. .o_portal {
  980. background: transparent;
  981. }
  982. // Card styling in portal - Glassmorphism Light
  983. .o_portal_wrap .card,
  984. .o_portal_sidebar .card {
  985. background: rgba($m22-white, 0.85);
  986. backdrop-filter: blur(12px);
  987. -webkit-backdrop-filter: blur(12px);
  988. border: 1px solid rgba(0, 0, 0, 0.06);
  989. border-radius: 12px;
  990. }
  991. // Ensure main portal sidebar container is visible
  992. .o_portal_sidebar {
  993. display: block !important;
  994. }
  995. // =========================================
  996. // Native Odoo Record Sidebar Styling
  997. // (Actions panel: total, buttons, contact)
  998. // =========================================
  999. .o_portal_sidebar_content {
  1000. // Glassmorphism container
  1001. background: rgba($m22-white, 0.9);
  1002. backdrop-filter: blur(16px);
  1003. -webkit-backdrop-filter: blur(16px);
  1004. border: 1px solid rgba(0, 0, 0, 0.08);
  1005. border-radius: 16px;
  1006. padding: 1.5rem;
  1007. box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  1008. // Total amount - Prominent display
  1009. > .position-relative {
  1010. h2, .h2 {
  1011. color: $m22-orange !important;
  1012. font-weight: 700;
  1013. font-size: 2rem;
  1014. }
  1015. }
  1016. // All headings in sidebar
  1017. h2, .h2, h4, .h4, h5, .h5, h6, .h6 {
  1018. color: $m22-text-dark !important;
  1019. }
  1020. // Muted text - Make it visible
  1021. .text-muted, small {
  1022. color: $m22-text-muted !important;
  1023. }
  1024. // ---- BUTTONS ----
  1025. // Primary buttons (Accept, Sign, Pay)
  1026. .btn-primary {
  1027. background: linear-gradient(90deg, $m22-orange, $m22-magenta) !important;
  1028. border: none !important;
  1029. color: $m22-white !important;
  1030. font-weight: 600;
  1031. padding: 0.75rem 1.25rem;
  1032. border-radius: 8px;
  1033. box-shadow: 0 4px 12px rgba($m22-orange, 0.25);
  1034. &:hover {
  1035. opacity: 0.9;
  1036. transform: translateY(-1px);
  1037. }
  1038. }
  1039. // Light buttons (View Details, Download PDF)
  1040. .btn-light {
  1041. background: rgba($m22-content-light, 0.9) !important;
  1042. border: 1px solid rgba(0, 0, 0, 0.1) !important;
  1043. color: $m22-text-dark !important;
  1044. font-weight: 500;
  1045. padding: 0.625rem 1rem;
  1046. border-radius: 8px;
  1047. &:hover {
  1048. background: rgba($m22-content-light, 1) !important;
  1049. border-color: $m22-orange !important;
  1050. color: $m22-orange !important;
  1051. }
  1052. i, .fa {
  1053. color: $m22-text-muted;
  1054. }
  1055. }
  1056. // Outline buttons
  1057. .btn-outline-primary {
  1058. color: $m22-orange !important;
  1059. border-color: $m22-orange !important;
  1060. background: transparent !important;
  1061. &:hover {
  1062. background: rgba($m22-orange, 0.1) !important;
  1063. }
  1064. }
  1065. // ---- NAVIGATION (navspy and general nav links) ----
  1066. // Generic nav-link styling for sidebar navigation
  1067. .nav.flex-column,
  1068. .navspy,
  1069. .bs-sidenav,
  1070. [role="complementary"] {
  1071. .nav-link {
  1072. color: $m22-text-muted !important;
  1073. padding: 0.5rem 0;
  1074. font-size: 0.875rem;
  1075. border-left: 2px solid transparent;
  1076. padding-left: 0.75rem;
  1077. transition: all 0.2s ease;
  1078. &:hover {
  1079. color: $m22-orange !important;
  1080. border-left-color: rgba($m22-orange, 0.3);
  1081. }
  1082. &.active {
  1083. color: $m22-orange !important;
  1084. font-weight: 600;
  1085. border-left-color: $m22-orange;
  1086. }
  1087. }
  1088. // Nav items without explicit nav-link class
  1089. .nav-item > a:not(.btn) {
  1090. color: $m22-text-muted !important;
  1091. text-decoration: none;
  1092. display: block;
  1093. padding: 0.5rem 0;
  1094. font-size: 0.875rem;
  1095. transition: color 0.2s ease;
  1096. &:hover {
  1097. color: $m22-orange !important;
  1098. }
  1099. }
  1100. }
  1101. // Specific fix for helpdesk ticket sidebar links
  1102. #ticket-nav,
  1103. #ticket-links {
  1104. .nav-link {
  1105. color: $m22-text-dark !important;
  1106. font-weight: 500;
  1107. &:hover {
  1108. color: $m22-orange !important;
  1109. }
  1110. }
  1111. }
  1112. // ---- CONTACT SECTION ----
  1113. .o_portal_contact_details,
  1114. [class*="contact"] {
  1115. h5, h6, .h5, .h6 {
  1116. color: $m22-text-muted !important;
  1117. font-size: 0.75rem;
  1118. text-transform: uppercase;
  1119. letter-spacing: 0.05em;
  1120. margin-bottom: 0.75rem;
  1121. }
  1122. // Contact name
  1123. .fw-bold, strong, b {
  1124. color: $m22-text-dark !important;
  1125. }
  1126. // Contact link
  1127. a {
  1128. color: $m22-orange !important;
  1129. text-decoration: none;
  1130. font-weight: 500;
  1131. &:hover {
  1132. text-decoration: underline;
  1133. }
  1134. }
  1135. }
  1136. // ---- LIST GROUP ITEMS ----
  1137. .list-group-item {
  1138. background: rgba($m22-white, 0.5);
  1139. border: 1px solid rgba(0, 0, 0, 0.06);
  1140. border-radius: 8px;
  1141. padding: 1rem;
  1142. .text-success {
  1143. color: #16A34A !important;
  1144. }
  1145. }
  1146. // ---- DIVIDER ----
  1147. hr {
  1148. border-color: rgba(0, 0, 0, 0.08);
  1149. }
  1150. // Hide "Powered by Odoo" in our theme
  1151. > .d-none.d-lg-block.mt-5.small.text-center.text-muted {
  1152. display: none !important;
  1153. }
  1154. }
  1155. // Vertical divider between sidebar and content
  1156. .o_portal_sale_sidebar > .vr,
  1157. .o_portal_invoice_sidebar > .vr {
  1158. background-color: rgba(0, 0, 0, 0.08) !important;
  1159. }
  1160. // =========================================
  1161. // ADAPTIVE CONTENT WIDTH
  1162. // Different widths for list vs detail pages
  1163. // =========================================
  1164. main.o_main_with_sidebar {
  1165. // Default: Centered content for detail pages
  1166. .container,
  1167. .o_m22_portal_container {
  1168. @media (min-width: 992px) {
  1169. max-width: 1200px;
  1170. margin-left: auto;
  1171. margin-right: auto;
  1172. }
  1173. }
  1174. }
  1175. // LISTADO PAGES: Full width for list tables
  1176. // Target containers that contain portal document tables
  1177. #wrapwrap.o_has_m22_sidebar {
  1178. // When container has list table, make it full width
  1179. .container:has(.o_portal_my_doc_table),
  1180. .o_m22_portal_container:has(.o_portal_my_doc_table) {
  1181. max-width: 100% !important;
  1182. padding-left: 2rem;
  1183. padding-right: 2rem;
  1184. @media (max-width: 991px) {
  1185. padding-left: 1rem;
  1186. padding-right: 1rem;
  1187. }
  1188. }
  1189. // DETAIL WITH NATIVE SIDEBAR: Wider layout for 2 columns
  1190. // Pages with native Odoo sidebar (tickets detail, invoices detail)
  1191. .container:has(.o_portal_sidebar):not(:has(.o_portal_my_doc_table)),
  1192. .o_m22_portal_container:has(.o_portal_sidebar):not(:has(.o_portal_my_doc_table)),
  1193. .container:has(#ticket-nav),
  1194. .o_m22_portal_container:has(#ticket-nav) {
  1195. max-width: 1400px !important;
  1196. margin-left: auto;
  1197. margin-right: auto;
  1198. }
  1199. }
  1200. // Utility classes for manual control (if needed)
  1201. .m22-full-width {
  1202. max-width: 100% !important;
  1203. padding-left: 2rem;
  1204. padding-right: 2rem;
  1205. @media (max-width: 991px) {
  1206. padding-left: 1rem;
  1207. padding-right: 1rem;
  1208. }
  1209. }
  1210. .m22-content-centered {
  1211. max-width: 1200px;
  1212. margin-left: auto;
  1213. margin-right: auto;
  1214. }
  1215. .m22-content-wide {
  1216. max-width: 1400px;
  1217. margin-left: auto;
  1218. margin-right: auto;
  1219. }
  1220. }
  1221. // -------------------------------------------------------
  1222. // 14. ANIMATIONS & TRANSITIONS
  1223. // -------------------------------------------------------
  1224. @keyframes fadeIn {
  1225. from {
  1226. opacity: 0;
  1227. transform: translateY(10px);
  1228. }
  1229. to {
  1230. opacity: 1;
  1231. transform: translateY(0);
  1232. }
  1233. }
  1234. .m22-card,
  1235. #wrapwrap.o_has_m22_sidebar .card {
  1236. animation: fadeIn 0.3s ease-out;
  1237. }
  1238. // -------------------------------------------------------
  1239. // 15. COLLAPSED SIDEBAR STATE - Main Content Adjustment
  1240. // -------------------------------------------------------
  1241. body.sidebar-collapsed {
  1242. #wrapwrap.o_has_m22_sidebar main.o_main_with_sidebar {
  1243. @media (min-width: 992px) {
  1244. margin-left: $sidebar-width-collapsed !important;
  1245. }
  1246. }
  1247. }
  1248. // -------------------------------------------------------
  1249. // 16. HIDE HEADER & FOOTER (Theme-specific)
  1250. // Note: This is conditional via templates, but CSS backup
  1251. // -------------------------------------------------------
  1252. #wrapwrap.o_has_m22_sidebar {
  1253. header#top,
  1254. #top_menu_container,
  1255. .o_header_standard,
  1256. footer.o_footer,
  1257. #footer,
  1258. .o_footer_copyright {
  1259. display: none !important;
  1260. }
  1261. }
  1262. // -------------------------------------------------------
  1263. // 17. PORTAL LAYOUT ADJUSTMENTS
  1264. // Ocultar sidebar nativo del portal (solo en my/account)
  1265. // Expandir contenido a ancho completo
  1266. // Asegurar que filtros del portal se muestren en desktop
  1267. // -------------------------------------------------------
  1268. #wrapwrap.o_has_m22_sidebar {
  1269. // Ocultar el sidebar nativo de "My Account" (col-lg-4)
  1270. .o_portal_wrap .container {
  1271. .row.justify-content-between {
  1272. .d-none.d-lg-flex.justify-content-end.col-lg-4 {
  1273. display: none !important;
  1274. }
  1275. // Ocultar offcanvas también
  1276. #accountOffCanvas {
  1277. display: none !important;
  1278. }
  1279. // Expandir contenido a ancho completo
  1280. .o_portal_content {
  1281. width: 100% !important;
  1282. max-width: 100% !important;
  1283. flex: 0 0 100% !important;
  1284. }
  1285. }
  1286. }
  1287. // Asegurar que el navbar de filtros del portal siempre se muestre en desktop
  1288. // IMPORTANTE: Los filtros usan clases de Bootstrap (.collapse) que pueden estar rotas si Tailwind reemplaza Bootstrap
  1289. // Forzamos display con máxima especificidad
  1290. .o_portal_wrap {
  1291. nav.o_portal_navbar {
  1292. // En desktop, siempre mostrar los filtros
  1293. @media (min-width: 992px) {
  1294. .collapse {
  1295. display: flex !important;
  1296. visibility: visible !important;
  1297. height: auto !important;
  1298. }
  1299. .navbar-collapse {
  1300. display: flex !important;
  1301. flex-basis: auto !important;
  1302. visibility: visible !important;
  1303. }
  1304. #o_portal_navbar_content {
  1305. display: flex !important;
  1306. visibility: visible !important;
  1307. }
  1308. }
  1309. // =========================================
  1310. // PORTAL NAVBAR - Estilos específicos
  1311. // Corrección de inputs, dropdowns y posicionamiento
  1312. // =========================================
  1313. // Contenedor principal del navbar - Ajuste de alineación
  1314. .navbar-nav,
  1315. #o_portal_navbar_content {
  1316. align-items: center;
  1317. gap: 0.75rem;
  1318. }
  1319. // Input de búsqueda - Fondo claro glassmorphism
  1320. input[type="text"],
  1321. input[type="search"],
  1322. .form-control,
  1323. input.form-control {
  1324. background: rgba($m22-white, 0.9) !important;
  1325. backdrop-filter: blur(4px);
  1326. -webkit-backdrop-filter: blur(4px);
  1327. border: 1px solid rgba(0, 0, 0, 0.1) !important;
  1328. border-radius: 8px !important;
  1329. color: $m22-text-dark !important;
  1330. padding: 0.5rem 1rem !important;
  1331. transition: all 0.2s ease;
  1332. &::placeholder {
  1333. color: $m22-text-muted !important;
  1334. }
  1335. &:focus {
  1336. background: rgba($m22-white, 0.95) !important;
  1337. border-color: $m22-orange !important;
  1338. box-shadow: 0 0 0 3px rgba($m22-orange, 0.15) !important;
  1339. outline: none !important;
  1340. }
  1341. }
  1342. // Botones dropdown - Estilo claro glassmorphism
  1343. .btn,
  1344. .btn-group > .btn,
  1345. button[data-bs-toggle="dropdown"],
  1346. button.dropdown-toggle {
  1347. background: rgba($m22-white, 0.9) !important;
  1348. backdrop-filter: blur(4px);
  1349. -webkit-backdrop-filter: blur(4px);
  1350. border: 1px solid rgba(0, 0, 0, 0.1) !important;
  1351. border-radius: 8px !important;
  1352. color: $m22-text-dark !important;
  1353. padding: 0.5rem 1rem !important;
  1354. font-weight: 500;
  1355. transition: all 0.2s ease;
  1356. &:hover,
  1357. &:focus {
  1358. background: rgba($m22-white, 0.95) !important;
  1359. border-color: rgba($m22-orange, 0.3) !important;
  1360. color: $m22-text-dark !important;
  1361. }
  1362. &:active,
  1363. &.active,
  1364. &[aria-expanded="true"] {
  1365. background: rgba($m22-content-light, 0.95) !important;
  1366. border-color: rgba($m22-orange, 0.2) !important;
  1367. color: $m22-text-dark !important;
  1368. box-shadow: 0 0 0 2px rgba($m22-orange, 0.1) !important;
  1369. }
  1370. }
  1371. // Menú dropdown - Estilo claro
  1372. .dropdown-menu {
  1373. background: rgba($m22-white, 0.98) !important;
  1374. backdrop-filter: blur(12px);
  1375. -webkit-backdrop-filter: blur(12px);
  1376. border: 1px solid rgba(0, 0, 0, 0.08) !important;
  1377. border-radius: 12px !important;
  1378. box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1) !important;
  1379. padding: 0.5rem 0 !important;
  1380. margin-top: 0.5rem !important;
  1381. .dropdown-item {
  1382. color: $m22-text-dark !important;
  1383. padding: 0.625rem 1.25rem !important;
  1384. transition: all 0.15s ease;
  1385. &:hover {
  1386. background: rgba($m22-orange, 0.08) !important;
  1387. color: $m22-text-dark !important;
  1388. }
  1389. &:active,
  1390. &.active {
  1391. background: rgba($m22-orange, 0.12) !important;
  1392. color: $m22-text-dark !important;
  1393. font-weight: 500;
  1394. }
  1395. }
  1396. }
  1397. // Labels de los dropdowns (Ordenar por, Filtrar por, etc.)
  1398. label,
  1399. .form-label {
  1400. color: $m22-text-dark !important;
  1401. font-weight: 500;
  1402. font-size: 0.875rem;
  1403. margin-bottom: 0.25rem;
  1404. margin-right: 0.5rem;
  1405. }
  1406. // Botón de búsqueda (icono)
  1407. button[type="submit"],
  1408. .btn-search,
  1409. button:has(.fa-search) {
  1410. background: rgba($m22-white, 0.9) !important;
  1411. backdrop-filter: blur(4px);
  1412. -webkit-backdrop-filter: blur(4px);
  1413. border: 1px solid rgba(0, 0, 0, 0.1) !important;
  1414. border-radius: 8px !important;
  1415. color: $m22-text-muted !important;
  1416. padding: 0.5rem 0.75rem !important;
  1417. transition: all 0.2s ease;
  1418. &:hover {
  1419. background: rgba($m22-white, 0.95) !important;
  1420. border-color: $m22-orange !important;
  1421. color: $m22-orange !important;
  1422. }
  1423. }
  1424. // Ajuste de espaciado y alineación vertical
  1425. .form-group,
  1426. .input-group {
  1427. display: flex;
  1428. align-items: center;
  1429. gap: 0.5rem;
  1430. margin-bottom: 0;
  1431. }
  1432. // Asegurar que los elementos estén alineados verticalmente
  1433. .d-flex,
  1434. .navbar-nav {
  1435. align-items: center;
  1436. }
  1437. }
  1438. }
  1439. // -------------------------------------------------------
  1440. // 18. HELPDESK TICKETS DASHBOARD
  1441. // -------------------------------------------------------
  1442. // Dashboard Cards - Glassmorphism Light
  1443. .m22-dashboard-card {
  1444. background: rgba($m22-white, 0.85);
  1445. backdrop-filter: blur(12px);
  1446. -webkit-backdrop-filter: blur(12px);
  1447. border: 1px solid rgba(0, 0, 0, 0.06);
  1448. border-radius: 16px;
  1449. box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  1450. transition: all 0.3s ease;
  1451. &:hover {
  1452. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  1453. border-color: rgba($m22-orange, 0.15);
  1454. transform: translateY(-2px);
  1455. }
  1456. .card-body {
  1457. padding: 1.5rem;
  1458. }
  1459. .card-title {
  1460. color: $m22-text-dark;
  1461. font-weight: 600;
  1462. font-size: 1.125rem;
  1463. }
  1464. h3 {
  1465. color: $m22-text-dark;
  1466. font-weight: 700;
  1467. font-size: 2rem;
  1468. }
  1469. h6 {
  1470. color: $m22-text-muted;
  1471. font-weight: 500;
  1472. font-size: 0.75rem;
  1473. letter-spacing: 0.05em;
  1474. }
  1475. }
  1476. // Dashboard Icon Container
  1477. .m22-dashboard-icon {
  1478. width: 60px;
  1479. height: 60px;
  1480. display: flex;
  1481. align-items: center;
  1482. justify-content: center;
  1483. border-radius: 12px;
  1484. background: rgba($m22-content-light, 0.8);
  1485. }
  1486. // Stage Cards (mini cards in summary)
  1487. .m22-stage-card {
  1488. background: rgba($m22-white, 0.6);
  1489. backdrop-filter: blur(8px);
  1490. -webkit-backdrop-filter: blur(8px);
  1491. border: 1px solid rgba(0, 0, 0, 0.05);
  1492. transition: all 0.2s ease;
  1493. &:hover {
  1494. background: rgba($m22-white, 0.8);
  1495. border-color: rgba($m22-orange, 0.2);
  1496. transform: translateY(-2px);
  1497. }
  1498. }
  1499. // Progress Bar Customization
  1500. .progress {
  1501. background: rgba($m22-content-light, 0.8);
  1502. border-radius: 4px;
  1503. overflow: hidden;
  1504. }
  1505. // Table in Dashboard
  1506. .m22-dashboard-card {
  1507. .table {
  1508. margin-bottom: 0;
  1509. thead th {
  1510. background: transparent;
  1511. border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  1512. color: $m22-text-muted;
  1513. font-weight: 600;
  1514. font-size: 0.75rem;
  1515. text-transform: uppercase;
  1516. letter-spacing: 0.05em;
  1517. padding: 0.75rem 1rem;
  1518. }
  1519. tbody tr {
  1520. transition: background 0.2s ease;
  1521. &:hover {
  1522. background: rgba($m22-orange, 0.04);
  1523. }
  1524. td {
  1525. padding: 1rem;
  1526. color: $m22-text-dark;
  1527. border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  1528. vertical-align: middle;
  1529. a {
  1530. color: $m22-orange;
  1531. font-weight: 500;
  1532. text-decoration: none;
  1533. &:hover {
  1534. text-decoration: underline;
  1535. }
  1536. }
  1537. }
  1538. }
  1539. }
  1540. }
  1541. // List Group Items (Waiting Response)
  1542. .list-group-item {
  1543. background: rgba($m22-white, 0.7);
  1544. border: 1px solid rgba(0, 0, 0, 0.08);
  1545. border-radius: 8px;
  1546. margin-bottom: 0.5rem;
  1547. transition: all 0.2s ease;
  1548. &:hover {
  1549. background: rgba($m22-orange, 0.08);
  1550. border-color: rgba($m22-orange, 0.2);
  1551. transform: translateX(4px);
  1552. }
  1553. h6 {
  1554. color: $m22-text-dark;
  1555. font-weight: 600;
  1556. }
  1557. .text-muted {
  1558. color: $m22-text-muted;
  1559. }
  1560. }
  1561. // Border Warning for Waiting Response Card
  1562. .border-warning {
  1563. border-color: rgba(234, 179, 8, 0.3) !important;
  1564. border-width: 2px;
  1565. }
  1566. // -------------------------------------------------------
  1567. // 19. HELPDESK TICKET APPROVAL BANNER
  1568. // -------------------------------------------------------
  1569. .m22-approval-banner {
  1570. background: rgba($m22-white, 0.95);
  1571. backdrop-filter: blur(12px);
  1572. -webkit-backdrop-filter: blur(12px);
  1573. border: 2px solid rgba($m22-orange, 0.3);
  1574. border-radius: 16px;
  1575. box-shadow: 0 4px 24px rgba($m22-orange, 0.1);
  1576. padding: 1.5rem;
  1577. .alert-heading {
  1578. color: $m22-text-dark;
  1579. font-weight: 600;
  1580. font-size: 1.125rem;
  1581. i {
  1582. color: $m22-orange;
  1583. }
  1584. }
  1585. p {
  1586. color: $m22-text-muted;
  1587. }
  1588. .btn-success {
  1589. background: linear-gradient(135deg, #22c55e, #16a34a);
  1590. border: none;
  1591. box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
  1592. transition: all 0.3s ease;
  1593. &:hover {
  1594. transform: translateY(-2px);
  1595. box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
  1596. }
  1597. }
  1598. .btn-warning {
  1599. background: linear-gradient(135deg, #f59e0b, #d97706);
  1600. border: none;
  1601. color: white;
  1602. box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  1603. transition: all 0.3s ease;
  1604. &:hover {
  1605. transform: translateY(-2px);
  1606. box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  1607. color: white;
  1608. }
  1609. }
  1610. }
  1611. }