/* =====================================================================================================
   iRecursos V15 - ESTILS COMUNS
   -----------------------------------------------------------------------------------------------------
   Es carrega des de inc_styles.php (totes les pantalles amb menu) i des de index.php (login).

   COM S'USA EN UNA PANTALLA
     - Pantalla nova:   embolcallar el contingut amb <div class="ir-page"> i fer servir els components ir-*
     - Pantalla antiga: afegir la classe ir-page al div.main-content. Les regles "ADAPTADORS" donen
                        l'estil V15 a l'HTML de sempre (area-top, box, nav-tabs, table-normal, alert...)

   INDEX
     1. Paleta (variables)
     2. Global: menu lateral i barra superior
     3. Base de pagina (.ir-page) i utilitats
     4. Components: capcalera, barra d'eines, cercador, botons, interruptors, camps
     5. Components: etiquetes, pastilles, comptadors, opcions seleccionables
     6. Components: grups plegables, rajoles, cos
     7. Components: taula V15 (.ir-t), files clicables, botons rodons, buit
     8. Components: barra fixa inferior, paginacio
     9. Adaptadors per a l'HTML antic (dins .ir-page)
    10. Pantalles amb HTML propi: Resum V15, detalls del Resum V15, login
   ===================================================================================================== */


/* =====================================================================================================
   1. PALETA
   ===================================================================================================== */
:root {
	--navy: #2c4c80; --navy-d: #213c69; --navy-dd: #182d50; --navy-ddd: #1a3159;
	--blue: #3d8de0; --blue-d: #2f7bcc;
	--red: #ff0033; --red-d: #e3262f; --red-dd: #c81f27;
	--yellow: #f6a623; --yellow-d: #e0941a; --amber: #c98100; --amber-dd: #8a5a00;
	--green: #2aa83a; --green-d: #239030; --green-dd: #1f7a2b;
	--ink: #1d2635; --muted: #5e6878; --muted-l: #7a8597; --off: #b6c0ce;
	--line: #d9dfe8; --line-d: #c3ccd9; --line-b: #d3deee;
	--soft: #eef3fa; --soft-d: #dfe9f7; --hover: #f7f9fc;
	--ico: #a9c8ef; --sub: #c9d6ec;
	--bg-blau: #e5effb; --tx-blau: #1f5fa8;
	--bg-verd: #e6f5e8; --tx-verd: #1f7a2b;
	--bg-vermell: #fdecee; --bd-vermell: #f4b8c0;
	--bg-groc: #fff6e0; --bd-groc: #f3d38c;
	--grad: linear-gradient(to bottom, #f3f7fd, #e9f0fa);
	--grad-h: linear-gradient(to bottom, #eaf1fb, #dfe9f7);
	--grad-groc: linear-gradient(to bottom, #fffaf0, #fdf1d8);
	--grad-groc-h: linear-gradient(to bottom, #fdf3dd, #fbe9c4);
	--f-cond: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	--f-base: Roboto, Arial, sans-serif;
	--f-mono: Consolas, "Courier New", monospace;
}


/* =====================================================================================================
   2. GLOBAL: MENU LATERAL (inc_sidebar.php)
   ===================================================================================================== */
.sidebar-background { background: var(--navy); border-right: none; }
.sidebar-background .primary-sidebar-background { background: var(--navy); box-shadow: inset -1px 0 0 rgba(0, 0, 0, .15); }

.primary-sidebar .nav { margin-bottom: 8px; }
.primary-sidebar .nav > li { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.primary-sidebar .nav > li a:before, .primary-sidebar .nav > li a:after { display: none; }
.primary-sidebar .nav > li > a { font: 700 13px/1.25 var(--f-cond); text-transform: uppercase; letter-spacing: .02em; color: #fff; text-shadow: none; padding: 5px 12px 5px 18px; transition: background .15s, color .15s; }
.primary-sidebar .nav > li > a span { font-size: 13px; }
.primary-sidebar .nav > li > a > i:first-child { color: var(--ico); width: 20px; font-size: 15px; text-align: center; margin-right: 5px; transition: color .15s; }
.primary-sidebar .nav > li > a:hover, .primary-sidebar .nav > li > a:focus { background: rgba(255, 255, 255, .07); color: #fff; }
.primary-sidebar .nav > li > a:hover > i:first-child { color: #fff; }
.primary-sidebar .nav > li.active > a { background: rgba(0, 0, 0, .14); color: #fff; text-shadow: none; }
.primary-sidebar .nav > li.active > a > i:first-child { color: #fff; }
.primary-sidebar .nav > li.hola { padding-top: 5px !important; padding-bottom: 5px !important; padding-left: 18px !important; font: 700 13px/1.25 var(--f-cond); letter-spacing: .02em; }

/* barra lateral d'estat (substitueix el "glow") */
.primary-sidebar .nav > li .glow { left: 0; top: 0; width: 4px; height: 100%; background: transparent; box-shadow: none; transition: background .15s; z-index: 1; }
.primary-sidebar .nav > li:hover .glow { background: var(--blue); box-shadow: none; }
.primary-sidebar .nav > li.active .glow { background: var(--red); box-shadow: none; }
.primary-sidebar .nav > li.active .glow:after { display: none; }

/* fletxa dels desplegables: gira quan esta obert */
.primary-sidebar .nav > li > a .icon-angle-right { color: var(--ico); margin-top: 1px; transition: transform .2s; }
.primary-sidebar .nav > li.dark-nav:has(> ul.in) > a .icon-angle-right { transform: rotate(90deg); color: #fff; }

/* submenus */
.dark-nav > ul { background: var(--navy-d); box-shadow: inset 0 4px 6px -4px rgba(0, 0, 0, .35); padding: 0 !important; }
.dark-nav > ul.in > li:first-child { margin-top: 3px; }
.dark-nav > ul.in > li:last-child { margin-bottom: 3px; }
.dark-nav > ul li a { font: 400 12px/1.3 var(--f-cond); letter-spacing: .02em; color: #dfe8f5; padding: 2px 10px 2px 40px; border-left: 3px solid transparent; transition: background .15s, color .15s; }
.dark-nav > ul li a i { color: var(--ico); margin-right: 4px; }
.dark-nav > ul li a:hover, .dark-nav > ul li.active a:hover { background: rgba(255, 255, 255, .08); background-image: none; color: #fff; border-left-color: var(--blue); }
.dark-nav > ul li.active a { background: var(--navy-ddd); color: #fff; font-weight: 700; border-left-color: var(--red); }
.dark-nav > ul li.active a i { color: #fff; }
.dark-nav > ul > li:not(:has(a)) { font-family: var(--f-cond); letter-spacing: .05em; padding-top: 5px !important; padding-bottom: 1px !important; line-height: 1.2; color: var(--yellow) !important; }

.primary-sidebar .badge { font-family: var(--f-base); font-weight: 700; text-shadow: none; box-shadow: none; }
.primary-sidebar, .primary-sidebar * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
@media (max-width: 979px) { .primary-sidebar { background: var(--navy); } }


/* =====================================================================================================
   2b. GLOBAL: BARRA SUPERIOR (inc_navbar.php, #NAVBAR)
   ===================================================================================================== */
#NAVBAR .navbar-inner { background: var(--navy-d); background-image: none; filter: none; border: none; box-shadow: inset 0 -3px 0 var(--yellow), 0 2px 6px rgba(0, 0, 0, .18); }
#NAVBAR .brand { text-shadow: none; opacity: .95; }
#NAVBAR .brand:hover { opacity: 1; }

#NAVBAR .nav > li > a, #NAVBAR .nav > li > a.ile-a-navbar { font: 700 13px/20px var(--f-cond); text-transform: uppercase; letter-spacing: .03em; color: #fff; text-shadow: none; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22) !important; border-radius: 3px; box-shadow: none; transition: background .15s, border-color .15s; }
#NAVBAR .nav > li > a:hover, #NAVBAR .nav > li > a:focus, #NAVBAR .nav > li.open > a { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45) !important; color: #fff; }
#NAVBAR .nav > li > a i { color: var(--ico); }
#NAVBAR .nav > li > a .caret { border-top-color: #fff; border-bottom-color: #fff; opacity: .8; }

#NAVBAR .nav > li > a.presencia_boto_entrada { background: var(--green); border-color: var(--green) !important; }
#NAVBAR .nav > li > a.presencia_boto_sortida { background: var(--red-d); border-color: var(--red-d) !important; }
#NAVBAR .nav > li > a.presencia_boto_entrada i, #NAVBAR .nav > li > a.presencia_boto_sortida i { color: #fff !important; }
#NAVBAR .nav > li > a.presencia_boto_entrada:hover { background: var(--green-d); }
#NAVBAR .nav > li > a.presencia_boto_sortida:hover { background: var(--red-dd); }
#NAVBAR .nav > li > a.btn-success:not(.presencia_boto_entrada) { background: transparent; color: var(--yellow) !important; cursor: default; font-variant-numeric: tabular-nums; }

#NAVBAR .user-avatar > a.dropdown-toggle { background: transparent; border-color: transparent !important; text-transform: none; font-size: 14px; }
#NAVBAR .user-avatar > a.dropdown-toggle:hover, #NAVBAR .user-avatar.open > a.dropdown-toggle { background: rgba(255, 255, 255, .1); }
#NAVBAR .user-avatar img.menu-avatar { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); object-fit: cover; }
#NAVBAR .badge { font-family: var(--f-base); text-shadow: none; box-shadow: none; }
#NAVBAR .user-avatar .badge-dark-red { background: var(--red); }

#NAVBAR .navbar-search .search-query { border: 1px solid transparent; border-radius: 3px; background: #fff; color: var(--ink); font-size: 13px; box-shadow: none; }
#NAVBAR .navbar-search .search-query:focus { border-color: var(--blue); box-shadow: 0 0 0 2px #3d8de055; }
#NAVBAR .navbar-search i { color: var(--muted); }

#NAVBAR .dropdown-menu { border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 0 0 3px 3px; box-shadow: 0 6px 18px rgba(29, 38, 53, .18); padding: 4px 0; }
#NAVBAR .dropdown-menu > li > a { font: 13.5px/1.4 var(--f-base); color: var(--ink); text-shadow: none; padding: 6px 16px; }
#NAVBAR .dropdown-menu > li > a i { color: var(--blue); width: 18px; text-align: center; margin-right: 4px; }
#NAVBAR .dropdown-menu > li > a:hover, #NAVBAR .dropdown-menu > li > a:focus { background: var(--soft); background-image: none; color: var(--navy-d); filter: none; }
#NAVBAR .dropdown-menu > li.divider { height: 1px; margin: 4px 0; background: var(--line); border: none; }
#NAVBAR .dropdown-menu > li.divider:after { display: none; }
#NAVBAR .dropdown-menu > li.with-image { background: var(--navy); color: #fff; margin: -4px 0 4px; padding-bottom: 10px; }
#NAVBAR .dropdown-menu > li.with-image span { color: #fff; font-family: var(--f-cond); text-shadow: none; }
#NAVBAR .dropdown-menu > li.with-image .avatar img { border-radius: 50%; box-shadow: 0 0 0 3px var(--yellow); }


/* =====================================================================================================
   3. BASE DE PAGINA I UTILITATS
   ===================================================================================================== */
.ir-page { color: var(--ink); font-family: var(--f-base); }
.ir-page .ir-cond { font-family: var(--f-cond); }
.ir-page .ir-amagat { display: none !important; }
.ir-page .ir-sep { flex: 1 1 auto; }
.ir-page kbd { font: 11px var(--f-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; background: var(--soft); box-shadow: none; }
.ir-page .ir-nul { color: var(--off); }
.ir-page .ir-ok { color: var(--muted); font-size: 13.5px; padding: 4px 0; }
.ir-page .ir-ok i { color: var(--green); margin-right: 4px; }

/* columnes que s'amaguen en pantalles estretes */
@media (max-width: 1100px) { .ir-page .ir-ocult-lg { display: none; } }
@media (max-width: 900px)  { .ir-page .ir-ocult-md { display: none; } }
@media (max-width: 600px)  { .ir-page .ir-ocult-sm { display: none; } }


/* =====================================================================================================
   4. COMPONENTS: CAPCALERA, BARRA D'EINES, CERCADOR, BOTONS, INTERRUPTORS, CAMPS
   ===================================================================================================== */

/* capcalera de pantalla: blau mari amb filet groc */
.ir-page .ir-cap { background: var(--navy); color: #fff; border-bottom: 5px solid var(--yellow); border-radius: 3px 3px 0 0; padding: 16px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ir-page .ir-cap h1 { margin: 0; color: #fff; font: 700 26px/1.2 var(--f-cond); text-transform: uppercase; letter-spacing: .01em; }
.ir-page .ir-cap h1 i { color: var(--yellow); margin-right: 8px; }
.ir-page .ir-cap-txt { flex: 1 1 auto; min-width: 0; }
.ir-page .ir-cap-sub { flex-basis: 100%; color: var(--sub); font-size: 14px; margin-top: 4px; }
.ir-page .ir-cap-sub strong { color: #fff; }
.ir-page a.ir-cap-accio { font: 700 14px var(--f-cond); text-transform: uppercase; letter-spacing: .03em; background: var(--yellow); color: #fff; border-radius: 3px; padding: 10px 16px; text-decoration: none; white-space: nowrap; }
.ir-page a.ir-cap-accio:hover { background: var(--yellow-d); color: #fff; }

/* barra d'eines (fixa a dalt en fer scroll). Sola o enganxada sota la capcalera */
.ir-page .ir-eines { position: sticky; top: 0; z-index: 8; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 10px 16px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(29, 38, 53, .06); }
.ir-page .ir-cap + .ir-eines, .ir-page .area-top + .ir-eines { border-top: none; border-radius: 0; margin-bottom: 0; }
.ir-page .box .ir-eines { position: static; border: none; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; box-shadow: none; padding: 10px 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ir-page .ir-eines.row-fluid { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ir-page .ir-eines.row-fluid::before, .ir-page .ir-eines.row-fluid::after { display: none; }
.ir-page .ir-fila { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ir-page .ir-fila + .ir-fila, .ir-page .ir-fila + .ir-index { margin-top: 10px; }
.ir-page .ir-res { color: var(--muted); font-size: 13px; min-width: 100px; }
.ir-page .ir-et { font: 700 12px var(--f-cond); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 2px 0 6px; }
.ir-page .ir-et:first-child { margin-left: 0; }

/* cercador amb icona (i tecla "/" opcional) */
.ir-page .ir-cerca { position: relative; flex: 1 1 280px; min-width: 0; margin: 0; }
.ir-page .ir-cerca > i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; }
.ir-page .ir-cerca input { width: 100%; max-width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: 38px; margin: 0; font-size: 15px; padding: 7px 34px 7px 34px; border: 1px solid var(--line-d); border-radius: 3px; box-shadow: none; }
.ir-page .ir-cerca input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px #3d8de033; outline: none; }
.ir-page .ir-cerca kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.ir-page .ir-cerca-sm { flex: 0 1 300px; min-width: 160px; margin-left: auto; }
.ir-page .ir-cerca-sm > i { left: 9px; font-size: 13px; }
.ir-page .ir-cerca-sm input { height: 32px; font-size: 14px; padding: 4px 10px 4px 28px; }

/* botons */
.ir-page .ir-boto { font: 700 13px var(--f-cond); text-transform: uppercase; letter-spacing: .03em; background: #fff; color: var(--navy); border: 1px solid var(--line-d); border-radius: 3px; padding: 0 12px; height: 34px; line-height: 32px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.ir-page .ir-boto:hover { background: var(--soft); color: var(--navy); text-decoration: none; }
.ir-page .ir-boto.ir-prim { background: var(--blue); border-color: var(--blue); color: #fff; }
.ir-page .ir-boto.ir-prim:hover { background: var(--blue-d); }
.ir-page .ir-boto.ir-actiu { background: var(--soft); border-color: var(--blue); }
.ir-page .ir-boto.ir-boto-verd { background: var(--green); border-color: var(--green); color: #fff; }
.ir-page .ir-boto.ir-boto-verd:hover { background: var(--green-d); }
.ir-page .ir-boto.ir-boto-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.ir-page .ir-boto.ir-boto-navy:hover { background: var(--navy-d); color: #fff; }
.ir-page .ir-boto.ir-boto-perill { color: var(--red-dd); border-color: var(--bd-vermell); }
.ir-page .ir-boto.ir-boto-perill:hover { background: var(--bg-vermell); border-color: var(--red-d); }
.ir-page .ir-boto i { font-size: 1.05em; }
.ir-page .ir-accions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ir-page .ir-accions + .ir-accions { margin-top: 8px; }
.ir-page .ir-cerca ~ .ir-boto { height: 38px; }
.ir-page .ir-n { background: var(--blue); color: #fff; border-radius: 9px; font-size: 11px; line-height: 16px; padding: 0 6px; }
.ir-page select.ir-select { height: 34px; margin: 0; border: 1px solid var(--line-d); border-radius: 3px; width: auto; font-size: 13px; padding: 4px 6px; }

/* interruptor (checkbox amb aspecte de switch) */
.ir-page .ir-sw { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; font-size: 13.5px; color: var(--ink); margin: 0; white-space: nowrap; }
.ir-page .ir-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ir-page .ir-sw-t { width: 32px; height: 18px; border-radius: 9px; background: #c9d1dd; position: relative; transition: background .15s; flex: none; }
.ir-page .ir-sw-t::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.ir-page .ir-sw input:checked + .ir-sw-t { background: var(--blue); }
.ir-page .ir-sw input:checked + .ir-sw-t::after { left: 16px; }
.ir-page .ir-sw input:focus-visible + .ir-sw-t { box-shadow: 0 0 0 2px #3d8de055; }

/* panell de filtres avancats i camps amb etiqueta */
.ir-page .ir-avancat { display: none; margin-top: 12px; padding: 12px; background: var(--soft); border: 1px solid var(--line-b); border-radius: 3px; }
.ir-page .ir-avancat.ir-obert { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.ir-page .ir-camp { display: flex; flex-direction: column; gap: 3px; flex: 1 1 180px; min-width: 0; }
.ir-page .ir-camp label { font: 700 12px var(--f-cond); text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin: 0; }
.ir-page .ir-camp input[type=text] { width: 100%; max-width: 100%; box-sizing: border-box; height: 34px; margin: 0; border: 1px solid var(--line-d); border-radius: 3px; box-shadow: none; padding: 4px 8px; }
.ir-page .ir-camp input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px #3d8de033; outline: none; }


/* =====================================================================================================
   5. COMPONENTS: ETIQUETES, PASTILLES, COMPTADORS, OPCIONS SELECCIONABLES
   ===================================================================================================== */

/* pastilla d'estat o tipus */
.ir-page .ir-pill { display: inline-block; font: 700 11.5px/1.5 var(--f-cond); text-transform: uppercase; letter-spacing: .04em; border-radius: 9px; padding: 0 8px; white-space: nowrap; background: var(--soft); color: var(--navy); }
.ir-page .ir-pill-blau { background: var(--bg-blau); color: var(--tx-blau); }
.ir-page .ir-pill-verd { background: var(--bg-verd); color: var(--tx-verd); }
.ir-page .ir-pill-vermell { background: var(--bg-vermell); color: var(--red-dd); border: 1px solid var(--bd-vermell); }
.ir-page .ir-pill-groc { background: var(--bg-groc); color: var(--amber-dd); border: 1px solid var(--bd-groc); }
.ir-page .ir-pill i { margin-right: 3px; }
.ir-page .ir-pill.ir-pill-text { text-transform: none; font: 400 12px/1.5 var(--f-base); letter-spacing: 0; white-space: normal; }

/* etiqueta petita (categories, tipus de dades) */
.ir-page .ir-xip { display: inline-block; font-size: 11.5px; border-radius: 9px; padding: 0 7px; margin: 1px 2px 1px 0; white-space: nowrap; background: var(--soft); color: var(--navy); border: 1px solid var(--line-b); }
.ir-page .ir-xip-dat { background: #f3f4f6; color: var(--muted); border-color: #e1e4e8; }
.ir-page .ir-mes { display: none; }
.ir-page .ir-obert .ir-mes { display: inline-block; }
.ir-page a.ir-veure { font-size: 11.5px; font-weight: 700; color: var(--blue); }

/* filtre actiu que es pot treure */
.ir-page .ir-filtres { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ir-page a.ir-filtre { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-blau); color: var(--tx-blau); border: 1px solid #c7d6ec; border-radius: 12px; padding: 2px 6px 2px 10px; text-decoration: none; font-size: 12.5px; }
.ir-page a.ir-filtre b { font-weight: 700; color: var(--muted); width: 16px; height: 16px; line-height: 15px; text-align: center; border-radius: 50%; }
.ir-page a.ir-filtre:hover { border-color: var(--red); }
.ir-page a.ir-filtre:hover b { background: var(--red); color: #fff; }
.ir-page a.ir-netejar { color: var(--red); font-size: 12.5px; margin-left: 4px; }

/* opcio seleccionable / index de seccions */
.ir-page .ir-index { display: flex; flex-wrap: wrap; gap: 6px; }
.ir-page .ir-opc { font: 700 12.5px var(--f-cond); text-transform: uppercase; letter-spacing: .03em; color: var(--navy); background: var(--soft); border: 1px solid var(--line-b); border-radius: 13px; padding: 3px 11px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.ir-page .ir-opc:hover { border-color: var(--blue); background: var(--soft-d); text-decoration: none; color: var(--navy); }
.ir-page .ir-opc.ir-sel { background: var(--navy); border-color: var(--navy); color: #fff; }
.ir-page .ir-opc i { color: var(--blue); margin-right: 3px; }
.ir-page .ir-opc.ir-sel i { color: #fff; }
.ir-page .ir-opc b { font-weight: 400; color: var(--muted); margin-left: 3px; }
.ir-page .ir-opc.ir-opc-canvi { border-color: var(--yellow); background: var(--bg-groc); }

/* comptador numeric (en capcaleres de grup o seccio) */
.ir-page .ir-num { font: 400 12px var(--f-base); color: var(--muted); background: #fff; border: 1px solid var(--line-b); border-radius: 10px; padding: 0 8px; text-transform: none; letter-spacing: 0; }
.ir-page .ir-num.ir-num-canvi { background: var(--bg-groc); border-color: var(--yellow); color: var(--amber-dd); }

/* comptador enllac amb icona (activitat d'un client...) */
.ir-page .ir-comptadors { display: flex; gap: 5px; flex-wrap: wrap; }
.ir-page a.ir-comptador { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-blau); color: var(--tx-blau); border-radius: 10px; padding: 1px 8px; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.ir-page a.ir-comptador:hover { background: var(--blue); color: #fff; }
.ir-page a.ir-comptador.ir-comptador-alt { background: var(--bg-vermell); color: var(--red-dd); }
.ir-page a.ir-comptador.ir-comptador-alt:hover { background: var(--red-d); color: #fff; }

/* marques on/off (icones rodones) */
.ir-page .ir-marques { white-space: nowrap; }
.ir-page .ir-marques i { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; font-size: 12px; margin-right: 2px; background: #f1f3f6; color: #c9d1dd; }
.ir-page .ir-marques i.ir-on { background: var(--bg-blau); color: var(--tx-blau); }
.ir-page .ir-marques i.icon-star.ir-on { background: var(--bg-groc); color: var(--amber); }


/* =====================================================================================================
   6. COMPONENTS: GRUPS PLEGABLES, RAJOLES, COS
   ===================================================================================================== */
.ir-page .ir-cos { background: #fff; border: 1px solid var(--line); border-top: none; padding: 20px 24px; }
.ir-page .ir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 600px) { .ir-page .ir-grid { grid-template-columns: 1fr; } .ir-page .ir-cos, .ir-page .ir-eines, .ir-page .ir-cap { padding-left: 12px; padding-right: 12px; } }

/* grup plegable (details/summary) amb capcalera suau */
.ir-page details.ir-grup { border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 3px; background: #fff; }
.ir-page details.ir-grup > summary { list-style: none; cursor: pointer; padding: 9px 14px; background: var(--grad); border-bottom: 1px solid #dde6f3; display: flex; align-items: center; gap: 10px; user-select: none; }
.ir-page details.ir-grup > summary::-webkit-details-marker { display: none; }
.ir-page details.ir-grup > summary:hover { background: var(--grad-h); }
.ir-page details.ir-grup > summary::after { content: "+"; margin-left: 4px; font: 700 18px var(--f-cond); color: var(--blue); width: 16px; text-align: center; }
.ir-page details.ir-grup[open] > summary::after { content: "\2212"; }
.ir-page details.ir-grup:not([open]) > summary { border-bottom: none; }
.ir-page .ir-grup-tit { font: 700 16px var(--f-cond); text-transform: uppercase; letter-spacing: .01em; color: var(--navy); flex: 1 1 auto; }
.ir-page .ir-grup-tit i { color: var(--blue); }
.ir-page details.ir-grup.ir-grup-destacat { border-top-color: var(--yellow); }
.ir-page details.ir-grup.ir-grup-destacat > summary { background: var(--grad-groc); border-bottom-color: #f3e2b8; }
.ir-page details.ir-grup.ir-grup-destacat > summary:hover { background: var(--grad-groc-h); }
.ir-page details.ir-grup.ir-grup-destacat .ir-grup-tit i { color: var(--yellow); }

/* rajoles (opcions amb icona) */
.ir-page .ir-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; padding: 12px 14px 14px; }
.ir-page a.ir-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px 8px 10px; border: 1px solid var(--line-b); border-bottom-color: var(--line-d); border-radius: 4px; color: var(--navy); text-decoration: none; background: var(--soft); box-shadow: 0 1px 2px rgba(44, 76, 128, .12); transition: border-color .12s, background .12s, box-shadow .12s, transform .08s; min-height: 86px; }
.ir-page a.ir-tile i { font-size: 22px; color: var(--blue); line-height: 1.1; }
.ir-page a.ir-tile span { font: 700 13px/1.2 var(--f-cond); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: anywhere; }
.ir-page a.ir-tile:hover, .ir-page a.ir-tile:focus { border-color: var(--blue); background: var(--soft-d); box-shadow: 0 2px 6px rgba(44, 76, 128, .18); outline: none; }
.ir-page a.ir-tile:active { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(44, 76, 128, .2); }
.ir-page a.ir-tile:hover i { color: var(--navy); }
.ir-page a.ir-tile.ir-primer { border-color: var(--blue); box-shadow: 0 0 0 2px #3d8de055; }
.ir-page a.ir-tile mark { background: #fff1c9; color: inherit; padding: 0; }
.ir-page .ir-nota-peu { color: var(--muted-l); font-size: 12px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 18px; }

/* columnes (2 en pantalla ampla, 1 en estreta) */
.ir-page .ir-columnes { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ir-page .ir-columnes > * { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 900px) { .ir-page .ir-columnes { grid-template-columns: 1fr; } }

/* targeta amb titol (no plegable) */
.ir-page .ir-targeta { border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 3px; background: #fff; }
.ir-page .ir-targeta-tit { margin: 0; padding: 9px 14px; background: var(--grad); border-bottom: 1px solid #dde6f3; font: 700 16px/1.3 var(--f-cond); text-transform: uppercase; letter-spacing: .01em; color: var(--navy); }
.ir-page .ir-targeta-tit i { color: var(--blue); margin-right: 4px; }
.ir-page .ir-targeta-cos { padding: 14px; }
.ir-page .ir-targeta-cos > p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.ir-page .ir-targeta-cos .ir-subtit { font: 700 12px var(--f-cond); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; }
.ir-page .ir-targeta-cos .ir-subtit + .ir-accions { margin-bottom: 4px; }
.ir-page .ir-targeta-cos .ir-accions + .ir-subtit { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }

/* capcalera: bloc d'estat a la dreta i marca d'aigua "iRecursos" */
.ir-page .ir-cap { position: relative; overflow: hidden; }
.ir-page .ir-cap > * { position: relative; z-index: 1; }
.ir-page .ir-cap > .ir-cap-marca { position: absolute; z-index: 0; right: 18px; bottom: -22px; font: 700 120px/1 var(--f-cond); letter-spacing: -.02em; color: rgba(255, 255, 255, .06); pointer-events: none; user-select: none; white-space: nowrap; }
.ir-page .ir-cap > .ir-cap-marca span { color: rgba(255, 0, 51, .22); }
/* dada principal destacada (p. ex. tipus de llicencia) amb el seu estat al costat */
.ir-page .ir-destacat { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.ir-page .ir-destacat > i { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.ir-page .ir-destacat-txt { flex: 1 1 220px; min-width: 0; }
.ir-page .ir-destacat-val { font: 700 30px/1.1 var(--f-cond); color: var(--navy); }
.ir-page .ir-destacat-et { font: 700 12px/1.3 var(--f-cond); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 4px; }

/* bloc d'estat (actiu / avis / perill) sobre fons clar */
.ir-page .ir-estat-llic { display: flex; align-items: center; gap: 12px; background: #eaf7ec; border: 1px solid #b9e2be; border-left: 5px solid var(--green); border-radius: 3px; padding: 10px 16px; }
.ir-page .ir-estat-llic > i { font-size: 24px; color: var(--green); }
.ir-page .ir-estat-llic strong { display: block; font: 700 15px/1.2 var(--f-cond); text-transform: uppercase; letter-spacing: .03em; color: var(--tx-verd); }
.ir-page .ir-estat-llic small { display: block; color: var(--muted); font-size: 12.5px; }
.ir-page .ir-estat-llic.ir-avis { background: var(--bg-groc); border-color: var(--bd-groc); border-left-color: var(--yellow); }
.ir-page .ir-estat-llic.ir-avis > i, .ir-page .ir-estat-llic.ir-avis strong { color: var(--amber-dd); }
.ir-page .ir-estat-llic.ir-perill { background: var(--bg-vermell); border-color: var(--bd-vermell); border-left-color: var(--red); }
.ir-page .ir-estat-llic.ir-perill > i, .ir-page .ir-estat-llic.ir-perill strong { color: var(--red-dd); }

/* xifres destacades (KPI) */
.ir-page .ir-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ir-page .ir-kpi { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.ir-page .ir-kpi > i { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-blau); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.ir-page .ir-kpi-val { font: 700 30px/1 var(--f-cond); color: var(--navy); }
.ir-page .ir-kpi-et { font: 700 12px/1.3 var(--f-cond); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 3px; }
.ir-page .ir-kpi-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ir-page .ir-kpi-sub.ir-perill { color: var(--red-dd); font-weight: 700; }
.ir-page .ir-kpi.ir-off { background: #fafbfd; }
.ir-page .ir-kpi.ir-off > i { background: #f1f3f6; color: #c9d1dd; }
.ir-page .ir-kpi.ir-off .ir-kpi-val { color: var(--off); }

/* moduls contractats (ences / apagat) */
.ir-page .ir-moduls { display: flex; flex-wrap: wrap; gap: 8px; }
.ir-page .ir-modul { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 20px; padding: 5px 14px 5px 6px; background: #fff; font-size: 13.5px; color: var(--ink); }
.ir-page .ir-modul > i { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: var(--green); color: #fff; }
.ir-page .ir-modul.ir-off { color: var(--muted); background: #fafbfd; }
.ir-page .ir-modul.ir-off > i { background: #e1e5eb; color: #fff; }

/* marca iRecursos (la "i" vermella) i peu de marca */
.ir-page .ir-marca { font: 700 22px/1 var(--f-cond); color: var(--navy); letter-spacing: -.01em; }
.ir-page .ir-marca span { color: var(--red); }
.ir-page .ir-peu-marca { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; color: var(--muted); font-size: 12.5px; }
.ir-page .ir-peu-marca img { max-height: 34px; width: auto; }

/* llista de dades etiqueta / valor */
.ir-page dl.ir-dades { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; margin: 0; }
.ir-page dl.ir-dades dt, .ir-page dl.ir-dades dd { margin: 0; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.ir-page dl.ir-dades dt { font: 700 12.5px/1.4 var(--f-cond); text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #fafbfd; }
.ir-page dl.ir-dades dd { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.ir-page dl.ir-dades dt:nth-last-of-type(1), .ir-page dl.ir-dades dd:nth-last-of-type(1) { border-bottom: none; }
.ir-page dl.ir-dades dd small { color: var(--muted); }
@media (max-width: 600px) { .ir-page dl.ir-dades { grid-template-columns: 1fr; } .ir-page dl.ir-dades dt { border-bottom: none; padding-bottom: 0; background: none; } }


/* =====================================================================================================
   7. COMPONENTS: TAULA V15, FILES CLICABLES, BOTONS RODONS, ESTAT BUIT
   ===================================================================================================== */
.ir-page .ir-taula { background: #fff; border: 1px solid var(--line); border-top: none; overflow-x: auto; }
.ir-page table.ir-t { width: 100%; border-collapse: collapse; margin: 0; }
.ir-page .ir-t thead th { background: var(--navy); color: #fff; font: 700 12.5px var(--f-cond); text-transform: uppercase; letter-spacing: .03em; text-align: left; padding: 8px 10px; border-right: 1px solid #ffffff26; white-space: nowrap; }
.ir-page .ir-t thead th a { color: #fff; text-decoration: none; }
.ir-page .ir-t thead th a i { opacity: .55; margin-left: 4px; }
.ir-page .ir-t thead th a:hover i, .ir-page .ir-t thead th a.ir-ord i { opacity: 1; color: var(--yellow); }
.ir-page .ir-t tbody td { border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.ir-page .ir-t tbody tr:hover > td { background: var(--soft); }

/* fila clicable (obre el registre) i estats de fila */
.ir-page tr.ir-clic { cursor: pointer; }
.ir-page tr.ir-clic:hover > td:first-child { box-shadow: inset 4px 0 0 var(--blue); }
.ir-page tr.ir-r-bloq > td:first-child { box-shadow: inset 4px 0 0 var(--yellow); }
.ir-page tr.ir-r-obs > td { color: var(--muted); }
.ir-page tr.ir-r-obs > td:first-child { box-shadow: inset 4px 0 0 var(--red-d); }
.ir-page .table-normal tbody tr.ir-r-obs > td { background: #fff7f8 !important; }
.ir-page tr.ir-r-obs .ir-nom { color: var(--muted); text-decoration: line-through; text-decoration-color: #e3262f88; }

/* contingut de cel.la */
.ir-page .ir-codi { font: 700 13px var(--f-mono); color: var(--navy-d); white-space: nowrap; }
.ir-page .ir-id { color: var(--muted); font: 12px var(--f-mono); text-align: right; }
.ir-page .ir-nom { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.ir-page .ir-nom .icon-star { color: var(--yellow); margin-left: 4px; }
.ir-page .ir-linia { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ir-page .ir-meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ir-page .ir-meta i { margin-right: 2px; }
.ir-page .ir-meta span + span::before { content: "\00b7"; margin: 0 6px; color: var(--off); }
.ir-page .ir-desc { color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: normal; max-width: 640px; }
.ir-page .ir-desc + .ir-pill { margin-top: 3px; }
.ir-page a.ir-alerta, .ir-page a.ir-alerta i { color: var(--red-d); }
.ir-page .ir-contacte { font-size: 13px; line-height: 1.6; white-space: nowrap; }
.ir-page .ir-contacte a { color: var(--ink); }
.ir-page .ir-contacte a:hover { color: var(--blue); }
.ir-page .ir-contacte i { color: var(--muted); width: 14px; }

/* cel.la d'accions i botons rodons */
.ir-page td.ir-acc { width: 1%; white-space: nowrap; }
.ir-page td.ir-acc > * { vertical-align: middle; }
.ir-page .ir-acc .btn { background: #fff; border: 1px solid transparent; box-shadow: none; background-image: none; padding: 2px 8px; color: var(--muted); }
.ir-page .ir-acc .btn:hover, .ir-page .ir-acc .open .btn { border-color: var(--line-d); background: #fff; color: var(--navy); }
.ir-page .ir-acc .dropdown-menu { text-align: left; }
.ir-page .ir-rodo { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; text-decoration: none; transition: transform .1s, background .1s, border-color .1s; }
.ir-page .ir-rodo + .ir-rodo { margin-left: 4px; }
.ir-page a.ir-rodo-exec { background: var(--green); color: #fff; }
.ir-page a.ir-rodo-exec i { margin-left: 2px; color: #fff; }
.ir-page a.ir-rodo-exec:hover { background: var(--green-d); transform: scale(1.08); color: #fff; }
.ir-page a.ir-rodo-edit { background: #fff; border: 1px solid var(--line-d); color: var(--navy); }
.ir-page a.ir-rodo-edit:hover { background: var(--soft); border-color: var(--blue); color: var(--blue); }
.ir-page .ir-rodo-off { color: #c9d1dd; }

/* estat buit (missatge centrat) */
.ir-page .ir-buit { color: var(--muted); padding: 30px 10px; text-align: center; font-size: 15px; }
.ir-page div.ir-buit { display: none; }
.ir-page tr.ir-buit td, .ir-page td.ir-buit { text-align: center; color: var(--muted); padding: 30px 10px !important; background: #fff !important; box-shadow: none !important; cursor: default; font-size: 14px; }


/* =====================================================================================================
   8. COMPONENTS: BARRA FIXA INFERIOR, PAGINACIO
   ===================================================================================================== */
.ir-page .ir-barra { position: sticky; bottom: 0; z-index: 20; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); box-shadow: 0 -4px 12px rgba(29, 38, 53, .08); padding: 8px 16px; margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-radius: 0 0 3px 3px; }
.ir-page .ir-taula + .ir-barra { margin-top: 0; }
.ir-page .ir-barra .ir-estat { color: var(--muted); font-size: 13.5px; flex: 1 1 auto; }
.ir-page .ir-barra.ir-brut { border-top-color: var(--yellow); }
.ir-page .ir-barra.ir-brut .ir-estat { color: var(--amber-dd); font-weight: 700; }

.ir-page .ir-pags { display: flex; gap: 3px; flex-wrap: wrap; }
.ir-page .ir-pags a, .ir-page .ir-pags span { min-width: 30px; height: 30px; line-height: 28px; text-align: center; border: 1px solid var(--line); border-radius: 3px; color: var(--navy); text-decoration: none; font-size: 13px; padding: 0 6px; background: #fff; }
.ir-page .ir-pags a:hover { background: var(--soft); border-color: var(--blue); }
.ir-page .ir-pags span.ir-pag-act { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.ir-page .ir-pags span.ir-pag-dis { color: var(--line-d); }
.ir-page .ir-pags span.ir-pag-gap { border: none; background: none; min-width: 16px; }


/* =====================================================================================================
   9. ADAPTADORS: L'HTML ANTIC DE SEMPRE AMB ESTIL V15 (DINS .ir-page)
   ===================================================================================================== */

/* capcalera antiga (div.area-top) = .ir-cap */
.ir-page .area-top { background: var(--navy); border: none; border-bottom: 5px solid var(--yellow); border-radius: 3px 3px 0 0; box-shadow: none; padding: 16px 24px; margin: 15px 15px 0; width: auto; }
.ir-page .area-top .header > * { text-shadow: none; }
.ir-page .area-top .header h3.title { color: #fff !important; font: 700 26px/1.2 var(--f-cond); font-size: 26px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.ir-page .area-top .header h3.title i { color: var(--yellow) !important; font-size: 24px !important; margin: 0 8px 0 0; float: none; }
.ir-page .area-top .header h5 { color: var(--sub) !important; font-size: 14px; font-weight: 400; margin: 4px 0 0; }
.ir-page .area-top .header h5:empty { display: none; }

/* caixa (box) i la seva capcalera */
.ir-page .box { border: 1px solid var(--line); border-radius: 3px; box-shadow: none; background: #fff; }
.ir-page .box > .box-header { background: var(--grad); border-bottom: 1px solid #dde6f3; box-shadow: none; min-height: 44px; height: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 4px 6px; }
.ir-page .box > .box-header:has(> .nav-tabs) { align-items: flex-end; padding-bottom: 0; }
.ir-page .box > .box-header:has(> .nav-tabs) > .title { align-self: center; }
.ir-page .box > .box-header > .title { float: none; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 6px; }
.ir-page .box > .box-header > .box-toolbar { float: none; margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; border: none; }
.ir-page .box > .box-header > .box-toolbar > li { float: none; border: none; }

/* pestanyes: planes, la activa subratllada en vermell */
.ir-page .box > .box-header .nav-tabs { border-bottom: none; margin: 0; padding: 0 6px; display: flex; flex-wrap: wrap; float: none; flex: 1 1 auto; }
.ir-page .box > .box-header .nav-tabs > li { float: none; margin-bottom: -1px; }
.ir-page .nav-tabs > li > a { font: 700 14px var(--f-cond); text-transform: uppercase; letter-spacing: .02em; color: var(--navy) !important; background: transparent !important; border: none !important; border-bottom: 4px solid transparent !important; border-radius: 0; padding: 12px 14px 9px; margin: 0; box-shadow: none; }
.ir-page .nav-tabs > li > a:hover { background: rgba(255, 255, 255, .6) !important; border-bottom-color: var(--line-d) !important; }
.ir-page .nav-tabs > .active > a, .ir-page .nav-tabs > .active > a:hover, .ir-page .nav-tabs > .active > a:focus { color: var(--ink) !important; background: #fff !important; border-bottom: 4px solid var(--red) !important; }
.ir-page .nav-tabs > li > a i { color: var(--blue); margin-right: 3px; }
.ir-page .nav-tabs > .active > a i { color: var(--red); }

/* botons bootstrap */
.ir-page .btn { font: 700 12.5px/18px var(--f-cond); text-transform: uppercase; letter-spacing: .03em; border-radius: 3px; background-image: none; text-shadow: none; box-shadow: none; filter: none; }
.ir-page .box-header .btn-mini { padding: 4px 10px; font-size: 12.5px; }
.ir-page .btn-blue, .ir-page .btn-primary, .ir-page .btn-info { background: var(--blue); border: 1px solid var(--blue); color: #fff; }
.ir-page .btn-blue:hover, .ir-page .btn-primary:hover, .ir-page .btn-info:hover { background: var(--blue-d); color: #fff; }
.ir-page .btn-gold, .ir-page .btn-warning { background: var(--yellow); border: 1px solid var(--yellow); color: #fff; }
.ir-page .btn-gold:hover, .ir-page .btn-warning:hover { background: var(--yellow-d); color: #fff; }
.ir-page .btn-success { background: var(--green); border: 1px solid var(--green); color: #fff; }
.ir-page .btn-success:hover { background: var(--green-d); color: #fff; }
.ir-page .btn-default { background: #fff; border: 1px solid var(--line-d); color: var(--navy); }
.ir-page .btn-default:hover { background: var(--soft); }
.ir-page .table .btn-group .btn-mini { padding: 2px 7px; }

/* taula de llistat (table-normal) */
.ir-page .table-normal { margin: 0; border-collapse: collapse; }
.ir-page .table-normal thead td { background: var(--navy) !important; background-image: none !important; color: #fff !important; font: 700 12.5px var(--f-cond) !important; text-transform: uppercase; letter-spacing: .03em; padding: 8px; border: none !important; border-right: 1px solid #ffffff26 !important; text-shadow: none; vertical-align: middle; }
.ir-page .table-normal thead td a, .ir-page .table-normal thead td i { color: #fff !important; }
.ir-page .table-normal thead td .pull-right a i { opacity: .65; }
.ir-page .table-normal thead td .pull-right a:hover i { opacity: 1; }
.ir-page .table-normal tbody td { border: none; border-bottom: 1px solid var(--line); padding: 7px 8px; vertical-align: middle; }
.ir-page .table-normal tbody tr:hover > td { background-color: var(--soft) !important; }
.ir-page .table-normal.ir-t-top tbody td { vertical-align: top !important; }
.ir-page .table-normal tbody td small.text-success { color: var(--muted); }
.ir-page .table-normal tbody td.text-success, .ir-page .table-normal tbody td.text-warning, .ir-page .table-normal tbody td.text-error { font-weight: 700; }
.ir-page .table-normal tbody td.text-success::before, .ir-page .table-normal tbody td.text-warning::before, .ir-page .table-normal tbody td.text-error::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.ir-page .table-normal tbody td.text-success { color: var(--green); }
.ir-page .table-normal tbody td.text-warning { color: var(--amber); }
.ir-page .table-normal tbody td.text-error { color: var(--red-d); }
.ir-page .table-normal tbody span.text-success { color: var(--green); font-weight: 700; }
.ir-page .table-normal tbody td .status-error i { color: var(--red-d); }
.ir-page .table-normal tfoot td { background: var(--soft) !important; background-image: none !important; border-top: 1px solid var(--line); color: var(--muted); padding: 8px 12px; }
.ir-page .bg-info-100 { background: var(--soft) !important; color: var(--navy); font-weight: 700; }

/* comptadors antics dels llistats (OT, contractes, quotes...): zeros apagats, la resta pastilla */
.ir-page .table-normal tbody td > div[align="center"] > span[class=""] strong { color: var(--off); font-weight: 400; }
.ir-page .table-normal tbody td > div[align="center"] > span[class=""] a:hover strong { color: var(--blue); }
.ir-page .table-normal tbody td > div[align="center"] > span.text-info span.text-info,
.ir-page .table-normal tbody td > div[align="center"] > span.text-error span.text-error { display: inline-block; min-width: 26px; border-radius: 11px; padding: 1px 7px !important; font-size: 13px !important; }
.ir-page .table-normal tbody td > div[align="center"] > span.text-info span.text-info { background: var(--bg-blau); color: var(--tx-blau); }
.ir-page .table-normal tbody td > div[align="center"] > span.text-error span.text-error { background: var(--bg-vermell); color: var(--red-dd); }
.ir-page .table-normal tbody td > div[align="center"] a:hover { text-decoration: none; }

/* taules de parametres (A-configuracio): capcalera de seccio suau */
.ir-page .table-bordered { border-color: var(--line); border-radius: 3px; border-collapse: separate; }
.ir-page .table-bordered td { border-color: var(--line); }
.ir-page .param_cap { background: var(--grad) !important; color: var(--navy) !important; font: 700 15px var(--f-cond); text-transform: uppercase; letter-spacing: .02em; padding: 10px 12px !important; border-top: 3px solid var(--navy) !important; user-select: none; }
.ir-page tr:hover > .param_cap { background: var(--grad-h) !important; }
.ir-page .param_cap .pull-left i { color: var(--blue); margin-right: 4px; }
.ir-page .param_cap .pull-right .icon-plus-sign-alt { display: none; }
.ir-page .param_cap .ir-num { margin-right: 8px; }
.ir-page .ir-fletxa { color: var(--blue); transition: transform .2s; display: inline-block; }
.ir-page tr.ir-obert .ir-fletxa { transform: rotate(180deg); }
.ir-page .param_lin { color: var(--ink); background: #fafbfd; font-size: 13.5px; line-height: 1.35; }
.ir-page .param_lin .icon-question-sign { font-size: 17px; color: var(--blue); margin: 1px 8px 4px 0; }
.ir-page .param_lin .icon-question-sign:hover { color: var(--navy); }
.ir-page .param_lin .text-success, .ir-page .param_lin .text-info { display: inline-block; font-size: 11px; line-height: 1.5; border-radius: 9px; padding: 0 7px; margin-top: 3px; }
.ir-page .param_lin .text-success { color: var(--tx-verd); background: var(--bg-verd); }
.ir-page .param_lin .text-info { color: var(--tx-blau); background: var(--bg-blau); }
.ir-page .table-bordered tr.OPCIONS:hover > td { background-color: var(--hover); }
.ir-page tr.ir-canviat > td:first-child { box-shadow: inset 4px 0 0 var(--yellow); background: #fffaf0; }
.ir-page tr.ir-trobat > td.param_lin { box-shadow: inset 4px 0 0 var(--blue); }

/* avisos */
.ir-page .alert { background: var(--bg-groc); color: var(--ink); border: 1px solid var(--bd-groc); border-left: 5px solid var(--yellow); border-radius: 2px; text-shadow: none; padding: 9px 12px; }
.ir-page .alert-info { background: var(--soft); border-color: #c7d6ec; border-left-color: var(--blue); }
.ir-page .alert-info a { color: var(--navy-d) !important; }
.ir-page .alert-error, .ir-page .alert-danger { background: var(--bg-vermell); border-color: var(--bd-vermell); border-left-color: var(--red); }
.ir-page .alert-success { background: #eaf7ec; border-color: #b9e2be; border-left-color: var(--green); }
.ir-page .alert .table td { border: none; background: transparent; }

/* desplegables i paginacio bootstrap */
.ir-page .dropdown-menu { border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 0 0 3px 3px; box-shadow: 0 6px 18px rgba(29, 38, 53, .18); }
.ir-page .dropdown-menu > li > a:hover { background: var(--soft); background-image: none; }
.ir-page .pagination ul > li > a, .ir-page .pagination ul > li > span { border-color: var(--line); color: var(--navy); }
.ir-page .pagination ul > .active > a, .ir-page .pagination ul > .active > span { background: var(--navy); border-color: var(--navy); color: #fff; }

/* camps de formulari */
.ir-page input[type="text"]:focus, .ir-page input[type="number"]:focus, .ir-page input[type="email"]:focus, .ir-page textarea:focus, .ir-page select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px #3d8de033; outline: none; }


/* =====================================================================================================
   10. PANTALLES AMB HTML PROPI
   ===================================================================================================== */

/* ---------------- RESUM V15 (custom_sistema/pantallas/desktop/resumen_v15.php): .ir-resum ---------------- */
.ir-resum .container-fluid { padding: 15px !important; }
.ir-resum .container-fluid + .container-fluid { padding-top: 0 !important; }
.ir-resum .welcome-box { background: var(--navy); border: none; border-bottom: 5px solid var(--yellow); border-radius: 3px 3px 0 0; box-shadow: none; padding: 18px 24px; margin-bottom: 0; color: #fff; }
.ir-resum .welcome-box .row-fluid { display: flex; align-items: center; gap: 20px; }
.ir-resum .welcome-box .row-fluid > [class*="span"] { float: none; margin: 0; width: auto; }
.ir-resum .welcome-box .row-fluid > .welcome-text { flex: 1 1 auto; min-width: 0; }
.ir-resum .welcome-box img { width: 84px; height: 84px; object-fit: cover; border: none; padding: 0; background: none; border-radius: 50%; box-shadow: 0 0 0 3px var(--yellow); }
.ir-resum .welcome-text h3 { color: #fff; font: 700 26px/1.2 var(--f-cond); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 6px; }
.ir-resum .welcome-text p { color: var(--sub) !important; font-size: 14px; margin: 2px 0; }
.ir-resum .welcome-text p strong { color: #fff; }
.ir-resum .welcome-text p i { color: var(--yellow); margin-right: 2px; }
.ir-resum #fechaActual { text-transform: capitalize; }

.ir-resum .panel { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 3px; box-shadow: 0 1px 3px rgba(29, 38, 53, .04); padding: 16px 18px; margin-bottom: 16px; }
.ir-resum .panel > h3 { margin: -16px -18px 14px; padding: 10px 18px; background: var(--grad); border-bottom: 1px solid #dde6f3; color: var(--navy); font: 700 16px/1.3 var(--f-cond) !important; text-transform: uppercase; letter-spacing: .02em; }
.ir-resum .panel > h3 i { color: var(--blue) !important; margin-right: 4px; }
.ir-resum .panel > h3 i.text-error { color: var(--red) !important; }
.ir-resum .panel > h3 i.text-success { color: var(--green) !important; }
.ir-resum .panel p[style] { color: var(--navy) !important; font: 700 13px var(--f-cond); letter-spacing: .04em; margin: 0 0 6px; }
.ir-resum .panel .table-condensed { margin-bottom: 10px; }
.ir-resum .panel .table-condensed td { border-top: none; border-bottom: 1px solid var(--line); padding: 6px 4px; color: var(--muted); font-size: 13.5px; }
.ir-resum .panel .table-condensed td[style] { color: var(--ink) !important; text-align: right; }
.ir-resum .panel .table-condensed tr:last-child td { border-bottom: none; }
.ir-resum .panel .label { border-radius: 10px; padding: 2px 9px; text-shadow: none; font-weight: 700; }
.ir-resum .panel .label-success { background: var(--green); }
.ir-resum .panel .label-error, .ir-resum .panel .label-important { background: var(--red-d); }
.ir-resum .panel .action-nav-button .btn { border-radius: 3px; background-image: none; text-shadow: none; box-shadow: none; border: none; padding: 14px 8px; font: 700 15px var(--f-cond); letter-spacing: .04em; }
.ir-resum .panel .action-nav-button .btn-success { background: var(--green); }
.ir-resum .panel .action-nav-button .btn-success:hover { background: var(--green-d); }
.ir-resum .panel .action-nav-button .btn-danger { background: var(--red-d); }
.ir-resum .panel .action-nav-button .btn-danger:hover { background: var(--red-dd); }
.ir-resum .panel .action-nav-button .btn small { font: 400 11.5px var(--f-base); opacity: .9; }
.ir-resum .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0 0 14px; }
.ir-resum .stats .stat { margin: 0; background: var(--soft); border: 1px solid var(--line-b); border-radius: 3px; padding: 10px 6px; }
.ir-resum .stat-value { color: var(--navy); font: 700 24px/1.2 var(--f-cond); }
.ir-resum .text-small { color: var(--muted); font-size: 12.5px; }
.ir-resum .progress { height: 10px; border-radius: 5px; background: #e6ebf2; box-shadow: none; margin-bottom: 4px; }
.ir-resum .progress .bar { background: var(--blue); background-image: none; box-shadow: none; border-radius: 5px; }
.ir-resum .progress-success .bar { background: var(--green); }
.ir-resum .quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ir-resum .quick-actions .btn { display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; background-image: none; color: var(--ink); text-shadow: none; box-shadow: none; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 3px; padding: 14px 52px 14px 14px; font: 700 14px/1.25 var(--f-cond); text-transform: uppercase; letter-spacing: .02em; transition: background .12s, border-color .12s, box-shadow .12s; }
.ir-resum .quick-actions .btn i { color: var(--blue); font-size: 20px; }
.ir-resum .quick-actions .btn:hover { background: var(--soft); border-color: var(--blue); box-shadow: 0 2px 6px rgba(44, 76, 128, .12); }
.ir-resum .quick-actions .badge { top: 50%; transform: translateY(-50%); right: 12px; background: var(--navy); color: #fff; font: 700 13px var(--f-base); border-radius: 12px; padding: 3px 9px; text-shadow: none; }
.ir-resum .quick-actions .btn-warning { background: var(--bg-groc); border-color: var(--bd-groc); border-left-color: var(--yellow); }
.ir-resum .quick-actions .btn-warning i { color: var(--amber); }
.ir-resum .quick-actions .btn-warning .badge { background: var(--red); }
.ir-resum .quick-actions .btn-warning:hover { background: #fdeec9; }
.ir-resum .quick-actions + hr { border-top-color: var(--line); margin: 14px 0; }
.ir-resum .alert { margin-bottom: 8px; }
@media (max-width: 767px) {
	.ir-resum .welcome-box .row-fluid { flex-direction: column; text-align: center; }
	.ir-resum .welcome-text h3 { font-size: 20px; }
}

/* ---------------- PANELL DE CONTROL (A-dashboard-control.php): .ir-dash ---------------- */
.ir-dash .ir-dash-cap-accions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.ir-dash .ir-dash-edicio { display: none; }
.ir-dash.ir-editant .ir-dash-edicio { display: block; }
.ir-dash.ir-editant #irdash_personalitza { display: none; }
.ir-dash .ir-dash-ajuda { color: var(--muted); font-size: 13.5px; }
.ir-dash .ir-dash-ajuda i { color: var(--blue); margin: 0 2px; }

/* graella de 12 columnes: cada targeta ocupa el "span" de l'indicador */
.ir-dash .ir-dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.ir-dash .ir-sp-1 { grid-column: span 1; } .ir-dash .ir-sp-2 { grid-column: span 2; } .ir-dash .ir-sp-3 { grid-column: span 3; } .ir-dash .ir-sp-4 { grid-column: span 4; }
.ir-dash .ir-sp-5 { grid-column: span 5; } .ir-dash .ir-sp-6 { grid-column: span 6; } .ir-dash .ir-sp-7 { grid-column: span 7; } .ir-dash .ir-sp-8 { grid-column: span 8; }
.ir-dash .ir-sp-9 { grid-column: span 9; } .ir-dash .ir-sp-10 { grid-column: span 10; } .ir-dash .ir-sp-11 { grid-column: span 11; } .ir-dash .ir-sp-12 { grid-column: span 12; }
@media (max-width: 1200px) { .ir-dash .ir-sp-1, .ir-dash .ir-sp-2, .ir-dash .ir-sp-3 { grid-column: span 4; } }
@media (max-width: 900px) {
	.ir-dash .ir-sp-1, .ir-dash .ir-sp-2, .ir-dash .ir-sp-3, .ir-dash .ir-sp-4, .ir-dash .ir-sp-5, .ir-dash .ir-sp-6 { grid-column: span 6; }
	.ir-dash .ir-sp-7, .ir-dash .ir-sp-8, .ir-dash .ir-sp-9, .ir-dash .ir-sp-10, .ir-dash .ir-sp-11 { grid-column: span 12; }
}
@media (max-width: 600px) { .ir-dash .ir-dash-grid > [class*="ir-sp-"] { grid-column: span 12; } }

/* targeta */
.ir-dash .ir-dash-card { background: #fff; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 1px 2px rgba(29, 38, 53, .04); display: flex; flex-direction: column; min-width: 0; transition: border-color .12s, box-shadow .12s; }
.ir-dash:not(.ir-editant) .ir-dash-card.ir-dash-enllac { cursor: pointer; }
.ir-dash:not(.ir-editant) .ir-dash-card.ir-dash-enllac:hover { border-color: var(--line-d); box-shadow: 0 3px 10px rgba(44, 76, 128, .12); }
.ir-dash .ir-dash-card.ir-dash-nou { box-shadow: 0 0 0 2px var(--blue); }
.ir-dash .ir-dash-cap { display: flex; align-items: center; gap: 8px; padding: 10px 14px 0; min-height: 28px; }
.ir-dash .ir-dash-tit { flex: 1 1 auto; min-width: 0; margin: 0; font: 700 13px/1.3 var(--f-cond); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ir-dash .ir-dash-mou, .ir-dash .ir-dash-id, .ir-dash .ir-dash-treu { display: none; }
.ir-dash .ir-dash-mou { color: var(--blue); font-size: 14px; }
.ir-dash .ir-dash-id { font: 11px var(--f-mono); color: var(--muted-l); }
.ir-dash .ir-dash-treu { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--bd-vermell); background: #fff; color: var(--red-dd); align-items: center; justify-content: center; padding: 0; cursor: pointer; font-size: 12px; }
.ir-dash .ir-dash-treu:hover { background: var(--bg-vermell); border-color: var(--red-d); }
.ir-dash .ir-dash-cos { flex: 1 1 auto; padding: 6px 14px 14px; color: var(--ink); min-width: 0; }
.ir-dash .ir-dash-sense { color: var(--muted); font-size: 13px; padding: 10px 0; }
.ir-dash .ir-dash-sense i { color: var(--off); margin-right: 4px; }

/* mode personalitzar: targetes discontinues, capcalera per arrossegar */
.ir-dash.ir-editant .ir-dash-card { border-style: dashed; border-color: var(--line-d); box-shadow: none; }
.ir-dash.ir-editant .ir-dash-cap { cursor: move; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px dashed var(--line); }
.ir-dash.ir-editant .ir-dash-mou, .ir-dash.ir-editant .ir-dash-id { display: inline-block; }
.ir-dash.ir-editant .ir-dash-treu { display: inline-flex; }
.ir-dash .ir-dash-forat { border: 2px dashed var(--blue); background: var(--soft); border-radius: 3px; visibility: visible !important; }
.ir-dash .ui-sortable-helper { box-shadow: 0 10px 28px rgba(29, 38, 53, .22); border-style: solid; }

/* contingut dels indicadors (HTML antic: dashboard-stats, progress, boto "Detalle") */
.ir-dash .ir-dash-cos .separate-sections { margin-top: 0 !important; padding-bottom: 0; }
.ir-dash .ir-dash-cos .separate-sections > div { margin-bottom: 0 !important; }
.ir-dash .ir-dash-cos .dashboard-stats ul.inline { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; }
.ir-dash .ir-dash-cos .dashboard-stats ul.inline > li { padding: 0; }
.ir-dash .ir-dash-cos .dashboard-stats li.glyphNO { order: 2; margin-left: auto; color: var(--ico); }
.ir-dash .ir-dash-cos .dashboard-stats li.glyphNO i { font-size: 22px; }
.ir-dash .ir-dash-cos .dashboard-stats .count { font: 700 34px/1.05 var(--f-cond); height: auto; color: var(--navy); font-variant-numeric: tabular-nums; }
.ir-dash .ir-dash-cos .dashboard-stats .count small { font: 400 15px var(--f-cond); color: var(--muted); }
.ir-dash .ir-dash-cos .dashboard-stats.small .count { font-size: 20px; }
.ir-dash .ir-dash-cos .dashboard-stats.small li.glyphNO i { font-size: 14px; }
.ir-dash .ir-dash-cos .count.text-success { color: var(--green-dd); }
.ir-dash .ir-dash-cos .count.text-error { color: var(--red-dd); }
.ir-dash .ir-dash-cos .dashboard-stats .stats-label { color: var(--muted); font: 400 13px/1.35 var(--f-base); text-transform: none; margin-top: 4px; }
.ir-dash .ir-dash-cos .dashboard-stats > .pull-right { float: none; margin-top: 10px; }
.ir-dash .ir-dash-cos .progress { height: 6px; margin: 10px 0 0; background: var(--soft); background-image: none; border-radius: 3px; box-shadow: none; }
.ir-dash .ir-dash-cos .progress .bar { background: var(--blue); background-image: none; border-radius: 3px; box-shadow: none; }
.ir-dash .ir-dash-cos a.btn { background: none; border: none; padding: 0; height: auto; color: var(--blue); font: 700 12px var(--f-cond); text-transform: uppercase; letter-spacing: .04em; }
.ir-dash .ir-dash-cos a.btn::after { content: " \2192"; }
.ir-dash .ir-dash-cos a.btn:hover, .ir-dash .ir-dash-card.ir-dash-enllac:hover .ir-dash-cos a.btn { background: none; color: var(--navy); text-decoration: none; }
.ir-dash .ir-dash-cos .row-fluid.text-error { color: var(--muted); padding: 16px 0; }
.ir-dash .ir-dash-cos .row-fluid.text-error i { color: var(--off); }

/* panell buit */
.ir-dash .ir-dash-buit { display: none; text-align: center; padding: 56px 16px; margin-top: 14px; background: #fff; border: 1px dashed var(--line-d); border-radius: 3px; color: var(--muted); }
.ir-dash .ir-dash-buit > i { display: block; font-size: 40px; color: var(--ico); margin-bottom: 12px; }
.ir-dash .ir-dash-buit strong { display: block; font: 700 18px var(--f-cond); text-transform: uppercase; letter-spacing: .02em; color: var(--navy); }
.ir-dash .ir-dash-buit p { margin: 6px auto 16px; max-width: 460px; font-size: 14px; }

/* cataleg lateral per afegir indicadors */
.ir-dash .ir-dash-cataleg { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100%; z-index: 1050; background: #fff; border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(29, 38, 53, .16); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .2s, visibility .2s; }
.ir-dash.ir-cat-obert .ir-dash-cataleg { transform: none; visibility: visible; }
.ir-dash .ir-dash-cat-cap { display: flex; align-items: center; gap: 10px; background: var(--navy); border-bottom: 5px solid var(--yellow); padding: 14px 16px; }
.ir-dash .ir-dash-cat-cap h2 { flex: 1 1 auto; margin: 0; color: #fff; font: 700 18px/1.2 var(--f-cond); text-transform: uppercase; letter-spacing: .02em; }
.ir-dash .ir-dash-cat-tanca { background: none; border: none; color: #fff; font-size: 16px; padding: 4px 6px; cursor: pointer; opacity: .85; }
.ir-dash .ir-dash-cat-tanca:hover { opacity: 1; }
.ir-dash .ir-dash-cat-cerca { flex: none; margin: 14px 16px 4px; }
.ir-dash .ir-dash-cat-llista { flex: 1 1 auto; overflow-y: auto; padding: 0 16px 12px; }
.ir-dash .ir-dash-cat-gtit { font: 700 12px var(--f-cond); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 6px; }
.ir-dash .ir-dash-cat-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.ir-dash .ir-dash-cat-txt { flex: 1 1 auto; min-width: 0; }
.ir-dash .ir-dash-cat-txt strong { display: block; font: 700 14px/1.25 var(--f-cond); color: var(--navy); }
.ir-dash .ir-dash-cat-txt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.35; color: var(--muted); margin-top: 2px; }
.ir-dash .ir-dash-cat-afegeix, .ir-dash .ir-dash-cat-ja { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.ir-dash .ir-dash-cat-afegeix { border: 1px solid var(--blue); background: #fff; color: var(--blue); cursor: pointer; }
.ir-dash .ir-dash-cat-afegeix:hover { background: var(--blue); color: #fff; }
.ir-dash .ir-dash-cat-afegeix:disabled { opacity: .5; cursor: wait; }
.ir-dash .ir-dash-cat-ja { display: none; background: var(--bg-verd); color: var(--green-dd); }
.ir-dash .ir-dash-cat-item.ir-en-panell { background: var(--hover); }
.ir-dash .ir-dash-cat-item.ir-en-panell strong { color: var(--muted); }
.ir-dash .ir-dash-cat-item.ir-en-panell .ir-dash-cat-afegeix { display: none; }
.ir-dash .ir-dash-cat-item.ir-en-panell .ir-dash-cat-ja { display: inline-flex; }
.ir-dash .ir-dash-cat-peu { flex: none; display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }

/* avis inferior amb "Deshacer" */
.ir-dash .ir-dash-avis { position: fixed; left: 50%; bottom: 24px; z-index: 1060; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 14px; background: var(--navy-dd); color: #fff; border-radius: 3px; padding: 10px 10px 10px 16px; font-size: 13.5px; box-shadow: 0 8px 24px rgba(29, 38, 53, .25); opacity: 0; visibility: hidden; transform: translate(-50%, 16px); transition: opacity .15s, transform .15s, visibility .15s; }
.ir-dash .ir-dash-avis.ir-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ir-dash .ir-dash-avis button { background: none; border: none; color: var(--yellow); font: 700 13px var(--f-cond); text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; cursor: pointer; }
.ir-dash .ir-dash-avis button:hover { color: #fff; }

/* ---------------- DETALLS DEL RESUM V15 (resumen_v15_*.php): .ir-resum-det ---------------- */
.ir-resum-det .container-fluid { padding: 0 15px !important; }
.ir-resum-det .container-fluid:empty, .ir-resum-det .container-fluid:not(:has(*)) { display: none; }
.ir-resum-det .area-top { margin: 15px 0 0; padding: 16px 24px; }
.ir-resum-det .area-top .header h3.title { font-size: 24px !important; }
.ir-resum-det .area-top .header h3.title i { font-size: 22px !important; }
.ir-resum-det hr { display: none; }
.ir-resum-det .btn { font-size: 13px; line-height: 20px; padding: 6px 12px; }
.ir-resum-det .btn i.icon-12x { font-size: 1em; }
.ir-resum-det .btn-small { padding: 3px 9px; font-size: 12px; }
.ir-resum-det .ir-eines { position: static; border-top: none; border-radius: 0; box-shadow: none; }
.ir-resum-det .table-normal tbody td i { color: var(--blue); }
.ir-resum-det .ir-eines select { height: 34px !important; margin: 0 !important; border: 1px solid var(--line-d); border-radius: 3px; }
.ir-resum-det .box { border-top: 3px solid var(--navy); margin-bottom: 16px; }
.ir-resum-det .box .box-content { padding: 0; }
.ir-resum-det .table-normal tbody td { padding: 8px 10px; color: var(--ink); }
.ir-resum-det .fc { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 3px; padding: 10px; }

/* ---------------- LOGIN (index.php): body.ir-login-body ---------------- */
body.ir-login-body { margin: 0; height: 100%; background: var(--navy-dd); font: 14px/1.5 var(--f-base); color: var(--ink); }
html:has(body.ir-login-body) { height: 100%; }
.ir-login { display: flex; min-height: 100vh; }

/* imatge de temporada */
.ir-login-img { position: relative; flex: 1 1 auto; overflow: hidden; background: var(--navy) center / cover no-repeat; }
.ir-login-img::before { content: ""; position: absolute; inset: 0; background: inherit; background-size: cover; background-position: center; transform: scale(1.04); animation: ir-login-zoom 30s ease-out forwards; }
@keyframes ir-login-zoom { to { transform: scale(1); } }
.ir-login-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(24, 45, 80, .92) 0%, rgba(24, 45, 80, .45) 32%, rgba(24, 45, 80, 0) 60%); }
.ir-login-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 56px 48px; color: #fff; }
.ir-login-caption .ir-login-marca { font: 700 44px/1.05 var(--f-cond); text-transform: none; letter-spacing: 0; margin: 0 0 10px; color: #fff; }
.ir-login-caption .ir-login-marca span { color: var(--red); }
.ir-login-caption .ir-login-linia { width: 64px; height: 5px; background: var(--yellow); border-radius: 2px; margin: 0 0 14px; }
.ir-login-caption p { margin: 0; font-size: 16px; color: #dbe5f4; max-width: 560px; }
.ir-login-caption .ir-login-versio { display: inline-block; margin-top: 18px; font: 700 13px var(--f-cond); letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); border-radius: 3px; padding: 4px 10px; color: #fff; }

/* panell del formulari */
.ir-login-panell { flex: 0 0 460px; background: #fff; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0, 0, 0, .25); position: relative; z-index: 2; }
.ir-login-panell::before { content: ""; display: block; height: 6px; background: linear-gradient(to right, var(--navy) 0 70%, var(--yellow) 70% 100%); }
.ir-login-cos { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 40px 48px; }
.ir-login-logo { text-align: center; margin-bottom: 26px; }
.ir-login-logo img { max-width: 78%; max-height: 110px; height: auto; }
.ir-login h1 { font: 700 24px/1.2 var(--f-cond); text-transform: uppercase; letter-spacing: .01em; color: var(--navy); margin: 0 0 4px; }
.ir-login .ir-login-subt { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.ir-login .ir-login-camp { position: relative; margin-bottom: 14px; }
.ir-login .ir-login-camp > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8a96a8; font-size: 15px; pointer-events: none; transition: color .15s; }
.ir-login .ir-login-camp input.form-control { height: 48px; padding: 10px 44px 10px 42px; font-size: 15px; border: 1px solid var(--line-d); border-radius: 4px; color: var(--ink); background: #fff; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.ir-login .ir-login-camp input.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #3d8de033; }
.ir-login .ir-login-camp:focus-within > i { color: var(--blue); }
.ir-login .ir-login-ull { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: none; color: #8a96a8; width: 36px; height: 36px; border-radius: 4px; cursor: pointer; }
.ir-login .ir-login-ull:hover, .ir-login .ir-login-ull:focus { color: var(--navy); background: var(--soft); outline: none; }
.ir-login .ir-login-majus { display: none; font-size: 12.5px; color: var(--amber-dd); background: var(--bg-groc); border: 1px solid var(--bd-groc); border-radius: 3px; padding: 3px 8px; margin: -6px 0 12px; }
.ir-login .ir-login-majus.ir-login-on { display: block; }
.ir-login #ZONA_EMPRESA:empty { display: none; }
.ir-login #ZONA_EMPRESA { margin-bottom: 14px; padding: 12px; background: var(--soft); border: 1px solid var(--line-b); border-left: 4px solid var(--blue); border-radius: 3px; }
.ir-login #ZONA_EMPRESA label { font: 700 13px var(--f-cond); text-transform: uppercase; letter-spacing: .03em; color: var(--navy); margin-bottom: 6px; }
.ir-login #ZONA_EMPRESA select { height: 46px; font-size: 15px; border: 1px solid var(--line-d); border-radius: 4px; }
.ir-login .ir-login-captcha { text-align: center; background: var(--soft); border: 1px solid var(--line-b); border-radius: 3px; padding: 14px; margin-bottom: 14px; }
.ir-login .ir-login-captcha p { color: var(--ink); font-size: 13.5px; margin: 0 0 10px; }
.ir-login .ir-login-captcha img { max-width: 60%; height: auto; border-radius: 3px; margin-bottom: 10px; background: #fff; }
.ir-login .ir-login-captcha input.form-control { height: 44px; text-align: center; font-size: 15px; border: 1px solid var(--line-d); }
.ir-login .alert { border: 1px solid var(--bd-vermell); border-left: 5px solid var(--red); background: var(--bg-vermell); color: #8f1520; border-radius: 3px; font-size: 14px; padding: 10px 12px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.ir-login .alert i { color: var(--red-d); font-size: 18px; }
.ir-login .ir-login-entrar { width: 100%; height: 50px; border: none; border-radius: 4px; background: var(--navy); color: #fff; font: 700 16px var(--f-cond); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background .15s, transform .05s; }
.ir-login .ir-login-entrar:hover { background: var(--navy-d); }
.ir-login .ir-login-entrar:active { transform: translateY(1px); }
.ir-login .ir-login-entrar:focus { outline: none; box-shadow: 0 0 0 3px #3d8de055; }
.ir-login .ir-login-entrar i { color: var(--yellow); }
.ir-login .ir-login-entrar[disabled] { opacity: .8; cursor: progress; }
.ir-login-peu { padding: 16px 48px 20px; border-top: 1px solid var(--line); color: var(--muted-l); font-size: 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hp-field { display: none; visibility: hidden; height: 0; }
@media (max-width: 900px) {
	.ir-login { flex-direction: column; }
	.ir-login-img { flex: 0 0 200px; }
	.ir-login-caption { padding: 0 24px 18px; }
	.ir-login-caption .ir-login-marca { font-size: 30px; }
	.ir-login-caption p, .ir-login-caption .ir-login-versio { display: none; }
	.ir-login-panell { flex: 1 1 auto; box-shadow: none; }
	.ir-login-cos { padding: 28px 24px; justify-content: flex-start; }
	.ir-login-peu { padding: 14px 24px; }
}
@media (prefers-reduced-motion: reduce) { .ir-login-img::before { animation: none; transform: none; } }
