/* SOURCE: css/00-espaces.css */
/* Couleurs des espaces MNP. Les verts de MNP Pro sont des variables (valeur ci-dessous = vert d'origine) ;
   chaque espace les redefinit dans sa couleur : Perso corail, Architecture indigo, Send turquoise.
   L'espace courant est l'attribut data-space de <html> (js/core/session.js, applyTheme) ; les cartes de
   l'accueil portent aussi data-space. Genere par conversion OKLCH (teinte tournee, luminosite gardee
   pour les nuances foncees : les textes restent lisibles). Charge avant toutes les autres feuilles. */

:root,
[data-space="pro"] {
  --mnp-vert-8ee820: 142, 232, 32;
  --mnp-vert-a8ef3f: 168, 239, 63;
  --mnp-vert-176b3c: 23, 107, 60;
  --mnp-vert-102016: 16, 32, 22;
  --mnp-vert-082315: 8, 35, 21;
  --mnp-vert-b9ff42: 185, 255, 66;
  --mnp-vert-a3e635: 163, 230, 53;
  --mnp-vert-97e845: 151, 232, 69;
  --mnp-vert-9cf13d: 156, 241, 61;
  --mnp-vert-9fef48: 159, 239, 72;
  --mnp-vert-f1f6ed: 241, 246, 237;
  --mnp-vert-6fb923: 111, 185, 35;
  --mnp-vert-84cc16: 132, 204, 22;
  --mnp-vert-9ff137: 159, 241, 55;
  --mnp-vert-eaffd1: 234, 255, 209;
  --mnp-vert-22c55e: 34, 197, 94;
  --mnp-vert-8ebe40: 142, 190, 64;
  --mnp-vert-b8ff4d: 184, 255, 77;
  --mnp-vert-97f430: 151, 244, 48;
  --mnp-vert-147d4f: 20, 125, 79;
  --mnp-vert-2f6f45: 47, 111, 69;
  --mnp-vert-173624: 23, 54, 36;
  --mnp-vert-beff5d: 190, 255, 93;
  --mnp-vert-aeee4e: 174, 238, 78;
  --mnp-vert-78c52d: 120, 197, 45;
  --mnp-vert-b6ff4d: 182, 255, 77;
  --mnp-vert-b7f353: 183, 243, 83;
  --mnp-vert-e8f0e5: 232, 240, 229;
  --mnp-vert-75b872: 117, 184, 114;
  --mnp-vert-32603e: 50, 96, 62;
  --mnp-vert-11341d: 17, 52, 29;
  --mnp-vert-e7f1e5: 231, 241, 229;
  --mnp-vert-8ed69b: 142, 214, 155;
  --mnp-vert-0a120c: 10, 18, 12;
  --mnp-vert-a7f33d: 167, 243, 61;
  --mnp-vert-137545: 19, 117, 69;
  --mnp-vert-ecfdf5: 236, 253, 245;
  --mnp-vert-9bd12f: 155, 209, 47;
  --mnp-vert-c8ff5c: 200, 255, 92;
  --mnp-vert-80d033: 128, 208, 51;
  --mnp-vert-507c1c: 80, 124, 28;
  --mnp-vert-a7f044: 167, 240, 68;
  --mnp-vert-e8f3e8: 232, 243, 232;
  --mnp-vert-08140c: 8, 20, 12;
  --mnp-vert-65b978: 101, 185, 120;
  --mnp-vert-07120a: 7, 18, 10;
  --mnp-vert-ebf5ec: 235, 245, 236;
  --mnp-vert-1c6e3b: 28, 110, 59;
  --mnp-vert-376d44: 55, 109, 68;
  --mnp-vert-b6ff42: 182, 255, 66;
  --mnp-vert-beff57: 190, 255, 87;
  --mnp-vert-a5ef43: 165, 239, 67;
  --mnp-vert-71ab2b: 113, 171, 43;
  --mnp-vert-68ab23: 104, 171, 35;
  --mnp-vert-b8f94d: 184, 249, 77;
  --mnp-vert-7cb42f: 124, 180, 47;
  --mnp-vert-dce9df: 220, 233, 223;
  --mnp-vert-6ea87e: 110, 168, 126;
  --mnp-vert-bbf7d0: 187, 247, 208;
  --mnp-vert-bef264: 190, 242, 100;
  --mnp-vert-386426: 56, 100, 38;
  --mnp-vert-dfffc0: 223, 255, 192;
  --mnp-vert-72c82b: 114, 200, 43;
  --mnp-vert-f7f8f4: 247, 248, 244;
  --mnp-vert-eff4ec: 239, 244, 236;
  --mnp-vert-f2f8f1: 242, 248, 241;
  --mnp-vert-f5faf1: 245, 250, 241;
  --mnp-vert-ecf2ea: 236, 242, 234;
  --mnp-vert-b9efbf: 185, 239, 191;
  --mnp-vert-495c23: 73, 92, 35;
  --mnp-vert-1f492a: 31, 73, 42;
  --mnp-vert-0c1613: 12, 22, 19;
  --mnp-vert-166534: 22, 101, 52;
  --mnp-vert-2d5f2f: 45, 95, 47;
  --mnp-vert-06120a: 6, 18, 10;
  --mnp-vert-f1f8f0: 241, 248, 240;
  --mnp-vert-2f6f3d: 47, 111, 61;
  --mnp-vert-35643d: 53, 100, 61;
  --mnp-vert-eff6ec: 239, 246, 236;
  --mnp-vert-f1f7ef: 241, 247, 239;
  --mnp-vert-e4f4e7: 228, 244, 231;
  --mnp-vert-f4f8f2: 244, 248, 242;
  --mnp-vert-f5f9f3: 245, 249, 243;
  --mnp-vert-377143: 55, 113, 67;
  --mnp-vert-7bac35: 123, 172, 53;
  --mnp-vert-78b836: 120, 184, 54;
  --mnp-vert-0f5f39: 15, 95, 57;
  --mnp-vert-e1edda: 225, 237, 218;
  --mnp-vert-c4dca6: 196, 220, 166;
  --mnp-vert-10170b: 16, 23, 11;
  --mnp-vert-0d704a: 13, 112, 74;
  --mnp-vert-d9f99d: 217, 249, 157;
  --mnp-vert-17251c: 23, 37, 28;
  --mnp-vert-eaf5ed: 234, 245, 237;
  --mnp-vert-eef6f0: 238, 246, 240;
  --mnp-vert-355744: 53, 87, 68;
  --mnp-vert-0b2417: 11, 36, 23;
  --mnp-vert-255b38: 37, 91, 56;
  --mnp-vert-182b1f: 24, 43, 31;
  --mnp-vert-0d1b13: 13, 27, 19;
  --mnp-vert-4f8f36: 79, 143, 54;
  --mnp-vert-047857: 4, 120, 87;
  --mnp-vert-dcfce7: 220, 252, 231;
  --mnp-vert-14532d: 20, 83, 45;
  --mnp-vert-c8f266: 200, 242, 102;
  --mnp-vert-4d7c0f: 77, 124, 15;
  --mnp-vert-d7ff8a: 215, 255, 138;
  --mnp-vert-538123: 83, 129, 35;
  --mnp-vert-d9ff8d: 217, 255, 141;
  --mnp-vert-5da51d: 93, 165, 29;
  --mnp-vert-7cca2c: 124, 202, 44;
  --mnp-vert-caff57: 202, 255, 87;
  --mnp-vert-82cf2d: 130, 207, 45;
  --mnp-vert-9de23d: 157, 226, 61;
  --mnp-vert-22432d: 34, 67, 45;
  --mnp-vert-09140d: 9, 20, 13;
  --mnp-vert-12211a: 18, 33, 26;
  --mnp-vert-3f6212: 63, 98, 18;
  --mnp-vert-122a15: 18, 42, 21;
  --mnp-vert-1e3a18: 30, 58, 24;
  --mnp-vert-4e7925: 78, 121, 37;
  --mnp-vert-1e441b: 30, 68, 27;
  --mnp-vert-d8ff8b: 216, 255, 139;
  --mnp-vert-e7ffd0: 231, 255, 208;
  --mnp-vert-1f3722: 31, 55, 34;
  --mnp-vert-6fc82a: 111, 200, 42;
  --mnp-vert-1f2f1d: 31, 47, 29;
  --mnp-vert-a3ee3d: 163, 238, 61;
  --mnp-vert-b1ff4c: 177, 255, 76;
  --mnp-vert-b8ff43: 184, 255, 67;
  --mnp-vert-5d8727: 93, 135, 39;
  --mnp-vert-b7f44d: 183, 244, 77;
  --mnp-vert-5e842d: 94, 132, 45;
  --mnp-vert-77cf63: 119, 207, 99;
  --mnp-vert-15251e: 21, 37, 30;
  --mnp-vert-83bb35: 131, 187, 53;
  --mnp-vert-709a2f: 112, 154, 47;
  --mnp-vert-7eaa35: 126, 170, 53;
}

/* MNP Perso : corail (#ff8a5c / #c2410c) */
[data-space="perso"] {
  --mnp-vert-8ee820: 255, 138, 92;
  --mnp-vert-a8ef3f: 255, 155, 122;
  --mnp-vert-176b3c: 167, 51, 0;
  --mnp-vert-102016: 46, 19, 10;
  --mnp-vert-082315: 54, 15, 0;
  --mnp-vert-b9ff42: 255, 178, 155;
  --mnp-vert-a3e635: 252, 143, 110;
  --mnp-vert-97e845: 251, 144, 104;
  --mnp-vert-9cf13d: 255, 154, 116;
  --mnp-vert-9fef48: 255, 153, 115;
  --mnp-vert-f1f6ed: 220, 213, 211;
  --mnp-vert-6fb923: 208, 110, 72;
  --mnp-vert-84cc16: 225, 121, 85;
  --mnp-vert-9ff137: 255, 155, 119;
  --mnp-vert-eaffd1: 244, 208, 197;
  --mnp-vert-22c55e: 255, 145, 108;
  --mnp-vert-8ebe40: 206, 123, 99;
  --mnp-vert-b8ff4d: 255, 179, 155;
  --mnp-vert-97f430: 255, 157, 119;
  --mnp-vert-147d4f: 190, 72, 0;
  --mnp-vert-2f6f45: 170, 64, 26;
  --mnp-vert-173624: 78, 30, 9;
  --mnp-vert-beff5d: 255, 181, 158;
  --mnp-vert-aeee4e: 255, 156, 125;
  --mnp-vert-78c52d: 220, 118, 78;
  --mnp-vert-b6ff4d: 255, 178, 153;
  --mnp-vert-b7f353: 255, 165, 138;
  --mnp-vert-e8f0e5: 230, 217, 213;
  --mnp-vert-75b872: 237, 132, 95;
  --mnp-vert-32603e: 139, 62, 36;
  --mnp-vert-11341d: 79, 22, 2;
  --mnp-vert-e7f1e5: 243, 226, 221;
  --mnp-vert-8ed69b: 255, 193, 173;
  --mnp-vert-0a120c: 26, 11, 7;
  --mnp-vert-a7f33d: 255, 159, 127;
  --mnp-vert-137545: 180, 62, 0;
  --mnp-vert-ecfdf5: 255, 251, 248;
  --mnp-vert-9bd12f: 229, 130, 103;
  --mnp-vert-c8ff5c: 255, 183, 165;
  --mnp-vert-80d033: 230, 125, 84;
  --mnp-vert-507c1c: 142, 80, 57;
  --mnp-vert-a7f044: 255, 156, 123;
  --mnp-vert-e8f3e8: 255, 243, 238;
  --mnp-vert-08140c: 31, 10, 4;
  --mnp-vert-65b978: 255, 141, 102;
  --mnp-vert-07120a: 28, 9, 4;
  --mnp-vert-ebf5ec: 255, 251, 249;
  --mnp-vert-1c6e3b: 169, 53, 0;
  --mnp-vert-376d44: 158, 69, 39;
  --mnp-vert-b6ff42: 255, 178, 153;
  --mnp-vert-beff57: 255, 181, 158;
  --mnp-vert-a5ef43: 255, 154, 120;
  --mnp-vert-71ab2b: 188, 107, 77;
  --mnp-vert-68ab23: 192, 104, 69;
  --mnp-vert-b8f94d: 255, 172, 147;
  --mnp-vert-7cb42f: 198, 113, 84;
  --mnp-vert-dce9df: 255, 251, 249;
  --mnp-vert-6ea87e: 241, 137, 104;
  --mnp-vert-bbf7d0: 255, 251, 249;
  --mnp-vert-bef264: 255, 166, 142;
  --mnp-vert-386426: 127, 64, 40;
  --mnp-vert-dfffc0: 249, 201, 185;
  --mnp-vert-72c82b: 232, 117, 71;
  --mnp-vert-f7f8f4: 221, 217, 217;
  --mnp-vert-eff4ec: 221, 214, 211;
  --mnp-vert-f2f8f1: 248, 238, 235;
  --mnp-vert-f5faf1: 224, 217, 215;
  --mnp-vert-ecf2ea: 232, 223, 220;
  --mnp-vert-b9efbf: 255, 229, 220;
  --mnp-vert-495c23: 107, 67, 58;
  --mnp-vert-1f492a: 106, 39, 14;
  --mnp-vert-0c1613: 28, 17, 8;
  --mnp-vert-166534: 154, 47, 0;
  --mnp-vert-2d5f2f: 132, 56, 28;
  --mnp-vert-06120a: 29, 8, 3;
  --mnp-vert-f1f8f0: 251, 239, 235;
  --mnp-vert-2f6f3d: 163, 63, 25;
  --mnp-vert-35643d: 141, 65, 38;
  --mnp-vert-eff6ec: 232, 221, 218;
  --mnp-vert-f1f7ef: 237, 228, 224;
  --mnp-vert-e4f4e7: 255, 251, 249;
  --mnp-vert-f4f8f2: 228, 222, 220;
  --mnp-vert-f5f9f3: 229, 223, 221;
  --mnp-vert-377143: 163, 70, 37;
  --mnp-vert-7bac35: 188, 110, 86;
  --mnp-vert-78b836: 200, 115, 82;
  --mnp-vert-0f5f39: 142, 49, 0;
  --mnp-vert-e1edda: 220, 203, 197;
  --mnp-vert-c4dca6: 212, 171, 159;
  --mnp-vert-10170b: 28, 18, 14;
  --mnp-vert-0d704a: 165, 67, 0;
  --mnp-vert-d9f99d: 255, 187, 171;
  --mnp-vert-17251c: 50, 26, 17;
  --mnp-vert-eaf5ed: 255, 251, 249;
  --mnp-vert-eef6f0: 255, 251, 249;
  --mnp-vert-355744: 119, 66, 43;
  --mnp-vert-0b2417: 54, 17, 2;
  --mnp-vert-255b38: 138, 49, 16;
  --mnp-vert-182b1f: 60, 28, 16;
  --mnp-vert-0d1b13: 39, 17, 7;
  --mnp-vert-4f8f36: 179, 88, 53;
  --mnp-vert-047857: 172, 80, 0;
  --mnp-vert-dcfce7: 255, 251, 249;
  --mnp-vert-14532d: 126, 37, 0;
  --mnp-vert-c8f266: 255, 169, 150;
  --mnp-vert-4d7c0f: 143, 78, 54;
  --mnp-vert-d7ff8a: 255, 191, 175;
  --mnp-vert-538123: 146, 84, 60;
  --mnp-vert-d9ff8d: 255, 191, 176;
  --mnp-vert-5da51d: 194, 97, 59;
  --mnp-vert-7cca2c: 223, 121, 81;
  --mnp-vert-caff57: 255, 184, 166;
  --mnp-vert-82cf2d: 225, 124, 85;
  --mnp-vert-9de23d: 246, 141, 106;
  --mnp-vert-22432d: 96, 39, 20;
  --mnp-vert-09140d: 30, 11, 5;
  --mnp-vert-12211a: 44, 23, 12;
  --mnp-vert-3f6212: 116, 65, 47;
  --mnp-vert-122a15: 61, 23, 9;
  --mnp-vert-1e3a18: 78, 37, 21;
  --mnp-vert-4e7925: 137, 80, 58;
  --mnp-vert-1e441b: 95, 38, 17;
  --mnp-vert-d8ff8b: 255, 191, 176;
  --mnp-vert-e7ffd0: 244, 207, 195;
  --mnp-vert-1f3722: 75, 36, 22;
  --mnp-vert-6fc82a: 236, 115, 68;
  --mnp-vert-1f2f1d: 60, 35, 26;
  --mnp-vert-a3ee3d: 255, 152, 117;
  --mnp-vert-b1ff4c: 255, 177, 150;
  --mnp-vert-b8ff43: 255, 178, 155;
  --mnp-vert-5d8727: 152, 88, 67;
  --mnp-vert-b7f44d: 255, 165, 140;
  --mnp-vert-5e842d: 147, 88, 69;
  --mnp-vert-77cf63: 255, 135, 91;
  --mnp-vert-15251e: 49, 27, 14;
  --mnp-vert-83bb35: 204, 118, 89;
  --mnp-vert-709a2f: 171, 100, 79;
  --mnp-vert-7eaa35: 186, 110, 88;
}

/* MNP Architecture : indigo (#818cf8 / #4f46e5) */
[data-space="architecture"] {
  --mnp-vert-8ee820: 129, 140, 248;
  --mnp-vert-a8ef3f: 134, 153, 253;
  --mnp-vert-176b3c: 72, 58, 218;
  --mnp-vert-102016: 23, 23, 56;
  --mnp-vert-082315: 24, 19, 70;
  --mnp-vert-b9ff42: 150, 171, 255;
  --mnp-vert-a3e635: 126, 146, 243;
  --mnp-vert-97e845: 132, 144, 242;
  --mnp-vert-9cf13d: 138, 151, 255;
  --mnp-vert-9fef48: 137, 151, 250;
  --mnp-vert-f1f6ed: 189, 191, 197;
  --mnp-vert-6fb923: 104, 113, 206;
  --mnp-vert-84cc16: 110, 124, 218;
  --mnp-vert-9ff137: 136, 151, 255;
  --mnp-vert-eaffd1: 183, 192, 223;
  --mnp-vert-22c55e: 145, 157, 255;
  --mnp-vert-8ebe40: 106, 123, 196;
  --mnp-vert-b8ff4d: 151, 171, 255;
  --mnp-vert-97f430: 140, 152, 255;
  --mnp-vert-147d4f: 98, 70, 245;
  --mnp-vert-2f6f45: 77, 76, 205;
  --mnp-vert-173624: 38, 36, 97;
  --mnp-vert-beff5d: 153, 173, 255;
  --mnp-vert-aeee4e: 135, 156, 248;
  --mnp-vert-78c52d: 111, 120, 216;
  --mnp-vert-b6ff4d: 152, 170, 255;
  --mnp-vert-b7f353: 139, 162, 254;
  --mnp-vert-e8f0e5: 196, 198, 210;
  --mnp-vert-75b872: 126, 136, 253;
  --mnp-vert-32603e: 68, 72, 164;
  --mnp-vert-11341d: 33, 31, 101;
  --mnp-vert-e7f1e5: 206, 209, 226;
  --mnp-vert-8ed69b: 178, 189, 255;
  --mnp-vert-0a120c: 12, 14, 31;
  --mnp-vert-a7f33d: 138, 156, 255;
  --mnp-vert-137545: 85, 63, 236;
  --mnp-vert-ecfdf5: 251, 251, 255;
  --mnp-vert-9bd12f: 110, 132, 218;
  --mnp-vert-c8ff5c: 152, 176, 255;
  --mnp-vert-80d033: 116, 126, 225;
  --mnp-vert-507c1c: 77, 85, 141;
  --mnp-vert-a7f044: 136, 154, 253;
  --mnp-vert-e8f3e8: 222, 226, 248;
  --mnp-vert-08140c: 12, 13, 39;
  --mnp-vert-65b978: 142, 154, 255;
  --mnp-vert-07120a: 10, 12, 36;
  --mnp-vert-ebf5ec: 235, 239, 255;
  --mnp-vert-1c6e3b: 73, 63, 216;
  --mnp-vert-376d44: 76, 80, 186;
  --mnp-vert-b6ff42: 151, 170, 255;
  --mnp-vert-beff57: 152, 173, 255;
  --mnp-vert-a5ef43: 135, 153, 252;
  --mnp-vert-71ab2b: 98, 109, 183;
  --mnp-vert-68ab23: 98, 107, 190;
  --mnp-vert-b8f94d: 144, 166, 255;
  --mnp-vert-7cb42f: 101, 115, 191;
  --mnp-vert-dce9df: 237, 240, 255;
  --mnp-vert-6ea87e: 136, 147, 255;
  --mnp-vert-bbf7d0: 242, 244, 255;
  --mnp-vert-bef264: 141, 164, 248;
  --mnp-vert-386426: 66, 72, 138;
  --mnp-vert-dfffc0: 177, 187, 230;
  --mnp-vert-72c82b: 112, 121, 235;
  --mnp-vert-f7f8f4: 193, 195, 197;
  --mnp-vert-eff4ec: 190, 192, 198;
  --mnp-vert-f2f8f1: 218, 220, 231;
  --mnp-vert-f5faf1: 193, 195, 201;
  --mnp-vert-ecf2ea: 201, 203, 213;
  --mnp-vert-b9efbf: 209, 216, 255;
  --mnp-vert-495c23: 62, 73, 107;
  --mnp-vert-1f492a: 48, 49, 131;
  --mnp-vert-0c1613: 21, 16, 33;
  --mnp-vert-166534: 66, 55, 200;
  --mnp-vert-2d5f2f: 63, 66, 155;
  --mnp-vert-06120a: 10, 11, 37;
  --mnp-vert-f1f8f0: 219, 221, 234;
  --mnp-vert-2f6f3d: 74, 75, 195;
  --mnp-vert-35643d: 70, 74, 164;
  --mnp-vert-eff6ec: 199, 201, 211;
  --mnp-vert-f1f7ef: 206, 208, 217;
  --mnp-vert-e4f4e7: 243, 245, 255;
  --mnp-vert-f4f8f2: 200, 201, 206;
  --mnp-vert-f5f9f3: 201, 202, 207;
  --mnp-vert-377143: 78, 81, 192;
  --mnp-vert-7bac35: 98, 112, 182;
  --mnp-vert-78b836: 105, 115, 193;
  --mnp-vert-0f5f39: 69, 50, 189;
  --mnp-vert-e1edda: 180, 183, 198;
  --mnp-vert-c4dca6: 147, 157, 193;
  --mnp-vert-10170b: 18, 20, 29;
  --mnp-vert-0d704a: 92, 61, 216;
  --mnp-vert-d9f99d: 160, 181, 237;
  --mnp-vert-17251c: 28, 30, 59;
  --mnp-vert-eaf5ed: 251, 251, 255;
  --mnp-vert-eef6f0: 251, 251, 255;
  --mnp-vert-355744: 72, 70, 137;
  --mnp-vert-0b2417: 26, 21, 69;
  --mnp-vert-255b38: 62, 61, 170;
  --mnp-vert-182b1f: 31, 33, 72;
  --mnp-vert-0d1b13: 20, 19, 47;
  --mnp-vert-4f8f36: 88, 95, 191;
  --mnp-vert-047857: 109, 66, 222;
  --mnp-vert-dcfce7: 251, 251, 255;
  --mnp-vert-14532d: 54, 45, 166;
  --mnp-vert-c8f266: 139, 168, 248;
  --mnp-vert-4d7c0f: 75, 84, 144;
  --mnp-vert-d7ff8a: 158, 182, 253;
  --mnp-vert-538123: 80, 87, 145;
  --mnp-vert-d9ff8d: 158, 183, 252;
  --mnp-vert-5da51d: 95, 103, 198;
  --mnp-vert-7cca2c: 113, 122, 218;
  --mnp-vert-caff57: 151, 177, 255;
  --mnp-vert-82cf2d: 115, 125, 217;
  --mnp-vert-9de23d: 125, 142, 236;
  --mnp-vert-22432d: 46, 48, 117;
  --mnp-vert-09140d: 13, 14, 37;
  --mnp-vert-12211a: 28, 25, 52;
  --mnp-vert-3f6212: 64, 72, 118;
  --mnp-vert-122a15: 27, 29, 74;
  --mnp-vert-1e3a18: 40, 44, 90;
  --mnp-vert-4e7925: 77, 84, 136;
  --mnp-vert-1e441b: 45, 49, 113;
  --mnp-vert-d8ff8b: 158, 183, 252;
  --mnp-vert-e7ffd0: 183, 191, 223;
  --mnp-vert-1f3722: 39, 43, 89;
  --mnp-vert-6fc82a: 112, 121, 241;
  --mnp-vert-1f2f1d: 36, 39, 67;
  --mnp-vert-a3ee3d: 134, 151, 252;
  --mnp-vert-b1ff4c: 152, 169, 255;
  --mnp-vert-b8ff43: 151, 171, 255;
  --mnp-vert-5d8727: 82, 92, 149;
  --mnp-vert-b7f44d: 139, 162, 255;
  --mnp-vert-5e842d: 81, 92, 144;
  --mnp-vert-77cf63: 131, 142, 255;
  --mnp-vert-15251e: 32, 28, 57;
  --mnp-vert-83bb35: 104, 119, 196;
  --mnp-vert-709a2f: 89, 104, 166;
  --mnp-vert-7eaa35: 96, 113, 179;
}

/* MNP Send : turquoise (#2dd4bf / #0f766e) */
[data-space="send"] {
  --mnp-vert-8ee820: 45, 212, 191;
  --mnp-vert-a8ef3f: 87, 221, 196;
  --mnp-vert-176b3c: 0, 108, 101;
  --mnp-vert-102016: 14, 31, 30;
  --mnp-vert-082315: 5, 34, 33;
  --mnp-vert-b9ff42: 98, 237, 210;
  --mnp-vert-a3e635: 81, 212, 187;
  --mnp-vert-97e845: 76, 212, 192;
  --mnp-vert-9cf13d: 73, 221, 200;
  --mnp-vert-9fef48: 82, 219, 198;
  --mnp-vert-f1f6ed: 220, 227, 225;
  --mnp-vert-6fb923: 38, 170, 154;
  --mnp-vert-84cc16: 47, 187, 166;
  --mnp-vert-9ff137: 73, 222, 199;
  --mnp-vert-eaffd1: 202, 236, 227;
  --mnp-vert-22c55e: 0, 198, 183;
  --mnp-vert-8ebe40: 82, 175, 155;
  --mnp-vert-b8ff4d: 102, 237, 211;
  --mnp-vert-97f430: 58, 224, 202;
  --mnp-vert-147d4f: 5, 127, 123;
  --mnp-vert-2f6f45: 37, 113, 106;
  --mnp-vert-173624: 19, 53, 51;
  --mnp-vert-beff5d: 115, 237, 211;
  --mnp-vert-aeee4e: 99, 220, 196;
  --mnp-vert-78c52d: 47, 181, 163;
  --mnp-vert-b6ff4d: 101, 237, 211;
  --mnp-vert-b7f353: 108, 226, 200;
  --mnp-vert-e8f0e5: 218, 228, 226;
  --mnp-vert-75b872: 98, 180, 169;
  --mnp-vert-32603e: 43, 97, 91;
  --mnp-vert-11341d: 9, 51, 47;
  --mnp-vert-e7f1e5: 223, 234, 232;
  --mnp-vert-8ed69b: 137, 219, 209;
  --mnp-vert-0a120c: 9, 18, 17;
  --mnp-vert-a7f33d: 83, 224, 200;
  --mnp-vert-137545: 0, 118, 112;
  --mnp-vert-ecfdf5: 241, 255, 255;
  --mnp-vert-9bd12f: 78, 193, 168;
  --mnp-vert-c8ff5c: 123, 239, 210;
  --mnp-vert-80d033: 52, 190, 172;
  --mnp-vert-507c1c: 40, 117, 105;
  --mnp-vert-a7f044: 88, 221, 198;
  --mnp-vert-e8f3e8: 232, 244, 242;
  --mnp-vert-08140c: 7, 20, 18;
  --mnp-vert-65b978: 90, 189, 178;
  --mnp-vert-07120a: 6, 18, 16;
  --mnp-vert-ebf5ec: 240, 251, 249;
  --mnp-vert-1c6e3b: 0, 111, 103;
  --mnp-vert-376d44: 46, 110, 103;
  --mnp-vert-b6ff42: 96, 237, 210;
  --mnp-vert-beff57: 112, 237, 211;
  --mnp-vert-a5ef43: 86, 220, 197;
  --mnp-vert-71ab2b: 55, 158, 142;
  --mnp-vert-68ab23: 41, 158, 142;
  --mnp-vert-b8f94d: 104, 231, 205;
  --mnp-vert-7cb42f: 63, 166, 148;
  --mnp-vert-dce9df: 232, 246, 244;
  --mnp-vert-6ea87e: 110, 175, 167;
  --mnp-vert-bbf7d0: 210, 255, 251;
  --mnp-vert-bef264: 122, 225, 200;
  --mnp-vert-386426: 33, 97, 88;
  --mnp-vert-dfffc0: 188, 235, 224;
  --mnp-vert-72c82b: 31, 185, 167;
  --mnp-vert-f7f8f4: 227, 229, 228;
  --mnp-vert-eff4ec: 220, 226, 225;
  --mnp-vert-f2f8f1: 236, 243, 241;
  --mnp-vert-f5faf1: 224, 231, 229;
  --mnp-vert-ecf2ea: 224, 231, 230;
  --mnp-vert-b9efbf: 181, 242, 234;
  --mnp-vert-495c23: 49, 90, 79;
  --mnp-vert-1f492a: 21, 72, 67;
  --mnp-vert-0c1613: 13, 21, 22;
  --mnp-vert-166534: 0, 101, 93;
  --mnp-vert-2d5f2f: 28, 94, 86;
  --mnp-vert-06120a: 5, 18, 16;
  --mnp-vert-f1f8f0: 235, 243, 242;
  --mnp-vert-2f6f3d: 30, 111, 103;
  --mnp-vert-35643d: 44, 100, 93;
  --mnp-vert-eff6ec: 224, 232, 231;
  --mnp-vert-f1f7ef: 229, 236, 235;
  --mnp-vert-e4f4e7: 237, 254, 252;
  --mnp-vert-f4f8f2: 228, 233, 231;
  --mnp-vert-f5f9f3: 229, 233, 232;
  --mnp-vert-377143: 43, 113, 106;
  --mnp-vert-7bac35: 68, 159, 142;
  --mnp-vert-78b836: 61, 169, 153;
  --mnp-vert-0f5f39: 0, 95, 91;
  --mnp-vert-e1edda: 204, 219, 216;
  --mnp-vert-c4dca6: 162, 201, 191;
  --mnp-vert-10170b: 13, 23, 21;
  --mnp-vert-0d704a: 9, 113, 111;
  --mnp-vert-d9f99d: 167, 232, 212;
  --mnp-vert-17251c: 22, 36, 35;
  --mnp-vert-eaf5ed: 243, 255, 253;
  --mnp-vert-eef6f0: 245, 254, 253;
  --mnp-vert-355744: 53, 88, 86;
  --mnp-vert-0b2417: 9, 35, 34;
  --mnp-vert-255b38: 27, 91, 85;
  --mnp-vert-182b1f: 22, 42, 41;
  --mnp-vert-0d1b13: 12, 26, 26;
  --mnp-vert-4f8f36: 41, 136, 124;
  --mnp-vert-047857: 23, 120, 124;
  --mnp-vert-dcfce7: 240, 255, 254;
  --mnp-vert-14532d: 0, 82, 76;
  --mnp-vert-c8f266: 130, 226, 199;
  --mnp-vert-4d7c0f: 31, 117, 104;
  --mnp-vert-d7ff8a: 155, 238, 214;
  --mnp-vert-538123: 44, 121, 109;
  --mnp-vert-d9ff8d: 158, 238, 214;
  --mnp-vert-5da51d: 23, 154, 139;
  --mnp-vert-7cca2c: 48, 185, 167;
  --mnp-vert-caff57: 122, 239, 209;
  --mnp-vert-82cf2d: 53, 189, 170;
  --mnp-vert-9de23d: 80, 208, 185;
  --mnp-vert-22432d: 29, 66, 62;
  --mnp-vert-09140d: 8, 20, 19;
  --mnp-vert-12211a: 18, 32, 32;
  --mnp-vert-3f6212: 32, 94, 84;
  --mnp-vert-122a15: 12, 41, 38;
  --mnp-vert-1e3a18: 19, 57, 52;
  --mnp-vert-4e7925: 44, 114, 103;
  --mnp-vert-1e441b: 14, 67, 61;
  --mnp-vert-d8ff8b: 157, 238, 214;
  --mnp-vert-e7ffd0: 200, 235, 227;
  --mnp-vert-1f3722: 26, 54, 51;
  --mnp-vert-6fc82a: 22, 186, 168;
  --mnp-vert-1f2f1d: 27, 46, 43;
  --mnp-vert-a3ee3d: 81, 219, 196;
  --mnp-vert-b1ff4c: 95, 236, 212;
  --mnp-vert-b8ff43: 98, 237, 210;
  --mnp-vert-5d8727: 52, 127, 113;
  --mnp-vert-b7f44d: 105, 227, 200;
  --mnp-vert-5e842d: 57, 124, 111;
  --mnp-vert-77cf63: 76, 198, 182;
  --mnp-vert-15251e: 21, 36, 37;
  --mnp-vert-83bb35: 69, 172, 153;
  --mnp-vert-709a2f: 64, 144, 127;
  --mnp-vert-7eaa35: 72, 158, 139;
}

/* SOURCE: css/01-base.css */
/* Base : variables, reset, typographie, elements HTML
   Aussi : Structure des pages, Composants.
   (issu de base.css ; l'ordre des fichiers compte : voir css/README.md) */

:root {
  color-scheme: light;
  --bg: rgb(var(--mnp-vert-f7f8f4));
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.64);
  --ink: rgb(var(--mnp-vert-102016));
  --muted: #69756b;
  --line: rgba(var(--mnp-vert-102016), 0.12);
  --brand: rgb(var(--mnp-vert-176b3c));
  --brand-deep: rgb(var(--mnp-vert-082315));
  --brand-soft: rgb(var(--mnp-vert-e8f3e8));
  --orange: #f19a22;
  --orange-deep: #c76417;
  --danger: #b8422b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% -8%, rgba(241, 154, 34, 0.18), transparent 30%), radial-gradient(circle at 86% 18%, rgba(var(--mnp-vert-176b3c), 0.1), transparent 32%), linear-gradient(180deg, #ffffff 0%, var(--bg) 58%, rgb(var(--mnp-vert-eff4ec)) 100%);
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
}

body.theme-dark {
  color-scheme: dark;
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-soft: rgba(30, 41, 59, 0.86);
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --line: #334155;
  --brand: #6366f1;
  --brand-deep: #f8fafc;
  --brand-soft: #1e293b;
  --orange: #818cf8;
  --orange-deep: #a5b4fc;
  --danger: #ef4444;
}

button,
input,
select,
textarea {
  font: inherit;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

input[type="checkbox"] {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(-45deg) scale(0.7);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

input[type="checkbox"]:hover {
  border-color: rgba(99, 102, 241, 0.36);
  box-shadow: 0 8px 18px rgba(var(--mnp-vert-082315), 0.08);
}

input[type="checkbox"]:checked {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(var(--mnp-vert-176b3c), 0.18);
}

input[type="checkbox"]:checked::before {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.24);
  outline-offset: 2px;
}

body.theme-dark input[type="checkbox"] {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow: none;
}

body.theme-dark input[type="checkbox"]:hover {
  border-color: rgba(129, 140, 248, 0.42);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

body.theme-dark input[type="checkbox"]:checked {
  background: #6366f1;
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.24);
}

input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  caret-color: auto;
}

button,
.btn,
.icon-button,
.tab-button,
[role="button"] {
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

.app,
.shell {
  min-height: 100vh;
}

.shell {
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(var(--mnp-vert-102016), 0.06);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.theme-dark .topbar {
  background: rgba(15, 23, 42, 0.78);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-home-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.brand-home-button:hover .brand-logo {
  transform: translateY(-1px);
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(var(--mnp-vert-082315), 0.12));
  transition: transform 0.16s ease;
}

.brand-title {
  margin: 0;
  color: var(--brand-deep);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.05;
}

.brand-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.icon-button {
  min-width: 82px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-deep);
  border: 1px solid rgba(var(--mnp-vert-082315), 0.16);
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.icon-button:hover {
  background: rgba(var(--mnp-vert-176b3c), 0.08);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-company-switch {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(var(--mnp-vert-102016), 0.12);
  box-shadow: 0 12px 28px rgba(var(--mnp-vert-082315), 0.08);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.top-company-switch:hover {
  color: #fff;
  background: var(--brand);
}

.theme-dark .top-company-switch {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.86);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.theme-dark .top-company-switch:hover {
  color: #ffffff;
  background: var(--brand);
  border-color: rgba(129, 140, 248, 0.34);
}

/* SOURCE: css/02-notifications.css */
/* Panneau des notifications
   Aussi : Composants, Messagerie, Choix de la societe, des domaines et dossiers.
   (issu de base.css ; l'ordre des fichiers compte : voir css/README.md) */

.notification-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(var(--mnp-vert-102016), 0.12);
  box-shadow: 0 12px 28px rgba(var(--mnp-vert-082315), 0.08);
}

.notification-button:hover,
.notification-button.active {
  color: #fff;
  background: var(--brand);
}

.notification-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.notification-button strong {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #b8422b;
  border: 2px solid #fff;
  font-size: 12px;
  font-weight: 900;
}

.notification-panel {
  position: fixed;
  top: 92px;
  right: clamp(14px, 4vw, 52px);
  z-index: 45;
  width: min(380px, calc(100vw - 28px));
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(var(--mnp-vert-102016), 0.12);
  box-shadow: 0 26px 80px rgba(var(--mnp-vert-082315), 0.18);
  backdrop-filter: blur(18px);
}

.theme-dark .notification-panel {
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

.notification-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notification-head h2 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 24px;
}

.notification-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.dialog-close.small {
  width: 38px;
  height: 38px;
  min-height: 38px;
}

.notification-list {
  display: grid;
  gap: 9px;
}

.notification-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  color: var(--ink);
  background: rgba(var(--mnp-vert-e8f0e5), 0.74);
  border: 1px solid rgba(var(--mnp-vert-102016), 0.08);
  text-align: left;
}

.notification-item:hover {
  background: rgba(var(--mnp-vert-176b3c), 0.1);
  border-color: rgba(var(--mnp-vert-176b3c), 0.22);
}

.notification-item span {
  grid-row: 1 / span 2;
  min-width: 66px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(var(--mnp-vert-176b3c), 0.1);
  font-size: 12px;
  font-weight: 900;
}

.notification-item strong {
  color: var(--brand-deep);
  font-size: 15px;
}

.notification-item small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.notification-empty {
  padding: 18px;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(var(--mnp-vert-e8f0e5), 0.58);
  border: 1px dashed rgba(var(--mnp-vert-102016), 0.12);
  font-weight: 800;
}

.chat-shortcut {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 30;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 38px rgba(var(--mnp-vert-082315), 0.24);
  font-size: 24px;
  line-height: 1;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease, filter 0.18s ease;
}

.chat-shortcut svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.floating-shortcuts-hidden .chat-shortcut,
.floating-shortcuts-hidden .domain-folder-shortcut {
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.82);
}

.chat-shortcut:hover,
.domain-folder-shortcut:hover {
  transform: translateY(-2px);
}

.chat-shortcut strong {
  position: absolute;
  right: -3px;
  top: -5px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #b8422b;
  border: 2px solid #fff;
  font-size: 12px;
  font-weight: 900;
}

.theme-dark .domain-folder-shortcut {
  color: #ffffff;
  background: #6366f1;
  border-color: rgba(129, 140, 248, 0.34);
  box-shadow: 0 18px 42px rgba(99, 102, 241, 0.34);
}

.main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 36px) 0;
  flex: 1;
}

.hero {
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: minmax(290px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-deep);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.view-head h1 {
  margin: 0;
  color: var(--brand-deep);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 0.96;
  letter-spacing: 0;
}

.view-head p {
  margin: 12px 0 0;
  max-width: 590px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.user-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.theme-dark .icon-button,
.theme-dark .notification-button {
  color: var(--ink);
  background: rgba(30, 41, 59, 0.86);
  border-color: rgba(148, 163, 184, 0.22);
}

.theme-dark .icon-button:hover {
  background: rgba(51, 65, 85, 0.92);
}

.theme-dark .notification-button:hover,
.theme-dark .notification-button.active,
.theme-dark .chat-shortcut {
  color: #fff;
  background: var(--brand);
}

.theme-dark .notification-panel {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.2);
}

.theme-dark .notification-item {
  background: rgba(30, 41, 59, 0.74);
  border-color: rgba(148, 163, 184, 0.18);
}

.theme-dark .notification-item:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.34);
}

.theme-dark .notification-button strong,
.theme-dark .chat-shortcut strong {
  border-color: #0f172a;
}

.user-card,
.metric,
.work-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.user-card {
  position: relative;
  min-height: 86px;
  padding: 18px 8px;
  border-radius: 0;
  overflow: hidden;
  text-align: left;
  color: var(--ink);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease, padding 160ms ease;
}

.user-card::after {
  content: ">";
  position: static;
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--orange-deep);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.user-card:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.62);
  padding-left: 18px;
  box-shadow: none;
}

.user-card:last-child {
  border-bottom: 0;
}

.user-card strong {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  font-size: 22px;
  line-height: 1.1;
}

.user-card span:not(.tile-icon) {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
  font-size: 14px;
}

.tile-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--mnp-vert-176b3c), 0.1);
  color: var(--brand);
  font-weight: 850;
  border: 1px solid rgba(var(--mnp-vert-176b3c), 0.11);
  grid-row: 1 / span 2;
  background-position: center;
  background-size: cover;
}

.tile-icon.has-image {
  color: transparent;
}

/* SOURCE: css/03-access.css */
/* Choix de la societe, des domaines et dossiers
   (issu de domains.css ; l'ordre des fichiers compte : voir css/README.md) */

.carousel {
  width: min(520px, 100%);
  justify-self: center;
}

.domain-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.domain-choice-grid.domain-count-1 {
  grid-template-columns: minmax(240px, 430px);
}

.domain-choice-grid.domain-count-2 {
  grid-template-columns: repeat(2, minmax(220px, 430px));
  gap: 24px;
}

.domain-choice-grid.domain-count-3 {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
}

.domain-choice-card {
  min-height: clamp(145px, 17vw, 210px);
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  justify-items: start;
  gap: 12px;
  padding: clamp(16px, 2vw, 22px);
  border-radius: 22px;
  color: var(--brand-deep);
  text-align: left;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  box-shadow: 0 14px 34px rgba(var(--mnp-vert-082315), 0.06);
  overflow: hidden;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.domain-choice-card.has-photo {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72)), var(--domain-photo) center / cover;
}

.domain-choice-card::after {
  content: ">";
  width: fit-content;
  grid-column: 2;
  color: var(--brand);
  background: transparent;
  font-size: 24px;
  font-weight: 900;
}

.domain-choice-card span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  grid-row: 1 / span 3;
  border-radius: 18px;
  color: var(--brand);
  background: rgba(var(--mnp-vert-176b3c), 0.1);
  border: 1px solid rgba(var(--mnp-vert-176b3c), 0.12);
  font-size: 22px;
  font-weight: 900;
}

.domain-choice-card strong {
  display: block;
  grid-column: 2;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.05;
}

.domain-choice-card small {
  grid-column: 2;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.domain-choice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--mnp-vert-176b3c), 0.3);
  box-shadow: 0 18px 42px rgba(var(--mnp-vert-082315), 0.1);
}

.domain-choice-card.is-dragging {
  opacity: 0.48;
  transform: scale(0.98);
}

.view-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.access-head-actions {
  align-items: center;
}

.access-main-action {
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(99, 102, 241, 0.22);
}

@media (max-width: 760px) {
  .access-head-actions {
    justify-content: flex-start;
  }

  .access-main-action {
    min-height: 50px;
    padding: 0 20px;
    font-size: 15px;
  }
}

.domain-folder-shortcut {
  position: fixed !important;
  right: 18px !important;
  bottom: 82px !important;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 38px rgba(var(--mnp-vert-082315), 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.domain-folder-shortcut:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(var(--mnp-vert-082315), 0.28);
}

.domain-folder-shortcut svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.domain-folder-board {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.domain-folder-lane {
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px dashed rgba(var(--mnp-vert-176b3c), 0.18);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.domain-folder-lane.is-drop-target {
  background: rgba(var(--mnp-vert-176b3c), 0.08);
  border-color: rgba(var(--mnp-vert-176b3c), 0.48);
  box-shadow: inset 0 0 0 2px rgba(var(--mnp-vert-176b3c), 0.08);
}

.domain-folder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.domain-folder-head h3 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 17px;
}

.domain-folder-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.domain-folder-head span {
  min-width: 32px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(var(--mnp-vert-176b3c), 0.1);
  font-size: 13px;
  font-weight: 850;
}

.folder-delete {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(var(--mnp-vert-102016), 0.06);
  font-size: 15px;
  font-weight: 900;
}

.folder-delete:hover {
  color: #fff;
  background: var(--danger);
}

.domain-folder-empty {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(var(--mnp-vert-102016), 0.1);
  font-weight: 750;
}

.company-choice-card {
  min-height: 160px;
  grid-template-columns: 72px minmax(0, 1fr);
  background: radial-gradient(circle at 88% 8%, rgba(var(--mnp-vert-75b872), 0.14), transparent 32%), linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(var(--mnp-vert-f2f8f1), 0.82));
}

.company-choice-card::after {
  content: none;
}

.company-choice-card .company-choice-logo {
  width: 72px;
  height: 72px;
  grid-row: 1 / span 2;
  border-radius: 20px;
  color: var(--brand);
  background: rgba(var(--mnp-vert-e7f1e5), 0.95);
  border: 1px solid rgba(var(--mnp-vert-32603e), 0.16);
  overflow: hidden;
}

.company-choice-card .company-choice-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: inherit;
}

.company-choice-card strong {
  align-self: end;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.company-choice-card small {
  align-self: start;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.theme-dark .domain-choice-card {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.theme-dark .domain-folder-head h3 {
  color: var(--ink);
}

.domain-choice-page {
  position: relative;
  min-height: calc(100vh - 92px);
  padding: clamp(34px, 5vw, 70px) clamp(24px, 6vw, 86px) 72px;
  overflow: hidden;
  isolation: isolate;
}

.mnp-site-shell:has(.domain-choice-page) .top-company-switch:not(.top-logout) {
  display: none;
}

.domain-choice-page::before,
.domain-choice-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.domain-choice-page::before {
  left: -170px;
  top: -120px;
  width: 360px;
  height: 620px;
  border: 1px solid rgba(var(--mnp-vert-97f430), 0.42);
  border-left: 0;
  border-bottom-right-radius: 260px;
  box-shadow: 0 0 28px rgba(var(--mnp-vert-97f430), 0.22), inset -18px 0 42px rgba(var(--mnp-vert-97f430), 0.1);
}

.domain-choice-page::after {
  left: -40px;
  bottom: -110px;
  width: 420px;
  height: 330px;
  background: radial-gradient(circle at 14px 14px, rgba(var(--mnp-vert-97f430), 0.34) 1px, transparent 1.8px) 0 0 / 18px 18px, radial-gradient(circle at 20% 55%, rgba(var(--mnp-vert-97f430), 0.16), transparent 58%);
  opacity: 0.72;
  mask-image: radial-gradient(circle at 20% 45%, #000 0 44%, transparent 72%);
}

.domain-choice-glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 15% 18%, rgba(var(--mnp-vert-97f430), 0.08), transparent 28%), radial-gradient(circle at 78% 6%, rgba(92, 140, 255, 0.07), transparent 32%), linear-gradient(135deg, #07101d 0%, #0b1a2d 45%, #071422 100%);
}

.domain-choice-hero,
.domain-choice-access-head {
  max-width: 100%;
}

.domain-choice-hero h1,
.domain-choice-access-head h1 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(46px, 5.6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 16px 46px rgba(0, 0, 0, 0.36);
}

.domain-choice-hero h1 span,
.domain-choice-access-head h1 span {
  color: rgb(var(--mnp-vert-9cf13d));
}

.domain-choice-hero p,
.domain-choice-access-head p {
  max-width: 620px;
  margin: 18px 0 0;
  color: #c4d2e6;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 650;
}

.domain-choice-access-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 clamp(46px, 7vw, 82px);
}

.domain-choice-access-head.view-head {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.domain-choice-page .access-head-actions {
  align-items: center;
  padding-top: 6px;
  gap: 22px;
}

.domain-choice-page .access-main-action {
  min-height: 62px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  color: #f8fbff;
  background: rgba(8, 18, 31, 0.74);
  border: 1px solid rgba(169, 183, 205, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.domain-choice-page .access-main-action span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
}

.domain-choice-page .access-main-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.domain-choice-page .access-main-action.manager-action {
  color: rgb(var(--mnp-vert-9cf13d));
  border-color: rgba(var(--mnp-vert-9cf13d), 0.9);
  background: linear-gradient(135deg, rgba(var(--mnp-vert-9cf13d), 0.12), rgba(8, 18, 31, 0.72));
  box-shadow: 0 0 0 1px rgba(var(--mnp-vert-9cf13d), 0.16), 0 0 34px rgba(var(--mnp-vert-9cf13d), 0.18);
}

.domain-choice-title {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 34px;
}

.domain-choice-page.is-multi-domain .domain-choice-title {
  margin-left: 0;
}

.domain-choice-title-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: rgb(var(--mnp-vert-9cf13d));
  background: radial-gradient(circle at 50% 50%, rgba(var(--mnp-vert-9cf13d), 0.13), transparent 62%), rgba(10, 23, 39, 0.86);
  border: 1px solid rgba(169, 183, 205, 0.23);
  box-shadow: 0 0 34px rgba(var(--mnp-vert-9cf13d), 0.13);
}

.domain-choice-title-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.domain-choice-title h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
}

.domain-choice-title p {
  margin: 10px 0 0;
  color: #c4d2e6;
  font-size: 17px;
  font-weight: 650;
}

.domain-choice-page .domain-folder-board {
  max-width: 100%;
  margin: 0;
}

.domain-choice-page .domain-folder-lane {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.domain-choice-page .domain-folder-head {
  display: none;
}

.domain-choice-page .domain-choice-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 0;
}

.domain-choice-page.is-single-domain .domain-choice-grid {
  max-width: 760px;
  grid-template-columns: minmax(320px, 760px);
  justify-content: center;
  margin: 0 auto;
}

.domain-choice-page .domain-choice-card {
  min-height: 172px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 26px;
  color: #f8fbff;
  background: radial-gradient(circle at 78% 0%, rgba(var(--mnp-vert-9cf13d), 0.08), transparent 35%), linear-gradient(145deg, rgba(13, 30, 50, 0.84), rgba(8, 18, 31, 0.78));
  border: 1px solid rgba(169, 183, 205, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 26px 70px rgba(0, 0, 0, 0.22);
}

.domain-choice-page.is-single-domain .domain-choice-card,
.domain-choice-page .domain-choice-card:hover {
  border-color: rgba(var(--mnp-vert-9cf13d), 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(var(--mnp-vert-9cf13d), 0.11), 0 0 42px rgba(var(--mnp-vert-9cf13d), 0.14), 0 34px 90px rgba(0, 0, 0, 0.28);
}

.domain-choice-page .domain-choice-card::after {
  content: "";
}

.domain-choice-page .domain-choice-initials,
.domain-choice-page .domain-choice-card > span:first-child {
  width: 86px;
  height: 86px;
  grid-row: auto;
  border-radius: 22px;
  color: rgb(var(--mnp-vert-9cf13d));
  background: radial-gradient(circle at 65% 20%, rgba(var(--mnp-vert-9cf13d), 0.16), transparent 55%), rgba(21, 43, 48, 0.88);
  border: 1px solid rgba(169, 183, 205, 0.1);
  font-size: 34px;
  font-weight: 950;
  text-shadow: 0 0 22px rgba(var(--mnp-vert-9cf13d), 0.28);
}

.domain-choice-page .domain-choice-copy {
  width: auto;
  height: auto;
  display: grid;
  place-items: start;
  grid-row: auto;
  gap: 10px;
  min-width: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: inherit;
  font-weight: inherit;
}

.domain-choice-page .domain-choice-copy strong {
  grid-column: auto;
  color: #f8fbff;
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.08;
}

.domain-choice-page .domain-choice-copy small {
  grid-column: auto;
  color: #d2dcec;
  font-size: 16px;
  font-weight: 650;
}

.domain-choice-page .domain-choice-copy em {
  width: 42px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: rgb(var(--mnp-vert-9cf13d));
  font-style: normal;
}

.domain-choice-page .domain-choice-copy svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.domain-choice-help,
.domain-choice-empty {
  max-width: min(1180px, 100%);
  margin: 46px auto 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-radius: 22px;
  color: #d2dcec;
  background: rgba(8, 18, 31, 0.58);
  border: 1px solid rgba(169, 183, 205, 0.16);
}

.domain-choice-help span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: rgb(var(--mnp-vert-9cf13d));
  border: 2px solid rgba(var(--mnp-vert-9cf13d), 0.78);
  font-size: 14px;
  font-weight: 950;
}

.domain-choice-help p {
  margin: 0;
  font-size: 16px;
}

.domain-choice-page .domain-folder-shortcut {
  right: 54px;
  bottom: 48px;
  width: 74px;
  height: 74px;
  color: rgb(var(--mnp-vert-9cf13d));
  background: radial-gradient(circle at 50% 45%, rgba(var(--mnp-vert-9cf13d), 0.12), transparent 60%), rgba(10, 23, 39, 0.88);
  border-color: rgba(var(--mnp-vert-9cf13d), 0.36);
  box-shadow: 0 0 0 1px rgba(var(--mnp-vert-9cf13d), 0.08), 0 0 38px rgba(var(--mnp-vert-9cf13d), 0.24), 0 22px 60px rgba(0, 0, 0, 0.34);
}

.domain-choice-page .domain-folder-shortcut svg {
  width: 34px;
  height: 34px;
}

.company-choice-page .domain-choice-access-head {
  margin-bottom: clamp(46px, 7vw, 82px);
}

.company-choice-page .domain-choice-title {
  margin-bottom: 34px;
}

.domain-choice-page.company-choice-page .company-choice-card::after {
  content: "";
}

.domain-choice-page.company-choice-page .company-choice-logo img {
  padding: 10px;
  background: rgba(var(--mnp-vert-f5faf1), 0.92);
}

@media (max-width: 1180px) {
  .domain-choice-page .domain-choice-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .domain-choice-access-head {
    flex-direction: column;
  }

  .domain-choice-page .access-head-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .domain-choice-page {
    padding: 30px 18px 96px;
  }

  .domain-choice-page .domain-choice-grid,
  .domain-choice-page.is-single-domain .domain-choice-grid {
    grid-template-columns: 1fr;
  }

  .domain-choice-title,
  .domain-choice-page.is-multi-domain .domain-choice-title {
    align-items: flex-start;
    margin-left: 0;
  }

  .domain-choice-title-icon {
    width: 56px;
    height: 56px;
  }

  .domain-choice-page .domain-choice-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
  }

  .domain-choice-page .domain-choice-initials,
  .domain-choice-page .domain-choice-card > span:first-child {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

  .domain-choice-page .access-main-action {
    min-height: 54px;
    padding: 0 20px;
  }
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(var(--mnp-vert-082315), 0.22);
  transition: width 160ms ease, background 160ms ease;
}

.dot.active {
  width: 30px;
  background: var(--brand);
}

.theme-dark .domain-choice-card {
  color: var(--ink);
  background: rgba(30, 41, 59, 0.82);
  border-color: rgba(148, 163, 184, 0.18);
}

.theme-dark .domain-choice-card.has-photo {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.78)), var(--domain-photo) center / cover;
}

.theme-dark .domain-folder-lane {
  background: rgba(30, 41, 59, 0.62);
  border-color: rgba(148, 163, 184, 0.18);
}

.theme-dark .domain-folder-head span,
.theme-dark .folder-delete {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.72);
}

.theme-dark .domain-folder-lane.is-drop-target {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.42);
}

.theme-dark .domain-folder-empty {
  color: var(--muted);
  background: rgba(15, 23, 42, 0.58);
  border-color: rgba(148, 163, 184, 0.18);
}

/* SOURCE: css/04-dialogs.css */
/* Fenetres et confirmations
   Aussi : Composants, Champs de formulaire, listes deroulantes, interrupteurs.
   (issu de forms-dialogs.css ; l'ordre des fichiers compte : voir css/README.md) */

.view-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(var(--mnp-vert-176b3c), 0.14);
}

.btn:hover {
  background: var(--brand-deep);
}

.btn.secondary {
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--surface-soft);
}

.btn.danger {
  background: var(--danger);
  box-shadow: 0 10px 22px rgba(184, 66, 43, 0.16);
}

.form {
  display: grid;
  gap: 13px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 800;
}

.field > span {
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 850;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 13px;
  background: #fff;
  color: var(--ink);
}

.field input,
.field select {
  height: 46px;
}

.field textarea {
  min-height: 92px;
  padding: 12px 13px;
  border-radius: 18px;
  resize: vertical;
}

.field input[type="file"] {
  height: auto;
  min-height: 46px;
  padding: 6px 10px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
}

.field input[type="file"]::file-selector-button {
  margin: 0 10px 0 0;
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #fff;
  background: var(--brand);
  font-weight: 850;
  cursor: pointer;
}

.field input:focus,
.field select:focus {
  outline: 3px solid rgba(241, 154, 34, 0.2);
  border-color: var(--orange);
}

.notice {
  display: none;
  padding: 12px;
  border-radius: 10px;
  background: #fff3ea;
  color: #813817;
  border: 1px solid #efc3a2;
  font-size: 14px;
}

.theme-dark .notice {
  color: #ffd3bd;
  background: rgba(184, 66, 43, 0.14);
  border-color: rgba(225, 111, 90, 0.32);
}

.notice.show {
  display: block;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(var(--mnp-vert-08140c), 0.52);
  z-index: 20;
  overflow: hidden;
}

.dialog {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.22);
  scrollbar-gutter: stable;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.dialog-close:hover {
  background: var(--surface-soft);
}

.dialog h2 {
  margin: 0 0 7px;
  color: var(--brand-deep);
  font-size: 25px;
}

.dialog-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dialog-title-row h2 {
  margin-bottom: 5px;
}

.dialog-title-row p {
  margin: 0;
}

.dialog p {
  margin: 0 0 18px;
  color: var(--muted);
}

.confirm-dialog {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  text-align: center;
  padding: 30px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.08);
}

.confirm-dialog h2 {
  margin: 0;
}

.confirm-dialog p {
  max-width: 310px;
  margin: 0 auto 6px;
  line-height: 1.45;
}

.confirm-dialog .actions {
  justify-content: center;
  margin-top: 4px;
}

.confirm-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  color: var(--orange-deep);
  background: rgba(241, 154, 34, 0.14);
  border: 1px solid rgba(241, 154, 34, 0.22);
  font-size: 24px;
  font-weight: 900;
}

.theme-dark .confirm-icon {
  color: var(--orange);
  background: rgba(241, 180, 92, 0.14);
  border-color: rgba(241, 180, 92, 0.2);
}

.delete-confirm-backdrop {
  background: rgba(8, 12, 24, 0.64);
  z-index: 70;
}

.delete-confirm-dialog {
  width: min(440px, 100%);
  gap: 14px;
  border: 1px solid rgba(184, 66, 43, 0.16);
}

.delete-confirm-dialog p {
  max-width: 340px;
}

.delete-confirm-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.22);
  font-size: 28px;
  font-weight: 950;
}

.delete-confirm-dialog .actions {
  justify-content: center;
}

.domain-folder-dialog {
  width: min(460px, 100%);
}

.domain-folder-dialog .dialog-title-row {
  padding-right: 46px;
}

.domain-folder-dialog .actions {
  justify-content: flex-end;
  margin-top: 4px;
}

/* SOURCE: css/05-settings.css */
/* Parametres du compte et profil
   Aussi : Choix de la societe, des domaines et dossiers, Structure des pages, Module courses.
   (issu de forms-dialogs.css ; l'ordre des fichiers compte : voir css/README.md) */

.course-preview-dialog {
  width: min(470px, 100%);
}

.course-preview-list {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 4px 0 2px;
  padding: 0;
  list-style: none;
}

.course-preview-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(var(--mnp-vert-176b3c), 0.08);
  border: 1px solid rgba(var(--mnp-vert-176b3c), 0.12);
  text-align: left;
}

.course-preview-list span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.course-preview-list strong {
  color: var(--brand);
  font-size: 18px;
}

.course-preview-message {
  width: 100%;
  margin-top: 6px !important;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(var(--mnp-vert-102016), 0.04);
  text-align: left;
}

.profile-dialog {
  width: min(500px, 100%);
}

.profile-dialog > .actions {
  position: sticky;
  bottom: -28px;
  margin: 8px -28px -28px;
  padding: 14px 28px 20px;
  background: inherit;
  border-top: 1px solid var(--line);
}

.profile-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: var(--brand-soft);
}

.profile-preview > div {
  min-width: 0;
  flex: 1;
}

.profile-preview-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 22px;
  font-weight: 900;
  background-position: center;
  background-size: cover;
}

.profile-preview-avatar.has-image {
  color: transparent;
}

.profile-preview strong,
.profile-preview small {
  display: block;
}

.profile-preview strong {
  color: var(--brand-deep);
  font-size: 18px;
}

.profile-preview small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.profile-remove-image {
  flex: 0 0 auto;
  border: 1px solid rgba(170, 42, 35, 0.18);
  border-radius: 999px;
  padding: 9px 13px;
  color: #aa2a23;
  background: rgba(170, 42, 35, 0.08);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.profile-remove-image:hover {
  background: rgba(170, 42, 35, 0.14);
}

.theme-dark .profile-remove-image {
  color: #ffb4aa;
  background: rgba(255, 180, 170, 0.08);
  border-color: rgba(255, 180, 170, 0.18);
}

.profile-placeholder {
  padding: 12px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(var(--mnp-vert-102016), 0.04);
  border: 1px dashed var(--line);
  font-size: 14px;
  font-weight: 750;
}

.profile-security-row,
.profile-setting-row,
.profile-theme-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(var(--mnp-vert-102016), 0.04);
  border: 1px solid var(--line);
}

.profile-security-row strong,
.profile-security-row small,
.profile-setting-row strong,
.profile-setting-row small,
.profile-theme-row strong,
.profile-theme-row small {
  display: block;
}

.profile-security-row strong,
.profile-setting-row strong,
.profile-theme-row strong {
  color: var(--brand-deep);
}

.profile-security-row small,
.profile-setting-row small,
.profile-theme-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.compact-switch {
  flex: 0 0 auto;
  min-width: 126px;
  justify-content: center;
}

.two-factor-authenticator-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(var(--mnp-vert-102016), 0.04);
  border: 1px solid var(--line);
}

.theme-dark .two-factor-authenticator-box {
  background: rgba(var(--mnp-vert-f1f6ed), 0.06);
}

.two-factor-authenticator-box strong,
.two-factor-authenticator-box small {
  display: block;
}

.two-factor-authenticator-box strong {
  color: var(--brand-deep);
}

.two-factor-authenticator-box small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.two-factor-qr-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.theme-dark .two-factor-qr-row {
  background: rgba(15, 23, 42, 0.58);
}

.two-factor-qr-row img {
  width: 120px;
  height: 120px;
  display: block;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}

.two-factor-authenticator-box input[readonly],
.two-factor-authenticator-box textarea[readonly] {
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.74);
  cursor: text;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.theme-dark .two-factor-authenticator-box input[readonly],
.theme-dark .two-factor-authenticator-box textarea[readonly] {
  background: rgba(15, 23, 42, 0.72);
}

@media (max-width: 620px) {
  .two-factor-qr-row {
    grid-template-columns: 1fr;
  }

  .two-factor-qr-row img {
    justify-self: center;
  }
}

.access-type-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-height: 54px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--mnp-vert-ecf2ea), 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.access-type-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.access-type-btn:hover:not(.is-active) {
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.56);
}

.access-type-btn.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 22px rgba(var(--mnp-vert-176b3c), 0.18);
  transform: translateY(-1px);
}

.theme-toggle {
  position: relative;
  width: 76px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  color: #7c5a18;
  background: linear-gradient(135deg, #fff4c5, #f7cc5e);
  border: 1px solid rgba(129, 81, 16, 0.22);
  box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.7), 0 10px 22px rgba(var(--mnp-vert-082315), 0.12);
}

.theme-toggle.is-dark {
  color: #dce6ff;
  background: linear-gradient(135deg, #172135, #0b101c);
  border-color: rgba(220, 230, 255, 0.22);
}

.theme-toggle-sun,
.theme-toggle-moon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 900;
}

.theme-toggle-thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, background 180ms ease;
}

.theme-toggle.is-dark .theme-toggle-thumb {
  transform: translateX(36px);
  background: #e6ecff;
}

.theme-dark .btn.secondary {
  color: var(--ink);
  background: rgba(30, 41, 59, 0.86);
  border-color: rgba(148, 163, 184, 0.22);
}

.theme-dark .btn.secondary:hover {
  background: rgba(51, 65, 85, 0.92);
}

.theme-dark .dialog {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.theme-dark .field input,
.theme-dark .field select,
.theme-dark .field textarea {
  color: var(--ink);
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.24);
}

.theme-dark .field input[type="file"]::file-selector-button,
.theme-dark .access-type-btn.is-active {
  color: #fff;
  background: #6366f1;
}

.theme-dark .dialog-close {
  color: var(--ink);
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(148, 163, 184, 0.22);
}

.theme-dark .profile-preview,
.theme-dark .profile-security-row,
.theme-dark .profile-setting-row,
.theme-dark .profile-theme-row,
.theme-dark .profile-placeholder {
  background: rgba(30, 41, 59, 0.68);
}

.theme-dark .access-type-toggle {
  background: rgba(15, 23, 42, 0.76);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.1);
}

.theme-dark .access-type-btn {
  color: rgba(241, 245, 249, 0.72);
}

.theme-dark .access-type-btn:hover:not(.is-active) {
  color: var(--ink);
  background: rgba(99, 102, 241, 0.16);
}

/* SOURCE: css/06-admin.css */
/* Administration : utilisateurs, societes, modules, domaines, architecture
   (issu de admin.css ; l'ordre des fichiers compte : voir css/README.md) */

.admin-row-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.admin-row-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.tab-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.tab-button.active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(var(--mnp-vert-176b3c), 0.16);
}

.admin-page .view-head {
  margin-bottom: 14px;
}

.admin-page .view-head h1 {
  font-size: clamp(34px, 4.2vw, 48px);
}

.admin-page .view-head p {
  max-width: 720px;
  font-size: 15px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  min-height: 0;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(var(--mnp-vert-102016), 0.09);
  box-shadow: 0 24px 70px rgba(var(--mnp-vert-082315), 0.08);
}

.theme-dark .admin-sidebar {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.workspace-context {
  display: grid;
  gap: 3px;
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 14px;
  color: var(--brand-deep);
  background: rgba(var(--mnp-vert-176b3c), 0.08);
}

.workspace-context strong,
.workspace-context small {
  overflow-wrap: anywhere;
}

.workspace-context small {
  color: var(--muted);
  font-weight: 800;
}

.admin-nav .tab-button:hover {
  background: rgba(var(--mnp-vert-176b3c), 0.07);
}

.view-actions,
.view-head > .btn {
  flex: 0 0 auto;
}

.btn {
  line-height: 1;
  white-space: nowrap;
}

.admin-nav {
  display: grid;
  gap: 6px;
  align-items: stretch;
}

.admin-nav .tab-button {
  width: 100%;
  justify-content: flex-start;
  padding: 0 12px;
  border-radius: 13px;
  text-align: left;
  color: var(--brand-deep);
  background: transparent;
  border: 1px solid transparent;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.1;
  overflow: hidden;
}

.admin-nav .tab-button.active {
  background: var(--brand-deep);
  color: #fff;
  border-color: var(--brand-deep);
  box-shadow: 0 14px 30px rgba(var(--mnp-vert-082315), 0.16);
  transform: none;
}

.database-card {
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(var(--mnp-vert-082315), 0.08);
}

.theme-dark .database-card {
  border-color: rgba(var(--mnp-vert-f1f6ed), 0.12);
  background: rgba(22, 32, 25, 0.86);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.database-card summary small,
.database-group .admin-section-head p {
  color: var(--muted);
  font-weight: 850;
}

.database-graph-node {
  display: grid;
  gap: 8px;
  min-width: 120px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(var(--mnp-vert-176b3c), 0.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(var(--mnp-vert-176b3c), 0.12), rgba(255, 255, 255, 0.6));
}

.theme-dark .database-graph-node {
  border-color: rgba(var(--mnp-vert-8ed69b), 0.18);
  background: linear-gradient(145deg, rgba(var(--mnp-vert-65b978), 0.14), rgba(15, 23, 42, 0.36));
}

.database-graph-node span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.database-graph-node strong {
  color: var(--brand-deep);
  font-size: 1.7rem;
}

.theme-dark .database-graph-node strong {
  color: #f7fff4;
}

.database-graph-node.business {
  border-color: rgba(99, 102, 241, 0.28);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.15), rgba(255, 255, 255, 0.5));
}

.database-graph-node.external {
  border-color: rgba(234, 179, 8, 0.32);
  background: linear-gradient(145deg, rgba(234, 179, 8, 0.18), rgba(255, 255, 255, 0.45));
}

.theme-dark .database-graph-node.business {
  background: linear-gradient(145deg, rgba(129, 140, 248, 0.18), rgba(15, 23, 42, 0.36));
}

.theme-dark .database-graph-node.external {
  background: linear-gradient(145deg, rgba(234, 179, 8, 0.16), rgba(15, 23, 42, 0.36));
}

.database-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.database-card {
  border-radius: 18px;
  overflow: hidden;
}

.database-card summary {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.database-card summary::-webkit-details-marker {
  display: none;
}

.database-card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: rgb(var(--mnp-vert-07120a));
  background: linear-gradient(135deg, rgb(var(--mnp-vert-9fef48)), rgb(var(--mnp-vert-65b978)));
  font-size: 0.82rem;
  font-weight: 950;
}

.database-card summary strong,
.database-card summary small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.database-card summary strong {
  color: var(--brand-deep);
  font-size: 1.05rem;
}

.theme-dark .database-card summary strong {
  color: #f7fff4;
}

.database-card summary small {
  margin-top: 4px;
  line-height: 1.3;
}

.database-card summary b {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-deep);
}

.theme-dark .database-card summary b {
  color: rgb(var(--mnp-vert-07120a));
  background: rgb(var(--mnp-vert-9fef48));
}

.database-card-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.database-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.database-fields span {
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(var(--mnp-vert-176b3c), 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.theme-dark .database-fields span {
  background: rgba(var(--mnp-vert-f1f6ed), 0.07);
}

.database-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.database-card li {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(var(--mnp-vert-102016), 0.05);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.theme-dark .database-card li {
  background: rgba(var(--mnp-vert-f1f6ed), 0.06);
}

@media (max-width: 1180px) {
  .database-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .database-grid {
    grid-template-columns: 1fr;
  }

  .database-card summary {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .database-card summary b {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.architecture-center {
  display: grid;
  gap: 14px;
}

.architecture-search {
  display: grid;
  gap: 6px;
}

.architecture-search span {
  color: #93a1b9;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.architecture-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  color: #e5edf8;
  background: rgba(4, 9, 20, 0.8);
  outline: none;
}

.architecture-search input:focus {
  border-color: rgba(var(--mnp-vert-9fef48), 0.72);
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-9fef48), 0.1);
}

.architecture-tab {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.6);
  font-weight: 850;
}

.architecture-tab.active {
  color: rgb(var(--mnp-vert-9fef48));
  border-color: rgba(var(--mnp-vert-9fef48), 0.32);
  background: linear-gradient(180deg, rgba(var(--mnp-vert-495c23), 0.36), rgba(30, 41, 59, 0.7));
  box-shadow: inset 0 -2px 0 rgba(var(--mnp-vert-9fef48), 0.55), 0 12px 28px rgba(var(--mnp-vert-9fef48), 0.09);
}

@keyframes architecturePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.65;
  }
}

@keyframes architectureDash {
  to {
    stroke-dashoffset: -160;
  }
}

.admin-content {
  min-width: 0;
  padding: 0 0 28px;
}

.admin-metrics {
  margin-bottom: 28px;
}

/* SOURCE: css/07-ui.css */
/* Composants : boutons, etiquettes, cartes, etats vides, indicateurs
   Aussi : Administration.
   (issu de admin.css ; l'ordre des fichiers compte : voir css/README.md) */

.admin-user-requests-panel {
  margin-top: 22px;
}

.admin-request-list,
.request-history {
  display: grid;
  gap: 12px;
}

.request-history {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.request-history h3 {
  margin: 0;
  color: var(--brand-deep);
}

.admin-request-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.request-card-main {
  display: grid;
  gap: 6px;
}

.request-card-main h3,
.request-card-main p {
  margin: 0;
}

.request-card-main p,
.request-card-main small,
.request-note,
.request-resolved {
  color: var(--muted);
}

.request-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.request-password-field {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 850;
}

.request-password-field input {
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 8px;
}

.admin-section-head h2,
.admin-form h2 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 28px;
  line-height: 1.1;
}

.admin-section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-form {
  width: min(620px, 100%);
  padding: 0 0 28px;
}

.add-user-panel {
  width: 100%;
  margin: 0 0 26px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(var(--mnp-vert-102016), 0.09);
  box-shadow: 0 20px 55px rgba(var(--mnp-vert-082315), 0.08);
  animation: adminPanelIn 180ms ease both;
}

.theme-dark .add-user-panel {
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.theme-dark .add-user-panel .tag {
  background: rgba(var(--mnp-vert-f1f6ed), 0.1);
  color: var(--ink);
}

.add-user-panel .admin-row-head {
  border-bottom: 0;
}

.admin-person {
  display: grid;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.admin-person:first-child {
  border-top: 1px solid var(--line);
}

.user-company-folders {
  display: grid;
  gap: 18px;
}

.user-company-folder {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
}

.user-company-folder summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  color: var(--brand-deep);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.user-company-folder summary strong {
  min-width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(var(--mnp-vert-176b3c), 0.1);
  font-size: 13px;
}

.user-company-actions {
  padding: 0 18px 16px;
}

.user-company-folder .user-management-list {
  padding: 0 18px 18px;
}

.user-summary {
  width: 100%;
  min-height: 86px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 4px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.user-summary:hover,
.admin-person.open .user-summary {
  background: rgba(255, 255, 255, 0.58);
}

.theme-dark .user-summary:hover {
  background: rgba(99, 102, 241, 0.1);
}

.theme-dark .admin-person.open .user-summary {
  background: rgba(99, 102, 241, 0.14);
}

.theme-dark .user-summary:hover .user-avatar,
.theme-dark .admin-person.open .user-avatar {
  border-color: rgba(129, 140, 248, 0.32);
  background: rgba(99, 102, 241, 0.16);
}

.user-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--mnp-vert-176b3c), 0.11);
  color: var(--brand);
  border: 1px solid rgba(var(--mnp-vert-176b3c), 0.12);
  font-weight: 900;
  background-position: center;
  background-size: cover;
}

.user-avatar.has-image {
  color: transparent;
}

.user-summary-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.user-summary-main strong {
  color: var(--brand-deep);
  font-size: 20px;
}

.user-summary-main small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.user-actions-panel {
  display: grid;
  gap: 18px;
  padding: 2px 4px 22px 66px;
  animation: adminPanelIn 180ms ease both;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.domain-assignments > label {
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 850;
}

/* SOURCE: css/08-manager.css */
/* Espace gerant : tableau de bord, droits
   Aussi : Choix de la societe, des domaines et dossiers.
   (issu de admin.css ; l'ordre des fichiers compte : voir css/README.md) */

.manager-rights-list {
  display: grid;
  gap: 16px;
}

.manager-rights-card {
  display: grid;
  gap: 14px;
  padding: 14px 18px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(var(--mnp-vert-082315), 0.05);
}

.manager-rights-card .user-summary {
  min-height: 62px;
  padding: 0;
}

.manager-rights-form {
  display: grid;
  gap: 12px;
}

.manager-rights-form .btn {
  justify-self: start;
}

.manager-module-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 78px;
  gap: 12px;
  align-items: stretch;
}

.manager-module-pill {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  height: 100%;
  min-height: 0;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.manager-module-pill span {
  min-height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 112px;
  min-height: 38px;
  padding: 0 14px;
  color: #ffffff;
  background: #6366f1;
  border: 1px solid rgba(129, 140, 248, 0.34);
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}

.manager-module-pill small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.manager-module-pill::after {
  content: "Bloqu\00e9";
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: 82px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 900;
}

.manager-module-pill:hover {
  border-color: rgba(99, 102, 241, 0.36);
  box-shadow: 0 12px 28px rgba(var(--mnp-vert-082315), 0.08);
  transform: translateY(-1px);
}

.manager-module-pill:has(input:checked) {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.42);
}

.manager-module-pill:has(input:checked)::after {
  content: "Autorisé";
  color: #ffffff;
  background: #6366f1;
}

.manager-module-pill:has(input:checked) span {
  color: #ffffff;
}

.theme-dark .manager-module-pill {
  background: rgba(15, 23, 42, 0.54);
  border-color: rgba(148, 163, 184, 0.18);
}

.theme-dark .manager-module-pill span {
  color: #ffffff;
  background: #6366f1;
  border-color: rgba(129, 140, 248, 0.38);
}

.theme-dark .manager-module-pill small {
  color: #94a3b8;
}

.theme-dark .manager-module-pill::after {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.9);
}

.theme-dark .manager-module-pill:hover {
  background: rgba(30, 41, 59, 0.82);
  border-color: rgba(129, 140, 248, 0.34);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.theme-dark .manager-module-pill:has(input:checked) {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.44);
}

.theme-dark .manager-module-pill:has(input:checked) span {
  color: #ffffff;
}

@media (max-width: 1100px) {
  .manager-module-rights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .manager-module-rights-grid {
    grid-auto-rows: auto;
  }

  .manager-module-pill {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 112px;
  }

  .manager-module-pill span {
    justify-content: center;
    width: fit-content;
  }

  .manager-module-pill::after {
    justify-self: start;
  }
}

.domain-management {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.25fr);
  gap: 28px;
  align-items: start;
}

.domain-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.company-domain-folders {
  display: grid;
  gap: 12px;
}

.company-domain-folder {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.44);
}

.company-domain-folder summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: var(--brand-deep);
  cursor: pointer;
  font-weight: 900;
}

.company-domain-folder summary strong {
  min-width: 30px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(var(--mnp-vert-176b3c), 0.1);
  font-size: 13px;
}

.company-domain-list {
  border-top: 1px solid var(--line);
}

.domain-row {
  border-bottom: 1px solid var(--line);
}

.domain-row:last-child {
  border-bottom: 0;
}

.domain-row-button {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 4px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.domain-row.active .domain-row-button,
.domain-row-button:hover {
  background: rgba(255, 255, 255, 0.58);
}

.domain-thumb {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-deep), var(--brand));
  background-position: center;
  background-size: cover;
  font-weight: 900;
}

.domain-thumb.has-photo {
  color: transparent;
}

.domain-row-button strong {
  display: block;
  color: var(--brand-deep);
  font-size: 18px;
  line-height: 1.1;
}

.domain-row-button small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.domain-tags {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.domain-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(var(--mnp-vert-102016), 0.09);
  box-shadow: 0 24px 70px rgba(var(--mnp-vert-082315), 0.08);
  animation: adminPanelIn 180ms ease both;
}

/* SOURCE: css/09-admin.css */
/* Administration : utilisateurs, societes, modules, domaines, architecture
   Aussi : Choix de la societe, des domaines et dossiers, Composants.
   (issu de admin.css ; l'ordre des fichiers compte : voir css/README.md) */

.admin-floating-company-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(6, 10, 28, 0.58);
  backdrop-filter: blur(10px);
}

.admin-floating-company {
  width: min(1060px, 100%);
  max-height: min(850px, calc(100vh - 56px));
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: radial-gradient(circle at 80% 0%, rgba(116, 105, 239, 0.16), transparent 34%), var(--surface, #fff);
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(6, 10, 28, 0.34);
  animation: adminPanelIn 180ms ease both;
}

.theme-dark .admin-floating-company {
  background: radial-gradient(circle at 80% 0%, rgba(116, 105, 239, 0.18), transparent 34%), #151b2e;
}

.admin-floating-head,
.company-title-lockup,
.admin-company-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-floating-head {
  justify-content: space-between;
}

.company-title-lockup {
  min-width: 0;
}

.company-title-lockup strong {
  display: block;
  color: var(--brand-deep);
  font-size: 28px;
  line-height: 1.1;
}

.company-title-lockup small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.admin-company-summary {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-company-summary div,
.admin-company-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.theme-dark .admin-company-summary div,
.theme-dark .admin-company-card {
  background: rgba(21, 27, 46, 0.78);
}

.admin-company-summary div {
  padding: 16px;
}

.admin-company-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-company-summary strong {
  display: block;
  margin-top: 7px;
  color: var(--brand-deep);
  font-size: 24px;
}

.admin-company-stack {
  display: grid;
  gap: 14px;
}

.admin-company-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-company-readonly {
  display: grid;
  gap: 12px;
}

.admin-company-readonly p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 760px) {
  .admin-floating-company-backdrop {
    align-items: stretch;
    padding: 12px;
  }

  .admin-floating-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-company-summary {
    grid-template-columns: 1fr;
  }
}

.domain-mode {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.domain-mode span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  color: #fff;
  background: var(--orange-deep);
  font-size: 13px;
  font-weight: 850;
}

.domain-mode.independent span {
  background: var(--brand);
}

.domain-mode p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.switch-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-deep);
  font-weight: 850;
}

.switch-row input {
  accent-color: var(--brand);
}

.company-logo-preview img,
.company-list-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: inherit;
}

.company-banner-preview {
  min-height: 150px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(var(--mnp-vert-102016), 0.045);
  background-position: center;
  background-size: cover;
  border: 1px dashed var(--line);
  font-weight: 850;
}

.company-banner-preview.has-banner {
  border-style: solid;
}

.company-logo-editor {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.company-logo-preview {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--brand);
  background: rgba(var(--mnp-vert-e7f1e5), 0.95);
  border: 1px solid rgba(var(--mnp-vert-32603e), 0.16);
  font-weight: 950;
  font-size: 24px;
  overflow: hidden;
}

.module-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.module-check-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(var(--mnp-vert-102016), 0.035);
  color: var(--brand-deep);
  cursor: pointer;
}

.module-check-card input {
  margin-top: 4px;
  accent-color: var(--brand);
}

.module-check-card strong,
.module-check-card small {
  display: block;
}

.module-check-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.module-check-card em {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.3;
}

.module-check-card-group {
  background: rgba(var(--mnp-vert-75b872), 0.12);
  border-color: rgba(var(--mnp-vert-32603e), 0.2);
}

.domain-photo-preview {
  min-height: 210px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-deep), var(--brand));
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.domain-photo-preview span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 24px;
  font-weight: 900;
}

.quick-user-list {
  display: grid;
  gap: 10px;
}

.quick-user {
  min-height: 64px;
  display: grid;
  grid-template-columns: 22px 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.quick-user input {
  accent-color: var(--brand);
}

.quick-user strong,
.quick-user small {
  display: block;
}

.quick-user strong {
  color: var(--brand-deep);
}

.quick-user small {
  margin-top: 3px;
  color: var(--muted);
}

/* SOURCE: css/10-logs.css */
/* Journaux et archives
   Aussi : Administration.
   (issu de admin.css ; l'ordre des fichiers compte : voir css/README.md) */

.log-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 22px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(var(--mnp-vert-102016), 0.09);
}

.log-filters label {
  display: grid;
  gap: 6px;
}

.log-filters span {
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 850;
}

.log-filters select {
  width: 100%;
  font: inherit;
}

.logs-list {
  display: grid;
}

.archive-log-filters,
.manager-log-filters {
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
}

.log-row {
  display: grid;
  grid-template-columns: 34px 120px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 34px rgba(var(--mnp-vert-082315), 0.04);
}

.log-row strong {
  color: var(--brand-deep);
  font-size: 17px;
}

.log-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.log-readable-main {
  min-width: 0;
}

.log-select {
  display: grid;
  place-items: center;
}

.log-select input {
  accent-color: var(--brand);
}

.log-archive-marker {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 950;
}

.log-readable-main p {
  overflow-wrap: anywhere;
}

.log-readable-meta {
  display: flex;
  flex-wrap: wrap;
}

.log-type {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(var(--mnp-vert-176b3c), 0.1);
  font-weight: 950;
  text-align: center;
}

.log-type-stock,
.log-type-fournisseur {
  color: rgb(var(--mnp-vert-176b3c));
  background: rgba(var(--mnp-vert-176b3c), 0.12);
}

.log-type-courses,
.log-type-pain {
  color: #8a5a13;
  background: rgba(255, 244, 224, 0.92);
}

.log-type-hygiene {
  color: #0d5b68;
  background: rgba(200, 236, 241, 0.68);
}

.log-type-compte,
.log-type-attribution {
  color: #31547a;
  background: rgba(219, 231, 246, 0.78);
}

.log-type-domaine,
.log-type-societe,
.log-type-dossier {
  color: #6f4c16;
  background: rgba(239, 225, 200, 0.78);
}

.log-type-chat {
  color: #5b3f88;
  background: rgba(229, 220, 247, 0.78);
}

.admin-section-head .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.log-filters.archive-log-filters,
.log-filters.manager-log-filters {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: radial-gradient(circle at 94% 12%, rgba(255, 244, 224, 0.66), transparent 34%), rgba(255, 255, 255, 0.74);
}

.log-filters.archive-log-filters label,
.log-filters.manager-log-filters label {
  gap: 7px;
}

.log-filters.archive-log-filters span,
.log-filters.manager-log-filters span {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.log-filters.archive-log-filters select,
.log-filters.manager-log-filters select {
  min-height: 40px;
  border-radius: 14px;
}

.logs-list {
  gap: 10px;
}

.log-row.log-row-readable {
  grid-template-columns: minmax(132px, 0.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 246, 0.72));
  box-shadow: 0 12px 30px rgba(var(--mnp-vert-082315), 0.045);
}

.log-readable-side {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  gap: 8px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.log-readable-side .log-select {
  flex: 0 0 auto;
}

.log-readable-side .log-archive-marker,
.log-readable-side .log-type {
  flex: 1 1 92px;
  max-width: 100%;
}

.log-row.log-row-readable.is-archived {
  background: radial-gradient(circle at 100% 0%, rgba(255, 244, 224, 0.64), transparent 30%), linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(249, 250, 246, 0.78));
}

.log-row.log-row-readable:hover {
  border-color: rgba(var(--mnp-vert-176b3c), 0.2);
  box-shadow: 0 16px 38px rgba(var(--mnp-vert-082315), 0.08);
}

.log-row.log-row-readable strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.log-row.log-row-readable p {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.log-archive-marker,
.log-type {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.log-archive-marker {
  color: #8a5a13;
  background: rgba(255, 244, 224, 0.95);
}

.log-readable-meta {
  gap: 8px;
  margin-top: 13px;
}

.log-readable-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(var(--mnp-vert-e8f0e5), 0.74);
  font-weight: 800;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.log-readable-meta b {
  color: var(--brand-deep);
  font-weight: 950;
  margin-right: 4px;
}

@media (max-width: 980px) {
  .log-filters.archive-log-filters,
  .log-filters.manager-log-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-section-head .actions {
    justify-content: stretch;
  }

  .admin-section-head .actions .btn {
    flex: 1 1 100%;
  }

  .log-filters.archive-log-filters,
  .log-filters.manager-log-filters,
  .log-row.log-row-readable {
    grid-template-columns: 1fr;
  }

  .log-readable-side {
    padding-right: 0;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .log-readable-side .log-archive-marker,
  .log-readable-side .log-type {
    flex: 0 1 auto;
  }
}

.theme-dark .workspace-context,
.theme-dark .log-filters,
.theme-dark .log-select,
.theme-dark .log-readable-meta span {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.2);
}

.theme-dark .user-company-folder,
.theme-dark .manager-rights-card,
.theme-dark .company-domain-folder,
.theme-dark .log-row,
.theme-dark .log-row.log-row-readable,
.theme-dark .log-filters.archive-log-filters,
.theme-dark .log-filters.manager-log-filters {
  background: rgba(30, 41, 59, 0.66);
  border-color: rgba(148, 163, 184, 0.18);
}

.theme-dark .log-row.log-row-readable.is-archived {
  background: radial-gradient(circle at 100% 0%, rgba(129, 140, 248, 0.12), transparent 34%), rgba(30, 41, 59, 0.68);
}

.theme-dark .admin-nav .tab-button:hover {
  background: rgba(99, 102, 241, 0.16);
}

.theme-dark .admin-nav .tab-button.active {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-color: rgba(129, 140, 248, 0.72);
}

.theme-dark .request-password-field input,
.theme-dark .log-filters select {
  color: var(--ink);
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.24);
}

.theme-dark .log-readable-side {
  border-right-color: rgba(148, 163, 184, 0.18);
}

.theme-dark .log-row.log-row-readable:hover {
  border-color: rgba(129, 140, 248, 0.36);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

/* SOURCE: css/11-admin.css */
/* Administration : utilisateurs, societes, modules, domaines, architecture
   Aussi : Journaux et archives, Choix de la societe, des domaines et dossiers.
   (issu de admin.css ; l'ordre des fichiers compte : voir css/README.md) */

.theme-dark .admin-sidebar,
.theme-dark .add-user-panel,
.theme-dark .domain-panel,
.theme-dark .admin-request-card,
.theme-dark .user-company-folder,
.theme-dark .manager-rights-card,
.theme-dark .company-domain-folder,
.theme-dark .module-check-card,
.theme-dark .log-filters,
.theme-dark .log-row {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
}

.theme-dark .admin-section-head h2,
.theme-dark .admin-form h2,
.theme-dark .request-history h3,
.theme-dark .domain-row-button strong,
.theme-dark .module-check-card strong,
.theme-dark .log-row strong {
  color: #f8fafc;
}

.theme-dark .admin-section-head p,
.theme-dark .admin-row-head p,
.theme-dark .request-card-main p,
.theme-dark .request-card-main small,
.theme-dark .domain-row-button small,
.theme-dark .module-check-card small,
.theme-dark .log-row p {
  color: #94a3b8;
}

.theme-dark .admin-form input,
.theme-dark .admin-form select,
.theme-dark .admin-form textarea,
.theme-dark .domain-panel input,
.theme-dark .domain-panel select,
.theme-dark .domain-panel textarea,
.theme-dark .log-filters select {
  color: #f8fafc;
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.26);
}

.theme-dark .tag,
.theme-dark .log-type,
.theme-dark .log-archive-marker {
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.16);
}

.theme-dark .domain-row.active .domain-row-button,
.theme-dark .domain-row-button:hover {
  color: #f8fafc;
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(129, 140, 248, 0.32);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.28);
}

.theme-dark .domain-row.active .domain-row-button strong,
.theme-dark .domain-row-button:hover strong {
  color: #ffffff;
}

.theme-dark .domain-row.active .domain-row-button small,
.theme-dark .domain-row-button:hover small {
  color: #cbd5e1;
}

.theme-dark .domain-row.active .domain-thumb,
.theme-dark .domain-row-button:hover .domain-thumb {
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-color: rgba(165, 180, 252, 0.3);
}

.theme-dark .domain-row.active .tag,
.theme-dark .domain-row-button:hover .tag {
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.24);
}

.log-select {
  align-self: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.log-select input,
.module-check-card input,
.quick-user input,
.switch-row input {
  width: 24px;
  height: 24px;
}

.log-select:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 10px 24px rgba(var(--mnp-vert-082315), 0.08);
}

.log-select:has(input:checked) {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.38);
}

.module-check-card:has(input:checked),
.quick-user:has(input:checked) {
  border-color: rgba(99, 102, 241, 0.34);
  background: rgba(99, 102, 241, 0.1);
}

.theme-dark .log-select {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.22);
}

.theme-dark .log-select:hover,
.theme-dark .log-select:has(input:checked) {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.42);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.theme-dark .module-check-card:has(input:checked),
.theme-dark .quick-user:has(input:checked) {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.38);
}

/* SOURCE: css/12-stock.css */
/* Module stock
   (issu de stock.css ; l'ordre des fichiers compte : voir css/README.md) */

.stock-alert-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 245, 229, 0.86);
  border: 1px solid rgba(199, 100, 23, 0.22);
}

.stock-alert-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.stock-alert-head h2 {
  margin: 0;
  color: #8b2d20;
  font-size: 20px;
}

.stock-alert-head p {
  margin: 4px 0 0;
  color: #815110;
  font-size: 14px;
  font-weight: 750;
}

.stock-alert-list {
  display: grid;
  gap: 8px;
}

.stock-alert-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(199, 100, 23, 0.12);
}

.stock-alert-row strong {
  color: var(--brand-deep);
}

.stock-alert-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.stock-domain-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.stock-domain-tabs .tab-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.stock-domain-tabs .tab-button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.stock-domain-tabs .storage-tab {
  border-style: dashed;
  border-color: rgba(var(--mnp-vert-176b3c), 0.28);
  background: rgba(var(--mnp-vert-176b3c), 0.08);
}

.stock-domain-tabs .storage-tab.active {
  border-style: solid;
  background: var(--brand);
  color: #fff;
}

.stock-domain-tabs .storage-add-tab {
  color: var(--brand);
  background: rgba(76, 190, 230, 0.12);
  border-color: rgba(76, 190, 230, 0.32);
}

.stock-domain-tabs .global-inventory-tab {
  border: 2px solid rgba(141, 93, 32, 0.34);
  background: rgba(255, 244, 224, 0.92);
  color: #5b3511;
}

.stock-domain-tabs .global-inventory-tab.active {
  border-color: rgb(var(--mnp-vert-102016));
  background: linear-gradient(135deg, rgb(var(--mnp-vert-102016)), rgb(var(--mnp-vert-2f6f3d)));
  color: #fff;
  box-shadow: 0 12px 28px rgba(var(--mnp-vert-082315), 0.2);
}

.stock-domain-field {
  grid-column: 1 / -1;
}

.stock-domain-picker {
  gap: 10px;
}

.stock-domain-pill span {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(var(--mnp-vert-082315), 0.05);
}

.stock-domain-pill input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 14px 28px rgba(var(--mnp-vert-082315), 0.14);
}

.empty-inline {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.global-inventory-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 46px rgba(var(--mnp-vert-082315), 0.05);
}

.global-inventory-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 250px));
  justify-content: start;
  gap: 22px;
}

.global-inventory-card {
  display: grid;
  grid-template-rows: auto 126px auto;
  gap: 10px;
  width: 100%;
  min-height: 270px;
  padding: 12px;
  border: 2px solid rgba(180, 164, 132, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 46px rgba(var(--mnp-vert-082315), 0.06);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.global-inventory-card:hover,
.global-inventory-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(var(--mnp-vert-176b3c), 0.34);
  box-shadow: 0 22px 54px rgba(var(--mnp-vert-082315), 0.1);
  outline: none;
}

.global-inventory-visual {
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 18px;
  background: radial-gradient(circle at 75% 20%, rgba(var(--mnp-vert-8ebe40), 0.16), transparent 36%), rgba(232, 238, 244, 0.9);
  border: 1px solid rgba(var(--mnp-vert-102016), 0.08);
}

.global-inventory-visual strong {
  display: block;
  color: var(--brand-deep);
  font-size: 44px;
  line-height: 1;
}

.global-inventory-visual span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.global-inventory-card .stock-main strong {
  display: block;
  color: #27231e;
  font-size: 21px;
  line-height: 1.1;
}

.theme-dark .global-inventory-card .stock-main strong {
  color: var(--ink);
}

.global-inventory-card .stock-main p {
  margin: 5px 0 0;
  color: #68645d;
  font-size: 15px;
  font-weight: 850;
}

.theme-dark .global-inventory-card .stock-main p {
  color: var(--muted);
}

.global-inventory-dialog {
  width: min(620px, 100%);
}

.global-inventory-total {
  padding: 16px;
  border-radius: 18px;
  background: rgba(var(--mnp-vert-176b3c), 0.08);
  border: 1px solid rgba(var(--mnp-vert-176b3c), 0.12);
}

.global-inventory-total span {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.global-inventory-total strong {
  display: block;
  margin-top: 5px;
  color: var(--brand-deep);
  font-size: 34px;
  line-height: 1;
}

.global-inventory-domain-list {
  display: grid;
  gap: 10px;
}

.global-inventory-domain-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.global-inventory-domain-list strong,
.global-inventory-domain-list span {
  color: var(--brand-deep);
  font-weight: 900;
}

.global-inventory-domain-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.storage-space-detail {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 46px rgba(var(--mnp-vert-082315), 0.05);
}

.storage-space-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.storage-space-metadata article {
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(var(--mnp-vert-e8f0e5), 0.78);
  border: 1px solid rgba(var(--mnp-vert-102016), 0.08);
}

.storage-space-metadata span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.storage-space-metadata strong {
  display: block;
  margin-top: 5px;
  color: var(--brand-deep);
  overflow-wrap: anywhere;
}

.storage-space-panel {
  display: grid;
  gap: 16px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 46px rgba(var(--mnp-vert-082315), 0.05);
}

.storage-space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.storage-space-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(248, 250, 246, 0.82);
}

.storage-space-card span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.storage-space-card h3,
.storage-space-card p {
  margin: 0;
}

.storage-space-card h3 {
  margin-top: 4px;
  color: var(--brand-deep);
  font-size: 21px;
}

.storage-space-card p {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 750;
}

.storage-space-metrics {
  padding: 12px;
  border-radius: 16px;
  background: rgba(var(--mnp-vert-176b3c), 0.08);
}

.storage-space-metrics strong {
  display: block;
  color: var(--brand-deep);
  font-size: 30px;
  line-height: 1;
}

.storage-space-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .storage-space-metadata {
    grid-template-columns: 1fr;
  }
}

.stock-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  align-items: end;
}

.stock-form-grid .field:has(input[type="file"]) {
  min-width: 240px;
}

.stock-number-field {
  min-width: 130px;
}

.stock-number-stepper {
  height: 46px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.theme-dark .stock-number-stepper {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.24);
}

.stock-number-stepper input {
  height: 36px;
  padding: 0 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: center;
  font-weight: 900;
  box-shadow: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.stock-number-stepper input::-webkit-outer-spin-button,
.stock-number-stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.stock-number-stepper input:focus {
  outline: none;
}

.stock-number-stepper:focus-within {
  border-color: rgba(99, 102, 241, 0.72);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.stock-step-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.14);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.stock-step-button:hover {
  color: #fff;
  background: #6366f1;
  transform: translateY(-1px);
}

.stock-step-button:active {
  transform: scale(0.96);
}

.theme-dark .stock-step-button {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.24);
}

.theme-dark .stock-step-button:hover {
  color: #fff;
  background: #6366f1;
}

.stock-list-panel {
  display: grid;
  gap: 18px;
}

.stock-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stock-list-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stock-list-head h2 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 24px;
}

.stock-create-dialog {
  width: min(760px, 100%);
}

.stock-create-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.stock-create-grid .field:has(input[type="file"]) {
  grid-column: 1 / -1;
}

.stock-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 250px));
  justify-content: start;
  gap: 22px;
}

.stock-row {
  min-height: 318px;
  aspect-ratio: auto;
  display: grid;
  grid-template-rows: auto 126px auto auto;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 2px solid rgba(180, 164, 132, 0.28);
  box-shadow: 0 18px 46px rgba(var(--mnp-vert-082315), 0.06);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.stock-row:hover,
.stock-row:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(var(--mnp-vert-176b3c), 0.34);
  box-shadow: 0 22px 54px rgba(var(--mnp-vert-082315), 0.1);
  outline: none;
}

.stock-row strong {
  display: block;
  color: #27231e;
  font-size: 21px;
  line-height: 1.1;
}

.stock-main {
  min-height: 56px;
}

.theme-dark .stock-row strong,
.theme-dark .stock-row .actions .btn {
  color: var(--ink);
}

.stock-row p {
  margin: 5px 0 0;
  color: #68645d;
  font-size: 15px;
  font-weight: 850;
}

.theme-dark .stock-row p {
  color: var(--muted);
}

.stock-count {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgb(var(--mnp-vert-35643d));
  background: rgba(var(--mnp-vert-176b3c), 0.1);
  border: 1px solid rgba(var(--mnp-vert-176b3c), 0.14);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: left;
}

.stock-row.is-low .stock-count {
  color: #aa2a23;
  background: rgba(170, 42, 35, 0.09);
  border-color: rgba(170, 42, 35, 0.18);
}

.course-card {
  cursor: default;
}

.course-card:hover,
.course-card:focus-visible {
  transform: none;
}

.course-card.has-request {
  border-color: rgba(var(--mnp-vert-176b3c), 0.42);
  box-shadow: 0 22px 54px rgba(var(--mnp-vert-176b3c), 0.12);
}

.course-card.has-request .course-count {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.stock-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.stock-threshold {
  padding: 6px 10px;
  border-radius: 999px;
  color: #6b6257;
  background: rgba(244, 240, 231, 0.94);
  border: 1px solid rgba(180, 164, 132, 0.28);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.stock-row.is-low .stock-threshold {
  color: #aa2a23;
  background: rgba(170, 42, 35, 0.09);
  border-color: rgba(170, 42, 35, 0.18);
}

.stock-image {
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #667086;
  background: #e9edf3;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.06);
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  background-position: center;
  background-size: cover;
}

.stock-image.has-image {
  color: transparent;
}

.stock-row .actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 2px;
}

.stock-row .actions .btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid rgba(180, 164, 132, 0.38);
  color: #27231e;
  background: rgba(255, 255, 255, 0.34);
  font-size: 21px;
  font-weight: 900;
  box-shadow: none;
}

.stock-row .actions .danger {
  min-width: auto;
  color: #fff;
  font-size: 14px;
  border-color: transparent;
}

.admin-section-head.compact {
  align-items: flex-start;
  margin-bottom: 8px;
}

.edit-stock-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stock-edit-image {
  min-height: 150px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #667086;
  background: #e9edf3;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.06);
  font-weight: 900;
  background-position: center;
  background-size: cover;
}

.stock-edit-image.has-image {
  color: transparent;
}

.theme-dark .stock-alert-panel,
.theme-dark .global-inventory-panel,
.theme-dark .storage-space-detail,
.theme-dark .storage-space-panel {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.3);
}

.theme-dark .stock-alert-row,
.theme-dark .global-inventory-domain-list article,
.theme-dark .storage-space-metadata article,
.theme-dark .storage-space-card,
.theme-dark .global-inventory-card,
.theme-dark .stock-row {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

.theme-dark .stock-row:hover,
.theme-dark .stock-row:focus-visible,
.theme-dark .global-inventory-card:hover,
.theme-dark .global-inventory-card:focus-visible {
  border-color: rgba(129, 140, 248, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.theme-dark .stock-domain-tabs .tab-button,
.theme-dark .stock-domain-tabs .storage-tab,
.theme-dark .stock-domain-tabs .global-inventory-tab,
.theme-dark .stock-domain-pill span {
  color: var(--ink);
  background: rgba(30, 41, 59, 0.76);
  border-color: rgba(148, 163, 184, 0.22);
}

.theme-dark .stock-domain-tabs .tab-button:hover,
.theme-dark .stock-domain-tabs .storage-tab:hover,
.theme-dark .stock-domain-tabs .global-inventory-tab:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.36);
}

.theme-dark .stock-domain-tabs .tab-button.active,
.theme-dark .stock-domain-tabs .storage-tab.active,
.theme-dark .stock-domain-tabs .global-inventory-tab.active,
.theme-dark .stock-domain-pill input:checked + span {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-color: rgba(129, 140, 248, 0.72);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

.theme-dark .global-inventory-visual,
.theme-dark .stock-image,
.theme-dark .stock-edit-image {
  color: #cbd5e1;
  background: radial-gradient(circle at 75% 20%, rgba(99, 102, 241, 0.12), transparent 34%), rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.16);
}

.theme-dark .stock-count,
.theme-dark .stock-threshold,
.theme-dark .storage-space-metrics {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(129, 140, 248, 0.24);
}

.theme-dark .stock-row.is-low .stock-count,
.theme-dark .stock-row.is-low .stock-threshold {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.28);
}

.theme-dark .stock-row .actions .btn,
.theme-dark .stock-alert-row .btn,
.theme-dark .stock-list-head .btn,
.theme-dark .storage-space-detail .btn,
.theme-dark .storage-space-panel .btn {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: none;
}

.theme-dark .stock-list-head .btn {
  color: #ffffff;
  background: #6366f1;
  border-color: rgba(129, 140, 248, 0.52);
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.24);
}

.theme-dark .stock-row .actions .btn:hover,
.theme-dark .stock-alert-row .btn:hover,
.theme-dark .stock-list-head .btn:hover,
.theme-dark .storage-space-detail .btn:hover,
.theme-dark .storage-space-panel .btn:hover {
  color: #fff;
  background: #6366f1;
  border-color: #818cf8;
}

.theme-dark .stock-row .actions .danger,
.theme-dark .storage-space-detail .btn.danger {
  color: #fff;
  background: rgba(239, 68, 68, 0.84);
  border-color: rgba(248, 113, 113, 0.42);
}

/* SOURCE: css/13-hygiene.css */
/* Module hygiene
   Aussi : Administration.
   (issu de modules.css ; l'ordre des fichiers compte : voir css/README.md) */

.module-form {
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(var(--mnp-vert-102016), 0.09);
}

.theme-dark .module-form {
  background: rgba(var(--mnp-vert-f1f6ed), 0.06);
  border-color: rgba(var(--mnp-vert-f1f6ed), 0.12);
}

.supplier-create-dialog {
  width: min(560px, 100%);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin: 0 0 18px;
}

.hygiene-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hygiene-menu-card {
  display: grid;
  align-content: space-between;
  min-width: 0;
  text-align: left;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 85% 12%, rgba(var(--mnp-vert-8ebe40), 0.18), transparent 32%), linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(var(--mnp-vert-eff6ec), 0.72));
  box-shadow: 0 22px 52px rgba(var(--mnp-vert-082315), 0.08);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hygiene-menu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--mnp-vert-176b3c), 0.28);
  box-shadow: 0 26px 60px rgba(var(--mnp-vert-082315), 0.12);
}

.theme-dark .hygiene-menu-card {
  background: radial-gradient(circle at 85% 12%, rgba(var(--mnp-vert-8ebe40), 0.18), transparent 32%), linear-gradient(145deg, rgba(var(--mnp-vert-f1f6ed), 0.08), rgba(var(--mnp-vert-0a120c), 0.52));
  border-color: rgba(var(--mnp-vert-f1f6ed), 0.12);
}

.hygiene-menu-card span {
  width: fit-content;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(var(--mnp-vert-176b3c), 0.1);
  font-weight: 900;
  text-transform: uppercase;
}

.hygiene-menu-card strong {
  display: block;
  color: var(--brand-deep);
}

.hygiene-menu-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.hygiene-menu-card em {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(var(--mnp-vert-176b3c), 0.1);
  border: 1px solid rgba(var(--mnp-vert-176b3c), 0.14);
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.theme-dark .hygiene-menu-card em {
  color: #dbeafe;
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(129, 140, 248, 0.24);
}

.hygiene-detail-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 46px rgba(var(--mnp-vert-082315), 0.05);
}

.hygiene-follow-panel {
  display: grid;
  margin: 0 0 18px;
}

.hygiene-follow-row span,
.hygiene-follow-row small,
.hygiene-equipment-log-list span {
  color: var(--muted);
  font-weight: 800;
}

.hygiene-follow-row strong,
.hygiene-follow-row span,
.hygiene-follow-row small {
  margin: 0;
}

.hygiene-follow-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
}

.hygiene-follow-timeline-head > div {
  min-width: 0;
}

.hygiene-follow-timeline-head h3,
.hygiene-follow-timeline-head p {
  margin: 0;
}

.hygiene-follow-timeline-head p {
  color: var(--muted);
  font-weight: 850;
}

.hygiene-follow-row {
  justify-content: space-between;
}

.hygiene-follow-row > div {
  display: grid;
  gap: 4px;
}

.hygiene-follow-row strong {
  color: var(--brand-deep);
}

.hygiene-equipment-log-list {
  display: grid;
  gap: 8px;
}

.hygiene-equipment-log-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(var(--mnp-vert-ebf5ec), 0.72);
}

.hygiene-equipment-log-list strong {
  font-size: 16px;
}

.theme-dark .hygiene-detail-card {
  background: rgba(var(--mnp-vert-f1f6ed), 0.06);
  border-color: rgba(var(--mnp-vert-f1f6ed), 0.12);
}

.theme-dark .hygiene-equipment-log-list > div {
  background: rgba(var(--mnp-vert-f1f6ed), 0.08);
}

.hygiene-equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.hygiene-equipment-card {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 250, 246, 0.82);
}

.theme-dark .hygiene-equipment-card {
  background: rgba(var(--mnp-vert-0a120c), 0.34);
  border-color: rgba(var(--mnp-vert-f1f6ed), 0.12);
}

.hygiene-equipment-card h4,
.hygiene-equipment-card p,
.hygiene-equipment-card strong {
  margin: 0;
}

.hygiene-equipment-card h4 {
  color: var(--brand-deep);
  font-size: 19px;
}

.hygiene-equipment-card p {
  color: var(--muted);
}

.hygiene-equipment-card strong {
  color: var(--brand-deep);
  font-size: 24px;
}

@media (max-width: 860px) {
  .hygiene-menu-grid {
    grid-template-columns: 1fr;
  }

  .hygiene-follow-timeline-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.module-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.module-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.module-card-head > div {
  min-width: 0;
}

.icon-danger-button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--danger);
  background: rgba(184, 66, 43, 0.09);
  border: 1px solid rgba(184, 66, 43, 0.16);
  font-weight: 900;
}

.icon-danger-button:hover {
  color: #fff;
  background: var(--danger);
}

/* SOURCE: css/14-courses.css */
/* Module courses
   Aussi : Administration, Fournisseurs.
   (issu de modules.css ; l'ordre des fichiers compte : voir css/README.md) */

.course-treatment-list {
  display: grid;
  gap: 10px;
}

.course-treatment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.theme-dark .course-treatment-row {
  background: rgba(var(--mnp-vert-f1f6ed), 0.06);
}

.course-treatment-row strong,
.course-treatment-row span {
  display: block;
}

.course-treatment-row strong {
  color: var(--brand-deep);
  overflow-wrap: anywhere;
}

.course-treatment-row span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 900;
}

.course-treatment-row .actions {
  justify-content: flex-end;
}

.course-treatment-row .btn {
  min-height: 40px;
  padding-inline: 14px;
}

.course-supplier-panel {
  display: grid;
  gap: 12px;
  margin: 4px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.theme-dark .course-supplier-panel {
  background: rgba(var(--mnp-vert-f1f6ed), 0.06);
}

.course-supplier-zones {
  display: grid;
  gap: 14px;
}

.course-supplier-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.theme-dark .course-supplier-zone {
  background: rgba(var(--mnp-vert-f1f6ed), 0.06);
}

.course-supplier-zone h3,
.course-supplier-zone p {
  margin: 0;
}

.course-supplier-zone h3 {
  color: var(--brand-deep);
}

.course-supplier-zone p {
  margin-top: 4px;
  color: var(--muted);
}

.course-supplier-zone ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.course-supplier-zone li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.course-supplier-zone li span {
  overflow-wrap: anywhere;
}

.course-supplier-zone li strong {
  flex: 0 0 auto;
  color: var(--brand-deep);
}

.course-supplier-zone .actions {
  justify-content: flex-end;
}

.course-supplier-summary {
  width: 100%;
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.82);
  font: 800 16px/1.6 inherit;
  resize: vertical;
}

.theme-dark .course-supplier-summary {
  color: var(--ink);
  background: rgba(var(--mnp-vert-0a120c), 0.42);
  border-color: rgba(var(--mnp-vert-f1f6ed), 0.16);
}

.course-mail-dialog {
  width: min(620px, 100%);
}

.supplier-edit-list {
  display: grid;
  gap: 10px;
}

.supplier-edit-list label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.theme-dark .supplier-edit-list label {
  background: rgba(var(--mnp-vert-f1f6ed), 0.06);
}

.supplier-edit-list span {
  color: var(--brand-deep);
  font-weight: 900;
}

.supplier-edit-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.supplier-edit-list input {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 12px;
}

.theme-dark .module-card {
  background: rgba(var(--mnp-vert-f1f6ed), 0.06);
}

.module-card h3,
.module-card p,
.module-card strong {
  margin: 0;
}

.module-card h3,
.module-row strong,
.chat-bubble strong {
  color: var(--brand-deep);
}

.module-card p,
.module-muted,
.module-row p,
.chat-bubble small {
  color: var(--muted);
}

.module-list,
.chat-list {
  display: grid;
  gap: 10px;
}

.module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.module-row p {
  margin: 5px 0 0;
}

.sent-course-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.course-request-form .btn:disabled,
.course-request-form .btn:disabled:hover {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.24);
  box-shadow: none;
  transform: none;
}

.course-request-form .btn.secondary:disabled,
.course-request-form .btn.secondary:disabled:hover {
  color: rgba(226, 232, 240, 0.58);
  background: rgba(15, 23, 42, 0.58);
  border-color: rgba(148, 163, 184, 0.2);
}

.theme-dark .course-request-form .btn:disabled,
.theme-dark .course-request-form .btn:disabled:hover {
  color: rgba(226, 232, 240, 0.62);
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(129, 140, 248, 0.24);
}

.theme-dark .course-request-form .btn.secondary:disabled,
.theme-dark .course-request-form .btn.secondary:disabled:hover {
  color: rgba(226, 232, 240, 0.58);
  background: rgba(15, 23, 42, 0.64);
  border-color: rgba(148, 163, 184, 0.22);
}

.course-history-details {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.theme-dark .course-history-details {
  background: rgba(var(--mnp-vert-f1f6ed), 0.05);
  border-color: rgba(var(--mnp-vert-f1f6ed), 0.12);
}

.course-history-details summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--brand-deep);
  list-style: none;
}

.course-history-details summary::-webkit-details-marker {
  display: none;
}

.course-history-details summary::after {
  content: "Voir";
  min-width: 72px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(var(--mnp-vert-176b3c), 0.1);
  border: 1px solid rgba(var(--mnp-vert-176b3c), 0.14);
  font-size: 13px;
  font-weight: 900;
}

.course-history-details[open] summary::after {
  content: "Masquer";
}

.course-history-details summary strong,
.course-history-details summary small {
  display: block;
}

.course-history-details summary strong {
  font-size: 18px;
}

.course-history-details summary small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.course-history-details summary em {
  margin-left: auto;
  color: var(--brand);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

/* SOURCE: css/15-chat.css */
/* Messagerie
   Aussi : Champs de formulaire, listes deroulantes, interrupteurs, Composants, MNP Send.
   (issu de modules.css ; l'ordre des fichiers compte : voir css/README.md) */

.course-history-details .sent-course-list {
  padding: 0 14px 14px;
}

.sent-course-list {
  display: grid;
  gap: 12px;
}

.sent-course-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(var(--mnp-vert-082315), 0.05);
}

.theme-dark .sent-course-card {
  background: rgba(var(--mnp-vert-f1f6ed), 0.06);
}

.sent-course-card.compact {
  padding: 13px 14px;
  box-shadow: none;
}

.sent-course-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sent-course-head strong {
  display: block;
  color: var(--brand-deep);
  font-size: 18px;
}

.sent-course-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.eye-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(var(--mnp-vert-176b3c), 0.1);
  border: 1px solid rgba(var(--mnp-vert-176b3c), 0.14);
  color: var(--brand);
}

.eye-button span {
  position: relative;
  width: 20px;
  height: 13px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 999px / 760px;
}

.eye-button span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.eye-button:hover {
  background: var(--brand);
  color: #fff;
}

.view-head {
  align-items: center;
}

.view-head > .btn,
.view-actions .btn {
  min-height: 40px;
  padding: 0 18px;
  box-shadow: none;
}

.view-actions {
  align-items: center;
  gap: 10px;
}

.admin-sidebar .admin-nav {
  align-items: stretch;
}

.admin-sidebar .admin-nav .tab-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  line-height: 1.1;
}

.module-api-preview {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(var(--mnp-vert-102016), 0.04);
  border: 1px dashed var(--line);
}

.module-api-preview code {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  font-size: 12px;
}

.chat-bubble {
  width: min(720px, 100%);
  display: grid;
  gap: 6px;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.chat-bubble.mine {
  justify-self: end;
  background: rgba(var(--mnp-vert-176b3c), 0.1);
}

.chat-bubble.unread {
  border-color: rgba(241, 154, 34, 0.48);
  box-shadow: inset 4px 0 0 var(--orange);
}

.chat-bubble p {
  margin: 0;
  color: var(--ink);
}

.teams-chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 34;
  background: rgba(var(--mnp-vert-08140c), 0.28);
}

.teams-chat-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 35;
  width: min(760px, calc(100vw - 36px));
  height: min(560px, calc(100dvh - 120px));
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 26px 86px rgba(var(--mnp-vert-082315), 0.24);
}

.teams-chat-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(var(--mnp-vert-176b3c), 0.08);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.teams-chat-title,
.teams-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.teams-chat-title strong {
  color: var(--brand-deep);
  font-size: 20px;
}

.teams-chat-label {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.teams-chat-label.with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.teams-chat-label.with-action .teams-group-add {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: var(--brand);
  font-size: 0;
  flex: 0 0 28px;
  box-shadow: 0 7px 18px rgba(var(--mnp-vert-1c6e3b), 0.18);
  cursor: pointer;
}

.teams-chat-label.with-action .teams-group-add::before,
.teams-chat-label.with-action .teams-group-add::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.teams-chat-label.with-action .teams-group-add::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.teams-group-form {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.intercompany-request-form {
  gap: 9px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(var(--mnp-vert-f1f7ef), 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.teams-group-form input[type="text"],
.teams-group-form input:not([type]),
.teams-group-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 750;
}

.intercompany-request-form select {
  outline: none;
}

.intercompany-request-form select:focus {
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-1c6e3b), 0.1);
}

.intercompany-request-form .btn {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 14px;
}

.intercompany-request-form .btn:disabled {
  color: var(--muted);
  background: rgba(var(--mnp-vert-102016), 0.05);
  border: 1px solid var(--line);
  box-shadow: none;
  cursor: not-allowed;
}

.teams-group-form > div {
  display: grid;
  gap: 6px;
  max-height: 116px;
  overflow-y: auto;
}

.teams-group-form label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 8px 5px 0;
  border-radius: 12px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.teams-group-form label:hover {
  background: rgba(var(--mnp-vert-176b3c), 0.08);
}

.teams-group-form label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.teams-group-form label::before {
  content: "";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(var(--mnp-vert-102016), 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.teams-group-form label::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: translateY(-60%) rotate(-45deg) scale(0.7);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.teams-group-form label:has(input[type="checkbox"]:checked) {
  color: var(--brand-deep);
}

.teams-group-form label:has(input[type="checkbox"]:checked)::before {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(var(--mnp-vert-176b3c), 0.18);
}

.teams-group-form label:has(input[type="checkbox"]:checked)::after {
  opacity: 1;
  transform: translateY(-60%) rotate(-45deg) scale(1);
}

.teams-group-form label:has(input[type="checkbox"]:focus-visible)::before {
  outline: 3px solid rgba(99, 102, 241, 0.26);
  outline-offset: 2px;
}

.theme-dark .teams-group-form label {
  color: var(--ink);
}

.theme-dark .teams-group-form label:hover {
  background: rgba(99, 102, 241, 0.12);
}

.theme-dark .teams-group-form label::before {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: none;
}

.theme-dark .teams-group-form label:has(input[type="checkbox"]:checked)::before {
  background: #6366f1;
  border-color: rgba(129, 140, 248, 0.48);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.24);
}

.teams-muted {
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.intercompany-request-list {
  display: grid;
  gap: 8px;
}

.intercompany-request-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-radius: 14px;
  color: var(--brand-deep);
  background: rgba(255, 246, 225, 0.78);
  border: 1px solid rgba(129, 81, 16, 0.16);
}

.intercompany-empty {
  padding: 9px 10px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(var(--mnp-vert-102016), 0.035);
  font-size: 12px;
  font-weight: 850;
}

.intercompany-request-card strong,
.intercompany-request-card small {
  display: block;
}

.intercompany-request-card small {
  color: var(--muted);
  font-weight: 800;
}

.intercompany-request-card > div {
  display: flex;
  gap: 6px;
}

.mini-action {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.mini-action.accept {
  color: #fff;
  background: var(--brand);
}

.mini-action.reject {
  color: var(--danger);
  background: rgba(184, 66, 43, 0.08);
  border: 1px solid rgba(184, 66, 43, 0.18);
}

.teams-conversation {
  position: relative;
  min-height: 44px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 7px;
  border-radius: 13px;
  color: var(--brand-deep);
  background: transparent;
  text-align: left;
}

.teams-conversation:hover {
  background: rgba(255, 255, 255, 0.78);
}

.teams-conversation.active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(var(--mnp-vert-176b3c), 0.22);
}

.teams-conversation.active::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: #f5d977;
}

.teams-conversation > span:not(.teams-avatar),
.teams-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

.teams-conversation.active > span:not(.teams-avatar),
.teams-conversation.active .teams-avatar {
  color: var(--brand-deep);
  background: #fff;
}

.teams-avatar.has-image {
  background-position: center;
  background-size: cover;
}

.teams-conversation strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teams-conversation.active strong {
  color: inherit;
}

.teams-conversation em {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #b8422b;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.teams-chat-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(247, 250, 245, 0.82);
}

.teams-chat-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.teams-chat-head h2 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 20px;
}

.teams-chat-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.teams-message-list {
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 14px 16px;
  overflow-y: auto;
}

.teams-message {
  max-width: 78%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.07);
}

.teams-message.mine {
  justify-self: end;
  background: rgba(var(--mnp-vert-176b3c), 0.12);
}

.teams-message.unread {
  border-color: rgba(184, 66, 43, 0.32);
}

.teams-message strong {
  color: var(--brand-deep);
}

.teams-message small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.teams-message p {
  margin: 5px 0 0;
  color: var(--ink);
  line-height: 1.35;
}

.chat-image-link {
  display: inline-block;
  margin-top: 8px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.08);
}

.chat-image {
  display: block;
  width: min(260px, 100%);
  max-height: 210px;
  object-fit: cover;
  background: rgba(232, 238, 244, 0.9);
}

.link-button {
  margin-top: 7px;
  color: var(--brand);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.teams-empty {
  align-self: end;
  justify-self: center;
  color: var(--muted);
  font-weight: 850;
}

.teams-chat-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.chat-image-upload {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--brand);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.chat-image-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chat-image-upload:hover {
  transform: translateY(-1px);
}

.teams-chat-form textarea,
.teams-chat-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 700;
}

.teams-chat-form select {
  min-width: 0;
  font-size: 13px;
}

.teams-chat-form textarea {
  resize: none;
}

@media (max-width: 760px) {
  .teams-chat-panel {
    left: 50%;
    top: 50%;
    width: calc(100vw - 20px);
    height: min(720px, calc(100dvh - 96px));
    grid-template-columns: 1fr;
  }

  .teams-chat-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    max-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .teams-chat-title,
  .teams-chat-label {
    grid-column: 1 / -1;
  }

  .teams-message {
    max-width: 94%;
  }

  .teams-chat-form {
    grid-template-columns: 1fr;
  }
}

@keyframes adminPanelIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.course-supplier-form {
  grid-template-columns: 1fr;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.course-supplier-form .btn,
.course-supplier-form select {
  width: 100%;
}

.field.compact {
  gap: 6px;
}

.field.compact input {
  height: 42px;
}

.domain-assignments {
  display: grid;
  gap: 12px;
}

.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.check-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-pill span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.check-pill input:checked + span {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff1dd;
  color: #815110;
  font-size: 12px;
  font-weight: 850;
}

.tag.good {
  background: rgb(var(--mnp-vert-e4f4e7));
  color: var(--brand);
}

.tag.danger {
  background: #fff0ec;
  color: var(--danger);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric,
.work-panel {
  border-radius: 0;
  padding: 0;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 5px;
  color: var(--brand-deep);
  font-size: 22px;
  line-height: 1;
}

.work-panel h2 {
  margin: 0 0 8px;
  color: var(--brand-deep);
  font-size: 20px;
}

/* SOURCE: css/16-manager.css */
/* Espace gerant : tableau de bord, droits
   Aussi : Composants.
   (issu de modules.css ; l'ordre des fichiers compte : voir css/README.md) */

.manager-dashboard {
  display: grid;
  gap: 18px;
}

.dashboard-action-card,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(var(--mnp-vert-082315), 0.05);
}

.dashboard-action-card span,
.dashboard-panel-head span,
.dashboard-log-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-action-card {
  min-height: 142px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.dashboard-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.34);
  box-shadow: 0 22px 52px rgba(var(--mnp-vert-082315), 0.1);
}

.dashboard-action-card strong {
  color: var(--brand-deep);
  font-size: 34px;
  line-height: 1;
}

.dashboard-action-card small {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.35;
}

.dashboard-action-card.good {
  border-color: rgba(var(--mnp-vert-176b3c), 0.18);
}

.dashboard-action-card.warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(135deg, rgba(255, 247, 232, 0.82), rgba(255, 255, 255, 0.76));
}

.dashboard-action-card.danger {
  border-color: rgba(239, 68, 68, 0.26);
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.86), rgba(255, 255, 255, 0.76));
}

.dashboard-action-card.info {
  border-color: rgba(99, 102, 241, 0.24);
}

.dashboard-panel {
  padding: 16px;
}

.dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-panel-head h3 {
  margin: 0;
  color: var(--brand-deep);
}

.dashboard-panel-head button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.16);
  font-weight: 900;
}

.dashboard-priority-list,
.dashboard-log-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-priority-list button,
.dashboard-priority-list .dashboard-ok,
.dashboard-log-list li {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.08);
  border-radius: 14px;
  background: rgba(247, 250, 245, 0.72);
  text-align: left;
}

.dashboard-priority-list button {
  cursor: pointer;
}

.dashboard-priority-list button:hover {
  border-color: rgba(99, 102, 241, 0.26);
  background: rgba(99, 102, 241, 0.08);
}

.dashboard-priority-list strong,
.dashboard-log-list strong {
  color: var(--brand-deep);
}

.dashboard-priority-list span,
.dashboard-log-list span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.theme-dark .dashboard-action-card,
.theme-dark .dashboard-panel {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
}

.theme-dark .dashboard-action-card.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.84));
  border-color: rgba(245, 158, 11, 0.26);
}

.theme-dark .dashboard-action-card.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.13), rgba(15, 23, 42, 0.84));
  border-color: rgba(248, 113, 113, 0.26);
}

.theme-dark .dashboard-action-card:hover {
  border-color: rgba(129, 140, 248, 0.38);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.theme-dark .dashboard-priority-list button,
.theme-dark .dashboard-priority-list .dashboard-ok,
.theme-dark .dashboard-log-list li {
  background: rgba(30, 41, 59, 0.58);
  border-color: rgba(148, 163, 184, 0.16);
}

.theme-dark .dashboard-priority-list button:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(129, 140, 248, 0.3);
}

.manager-user-request-panel {
  margin-top: 22px;
}

.access-request-dialog {
  width: min(780px, 100%);
  padding: 24px;
}

.access-request-dialog .manager-user-request-panel {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.access-request-dialog .admin-section-head {
  padding-right: 54px;
}

.request-user-form {
  display: grid;
  gap: 16px;
}

.request-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.temporary-access-field.is-hidden {
  display: none;
}

.request-status-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.request-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.request-row strong {
  display: block;
}

.request-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.empty {
  padding: 22px;
  border: 1px dashed #bfcdbf;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
}

.theme-dark .empty {
  background: rgba(var(--mnp-vert-f1f6ed), 0.06);
  border-color: rgba(var(--mnp-vert-f1f6ed), 0.2);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
    gap: 34px;
  }

  .view-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .view-actions .btn,
  .view-head > .btn {
    min-width: 0;
  }

  .carousel {
    justify-self: center;
  }

  .admin-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .inline-form,
  .course-treatment-row {
    grid-template-columns: 1fr;
  }

  .course-treatment-row .actions {
    justify-content: flex-start;
  }
}

/* SOURCE: css/17-admin.css */
/* Administration : utilisateurs, societes, modules, domaines, architecture
   Aussi : Composants, Choix de la societe, des domaines et dossiers.
   (issu de modules.css ; l'ordre des fichiers compte : voir css/README.md) */

@media (max-width: 860px) {
  .admin-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-sidebar {
    position: static;
    min-height: 0;
    padding: 8px;
    border-radius: 16px;
  }

  .admin-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 6px;
  }

  .admin-nav .tab-button {
    min-height: 38px;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
    font-size: 14px;
    white-space: normal;
  }

  .admin-content {
    padding-bottom: 22px;
  }

  .add-user-panel {
    border-radius: 20px;
    padding: 18px;
  }

  .domain-management {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .domain-panel {
    border-radius: 22px;
  }

  .log-filters {
    grid-template-columns: 1fr 1fr;
  }

  .stock-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: auto;
    min-height: 72px;
    padding: 10px 16px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-subtitle {
    display: none;
  }

  .icon-button {
    min-width: 72px;
  }

  .top-actions {
    gap: 6px;
  }

  .user-grid,
  .metrics,
  .domain-choice-grid,
  .domain-choice-grid.domain-count-1,
  .domain-choice-grid.domain-count-2,
  .domain-choice-grid.domain-count-3 {
    grid-template-columns: 1fr;
  }

  .domain-folder-lane {
    padding: 10px;
    border-radius: 18px;
  }

  .tab-button {
    flex: 1;
    min-width: max-content;
  }

  .admin-row-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .admin-nav .tab-button {
    min-width: 0;
    white-space: normal;
  }

  .admin-page .view-head {
    gap: 10px;
  }

  .admin-page .view-head h1 {
    font-size: 32px;
  }

  .admin-page .view-head p {
    font-size: 14px;
  }

  .admin-sidebar {
    padding: 10px;
    border-radius: 18px;
  }

  .admin-section-head {
    gap: 12px;
  }

  .admin-section-head h2,
  .admin-form h2 {
    font-size: 25px;
  }

  .admin-section-head .btn {
    width: 100%;
  }

  .user-summary {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 96px;
    padding: 14px 0;
  }

  .user-summary .tag {
    grid-column: 2;
    justify-self: start;
  }

  .user-actions-panel {
    padding-left: 0;
    gap: 16px;
  }

  .panel-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel-actions .btn,
  .user-actions-panel .btn,
  .add-user-panel .btn {
    width: 100%;
  }

  .check-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .check-pill span {
    width: 100%;
    justify-content: center;
  }
}

/* SOURCE: css/18-support.css */
/* FAQ et demandes d'aide
   Aussi : Module stock, Choix de la societe, des domaines et dossiers, Composants.
   (issu de modules.css ; l'ordre des fichiers compte : voir css/README.md) */

@media (max-width: 640px) {
  .domain-row-button {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 92px;
  }

  .domain-row-button .domain-tags {
    grid-column: 2;
    justify-self: start;
  }

  .domain-panel .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .domain-panel .actions .btn {
    width: 100%;
  }

  .domain-thumb {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .domain-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .domain-photo-preview {
    min-height: 170px;
    border-radius: 18px;
  }

  .quick-user {
    grid-template-columns: 22px 42px minmax(0, 1fr);
  }

  .log-filters {
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 18px;
  }

  .log-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stock-domain-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stock-domain-tabs .tab-button {
    justify-content: center;
  }

  .stock-alert-head,
  .stock-alert-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .stock-row {
    min-height: 240px;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
  }

  .stock-count {
    min-width: auto;
    text-align: left;
  }

  .stock-row .actions {
    display: flex;
    gap: 10px;
  }

  .stock-row .actions .btn {
    min-width: 44px;
    min-height: 44px;
    font-size: 20px;
  }

  .stock-row .actions .danger {
    grid-column: 1 / -1;
  }

  .user-card {
    min-height: 82px;
  }

  .carousel {
    justify-self: center;
    width: min(420px, 100%);
  }
}

@media (max-width: 420px) {
  .main {
    width: min(100% - 22px, 1160px);
    padding-top: 22px;
  }

  .topbar {
    gap: 10px;
  }

  .brand-title {
    font-size: 15px;
  }

  .admin-nav .tab-button {
    min-width: 0;
    font-size: 13px;
  }

  .add-user-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .user-summary-main strong {
    font-size: 18px;
  }

  .user-summary-main small {
    font-size: 13px;
  }
}

.module-loading {
  display: grid;
  gap: 8px;
  padding: 26px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.module-loading strong {
  font-size: 1.15rem;
}

.module-loading p {
  margin: 0;
  color: var(--muted);
}

.course-message-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.course-message-list > strong {
  color: var(--text);
  font-size: 0.95rem;
}

.course-message-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--mnp-vert-376d44), 0.18);
  border-radius: 16px;
  background: rgba(var(--mnp-vert-ebf5ec), 0.72);
}

.course-message-item p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.course-message-item small {
  color: var(--muted);
  font-weight: 700;
}

.faq-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.faq-item {
  border: 1px solid rgba(var(--mnp-vert-102016), 0.12);
  border-radius: 18px;
  background: rgba(247, 250, 245, 0.86);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--mnp-vert-376d44), 0.12);
  color: var(--brand-deep);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.faq-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  color: var(--muted);
  font-weight: 850;
}

.theme-dark .faq-item {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: none;
}

.theme-dark .faq-item[open] {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(129, 140, 248, 0.32);
}

.theme-dark .faq-item summary {
  color: #f8fafc;
}

.theme-dark .faq-item summary::after {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.24);
}

.theme-dark .faq-item[open] summary::after {
  color: #fff;
  background: #6366f1;
  border-color: rgba(129, 140, 248, 0.42);
}

.theme-dark .faq-item p {
  color: #cbd5e1;
}

.theme-dark .faq-footer {
  border-top-color: rgba(148, 163, 184, 0.18);
}

.btn.compact {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .faq-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .faq-footer .btn {
    width: 100%;
  }
}

/* SOURCE: css/19-cash.css */
/* Module caisse / finances
   (issu de modules.css ; l'ordre des fichiers compte : voir css/README.md) */

.finance-clean-shell {
  display: grid;
  gap: 22px;
  max-width: 980px;
}

.finance-clean-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.finance-clean-head h2 {
  margin: 8px 0 6px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.finance-clean-head p,
.finance-muted {
  color: var(--muted);
  margin: 0;
}

.finance-clean-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.finance-clean-actions .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.finance-clean-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.finance-clean-panel h3 {
  margin: 8px 0 8px;
}

.finance-clean-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.finance-clean-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  min-height: 132px;
}

.finance-clean-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.finance-clean-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.finance-clean-card small {
  color: var(--muted);
}

.finance-clean-card.positive strong,
.finance-recent-row em.positive {
  color: var(--green);
}

.finance-clean-card.warning strong,
.finance-recent-row em.warning {
  color: #a84c35;
}

.finance-clean-sections {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.finance-recent-list {
  display: grid;
  gap: 10px;
}

.finance-recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  background: color-mix(in srgb, var(--surface) 92%, var(--green-soft));
}

.finance-recent-row em {
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.finance-recent-row div {
  display: grid;
  gap: 3px;
}

.finance-recent-row small {
  color: var(--muted);
}

body.theme-dark .finance-clean-panel,
body.theme-dark .finance-clean-card,
body.theme-dark .finance-recent-row {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .finance-clean-card.warning strong,
body.theme-dark .finance-recent-row em.warning {
  color: #f2aa85;
}

@media (max-width: 980px) {
  .finance-clean-head,
  .finance-clean-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-clean-grid,
  .finance-clean-sections {
    grid-template-columns: 1fr;
  }
}

.secure-tab-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  font-size: 0.9em;
  line-height: 1;
  opacity: 0.85;
}

.cash-report-shell {
  display: grid;
  gap: 1.4rem;
}

.cash-report-form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid rgba(var(--mnp-vert-11341d), 0.16);
  border-radius: 24px;
  background: radial-gradient(circle at 88% 8%, rgba(var(--mnp-vert-8ebe40), 0.1), transparent 32%), linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(var(--mnp-vert-f4f8f2), 0.92));
  box-shadow: 0 22px 60px rgba(var(--mnp-vert-082315), 0.1);
}

.cash-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cash-report-grid label,
.cash-report-wide {
  padding: 1rem;
  border: 1px solid rgba(var(--mnp-vert-11341d), 0.13);
  border-radius: 20px;
  background: radial-gradient(circle at top right, rgba(var(--mnp-vert-8ebe40), 0.12), transparent 36%), rgba(var(--mnp-vert-f5f9f3), 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.cash-report-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 900;
}

.cash-report-form input,
.cash-report-form textarea {
  width: 100%;
  border: 1px solid rgba(var(--mnp-vert-11341d), 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
  outline: none;
  box-shadow: 0 8px 20px rgba(var(--mnp-vert-082315), 0.045);
}

.cash-report-form input:focus,
.cash-report-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-377143), 0.12);
}

.cash-report-wide {
  grid-column: 1 / -1;
}

.cash-envelope-upload {
  display: grid !important;
  grid-template-columns: minmax(240px, 1fr) minmax(300px, 420px);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: 20px;
  background: var(--surface-muted);
}

.cash-envelope-upload span {
  display: grid;
  gap: 0.25rem;
}

.cash-envelope-upload small {
  color: var(--muted);
  font-weight: 800;
}

.cash-file-control {
  position: relative;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  min-height: 64px;
  padding: 0.55rem;
  border: 1px solid rgba(var(--mnp-vert-11341d), 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 20px rgba(var(--mnp-vert-082315), 0.045);
}

.cash-file-control::before {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.cash-file-name {
  display: block !important;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cash-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.cash-report-history {
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.cash-report-history h3 {
  margin: 0;
}

.cash-report-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}

.cash-report-row:first-of-type {
  border-top: 0;
}

.cash-report-row div {
  display: grid;
  gap: 0.25rem;
}

.cash-report-row small,
.cash-report-row span {
  color: var(--muted);
  font-weight: 800;
}

/* SOURCE: css/20-login.css */
/* Accueil et connexion (choix d'espace, formulaires)
   Aussi : Parametres du compte et profil, Module caisse / finances.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.theme-dark .cash-report-form,
.theme-dark .cash-report-history {
  background: radial-gradient(circle at 88% 8%, rgba(99, 102, 241, 0.1), transparent 32%), rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.login-hub-page:has(.mnp-send-page) .login-home-stage {
  margin-inline: auto;
}

.login-hub-page:has(.mnp-send-page) .login-screen-pill {
  margin-bottom: 2px;
}

.login-active-account {
  position: fixed;
  z-index: 80;
  top: 28px;
  right: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 360px;
  padding: 13px 14px;
  border: 1px solid rgba(166, 190, 220, 0.16);
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(17, 28, 45, 0.9), rgba(9, 16, 29, 0.82));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.login-active-account-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.login-active-account-avatar-wrap > i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  border: 2px solid #101a2a;
  border-radius: 50%;
  background: rgb(var(--mnp-vert-9cf13d));
  box-shadow: 0 0 12px rgba(var(--mnp-vert-9cf13d), 0.65);
}

.login-active-account-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: rgb(var(--mnp-vert-b9ff42));
  background-color: rgba(var(--mnp-vert-9cf13d), 0.1);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(var(--mnp-vert-9cf13d), 0.22);
  box-shadow: inset 0 0 20px rgba(var(--mnp-vert-9cf13d), 0.06);
  font-weight: 950;
}

.login-active-account-profile {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 1px;
  padding: 0;
  border: 0;
  color: #f7fbff;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 9px;
}

.login-active-account-profile span {
  color: rgb(var(--mnp-vert-9cf13d));
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-active-account-profile strong {
  overflow: hidden;
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-active-account-profile small {
  color: #93a4bb;
  font-size: 12px;
}

.login-active-account-logout {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 123, 123, 0.24);
  border-radius: 12px;
  color: #ffaaaa;
  background: rgba(255, 95, 95, 0.08);
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.login-active-account-logout svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-active-account-logout:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 123, 123, 0.42);
  background: rgba(255, 95, 95, 0.15);
}

@media (max-width: 760px) {
  .login-active-account {
    position: absolute;
    top: 14px;
    right: 14px;
    left: 14px;
    min-width: 0;
    padding: 9px;
  }
}

.mnp-account-menu-wrap {
  position: relative;
}

.mnp-account-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 12px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background: #101a2a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.mnp-account-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.mnp-account-menu-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: rgb(var(--mnp-vert-b9ff42));
  background-color: #1c2a30;
  background-position: center;
  background-size: cover;
  font-weight: 900;
}

.mnp-account-menu-head div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mnp-account-menu-head strong {
  color: #f8fbff;
  font-size: 16px;
}

.mnp-account-menu-head span,
.mnp-account-menu-head small {
  color: #aebbd0;
  font-size: 12px;
}

.mnp-account-menu > button {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: #e9f0fa;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mnp-account-menu > button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.mnp-account-menu > button.is-logout {
  color: #ff9a9a;
}

.theme-dark .cash-report-grid label,
.theme-dark .cash-report-wide,
.theme-dark .cash-envelope-upload,
.theme-dark .cash-file-control,
.theme-dark .cash-report-row {
  background: rgba(30, 41, 59, 0.68);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: none;
}

.theme-dark .cash-report-form input,
.theme-dark .cash-report-form textarea {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: none;
}

.theme-dark .cash-report-form input:focus,
.theme-dark .cash-report-form textarea:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.theme-dark .cash-file-control::before,
.theme-dark .cash-report-form .btn {
  color: #fff;
  background: #6366f1;
}

.theme-dark .cash-file-name {
  color: var(--ink);
}

.theme-dark .cash-report-row {
  border-top-color: rgba(148, 163, 184, 0.16);
}

@media (max-width: 900px) {
  .cash-report-grid,
  .cash-envelope-upload,
  .cash-report-row {
    grid-template-columns: 1fr;
  }

  .cash-envelope-upload {
    align-items: stretch;
  }

  .cash-file-control {
    width: 100%;
  }
}

/* SOURCE: css/22-send.css */
/* MNP Send : envoi de fichiers et bureau
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.mnp-send-hero {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.mnp-send-logo,
.mnp-send-drop-icon {
  display: grid;
  place-items: center;
  color: rgb(var(--mnp-vert-a8ef3f));
  border: 1px solid rgba(var(--mnp-vert-a8ef3f), 0.24);
  background: rgba(var(--mnp-vert-8ee820), 0.11);
}

.mnp-send-logo {
  width: 68px;
  height: 68px;
  border-radius: 19px;
}

.mnp-send-logo svg,
.mnp-send-drop-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnp-send-hero h1 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.95;
}

.mnp-send-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: rgb(var(--mnp-vert-a8ef3f));
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mnp-send-hero p {
  margin: 8px 0 0;
}

.mnp-send-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.mnp-send-benefits span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(var(--mnp-vert-a8ef3f), 0.15);
  border-radius: 999px;
  color: rgba(226, 235, 250, 0.78);
  background: rgba(var(--mnp-vert-8ee820), 0.055);
  font-size: 10px;
  font-weight: 800;
}

.mnp-send-hero h1 span,
.mnp-send-kicker {
  color: rgb(var(--mnp-vert-a8ef3f));
}

.mnp-send-hero p,
.mnp-send-result p,
.mnp-send-history small,
.mnp-send-file small,
.mnp-send-empty {
  color: rgba(213, 224, 242, 0.72);
  font-weight: 800;
}

.mnp-send-card,
.mnp-send-result,
.mnp-send-history {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(213, 224, 242, 0.1);
  border-radius: 22px;
  background: rgba(14, 25, 43, 0.78);
}

.mnp-send-card {
  grid-template-columns: minmax(320px, 0.9fr) minmax(390px, 1.1fr);
  grid-template-rows: auto auto auto 1fr;
  gap: 14px 20px;
  padding: 22px;
}

.mnp-send-drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  grid-column: 1;
  grid-row: 1 / 6;
  min-height: 350px;
  padding: 24px;
  border: 1px dashed rgba(var(--mnp-vert-a8ef3f), 0.36);
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(var(--mnp-vert-8ee820), 0.1), transparent 45%), rgba(5, 11, 22, 0.72);
  text-align: center;
  cursor: pointer;
}

.mnp-send-drop::after {
  content: "Parcourir les fichiers";
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  margin-top: 7px;
  border-radius: 11px;
  color: #07111f;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b8f94d)), rgb(var(--mnp-vert-7bac35)));
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(var(--mnp-vert-8ee820), 0.18);
}

.mnp-send-drop > em {
  color: rgba(213, 224, 242, 0.48);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.mnp-send-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.mnp-send-drop-icon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
}

.mnp-send-drop strong,
.mnp-send-file strong,
.mnp-send-result h3,
.mnp-send-history h2,
.mnp-send-link-card strong {
  color: #f8fbff;
}

.mnp-send-fields {
  display: grid;
  grid-column: 2;
  grid-template-columns: 1fr;
  gap: 14px;
}

.mnp-send-fields label {
  display: grid;
  gap: 8px;
  color: #f8fbff;
  font-weight: 950;
}

.mnp-send-fields input,
.mnp-send-fields textarea,
.mnp-send-link-card input {
  width: 100%;
  border: 1px solid rgba(213, 224, 242, 0.12);
  border-radius: 16px;
  background: rgba(5, 11, 22, 0.82);
  color: #f8fbff;
  font: inherit;
  font-weight: 800;
}

.mnp-send-fields input,
.mnp-send-link-card input {
  min-height: 52px;
  padding: 0 16px;
}

.mnp-send-fields textarea {
  min-height: 104px;
  padding: 14px 16px;
  resize: vertical;
}

.mnp-send-selected,
.mnp-send-result,
.mnp-send-history {
  min-width: 0;
}

.mnp-send-card > .mnp-send-selected,
.mnp-send-card > .mnp-send-actions,
.mnp-send-card > .notice {
  grid-column: 2;
}

.mnp-send-card > .mnp-send-selected {
  min-height: 24px;
}

.mnp-send-file,
.mnp-send-link-card,
.mnp-send-history article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(213, 224, 242, 0.09);
  border-radius: 16px;
  background: rgba(5, 11, 22, 0.48);
}

.mnp-send-file > span,
.mnp-send-history article > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: rgba(var(--mnp-vert-8ee820), 0.12);
  font-weight: 1000;
}

.mnp-send-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.mnp-send-actions .login-submit {
  flex: 1;
  width: auto;
  min-width: 190px;
  min-height: 52px;
}

.mnp-send-actions .arch-soft,
.mnp-send-copy,
.mnp-send-history button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(213, 224, 242, 0.12);
  border-radius: 999px;
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 950;
  cursor: pointer;
}

.mnp-send-link-card {
  grid-template-columns: minmax(180px, 0.55fr) minmax(260px, 1fr) auto;
}

.mnp-send-history article {
  grid-template-columns: 52px minmax(0, 1fr) auto;
}

.mnp-send-copy,
.mnp-send-history button {
  color: #07101a;
  border-color: rgba(var(--mnp-vert-a8ef3f), 0.7);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-a8ef3f)), rgb(var(--mnp-vert-78b836)));
}

@media (max-width: 820px) {
  .mnp-send-hero,
  .mnp-send-fields,
  .mnp-send-link-card,
  .mnp-send-history article {
    grid-template-columns: 1fr;
  }

  .mnp-send-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .mnp-send-drop,
  .mnp-send-fields,
  .mnp-send-card > .mnp-send-selected,
  .mnp-send-card > .mnp-send-actions,
  .mnp-send-card > .notice {
    grid-column: 1;
    grid-row: auto;
  }

  .mnp-send-drop {
    min-height: 240px;
  }
}

body.theme-dark .mnp-main-page.is-hygiene-home .admin-content {
  padding-top: clamp(28px, 4vw, 58px);
  padding: 42px clamp(28px, 3.4vw, 58px) 70px;
}

/* SOURCE: css/23-hygiene.css */
/* ---- Anciennement 21-hygiene.css ---- */
/* Module hygiene
   Aussi : Administration, MNP Send.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.hygiene-follow-panel {
  gap: 14px;
  margin-bottom: 20px;
}

.hygiene-follow-timeline-head {
  min-height: 62px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--mnp-vert-176b3c), 0.055);
}

.hygiene-follow-timeline-head h3 {
  font-size: 18px;
}

.hygiene-follow-timeline-head p {
  margin-top: 3px;
  font-size: 12px;
}

.hygiene-follow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.hygiene-follow-row:last-of-type {
  border-bottom: 0;
}

.hygiene-follow-row > div {
  min-width: 0;
}

.hygiene-follow-row strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hygiene-follow-row span {
  font-size: 13px;
}

.hygiene-follow-row small {
  min-width: max-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 244, 224, 0.86);
  color: #77501f;
  font-size: 12px;
}

.hygiene-sorted-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hygiene-sorted-bucket,
.hygiene-block-records {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: radial-gradient(circle at 90% 12%, rgba(var(--mnp-vert-8ebe40), 0.12), transparent 34%), rgba(255, 255, 255, 0.62);
}

.theme-dark .hygiene-sorted-bucket,
.theme-dark .hygiene-block-records {
  background: rgba(21, 27, 46, 0.72);
}

.hygiene-sorted-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hygiene-sorted-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hygiene-sorted-head strong {
  display: block;
  margin-top: 4px;
  color: var(--brand-deep);
  font-size: 22px;
  line-height: 1.1;
}

.hygiene-sorted-head em {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #6366f1;
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
}

.hygiene-sorted-list {
  display: grid;
  gap: 8px;
}

.hygiene-sorted-row {
  display: grid;
  gap: 6px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.hygiene-sorted-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.hygiene-sorted-row strong,
.hygiene-sorted-row small,
.hygiene-sorted-row span,
.hygiene-sorted-row time {
  display: block;
}

.hygiene-sorted-row strong {
  color: var(--brand-deep);
  font-size: 14px;
  line-height: 1.2;
}

.hygiene-sorted-row small {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.hygiene-sorted-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hygiene-sorted-row time {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.12);
  font-size: 11px;
  font-weight: 850;
}

.hygiene-block-records {
  margin-top: 14px;
}

.hygiene-menu-grid {
  gap: 14px;
}

.hygiene-menu-card {
  min-height: 168px;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
}

.hygiene-menu-card span {
  padding: 7px 10px;
  font-size: 12px;
}

.hygiene-menu-card em {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.hygiene-menu-card strong {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.02;
}

.hygiene-menu-card p {
  font-size: 14px;
  line-height: 1.35;
}

.theme-dark .hygiene-follow-timeline-head {
  background: rgba(var(--mnp-vert-f1f6ed), 0.055);
}

.theme-dark .hygiene-follow-row small {
  color: #f3d79b;
  background: rgba(255, 244, 224, 0.1);
}

@media (max-width: 980px) {
  .hygiene-menu-grid,
  .hygiene-sorted-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hygiene-menu-grid,
  .hygiene-sorted-board,
  .hygiene-follow-row {
    grid-template-columns: 1fr;
  }

  .hygiene-follow-row small {
    width: fit-content;
  }
}

body.theme-dark .mnp-main-page.is-hygiene-home > .view-head {
  display: none;
}

.hygiene-home-shell {
  width: min(100%, 1480px);
  display: grid;
  gap: 30px;
}

.hygiene-home-head {
  min-height: 158px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
}

.hygiene-home-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 28px;
  padding: 0 18px;
  border: 1px solid rgba(var(--mnp-vert-97e845), 0.23);
  border-radius: 999px;
  color: rgb(var(--mnp-vert-a7f33d));
  background: radial-gradient(circle at 20% 50%, rgba(var(--mnp-vert-97e845), 0.2), transparent 55%), rgba(var(--mnp-vert-97e845), 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 950;
}

.hygiene-home-head h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(40px, 4.6vw, 56px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hygiene-home-head p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(213, 224, 242, 0.78);
  font-size: 18px;
  font-weight: 700;
}

.hygiene-add-follow {
  min-height: 54px;
  padding: 0 26px;
  border-color: rgba(var(--mnp-vert-97e845), 0.2);
  color: #f8fbff;
  background: radial-gradient(circle at 12% 0%, rgba(var(--mnp-vert-97e845), 0.3), transparent 50%), linear-gradient(135deg, rgba(var(--mnp-vert-97e845), 0.24), rgba(var(--mnp-vert-97e845), 0.12));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.hygiene-add-follow span {
  color: rgb(var(--mnp-vert-b6ff42));
  font-size: 24px;
  line-height: 1;
}

.mnp-main-page.is-hygiene-home .hygiene-follow-panel {
  margin: 0;
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-bucket {
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-head {
  display: grid;
  align-items: center;
}

.hygiene-stat-icon,
.hygiene-menu-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: rgb(var(--mnp-vert-a7f33d));
  background: radial-gradient(circle at 28% 18%, rgba(var(--mnp-vert-beff57), 0.34), transparent 36%), rgba(var(--mnp-vert-97e845), 0.13);
  box-shadow: 0 0 28px rgba(var(--mnp-vert-97e845), 0.11), inset 0 0 0 1px rgba(var(--mnp-vert-97e845), 0.11);
  font-size: 24px;
  font-weight: 950;
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-head strong {
  color: #f8fbff;
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-head em {
  min-width: auto;
  height: auto;
  color: #f8fbff;
  background: transparent;
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-list .empty {
  padding: 0;
  border: 0;
  color: rgba(213, 224, 242, 0.78);
  background: transparent;
  font-weight: 700;
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-row {
  padding: 12px 0 0;
}

.mnp-main-page.is-hygiene-home .hygiene-home-menu-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mnp-main-page.is-hygiene-home .hygiene-menu-card {
  display: grid;
  align-items: start;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mnp-main-page.is-hygiene-home .hygiene-menu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--mnp-vert-97e845), 0.36);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.3), 0 0 34px rgba(var(--mnp-vert-97e845), 0.08);
}

.mnp-main-page.is-hygiene-home .hygiene-menu-body {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.mnp-main-page.is-hygiene-home .hygiene-menu-label {
  width: fit-content;
  padding: 0;
  color: rgb(var(--mnp-vert-a7f33d));
  background: transparent;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.mnp-main-page.is-hygiene-home .hygiene-menu-card em {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 950;
  font-style: normal;
}

@media (max-width: 1180px) {
  .mnp-main-page.is-hygiene-home .hygiene-sorted-board,
  .mnp-main-page.is-hygiene-home .hygiene-home-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hygiene-home-head,
  .mnp-main-page.is-hygiene-home .hygiene-sorted-board,
  .mnp-main-page.is-hygiene-home .hygiene-home-menu-grid {
    grid-template-columns: 1fr;
  }

  .hygiene-add-follow {
    width: 100%;
    justify-content: center;
  }
}

body.theme-dark .admin-v2 .btn:not(.danger):not(.secondary),
body.theme-dark .admin-v2 button.btn:not(.danger):not(.secondary) {
  color: #06101a;
  border-color: rgba(var(--mnp-vert-8ee820), .72);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-a5ef43)), rgb(var(--mnp-vert-71ab2b)));
  box-shadow: 0 12px 28px rgba(var(--mnp-vert-68ab23), .16);
}

body.theme-dark .admin-v2 a:focus-visible,
body.theme-dark .admin-v2 button:focus-visible,
body.theme-dark .admin-v2 input:focus-visible,
body.theme-dark .admin-v2 select:focus-visible,
body.theme-dark .admin-v2 textarea:focus-visible {
  outline: 2px solid var(--admin-mnp-green);
  outline-offset: 2px;
}

.login-hub-page:has(.mnp-send-page) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: clamp(18px, 2.5vw, 34px);
}

.login-hub-page:has(.mnp-send-page) .login-home-stage {
  position: relative;
  inset: auto;
  flex: 0 1 auto;
  width: min(1120px, calc(100vw - 48px));
  max-width: 1120px;
  margin: 0 auto;
  transform: none;
  grid-template-columns: minmax(0, 1fr);
  justify-self: auto;
}

.login-hub-page:has(.mnp-send-page) .login-screen-pill,
.login-hub-page:has(.mnp-send-page) .mnp-send-page {
  grid-column: 1;
  justify-self: center;
}

.login-hub-page:has(.mnp-send-page) .mnp-send-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

@media (max-width: 820px) {
  .login-hub-page:has(.mnp-send-page) {
    padding: 14px;
  }

  .login-hub-page:has(.mnp-send-page) .login-home-stage {
    width: 100%;
  }
}

.mnp-send-page {
  width: min(1120px, calc(100vw - 40px));
  display: grid;
  gap: 24px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(var(--mnp-vert-a8ef3f), 0.2);
  border-radius: 28px;
  background: radial-gradient(circle at 12% 12%, rgba(var(--mnp-vert-8ee820), 0.14), transparent 30%), linear-gradient(145deg, rgba(13, 25, 43, 0.96), rgba(6, 11, 22, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

/* ---- Anciennement 23-hygiene.css ---- */
/* Module hygiene
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.mnp-main-page.is-hygiene-home .hygiene-home-shell {
  width: min(100%, 1460px);
  max-width: 1460px;
  margin-inline: 0;
  gap: 26px;
}

.mnp-main-page.is-hygiene-home .hygiene-home-head {
  min-height: 118px;
  margin-bottom: 10px;
  align-items: end;
}

.mnp-main-page.is-hygiene-home .hygiene-home-kicker {
  min-height: 34px;
  margin-bottom: 26px;
  padding: 0 17px;
  border-radius: 999px;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: rgba(var(--mnp-vert-7cb42f), 0.16);
}

.mnp-main-page.is-hygiene-home .hygiene-home-head h2 {
  max-width: 820px;
  font-size: clamp(40px, 3.8vw, 52px);
  font-weight: 950;
  line-height: 1.04;
}

.mnp-main-page.is-hygiene-home .hygiene-home-head p {
  margin-top: 14px;
  color: rgba(211, 222, 239, 0.82);
  font-size: 17px;
}

.mnp-main-page.is-hygiene-home .hygiene-add-follow {
  min-width: 230px;
  min-height: 58px;
  border-radius: 28px;
  font-size: 16px;
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-board {
  gap: 18px;
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-bucket {
  min-height: 154px;
  padding: 22px;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(circle at 16% 24%, rgba(var(--mnp-vert-97e845), 0.1), transparent 30%), linear-gradient(145deg, rgba(13, 27, 44, 0.95), rgba(9, 18, 31, 0.92));
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-head {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
}

.mnp-main-page.is-hygiene-home .hygiene-stat-icon,
.mnp-main-page.is-hygiene-home .hygiene-menu-icon {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 13px;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: linear-gradient(145deg, rgba(var(--mnp-vert-97e845), 0.18), rgba(var(--mnp-vert-97e845), 0.07));
}

.mnp-main-page.is-hygiene-home .hygiene-stat-icon svg,
.mnp-main-page.is-hygiene-home .hygiene-menu-icon svg {
  width: 26px;
  height: 26px;
  display: block;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-head span:not(.hygiene-stat-icon) {
  letter-spacing: 0;
  max-width: 190px;
  padding: 0;
  background: transparent;
  color: rgb(var(--mnp-vert-a8ef3f));
  font-size: 11px;
  line-height: 1.25;
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-head strong {
  margin-top: 7px;
  font-size: 22px;
  line-height: 1.08;
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-head em {
  font-size: 28px;
  line-height: 1;
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-list {
  margin-top: 24px;
}

.mnp-main-page.is-hygiene-home .hygiene-sorted-list .empty {
  font-size: 15px;
  line-height: 1.35;
}

.mnp-main-page.is-hygiene-home .hygiene-home-menu-grid {
  gap: 18px;
}

.mnp-main-page.is-hygiene-home .hygiene-menu-card {
  min-height: 210px;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(13, 27, 44, 0.95), rgba(9, 18, 31, 0.92));
  text-transform: none;
}

.mnp-main-page.is-hygiene-home .hygiene-menu-card::before,
.mnp-main-page.is-hygiene-home .hygiene-menu-card::after {
  display: none;
}

.mnp-main-page.is-hygiene-home .hygiene-menu-card span,
.mnp-main-page.is-hygiene-home .hygiene-menu-card .hygiene-menu-body,
.mnp-main-page.is-hygiene-home .hygiene-menu-card .hygiene-menu-label {
  width: auto;
  min-height: 0;
  border: 0;
  box-shadow: none;
}

.mnp-main-page.is-hygiene-home .hygiene-menu-card .hygiene-menu-body {
  display: grid;
  gap: 9px;
  padding: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-transform: none;
}

.mnp-main-page.is-hygiene-home .hygiene-menu-card .hygiene-menu-label {
  width: fit-content;
  padding: 0;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: transparent;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 950;
  text-transform: uppercase;
}

.mnp-main-page.is-hygiene-home .hygiene-menu-card strong {
  color: #f8fbff;
  font-size: 25px;
  font-weight: 950;
  line-height: 1.08;
  text-transform: none;
}

.mnp-main-page.is-hygiene-home .hygiene-menu-card p {
  max-width: 340px;
  color: rgba(211, 222, 239, 0.78);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.mnp-main-page.is-hygiene-home .hygiene-menu-card em {
  min-height: 34px;
  margin-top: 10px;
  padding: 0 16px;
  color: #f8fbff;
  background: rgba(91, 84, 215, 0.28);
  border: 1px solid rgba(128, 120, 255, 0.2);
  font-size: 13px;
  text-transform: none;
}

body.theme-dark .mnp-main-page.is-employee-hygiene .admin-content {
  padding: 42px clamp(28px, 3.4vw, 58px) 70px;
}

body.theme-dark .mnp-main-page.is-employee-hygiene .admin-content > .view-head {
  margin-bottom: 42px;
}

.mnp-main-page.is-employee-hygiene .hygiene-home-shell {
  width: min(100%, 1460px);
  max-width: 1460px;
  margin-inline: 0;
  gap: 26px;
}

.mnp-main-page.is-employee-hygiene .hygiene-home-head {
  min-height: 118px;
  margin-bottom: 10px;
  align-items: end;
}

.mnp-main-page.is-employee-hygiene .hygiene-home-kicker {
  min-height: 34px;
  margin-bottom: 26px;
  padding: 0 17px;
  border: 1px solid rgba(var(--mnp-vert-97e845), 0.23);
  border-radius: 999px;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: rgba(var(--mnp-vert-7cb42f), 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 950;
}

.mnp-main-page.is-employee-hygiene .hygiene-home-head h2 {
  max-width: 820px;
  margin: 0;
  color: #f8fbff;
  font-size: clamp(40px, 3.8vw, 52px);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: 0;
}

.mnp-main-page.is-employee-hygiene .hygiene-home-head p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(211, 222, 239, 0.82);
  font-size: 17px;
  font-weight: 700;
}

.mnp-main-page.is-employee-hygiene .hygiene-add-follow {
  min-width: 230px;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 28px;
  border-color: rgba(var(--mnp-vert-97e845), 0.2);
  color: #f8fbff;
  background: radial-gradient(circle at 12% 0%, rgba(var(--mnp-vert-97e845), 0.3), transparent 50%), linear-gradient(135deg, rgba(var(--mnp-vert-97e845), 0.24), rgba(var(--mnp-vert-97e845), 0.12));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  font-size: 16px;
}

.mnp-main-page.is-employee-hygiene .hygiene-add-follow span {
  color: rgb(var(--mnp-vert-b6ff42));
  font-size: 24px;
  line-height: 1;
}

.mnp-main-page.is-employee-hygiene .hygiene-follow-panel {
  margin: 0;
}

.mnp-main-page.is-employee-hygiene .hygiene-sorted-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mnp-main-page.is-employee-hygiene .hygiene-sorted-bucket {
  min-height: 154px;
  padding: 22px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: radial-gradient(circle at 16% 24%, rgba(var(--mnp-vert-97e845), 0.1), transparent 30%), linear-gradient(145deg, rgba(13, 27, 44, 0.95), rgba(9, 18, 31, 0.92));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mnp-main-page.is-employee-hygiene .hygiene-sorted-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.mnp-main-page.is-employee-hygiene .hygiene-stat-icon,
.mnp-main-page.is-employee-hygiene .hygiene-menu-icon {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 13px;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: linear-gradient(145deg, rgba(var(--mnp-vert-97e845), 0.18), rgba(var(--mnp-vert-97e845), 0.07));
  box-shadow: 0 0 28px rgba(var(--mnp-vert-97e845), 0.11), inset 0 0 0 1px rgba(var(--mnp-vert-97e845), 0.11);
}

.mnp-main-page.is-employee-hygiene .hygiene-stat-icon svg,
.mnp-main-page.is-employee-hygiene .hygiene-menu-icon svg {
  width: 26px;
  height: 26px;
  display: block;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnp-main-page.is-employee-hygiene .hygiene-sorted-head span:not(.hygiene-stat-icon) {
  max-width: 190px;
  padding: 0;
  background: transparent;
  color: rgb(var(--mnp-vert-a8ef3f));
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0;
}

.mnp-main-page.is-employee-hygiene .hygiene-sorted-head strong {
  margin-top: 7px;
  color: #f8fbff;
  font-size: 22px;
  line-height: 1.08;
}

.mnp-main-page.is-employee-hygiene .hygiene-sorted-head em {
  min-width: auto;
  height: auto;
  color: #f8fbff;
  background: transparent;
  font-size: 28px;
  line-height: 1;
}

.mnp-main-page.is-employee-hygiene .hygiene-sorted-list {
  margin-top: 24px;
}

.mnp-main-page.is-employee-hygiene .hygiene-sorted-list .empty {
  padding: 0;
  border: 0;
  color: rgba(213, 224, 242, 0.78);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.mnp-main-page.is-employee-hygiene .hygiene-home-menu-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mnp-main-page.is-employee-hygiene .hygiene-menu-card {
  min-height: 210px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 28px;
  overflow: hidden;
  border-radius: 12px;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: radial-gradient(circle at 86% 12%, rgba(var(--mnp-vert-97e845), 0.1), transparent 38%), linear-gradient(145deg, rgba(13, 27, 44, 0.95), rgba(9, 18, 31, 0.92));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-transform: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mnp-main-page.is-employee-hygiene .hygiene-menu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--mnp-vert-97e845), 0.36);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.3), 0 0 34px rgba(var(--mnp-vert-97e845), 0.08);
}

.mnp-main-page.is-employee-hygiene .hygiene-menu-card::before,
.mnp-main-page.is-employee-hygiene .hygiene-menu-card::after {
  display: none;
}

.mnp-main-page.is-employee-hygiene .hygiene-menu-card span,
.mnp-main-page.is-employee-hygiene .hygiene-menu-card .hygiene-menu-body,
.mnp-main-page.is-employee-hygiene .hygiene-menu-card .hygiene-menu-label {
  width: auto;
  min-height: 0;
  border: 0;
  box-shadow: none;
}

.mnp-main-page.is-employee-hygiene .hygiene-menu-card .hygiene-menu-body {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-transform: none;
}

.mnp-main-page.is-employee-hygiene .hygiene-menu-card .hygiene-menu-label {
  width: fit-content;
  padding: 0;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: transparent;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 950;
  text-transform: uppercase;
}

.mnp-main-page.is-employee-hygiene .hygiene-menu-card strong {
  color: #f8fbff;
  font-size: 25px;
  font-weight: 950;
  line-height: 1.08;
  text-transform: none;
}

.mnp-main-page.is-employee-hygiene .hygiene-menu-card p {
  max-width: 340px;
  color: rgba(211, 222, 239, 0.78);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.mnp-main-page.is-employee-hygiene .hygiene-menu-card em {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 999px;
  color: #f8fbff;
  background: rgba(91, 84, 215, 0.28);
  border: 1px solid rgba(128, 120, 255, 0.2);
  font-size: 13px;
  font-weight: 950;
  font-style: normal;
  text-transform: none;
}

/* SOURCE: css/24-settings.css */
/* Parametres du compte et profil
   Aussi : Module hygiene, Administration.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.mnp-main-page.is-employee-hygiene .admin-section-head.compact,
.mnp-main-page.is-hygiene-home .admin-section-head.compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.mnp-main-page.is-employee-hygiene .admin-section-head.compact h2,
.mnp-main-page.is-hygiene-home .admin-section-head.compact h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(30px, 2.4vw, 42px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

.mnp-main-page.is-employee-hygiene .admin-section-head.compact p,
.mnp-main-page.is-hygiene-home .admin-section-head.compact p {
  margin: 8px 0 0;
  color: rgba(211, 222, 239, 0.78);
  font-size: 17px;
  font-weight: 700;
}

.mnp-main-page.is-employee-hygiene .admin-section-head.compact .actions,
.mnp-main-page.is-hygiene-home .admin-section-head.compact .actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.mnp-main-page.is-employee-hygiene .admin-section-head.compact .btn,
.mnp-main-page.is-hygiene-home .admin-section-head.compact .btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 950;
}

.mnp-main-page.is-employee-hygiene .admin-section-head.compact .btn:not(.secondary),
.mnp-main-page.is-hygiene-home .admin-section-head.compact .btn:not(.secondary) {
  color: #07111f !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.32) !important;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923))) !important;
  box-shadow: 0 16px 34px rgba(var(--mnp-vert-8ee820), 0.14) !important;
}

.mnp-main-page.is-employee-hygiene .admin-section-head.compact .btn.secondary,
.mnp-main-page.is-hygiene-home .admin-section-head.compact .btn.secondary {
  color: #f8fbff !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.mnp-main-page.is-employee-hygiene .admin-section-head.compact .tag,
.mnp-main-page.is-hygiene-home .admin-section-head.compact .tag {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: rgb(var(--mnp-vert-b9ff42)) !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.18) !important;
  background: rgba(var(--mnp-vert-8ee820), 0.1) !important;
  font-weight: 950;
}

.mnp-main-page.is-employee-hygiene .hygiene-detail-card,
.mnp-main-page.is-hygiene-home .hygiene-detail-card {
  padding: 20px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.14);
  border-radius: 18px;
  background: radial-gradient(circle at 0% 0%, rgba(var(--mnp-vert-8ee820), 0.07), transparent 30%), linear-gradient(145deg, rgba(16, 31, 47, 0.84), rgba(9, 19, 33, 0.92));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mnp-main-page.is-employee-hygiene .hygiene-detail-card .empty,
.mnp-main-page.is-hygiene-home .hygiene-detail-card .empty {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border: 1px dashed rgba(var(--mnp-vert-8ee820), 0.18);
  border-radius: 14px;
  color: rgba(213, 224, 242, 0.78);
  background: rgba(8, 19, 32, 0.58);
  font-size: 16px;
  font-weight: 750;
}

.mnp-main-page.is-employee-hygiene .hygiene-equipment-card,
.mnp-main-page.is-hygiene-home .hygiene-equipment-card {
  border-color: rgba(var(--mnp-vert-8ee820), 0.14);
  background: radial-gradient(circle at 88% 12%, rgba(var(--mnp-vert-8ee820), 0.1), transparent 34%), rgba(8, 19, 32, 0.68);
}

.mnp-main-page.is-employee-hygiene .hygiene-equipment-card h4,
.mnp-main-page.is-hygiene-home .hygiene-equipment-card h4,
.mnp-main-page.is-employee-hygiene .hygiene-equipment-card strong,
.mnp-main-page.is-hygiene-home .hygiene-equipment-card strong {
  color: #f8fbff;
}

.mnp-main-page.is-employee-hygiene .hygiene-equipment-card p,
.mnp-main-page.is-hygiene-home .hygiene-equipment-card p {
  color: rgba(211, 222, 239, 0.78);
}

.mnp-main-page.is-employee-hygiene .hygiene-dlc-detail,
.mnp-main-page.is-hygiene-home .hygiene-dlc-detail {
  display: grid;
  gap: 20px;
}

.mnp-main-page.is-employee-hygiene .hygiene-dlc-product-head,
.mnp-main-page.is-hygiene-home .hygiene-dlc-product-head {
  padding: 4px;
}

.mnp-main-page.is-employee-hygiene .hygiene-dlc-photo,
.mnp-main-page.is-hygiene-home .hygiene-dlc-photo {
  border-color: rgba(var(--mnp-vert-8ee820), 0.16);
  color: rgba(213, 224, 242, 0.68);
  background: radial-gradient(circle at 32% 18%, rgba(var(--mnp-vert-8ee820), 0.16), transparent 34%), linear-gradient(145deg, rgba(13, 27, 44, 0.95), rgba(7, 16, 28, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.18);
}

.mnp-main-page.is-employee-hygiene .hygiene-dlc-product-head strong,
.mnp-main-page.is-hygiene-home .hygiene-dlc-product-head strong {
  color: #f8fbff;
  font-size: 18px;
}

.mnp-main-page.is-employee-hygiene .hygiene-dlc-product-head p,
.mnp-main-page.is-hygiene-home .hygiene-dlc-product-head p {
  max-width: 680px;
  margin-top: 10px;
  color: rgba(213, 224, 242, 0.82);
  font-size: 16px;
  font-weight: 700;
}

.mnp-main-page.is-employee-hygiene .hygiene-dlc-camera,
.mnp-main-page.is-hygiene-home .hygiene-dlc-camera {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.32) !important;
  border-radius: 999px;
  color: #07111f !important;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923))) !important;
  box-shadow: 0 16px 34px rgba(var(--mnp-vert-8ee820), 0.14) !important;
  font-weight: 950;
}

.mnp-main-page.is-employee-hygiene .hygiene-dlc-photo-list,
.mnp-main-page.is-hygiene-home .hygiene-dlc-photo-list {
  margin-top: 0;
}

.mnp-main-page.is-employee-hygiene .hygiene-dlc-shot,
.mnp-main-page.is-hygiene-home .hygiene-dlc-shot {
  border-color: rgba(var(--mnp-vert-8ee820), 0.14);
  background: radial-gradient(circle at 88% 12%, rgba(var(--mnp-vert-8ee820), 0.1), transparent 34%), rgba(8, 19, 32, 0.68);
}

.mnp-main-page.is-employee-hygiene .hygiene-dlc-shot strong,
.mnp-main-page.is-hygiene-home .hygiene-dlc-shot strong {
  color: #f8fbff;
}

.mnp-main-page.is-employee-hygiene .hygiene-dlc-shot small,
.mnp-main-page.is-hygiene-home .hygiene-dlc-shot small {
  color: rgba(213, 224, 242, 0.72);
}

@media (max-width: 1180px) {
  .mnp-main-page.is-employee-hygiene .hygiene-sorted-board,
  .mnp-main-page.is-employee-hygiene .hygiene-home-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mnp-main-page.is-employee-hygiene .hygiene-home-head,
  .mnp-main-page.is-employee-hygiene .hygiene-sorted-board,
  .mnp-main-page.is-employee-hygiene .hygiene-home-menu-grid {
    grid-template-columns: 1fr;
  }

  .mnp-main-page.is-employee-hygiene .hygiene-add-follow {
    width: 100%;
    justify-content: center;
  }
}

body.theme-dark .mnp-main-page.is-settings-home > .view-head,
body.theme-dark .mnp-main-page.is-faq-home > .view-head,
body.theme-dark .mnp-main-page.is-help-home > .view-head,
body.theme-dark .mnp-main-page.is-pain-home > .view-head {
  display: none;
}

body.theme-dark .mnp-main-page.is-settings-home .admin-content {
  padding: 48px clamp(32px, 4vw, 64px) 70px;
}

.mnp-settings-page {
  width: min(100%, 1440px);
  display: grid;
  gap: 18px;
  color: #f8fbff;
}

.mnp-settings-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 6px;
}

.mnp-settings-head h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(38px, 4vw, 50px);
  line-height: 1.02;
}

.mnp-settings-head p,
.mnp-settings-card-head p,
.mnp-settings-page small,
.mnp-settings-help,
.mnp-settings-qr-box p,
.mnp-settings-recovery p {
  color: rgba(213, 224, 242, 0.78);
}

.mnp-settings-head p {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.mnp-settings-save {
  min-width: 230px;
  min-height: 52px;
  border-color: rgba(var(--mnp-vert-97e845), 0.24);
  color: #f8fbff;
  background: radial-gradient(circle at 14% 10%, rgba(var(--mnp-vert-97e845), 0.28), transparent 42%), linear-gradient(135deg, rgba(var(--mnp-vert-97e845), 0.22), rgba(var(--mnp-vert-97e845), 0.12));
}

.mnp-settings-tabs {
  width: fit-content;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 29, 47, 0.72);
}

.mnp-settings-tabs button {
  min-width: 116px;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  color: rgba(226, 235, 249, 0.82);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.mnp-settings-tabs button.is-active {
  color: rgb(var(--mnp-vert-a8ef3f));
  background: radial-gradient(circle at 18% 12%, rgba(var(--mnp-vert-97e845), 0.22), transparent 48%), rgba(var(--mnp-vert-97e845), 0.09);
}

.mnp-settings-card,
.mnp-settings-password-card {
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  background: radial-gradient(circle at 92% 8%, rgba(74, 144, 226, 0.08), transparent 34%), rgba(10, 23, 39, 0.76);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mnp-settings-card-head {
  margin-bottom: 18px;
}

.mnp-settings-card h3,
.mnp-settings-card-head h3,
.mnp-settings-password-card h3 {
  margin: 0;
  color: #f8fbff;
  font-size: 21px;
  line-height: 1.2;
}

.mnp-settings-card-head p,
.mnp-settings-password-card p {
  margin: 7px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.mnp-settings-profile-grid {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.mnp-settings-profile-side {
  display: grid;
  gap: 28px;
  align-content: start;
  padding-top: 28px;
}

.mnp-settings-person {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mnp-settings-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #8a78ff, #5f49dd);
  box-shadow: 0 18px 42px rgba(91, 84, 215, 0.32);
  font-size: 34px;
  font-weight: 950;
}

.mnp-settings-avatar.has-image {
  background-size: cover;
  background-position: center;
}

.mnp-settings-person strong {
  display: block;
  color: #f8fbff;
  font-size: 22px;
  line-height: 1.1;
}

.mnp-settings-person small {
  width: fit-content;
  display: inline-flex;
  margin-top: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(103, 96, 239, 0.55);
  font-size: 12px;
  font-weight: 950;
}

.mnp-photo-button {
  width: fit-content;
  min-height: 42px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
}

.mnp-photo-button input {
  display: none;
}

.mnp-settings-fields {
  display: grid;
  gap: 18px;
}

.mnp-settings-field {
  display: grid;
  gap: 9px;
}

.mnp-settings-field span,
.mnp-settings-confirm label {
  color: #f8fbff;
  font-size: 14px;
  font-weight: 900;
}

.mnp-settings-field input,
.mnp-settings-field textarea,
.mnp-settings-confirm input,
.mnp-settings-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 13px;
  color: #f8fbff;
  background: rgba(6, 16, 30, 0.72);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.mnp-settings-field input,
.mnp-settings-confirm input,
.mnp-settings-select {
  min-height: 52px;
  padding: 0 16px;
}

.mnp-settings-field textarea {
  min-height: 162px;
  padding: 16px;
  resize: vertical;
}

.mnp-settings-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mnp-settings-shortcut,
.mnp-settings-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 13px;
  color: inherit;
  background: rgba(15, 29, 47, 0.58);
}

.mnp-settings-shortcut {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mnp-settings-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: rgba(var(--mnp-vert-97e845), 0.12);
}

.mnp-settings-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnp-settings-shortcut strong,
.mnp-settings-row strong {
  display: block;
  color: #f8fbff;
  font-size: 15px;
  line-height: 1.2;
}

.mnp-settings-shortcut small,
.mnp-settings-row small {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
}

.mnp-settings-shortcut em,
.mnp-settings-chevron {
  color: rgba(226, 235, 249, 0.84);
  font-style: normal;
  font-size: 25px;
}

.mnp-settings-security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
}

.mnp-settings-security-left {
  display: grid;
  gap: 12px;
}

.mnp-settings-switch {
  display: inline-grid;
  grid-template-columns: 44px auto;
  align-items: center;
  gap: 10px;
  color: #f8fbff;
  font-weight: 950;
}

.mnp-settings-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mnp-settings-switch span {
  width: 42px;
  height: 24px;
  position: relative;
  border-radius: 999px;
  background: rgba(226, 235, 249, 0.18);
}

.mnp-settings-switch span::after {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #f8fbff;
  transition: transform 0.18s ease;
}

.mnp-settings-switch input:checked + span {
  background: rgba(var(--mnp-vert-97e845), 0.45);
}

.mnp-settings-switch input:checked + span::after {
  transform: translateX(18px);
}

.mnp-settings-switch em {
  font-style: normal;
  font-size: 13px;
}

.mnp-settings-confirm {
  margin-top: 14px;
}

.mnp-settings-auth-card {
  align-self: stretch;
}

.mnp-settings-qr-box {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 29, 47, 0.58);
}

.mnp-settings-qr-box img {
  width: 132px;
  height: 132px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
}

.mnp-settings-qr-box strong,
.mnp-settings-recovery strong {
  display: block;
  color: #f8fbff;
  font-size: 18px;
}

.mnp-settings-qr-box p,
.mnp-settings-qr-box small,
.mnp-settings-recovery p {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.mnp-settings-recovery {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.mnp-settings-recovery .btn {
  width: fit-content;
  color: rgb(var(--mnp-vert-a8ef3f));
  border-color: rgba(var(--mnp-vert-97e845), 0.26);
}

.mnp-settings-password-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

@media (max-width: 1180px) {
  .mnp-settings-profile-grid,
  .mnp-settings-security-grid,
  .mnp-settings-shortcuts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .mnp-settings-head,
  .mnp-settings-password-card {
    grid-template-columns: 1fr;
  }

  .mnp-settings-tabs {
    width: 100%;
  }

  .mnp-settings-tabs button {
    min-width: 0;
    flex: 1;
  }
}

body.theme-dark .mnp-main-page.is-faq-home .admin-content {
  padding: 58px clamp(32px, 4vw, 64px) 70px;
}

/* SOURCE: css/25-support.css */
/* FAQ et demandes d'aide
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.mnp-faq-page {
  width: min(100%, 1440px);
  display: grid;
  gap: 18px;
  color: #f8fbff;
}

.mnp-faq-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  align-items: end;
  gap: 28px;
  margin-bottom: 14px;
}

.mnp-faq-head h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(40px, 4vw, 52px);
  line-height: 1;
}

.mnp-faq-head p {
  margin: 13px 0 0;
  color: rgba(213, 224, 242, 0.78);
  font-size: 16px;
  font-weight: 700;
}

.mnp-faq-search {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 0 18px 0 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(6, 16, 30, 0.62);
}

.mnp-faq-search input {
  min-width: 0;
  border: 0;
  color: #f8fbff;
  background: transparent;
  outline: none;
  font: inherit;
  font-weight: 700;
}

.mnp-faq-search input::placeholder {
  color: rgba(213, 224, 242, 0.44);
}

.mnp-faq-search svg,
.mnp-faq-icon svg,
.mnp-faq-contact-icon svg,
.mnp-faq-contact .btn svg,
.mnp-faq-item summary em svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnp-faq-search span {
  color: rgba(226, 235, 249, 0.82);
}

.mnp-faq-list {
  display: grid;
  gap: 14px;
}

.mnp-faq-item {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  background: radial-gradient(circle at 92% 12%, rgba(74, 144, 226, 0.07), transparent 32%), rgba(10, 23, 39, 0.76);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.mnp-faq-item[hidden] {
  display: none;
}

.mnp-faq-item summary {
  min-height: 88px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 22px;
  padding: 16px 26px 16px 20px;
  cursor: pointer;
  list-style: none;
}

.mnp-faq-item summary::-webkit-details-marker {
  display: none;
}

.mnp-faq-icon,
.mnp-faq-contact-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: rgba(var(--mnp-vert-97e845), 0.13);
}

.mnp-faq-item summary strong {
  color: #f8fbff;
  font-size: 19px;
  line-height: 1.25;
}

.mnp-faq-item summary em {
  display: grid;
  place-items: center;
  color: rgba(226, 235, 249, 0.8);
  font-style: normal;
  transition: transform 0.18s ease;
}

.mnp-faq-item[open] summary em {
  transform: rotate(180deg);
}

.mnp-faq-item p {
  margin: 0;
  padding: 0 72px 22px 96px;
  color: rgba(213, 224, 242, 0.78);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.mnp-faq-contact {
  min-height: 124px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 10px;
  padding: 22px 30px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  background: radial-gradient(circle at 92% 18%, rgba(var(--mnp-vert-97e845), 0.07), transparent 30%), rgba(10, 23, 39, 0.76);
}

.mnp-faq-contact-icon {
  width: 58px;
  height: 58px;
  color: #f8fbff;
  background: rgba(148, 163, 184, 0.12);
}

.mnp-faq-contact strong {
  color: #f8fbff;
  font-size: 18px;
}

.mnp-faq-contact p {
  margin: 8px 0 0;
  color: rgba(213, 224, 242, 0.78);
  font-size: 15px;
  font-weight: 700;
}

.mnp-faq-contact .btn {
  min-width: 220px;
  min-height: 54px;
  gap: 10px;
  color: rgb(var(--mnp-vert-a8ef3f));
  border-color: rgba(var(--mnp-vert-97e845), 0.26);
}

.mnp-faq-contact .btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  .mnp-faq-head,
  .mnp-faq-contact {
    grid-template-columns: 1fr;
  }

  .mnp-faq-item p {
    padding: 0 24px 22px;
  }

  .mnp-faq-contact .btn {
    width: 100%;
  }
}

body.theme-dark .mnp-main-page.is-help-home .admin-content {
  padding: 50px clamp(32px, 4vw, 64px) 70px;
}

.mnp-help-page {
  width: min(100%, 1440px);
  display: grid;
  gap: 18px;
  color: #f8fbff;
}

.mnp-help-head h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(40px, 4vw, 52px);
  line-height: 1.04;
}

.mnp-help-head p,
.mnp-help-banner p,
.mnp-help-card small,
.mnp-help-card p,
.mnp-help-upload small {
  color: rgba(213, 224, 242, 0.78);
}

.mnp-help-head p {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.mnp-help-banner,
.mnp-help-card {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  background: radial-gradient(circle at 92% 10%, rgba(74, 144, 226, 0.07), transparent 34%), rgba(10, 23, 39, 0.76);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mnp-help-banner {
  min-height: 124px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(310px, 460px);
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
}

.mnp-help-icon,
.mnp-help-info > span:first-child,
.mnp-help-priority-option span {
  display: grid;
  place-items: center;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: rgba(var(--mnp-vert-97e845), 0.12);
}

.mnp-help-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.mnp-help-icon svg,
.mnp-help-hours svg,
.mnp-help-info svg,
.mnp-help-priority-option svg,
.mnp-help-upload svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnp-help-banner strong,
.mnp-help-card h3,
.mnp-help-info strong {
  color: #f8fbff;
}

.mnp-help-banner strong {
  font-size: 16px;
}

.mnp-help-banner p {
  margin: 7px 0 0;
  font-weight: 700;
  line-height: 1.45;
}

.mnp-help-hours {
  min-height: 74px;
  padding-left: 28px;
  border-left: 1px solid rgba(148, 163, 184, 0.14);
}

.mnp-help-hours strong {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mnp-help-hours strong svg {
  width: 18px;
  height: 18px;
  color: rgb(var(--mnp-vert-a8ef3f));
}

.mnp-help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
  gap: 18px;
}

.mnp-help-card {
  padding: 24px;
}

.mnp-help-card h3 {
  margin: 0 0 18px;
  font-size: 20px;
}

.mnp-help-form {
  display: grid;
  gap: 16px;
}

.mnp-help-field {
  display: grid;
  gap: 8px;
}

.mnp-help-field span,
.mnp-help-priority legend {
  color: #f8fbff;
  font-size: 13px;
  font-weight: 950;
}

.mnp-help-field select,
.mnp-help-field textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  color: #f8fbff;
  background: rgba(6, 16, 30, 0.72);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.mnp-help-field select {
  min-height: 42px;
  padding: 0 14px;
}

.mnp-help-field textarea {
  min-height: 94px;
  padding: 14px;
  resize: vertical;
}

.mnp-help-priority {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.mnp-help-priority legend {
  grid-column: 1 / -1;
  margin-bottom: -4px;
}

.mnp-help-priority-option {
  min-height: 68px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(15, 29, 47, 0.52);
  cursor: pointer;
}

.mnp-help-priority-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mnp-help-priority-option:has(input:checked) {
  border-color: rgba(var(--mnp-vert-97e845), 0.58);
  background: rgba(var(--mnp-vert-97e845), 0.08);
}

.mnp-help-priority-option span {
  width: 22px;
  height: 22px;
  grid-row: span 2;
  border-radius: 50%;
  background: transparent;
}

.mnp-help-priority-option strong {
  color: #f8fbff;
  font-size: 14px;
}

.mnp-help-priority-option small {
  font-size: 12px;
  font-weight: 700;
}

.mnp-help-upload {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  text-align: center;
  background: rgba(6, 16, 30, 0.42);
  cursor: pointer;
}

.mnp-help-upload input {
  display: none;
}

.mnp-help-upload span {
  color: rgba(226, 235, 249, 0.92);
}

.mnp-help-upload strong {
  color: #f8fbff;
  font-size: 14px;
}

.mnp-help-submit {
  width: fit-content;
  min-width: 190px;
  min-height: 48px;
  border-color: rgba(var(--mnp-vert-97e845), 0.22);
  background: rgba(var(--mnp-vert-97e845), 0.16);
}

.mnp-help-side {
  display: grid;
  gap: 18px;
}

.mnp-help-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mnp-help-side-head h3 {
  margin: 0;
}

.mnp-help-side-head button {
  border: 0;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.mnp-help-faq-links,
.mnp-help-info-list {
  display: grid;
}

.mnp-help-faq-links button {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #f8fbff;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mnp-help-faq-links button:first-child {
  border-top: 0;
}

.mnp-help-faq-links em {
  color: rgba(226, 235, 249, 0.82);
  font-style: normal;
  font-size: 24px;
}

.mnp-help-info-list {
  gap: 10px;
}

.mnp-help-info {
  min-height: 70px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  color: inherit;
  background: rgba(15, 29, 47, 0.5);
  text-align: left;
  cursor: pointer;
}

.mnp-help-info > span:first-child {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.mnp-help-info small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

.mnp-help-info em {
  color: rgba(226, 235, 249, 0.85);
  font-style: normal;
  font-size: 24px;
}

@media (max-width: 1100px) {
  .mnp-help-banner,
  .mnp-help-layout,
  .mnp-help-priority {
    grid-template-columns: 1fr;
  }

  .mnp-help-hours {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
  }
}

body.theme-dark .mnp-main-page.is-pain-home .admin-content {
  padding: 42px clamp(28px, 4vw, 54px) 70px;
}

/* SOURCE: css/26-pain.css */
/* Module pain
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.mnp-pain-page {
  width: min(100%, 1500px);
  display: grid;
  gap: 22px;
  color: #f8fbff;
}

.mnp-pain-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
}

.mnp-pain-head h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(34px, 3.5vw, 44px);
  line-height: 1.05;
}

.mnp-pain-head p,
.mnp-pain-table-head p,
.mnp-pain-note,
.mnp-pain-kpi em,
.mnp-pain-table-row small {
  color: rgba(213, 224, 242, 0.78);
}

.mnp-pain-head p {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.mnp-pain-head .btn,
.mnp-pain-tools .btn {
  gap: 10px;
}

.mnp-pain-page svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnp-pain-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mnp-pain-kpi,
.mnp-pain-domain-card,
.mnp-pain-table-card {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  background: radial-gradient(circle at 92% 10%, rgba(74, 144, 226, 0.07), transparent 34%), rgba(10, 23, 39, 0.76);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mnp-pain-kpi {
  min-height: 132px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.mnp-pain-kpi > span,
.mnp-pain-domain-name em {
  display: grid;
  place-items: center;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: rgba(var(--mnp-vert-97e845), 0.13);
}

.mnp-pain-kpi > span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.mnp-pain-kpi.purple > span {
  color: #b79cff;
  background: rgba(128, 96, 239, 0.2);
}

.mnp-pain-kpi.orange > span {
  color: #ffb347;
  background: rgba(255, 174, 64, 0.16);
}

.mnp-pain-kpi.teal > span {
  color: #75f1d7;
  background: rgba(70, 220, 190, 0.16);
}

.mnp-pain-kpi small {
  display: block;
  color: #f8fbff;
  font-size: 13px;
  font-weight: 900;
}

.mnp-pain-kpi strong {
  display: block;
  margin-top: 8px;
  color: #f8fbff;
  font-size: 29px;
  line-height: 1.05;
}

.mnp-pain-kpi em {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.mnp-pain-domain-card {
  padding: 24px;
}

.mnp-pain-domain-head,
.mnp-pain-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
}

.mnp-pain-domain-head h3,
.mnp-pain-table-head h3 {
  margin: 0;
  color: #f8fbff;
  font-size: 23px;
}

.mnp-pain-domain-head p,
.mnp-pain-table-head p {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.mnp-pain-domain-actions,
.mnp-pain-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mnp-pain-domain-actions .icon-button {
  border-radius: 50%;
}

.mnp-pain-add-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.mnp-pain-add-form label {
  display: grid;
  gap: 8px;
}

.mnp-pain-add-form label span {
  color: rgba(213, 224, 242, 0.9);
  font-size: 13px;
  font-weight: 900;
}

.mnp-pain-add-form input {
  min-height: 66px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 13px;
  color: #f8fbff;
  background: rgba(13, 31, 51, 0.78);
  padding: 0 18px;
  font: inherit;
  font-size: 24px;
  font-weight: 850;
  outline: none;
}

.mnp-pain-add-form .btn {
  grid-column: 1 / -1;
  min-height: 54px;
  justify-content: center;
  color: #07111f;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.28);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
  box-shadow: 0 18px 44px rgba(var(--mnp-vert-8ee820), 0.14);
}

.mnp-pain-table-card {
  padding: 0;
  overflow: hidden;
}

.mnp-pain-table-head {
  padding: 24px;
}

.mnp-pain-search {
  min-width: 420px;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(6, 16, 30, 0.62);
}

.mnp-pain-search input {
  border: 0;
  color: #f8fbff;
  background: transparent;
  outline: none;
  font: inherit;
  font-weight: 700;
}

.mnp-pain-search svg {
  color: rgba(226, 235, 249, 0.86);
}

.mnp-pain-table {
  display: grid;
}

.mnp-pain-table-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 0.75fr 1.15fr 0.65fr 0.55fr;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 0 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.11);
}

.mnp-pain-table-row.is-head {
  min-height: 54px;
  color: rgba(213, 224, 242, 0.72);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.mnp-pain-table-row strong,
.mnp-pain-table-row b {
  color: #f8fbff;
}

.mnp-pain-table-row small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
}

.mnp-pain-domain-name {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.mnp-pain-domain-name em {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-style: normal;
}

.mnp-pain-domain-name b,
.mnp-pain-status {
  width: fit-content;
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgb(var(--mnp-vert-a8ef3f)) !important;
  background: rgba(var(--mnp-vert-97e845), 0.13);
  font-size: 11px;
  font-weight: 950;
}

.mnp-pain-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mnp-pain-row-actions button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #8f7cff;
  background: transparent;
  cursor: pointer;
}

.mnp-pain-row-actions button:hover {
  background: rgba(128, 96, 239, 0.12);
}

.mnp-pain-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 24px 24px;
  padding: 16px;
  border: 1px solid rgba(128, 96, 239, 0.28);
  border-radius: 13px;
  background: rgba(128, 96, 239, 0.08);
  font-weight: 700;
}

.mnp-pain-note svg {
  width: 20px;
  height: 20px;
  color: #8f7cff;
}

@media (max-width: 1200px) {
  .mnp-pain-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mnp-pain-table {
    overflow-x: auto;
  }

  .mnp-pain-table-row {
    min-width: 1180px;
  }
}

@media (max-width: 820px) {
  .mnp-pain-head,
  .mnp-pain-domain-head,
  .mnp-pain-table-head,
  .mnp-pain-add-form,
  .mnp-pain-kpis {
    grid-template-columns: 1fr;
  }

  .mnp-pain-domain-actions,
  .mnp-pain-tools {
    flex-wrap: wrap;
  }

  .mnp-pain-search {
    min-width: 0;
    width: 100%;
  }
}

/* SOURCE: css/27-manager.css */
/* Espace gerant : tableau de bord, droits
   Aussi : Messagerie, Module caisse / finances, Module courses.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.theme-dark .teams-chat-panel {
  border-color: rgba(148, 163, 184, 0.2);
}

.theme-dark .teams-chat-sidebar {
  border-right-color: rgba(148, 163, 184, 0.18);
}

.theme-dark .teams-chat-main,
.theme-dark .teams-chat-form {
  background: rgba(15, 23, 42, 0.9);
}

.theme-dark .teams-chat-head {
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

.theme-dark .teams-chat-title strong,
.theme-dark .teams-chat-head h2,
.theme-dark .teams-conversation strong {
  color: var(--ink);
}

.theme-dark .teams-conversation,
.theme-dark .teams-group-form,
.theme-dark .intercompany-request-form,
.theme-dark .intercompany-request-card,
.theme-dark .intercompany-empty {
  color: var(--ink);
  background: rgba(30, 41, 59, 0.62);
  border-color: rgba(148, 163, 184, 0.18);
}

.theme-dark .teams-conversation.active::before {
  background: #c7d2fe;
}

.theme-dark .teams-conversation.active strong,
.theme-dark .teams-conversation.active em {
  color: #fff;
}

.theme-dark .teams-message,
.theme-dark .chat-bubble {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
}

.theme-dark .teams-message.mine,
.theme-dark .chat-bubble.mine {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.28);
}

.theme-dark .teams-message.unread,
.theme-dark .chat-bubble.unread {
  border-color: rgba(251, 191, 36, 0.42);
  box-shadow: inset 4px 0 0 #fbbf24;
}

.theme-dark .teams-chat-form textarea,
.theme-dark .teams-chat-form select,
.theme-dark .teams-group-form input[type="text"],
.theme-dark .teams-group-form input:not([type]),
.theme-dark .teams-group-form select,
.theme-dark .intercompany-request-form select {
  color: var(--ink);
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.24);
}

.theme-dark .teams-chat-form textarea:focus,
.theme-dark .teams-chat-form select:focus,
.theme-dark .teams-group-form input[type="text"]:focus,
.theme-dark .teams-group-form input:not([type]):focus,
.theme-dark .teams-group-form select:focus,
.theme-dark .intercompany-request-form select:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.theme-dark .chat-image-upload,
.theme-dark .teams-chat-label.with-action .teams-group-add,
.theme-dark .mini-action.accept,
.theme-dark .intercompany-request-form .btn {
  color: #fff;
  background: #6366f1;
  border-color: rgba(129, 140, 248, 0.42);
}

.theme-dark .chat-image-upload:hover,
.theme-dark .teams-chat-label.with-action .teams-group-add:hover,
.theme-dark .intercompany-request-form .btn:hover {
  background: #818cf8;
}

.theme-dark .mini-action.reject {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.28);
}

.theme-dark .teams-empty,
.theme-dark .teams-muted,
.theme-dark .teams-chat-head p,
.theme-dark .teams-conversation em {
  color: var(--muted);
}

.course-request-form .course-preview-btn {
  color: #fff !important;
  background: var(--brand) !important;
  border: 1px solid rgba(var(--mnp-vert-176b3c), 0.24) !important;
  box-shadow: 0 12px 28px rgba(var(--mnp-vert-176b3c), 0.18) !important;
}

.course-request-form .course-preview-btn:hover {
  color: #fff !important;
  background: var(--brand-deep) !important;
  border-color: rgba(var(--mnp-vert-082315), 0.28) !important;
  box-shadow: 0 14px 32px rgba(var(--mnp-vert-176b3c), 0.22) !important;
}

.course-request-form .course-preview-btn:disabled,
.course-request-form .course-preview-btn:disabled:hover {
  color: rgba(var(--mnp-vert-102016), 0.5) !important;
  background: rgba(var(--mnp-vert-176b3c), 0.16) !important;
  border-color: rgba(var(--mnp-vert-176b3c), 0.14) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.module-form .bread-submit-btn {
  color: #fff !important;
  background: var(--brand) !important;
  border: 1px solid rgba(var(--mnp-vert-176b3c), 0.24) !important;
  box-shadow: 0 12px 28px rgba(var(--mnp-vert-176b3c), 0.18) !important;
}

.module-form .bread-submit-btn:hover {
  color: #fff !important;
  background: var(--brand-deep) !important;
  border-color: rgba(var(--mnp-vert-082315), 0.28) !important;
  box-shadow: 0 14px 32px rgba(var(--mnp-vert-176b3c), 0.22) !important;
}

.module-form .bread-submit-btn:active {
  transform: scale(0.99) !important;
}

body.theme-dark .course-request-form .course-preview-btn,
body.theme-dark .module-form .bread-submit-btn {
  color: #fff !important;
  background: #6366f1 !important;
  border-color: rgba(129, 140, 248, 0.34) !important;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.18) !important;
}

body.theme-dark .course-request-form .course-preview-btn:disabled,
body.theme-dark .course-request-form .course-preview-btn:disabled:hover {
  color: rgba(226, 232, 240, 0.64) !important;
  background: rgba(79, 70, 229, 0.28) !important;
  border-color: rgba(129, 140, 248, 0.2) !important;
}

.cash-file-control {
  display: flex !important;
}

.cash-file-control::before {
  display: none !important;
  content: none !important;
}

.cash-file-button {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 1rem;
  border-radius: 999px;
  color: #fff;
  background: rgb(var(--mnp-vert-137545));
  border: 1px solid rgba(var(--mnp-vert-137545), 0.22);
  font-weight: 950;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.cash-envelope-upload:hover .cash-file-button,
.cash-file-control:hover .cash-file-button {
  background: rgb(var(--mnp-vert-0f5f39));
  box-shadow: 0 12px 24px rgba(var(--mnp-vert-137545), 0.16);
  transform: translateY(-1px);
}

.cash-file-name {
  padding: 0.92rem 0.8rem !important;
}

.theme-dark .cash-file-button,
.theme-dark .cash-report-form .btn {
  color: #fff;
  background: #6366f1;
  border-color: rgba(129, 140, 248, 0.38);
}

.theme-dark .cash-envelope-upload:hover,
.theme-dark .cash-report-grid label:hover,
.theme-dark .cash-report-wide:hover,
.theme-dark .cash-file-control:hover {
  background: rgba(51, 65, 85, 0.74);
  border-color: rgba(129, 140, 248, 0.34);
}

.theme-dark .cash-envelope-upload:hover .cash-file-button,
.theme-dark .cash-file-control:hover .cash-file-button,
.theme-dark .cash-report-form .btn:hover {
  background: #4f46e5;
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.22);
  transform: translateY(-1px);
}

body.theme-dark .btn:not(.secondary):not(.danger):not(:disabled):hover,
body.theme-dark .access-main-action:not(:disabled):hover,
body.theme-dark .dashboard-action-card:not(:disabled):hover {
  color: #ffffff !important;
  background: #4f46e5 !important;
  border-color: rgba(165, 180, 252, 0.42) !important;
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.26) !important;
}

body.theme-dark .btn:not(.secondary):not(.danger):not(:disabled):active,
body.theme-dark .access-main-action:not(:disabled):active {
  color: #ffffff !important;
  background: #4338ca !important;
  transform: scale(0.98);
}

.manager-rights-form .manager-module-rights-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 74px;
  gap: 12px;
  align-items: stretch;
}

.manager-rights-form .manager-module-pill.check-pill {
  width: 100%;
  height: 100%;
  display: grid !important;
  grid-template-columns: minmax(130px, 0.52fr) minmax(0, 1fr) 88px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.44);
  box-sizing: border-box;
  overflow: hidden;
}

.manager-rights-form .manager-module-pill.check-pill span {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(129, 140, 248, 0.36);
  border-radius: 999px;
  color: #ffffff;
  background: #6366f1;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.manager-rights-form .manager-module-pill.check-pill small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.manager-rights-form .manager-module-pill.check-pill::after {
  content: "Bloque";
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.88);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.manager-rights-form .manager-module-pill.check-pill:hover {
  background: rgba(30, 41, 59, 0.78);
  border-color: rgba(129, 140, 248, 0.42);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.manager-rights-form .manager-module-pill.check-pill:has(input:checked) {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.5);
}

.manager-rights-form .manager-module-pill.check-pill:has(input:checked)::after {
  content: "Autorise";
  color: #ffffff;
  background: #6366f1;
}

@media (max-width: 1100px) {
  .manager-rights-form .manager-module-rights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .manager-rights-form .manager-module-rights-grid {
    grid-auto-rows: auto;
  }

  .manager-rights-form .manager-module-pill.check-pill {
    min-height: 110px;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .manager-rights-form .manager-module-pill.check-pill span {
    width: auto;
  }
}

.cash-date-field {
  position: relative;
  display: grid;
  gap: 0.75rem;
  min-height: 116px;
  padding: 1.05rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: radial-gradient(circle at 92% 0%, rgba(var(--mnp-vert-8ebe40), 0.12), transparent 38%), rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(var(--mnp-vert-082315), 0.06);
}

.bread-date-field {
  min-height: 0;
  align-content: start;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* SOURCE: css/30-conversion.css */
/* Conversion de fichiers
   Aussi : Journaux et archives.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

select,
.field select,
.log-filters select,
.teams-chat-form select,
.teams-group-form select,
.intercompany-request-form select,
.course-supplier-form select,
.admin-form select,
.domain-panel select {
  border: 1px solid rgba(var(--mnp-vert-102016), 0.12);
  background-color: rgba(255, 255, 255, 0.92);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%, calc(100% - 42px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 60%;
  background-repeat: no-repeat;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

select:hover,
.field select:hover,
.log-filters select:hover,
.teams-chat-form select:hover,
.teams-group-form select:hover,
.intercompany-request-form select:hover,
.course-supplier-form select:hover,
.admin-form select:hover,
.domain-panel select:hover {
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 10px 24px rgba(var(--mnp-vert-082315), 0.08);
}

select:focus,
.field select:focus,
.log-filters select:focus,
.teams-chat-form select:focus,
.teams-group-form select:focus,
.intercompany-request-form select:focus,
.course-supplier-form select:focus,
.admin-form select:focus,
.domain-panel select:focus {
  outline: 3px solid rgba(99, 102, 241, 0.22);
  outline-offset: 2px;
  border-color: rgba(99, 102, 241, 0.52);
}

select option {
  color: rgb(var(--mnp-vert-102016));
  background: #f8fafc;
  font-weight: 750;
}

select option:checked {
  color: #ffffff;
  background: #6366f1;
}

select option:hover {
  color: #ffffff;
  background: #818cf8;
}

body.theme-dark select:hover,
body.theme-dark .field select:hover,
body.theme-dark .log-filters select:hover,
body.theme-dark .teams-chat-form select:hover,
body.theme-dark .teams-group-form select:hover,
body.theme-dark .intercompany-request-form select:hover,
body.theme-dark .course-supplier-form select:hover,
body.theme-dark .admin-form select:hover,
body.theme-dark .domain-panel select:hover {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

body.theme-dark select option {
  color: #f8fafc;
  background: #111827;
}

body.theme-dark select option:checked {
  color: #ffffff;
  background: #6366f1;
}

select,
.field select,
.log-filters select,
.teams-chat-form select,
.teams-group-form select,
.intercompany-request-form select,
.course-supplier-form select,
.admin-form select,
.domain-panel select {
  height: 46px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  color: rgb(var(--mnp-vert-102016));
  background: #ffffff;
  background-image: none !important;
  border-color: rgba(var(--mnp-vert-102016), 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  line-height: 46px;
  color-scheme: light;
  appearance: auto;
  -webkit-appearance: auto;
}

body.theme-dark select,
body.theme-dark .field select,
body.theme-dark .log-filters select,
body.theme-dark .teams-chat-form select,
body.theme-dark .teams-group-form select,
body.theme-dark .intercompany-request-form select,
body.theme-dark .course-supplier-form select,
body.theme-dark .admin-form select,
body.theme-dark .domain-panel select {
  background-color: #0f172a;
  color: #f8fafc;
  background: #0f172a;
  background-image: none !important;
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color-scheme: dark;
}

body.theme-dark select:focus,
body.theme-dark .field select:focus,
body.theme-dark .log-filters select:focus,
body.theme-dark .teams-chat-form select:focus,
body.theme-dark .teams-group-form select:focus,
body.theme-dark .intercompany-request-form select:focus,
body.theme-dark .course-supplier-form select:focus,
body.theme-dark .admin-form select:focus,
body.theme-dark .domain-panel select:focus {
  outline: 3px solid rgba(99, 102, 241, 0.26);
  outline-offset: 2px;
  border-color: rgba(129, 140, 248, 0.58);
}

.conversion-shell {
  display: grid;
  gap: 22px;
}

.conversion-result span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.conversion-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 6px;
  width: min(720px, 100%);
  padding: 6px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 32px rgba(var(--mnp-vert-082315), 0.08);
}

.conversion-switch button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.conversion-switch button:hover {
  color: var(--ink);
  background: rgba(var(--mnp-vert-102016), 0.04);
}

.conversion-switch button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-147d4f)), #6366f1);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.22);
  transform: translateY(-1px);
}

.conversion-tool-panel {
  display: none;
}

.conversion-tool-panel.is-active {
  display: grid;
}

.conversion-result p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.conversion-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.conversion-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  border-radius: 18px;
}

.conversion-submit.is-loading {
  opacity: 0.78;
  cursor: wait;
}

.conversion-result {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.86);
}

.conversion-result.is-ready {
  border-color: rgba(20, 184, 166, 0.26);
  background: rgba(var(--mnp-vert-ecfdf5), 0.86);
}

.conversion-result.is-warning {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(255, 251, 235, 0.9);
}

.conversion-result.is-loading {
  border-color: rgba(99, 102, 241, 0.28);
  background: rgba(238, 242, 255, 0.9);
}

.conversion-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  max-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 16px;
  background-color: #f8fafc;
  background-image: linear-gradient(45deg, rgba(15, 23, 42, 0.08) 25%, transparent 25%), linear-gradient(-45deg, rgba(15, 23, 42, 0.08) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(15, 23, 42, 0.08) 75%), linear-gradient(-45deg, transparent 75%, rgba(15, 23, 42, 0.08) 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.conversion-preview img {
  display: block;
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.conversion-preview small {
  display: none;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.conversion-preview.is-error small {
  display: block;
}

.conversion-edit-btn {
  justify-self: start;
}

.conversion-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.conversion-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.conversion-tool-group {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.conversion-tool-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 8px 18px rgba(15, 23, 42, 0.05);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.conversion-apply-color-btn {
  grid-auto-flow: column;
  gap: 9px;
  width: auto;
  min-width: 136px;
  padding: 0 15px;
  color: #ffffff;
  border-color: rgba(45, 212, 191, 0.42);
  background: linear-gradient(135deg, #0f766e, #6366f1);
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.conversion-apply-color-btn span {
  font-size: 0.88rem;
  font-weight: 950;
  white-space: nowrap;
}

.conversion-tool-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.conversion-tool-btn:hover {
  border-color: rgba(99, 102, 241, 0.36);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 24px rgba(99, 102, 241, 0.12);
}

.conversion-apply-color-btn:hover {
  border-color: rgba(45, 212, 191, 0.6);
  background: linear-gradient(135deg, #0d9488, #4f46e5);
  box-shadow: 0 18px 34px rgba(20, 184, 166, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.conversion-tool-btn.is-active,
.conversion-tool-btn.primary {
  color: #ffffff;
  border-color: rgba(129, 140, 248, 0.48);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-147d4f)), #6366f1);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.conversion-tool-btn.is-active {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18), 0 14px 28px rgba(99, 102, 241, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.conversion-editor-sliders {
  display: grid;
  flex: 1 1 260px;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 14px;
  align-items: center;
  min-width: 240px;
  padding: 0 8px;
}

.conversion-editor-sliders label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 900;
}

.conversion-editor-sliders label span,
.conversion-tool-state span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.conversion-editor-sliders input[type="range"] {
  width: 100%;
  accent-color: #6366f1;
}

.conversion-tool-state {
  flex: 1 1 150px;
  min-width: min(190px, 100%);
  padding: 9px 13px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 16px;
  background: rgba(238, 242, 255, 0.7);
}

.conversion-tool-state strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.92rem;
}

.conversion-editor-stage {
  display: grid;
  place-items: center;
  min-height: 260px;
  max-height: 540px;
  overflow: auto;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 16px;
  background-color: #f8fafc;
  background-image: linear-gradient(45deg, rgba(15, 23, 42, 0.08) 25%, transparent 25%), linear-gradient(-45deg, rgba(15, 23, 42, 0.08) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(15, 23, 42, 0.08) 75%), linear-gradient(-45deg, transparent 75%, rgba(15, 23, 42, 0.08) 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.conversion-editor canvas {
  display: block;
  max-width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: none;
}

.conversion-editor canvas.is-picking-color {
  cursor: copy;
  outline: 3px solid rgba(99, 102, 241, 0.45);
  outline-offset: 3px;
}

.conversion-editor-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.conversion-picked-color {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0 6px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.28);
}

body.theme-dark .conversion-switch {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(30, 41, 59, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

body.theme-dark .conversion-switch button {
  color: rgba(203, 213, 225, 0.76);
}

body.theme-dark .conversion-switch button:hover {
  color: #f8fafc;
  background: rgba(129, 140, 248, 0.12);
}

body.theme-dark .conversion-result {
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.76);
}

body.theme-dark .conversion-result.is-ready {
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(15, 118, 110, 0.12);
}

body.theme-dark .conversion-result.is-warning {
  border-color: rgba(251, 191, 36, 0.26);
  background: rgba(120, 53, 15, 0.18);
}

body.theme-dark .conversion-result.is-loading {
  border-color: rgba(129, 140, 248, 0.34);
  background: rgba(67, 56, 202, 0.16);
}

body.theme-dark .conversion-preview {
  border-color: rgba(148, 163, 184, 0.2);
  background-color: #0f172a;
  background-image: linear-gradient(45deg, rgba(248, 250, 252, 0.08) 25%, transparent 25%), linear-gradient(-45deg, rgba(248, 250, 252, 0.08) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(248, 250, 252, 0.08) 75%), linear-gradient(-45deg, transparent 75%, rgba(248, 250, 252, 0.08) 75%);
}

body.theme-dark .conversion-editor {
  border-color: rgba(129, 140, 248, 0.24);
  background: rgba(15, 23, 42, 0.58);
}

body.theme-dark .conversion-editor-toolbar,
body.theme-dark .conversion-tool-group,
body.theme-dark .conversion-tool-state {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: none;
}

body.theme-dark .conversion-tool-btn {
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 18px rgba(0, 0, 0, 0.18);
}

body.theme-dark .conversion-apply-color-btn {
  color: #ffffff;
  border-color: rgba(45, 212, 191, 0.42);
  background: linear-gradient(135deg, #0f766e, #6366f1);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.12), 0 14px 30px rgba(0, 0, 0, 0.3);
}

body.theme-dark .conversion-apply-color-btn:hover {
  border-color: rgba(45, 212, 191, 0.62);
  background: linear-gradient(135deg, #14b8a6, #6366f1);
}

body.theme-dark .conversion-tool-btn.is-active,
body.theme-dark .conversion-tool-btn.primary {
  color: #ffffff;
  border-color: rgba(129, 140, 248, 0.44);
  background: linear-gradient(135deg, #0f766e, #6366f1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18), 0 12px 28px rgba(0, 0, 0, 0.28);
}

body.theme-dark .conversion-editor-stage {
  border-color: rgba(148, 163, 184, 0.2);
  background-color: #0f172a;
  background-image: linear-gradient(45deg, rgba(248, 250, 252, 0.08) 25%, transparent 25%), linear-gradient(-45deg, rgba(248, 250, 252, 0.08) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(248, 250, 252, 0.08) 75%), linear-gradient(-45deg, transparent 75%, rgba(248, 250, 252, 0.08) 75%);
}

/* SOURCE: css/32-quicklinks.css */
/* Liens rapides
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.quicklinks-shell {
  display: grid;
  gap: 18px;
}

.quicklinks-head {
  align-items: center;
}

.quicklinks-add-open {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
}

.quicklinks-add-open span,
.quicklink-icon,
.quicklink-icon-fallback,
.quicklinks-dialog-title > span {
  display: inline-grid;
  place-items: center;
}

.quicklinks-add-open svg,
.quicklink-icon svg,
.quicklink-actions svg,
.quicklink-delete svg,
.quicklinks-dialog-title svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quicklinks-control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 14px;
  width: min(100%, 1060px);
  max-width: 100%;
  padding: 18px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 24px;
  background: radial-gradient(circle at 12% 14%, rgba(45, 212, 191, 0.13), transparent 32%), linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.62));
  box-shadow: 0 16px 38px rgba(var(--mnp-vert-082315), 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.quicklinks-control-panel label,
.quicklinks-dialog label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
}

.quicklinks-control-panel label span,
.quicklinks-dialog label span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quicklinks-control-panel input,
.quicklinks-control-panel select,
.quicklinks-dialog input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
  font-weight: 900;
}

.quicklinks-search input {
  min-height: 54px;
  padding-left: 46px;
  border-radius: 18px;
}

.quicklinks-search {
  position: relative;
}

.quicklinks-search::after {
  content: "";
  position: absolute;
  left: 17px;
  bottom: 15px;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(99, 102, 241, 0.72);
  border-radius: 999px;
  pointer-events: none;
}

.quicklinks-search::before {
  content: "";
  position: absolute;
  left: 33px;
  bottom: 13px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.72);
  transform: rotate(45deg);
  pointer-events: none;
}

.quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  width: min(100%, 1060px);
  max-width: 100%;
}

.quicklink-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 42px rgba(var(--mnp-vert-082315), 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.quicklink-card.is-pinned {
  border-color: rgba(99, 102, 241, 0.24);
  background: radial-gradient(circle at 12% 10%, rgba(99, 102, 241, 0.12), transparent 32%), rgba(255, 255, 255, 0.78);
}

.quicklink-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.26);
  box-shadow: 0 22px 52px rgba(var(--mnp-vert-082315), 0.12);
}

.quicklink-card-top {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.quicklink-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: #ffffff;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.36), transparent 28%), linear-gradient(135deg, #f8fafc, #dbeafe);
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 16px 30px rgba(99, 102, 241, 0.2);
  overflow: hidden;
}

.quicklink-brand {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.quicklink-brand svg {
  width: 31px;
  height: 31px;
  fill: initial;
  stroke: none;
}

.quicklink-brand-bootstrap {
  color: #7952b3;
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
}

.quicklink-icon img {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 9px;
}

.quicklink-icon-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #6366f1);
  opacity: 0;
}

.quicklink-icon.is-fallback .quicklink-icon-fallback {
  opacity: 1;
}

.quicklink-category {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quicklink-card h3 {
  margin: 4px 0 0;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quicklink-card p {
  margin: 0;
  min-height: 44px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 800;
}

.quicklink-url {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.08);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.quicklink-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: center;
}

.quicklink-actions .btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  padding-inline: 10px;
  white-space: nowrap;
  min-width: 0;
  font-size: 0.94rem;
}

.quicklink-actions .btn span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.quicklink-delete {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 14px;
  color: #ef4444;
  background: rgba(254, 242, 242, 0.86);
  font-weight: 950;
  cursor: pointer;
}

.quicklink-delete span {
  display: inline-grid;
  place-items: center;
}

.quicklinks-dialog {
  width: min(620px, calc(100vw - 32px));
  max-width: 620px;
}

.quicklinks-dialog-title {
  display: flex;
  gap: 14px;
  align-items: center;
}

.quicklinks-dialog-title > span {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #6366f1);
  box-shadow: 0 16px 34px rgba(99, 102, 241, 0.24);
}

.quicklinks-dialog-title h2,
.quicklinks-dialog-title p {
  margin: 0;
}

.quicklinks-dialog-title p {
  margin-top: 4px;
  color: var(--muted);
}

.quicklinks-dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.quicklinks-pin-label {
  display: inline-flex !important;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

/* SOURCE: css/33-files.css */
/* ---- Anciennement 31-files.css ---- */
/* Partage de fichiers et coffre-fort
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.shared-files-shell {
  display: grid;
  gap: 18px;
}

.shared-files-shell.is-vault-page {
  position: relative;
}

.shared-files-shell.is-vault-page::before {
  content: "";
  position: absolute;
  inset: -16px -18px auto -18px;
  height: 340px;
  border-radius: 28px;
  background: radial-gradient(circle at 78% 8%, rgba(45, 212, 191, 0.2), transparent 30%), radial-gradient(circle at 15% 14%, rgba(99, 102, 241, 0.18), transparent 34%);
  pointer-events: none;
  z-index: -1;
}

.shared-files-head {
  align-items: center;
}

.shared-files-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.shared-vault-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  width: min(100%, 1060px);
  max-width: 100%;
  padding: 22px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 28px;
  background: radial-gradient(circle at 16% 20%, rgba(45, 212, 191, 0.16), transparent 32%), linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(99, 102, 241, 0.1)), rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 58px rgba(var(--mnp-vert-082315), 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.shared-vault-page-safe {
  display: grid;
  place-items: center;
  min-height: 166px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.42), transparent 30%), linear-gradient(180deg, rgba(14, 165, 233, 0.16), rgba(99, 102, 241, 0.1));
}

.shared-vault-page-safe .shared-vault-box {
  width: 148px;
  height: 118px;
}

.shared-vault-page-safe .shared-vault-door {
  inset: 16px 20px;
}

.shared-vault-page-safe .shared-vault-wheel {
  width: 58px;
  height: 58px;
}

.shared-vault-page-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(45, 212, 191, 0.12);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shared-vault-page-hero h3 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
}

.shared-vault-page-hero p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 850;
}

.shared-files-upload-launch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  width: min(100%, 1060px);
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 34px rgba(var(--mnp-vert-082315), 0.06);
}

.shared-files-upload-launch small {
  color: var(--muted);
  font-weight: 850;
}

.shared-files-add-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 15px;
}

.shared-files-add-button span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.shared-files-add-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.shared-upload-dialog {
  width: min(980px, calc(100vw - 32px));
  max-width: 980px;
}

.shared-upload-dialog .dialog-title-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.shared-files-upload-modal {
  width: 100%;
  margin-top: 18px;
  box-shadow: none;
}

.shared-files-upload {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
  align-items: stretch;
  width: min(100%, 1060px);
  max-width: 100%;
  padding: 16px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.66));
  box-shadow: 0 18px 44px rgba(var(--mnp-vert-082315), 0.08);
  overflow: hidden;
}

.shared-files-drop {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  min-height: 154px;
  padding: 15px;
  border: 1px dashed rgba(99, 102, 241, 0.28);
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.76), rgba(240, 253, 250, 0.7));
  cursor: pointer;
}

.shared-files-drop-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #6366f1);
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.2);
}

.shared-files-drop-icon svg,
.shared-files-vault-button svg,
.shared-files-vault-ghost svg,
.shared-file-preview svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shared-files-vault-button svg {
  fill: currentColor;
  stroke: none;
}

.shared-files-drop strong,
.shared-files-drop small {
  min-width: 0;
  grid-column: 2;
}

.shared-files-drop strong {
  font-size: 1.08rem;
}

.shared-files-drop small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 48ch;
}

.shared-files-drop input[type="file"] {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shared-files-drop input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-147d4f)), #6366f1);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.shared-files-upload-fields {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.92fr) minmax(0, 1.16fr);
  gap: 12px 14px;
  align-content: center;
  align-items: end;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.shared-files-title-field {
  grid-column: 1 / -1;
}

.shared-files-upload-fields label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
}

.shared-files-upload-fields label span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shared-files-upload-fields select,
.shared-files-upload-fields input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.12);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-weight: 850;
  padding: 0 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shared-files-submit {
  width: 100%;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 15px;
}

.shared-files-actions-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: stretch;
}

.shared-files-vault-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 58px;
  min-width: 58px;
  min-height: 50px;
  border: 1px solid rgba(99, 102, 241, 0.34);
  border-radius: 16px;
  color: #ffffff;
  background: radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(135deg, #0f766e, #6366f1);
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.shared-files-vault-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 36px rgba(99, 102, 241, 0.28), 0 0 0 4px rgba(99, 102, 241, 0.14);
}

.shared-files-vault-button:active {
  transform: translateY(0) scale(0.98);
}

.shared-files-vault-button:disabled {
  cursor: progress;
  opacity: 0.82;
}

.shared-files-vault-button.is-vaulting {
  animation: sharedVaultPulse 0.72s ease both;
}

.shared-files-vault-button.is-loading::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: sharedVaultSpin 0.7s linear infinite;
}

.shared-files-vault-button.is-loading svg {
  opacity: 0.24;
}

.shared-files-drop.is-vaulting {
  border-color: rgba(45, 212, 191, 0.48);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.18), 0 18px 42px rgba(45, 212, 191, 0.12);
}

.shared-files-vault-ghost {
  position: fixed;
  z-index: 9999;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #2dd4bf, #6366f1);
  box-shadow: 0 16px 34px rgba(99, 102, 241, 0.34);
  pointer-events: none;
  animation: sharedFileSuckedToVault 0.72s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
}

@keyframes sharedFileSuckedToVault {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.82) rotate(-8deg);
  }
  18% {
    opacity: 1;
    transform: translate3d(0, -12px, 0) scale(1) rotate(4deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--vault-x), var(--vault-y), 0) scale(0.18) rotate(22deg);
  }
}

@keyframes sharedVaultPulse {
  0%, 100% {
    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
  45% {
    box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.12), 0 22px 42px rgba(45, 212, 191, 0.22);
  }
}

@keyframes sharedVaultSpin {
  to {
    transform: rotate(360deg);
  }
}

.shared-files-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 14px;
  width: min(100%, 1060px);
  max-width: 100%;
  align-items: stretch;
}

.shared-files-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.62));
  box-shadow: 0 16px 38px rgba(var(--mnp-vert-082315), 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.68);
  overflow: visible;
}

.shared-files-vault-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
}

.shared-files-vault-panel small {
  max-width: 22ch;
  text-align: center;
  line-height: 1.4;
}

.shared-vault-illustration {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

.shared-vault-illustration::before {
  content: "";
  position: absolute;
  height: 18px;
  border-radius: 999px;
}

.shared-vault-box {
  position: relative;
  display: block;
  transform: perspective(360px) rotateX(2deg);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.shared-vault-illustration:hover .shared-vault-box {
  transform: perspective(360px) rotateX(2deg) translateY(-4px) scale(1.03);
  filter: brightness(1.04);
}

.shared-vault-door {
  position: absolute;
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.16), inset 0 -8px 18px rgba(0, 0, 0, 0.42), 0 1px 0 rgba(255, 255, 255, 0.5);
}

.shared-vault-wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  border: 7px solid #dbeafe;
  border-radius: 999px;
  box-shadow: inset 0 0 0 4px rgba(15, 23, 42, 0.82), 0 7px 14px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
}

.shared-vault-wheel > span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff, #94a3b8);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.42);
}

.shared-vault-hinge {
  position: absolute;
  left: -9px;
  width: 20px;
  height: 10px;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #cbd5e1, #64748b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.shared-vault-hinge.top {
  top: 27px;
}

.shared-vault-hinge.bottom {
  bottom: 27px;
}

.shared-files-open-vault {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.shared-files-open-vault span {
  display: inline-grid;
  place-items: center;
}

.shared-files-open-vault svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.shared-vault-dialog-backdrop {
  align-items: center;
  background: radial-gradient(circle at 50% 44%, rgba(99, 102, 241, 0.18), transparent 34%), rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(10px);
}

.shared-vault-dialog {
  width: min(94vw, 560px);
  max-width: 560px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(27, 34, 58, 0.98), rgba(13, 18, 38, 0.98)), #111827;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.shared-vault-dialog::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, rgb(var(--mnp-vert-9fef48)), #6d6cf6, #38bdf8);
}

.shared-vault-dialog-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px 32px 22px;
}

.shared-vault-dialog-title {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.shared-vault-dialog-title > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(var(--mnp-vert-a3e635), 0.36);
  color: rgb(var(--mnp-vert-d9f99d));
}

.shared-vault-dialog-title svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.shared-vault-dialog-title h2,
.shared-vault-dialog-title p {
  margin: 0;
}

.shared-vault-dialog-title h2 {
  color: #f8fafc;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.shared-vault-dialog-title p {
  max-width: 320px;
  margin-top: 10px;
  color: #a8b3cf;
  font-size: 1rem;
  line-height: 1.45;
}

.shared-vault-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.shared-vault-close:hover {
  color: #ffffff;
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(30, 41, 59, 0.95);
}

.shared-vault-fields {
  display: grid;
  gap: 16px;
  padding: 0 32px 4px;
}

.shared-vault-fields label {
  display: grid;
  gap: 9px;
  color: #f8fafc;
  font-weight: 900;
}

.shared-vault-fields label > span {
  font-size: 0.95rem;
}

.shared-vault-fields input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
  color: #ffffff;
  background: rgba(7, 12, 28, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 1rem;
  font-weight: 800;
  outline: none;
}

.shared-vault-fields input::placeholder {
  color: rgba(203, 213, 225, 0.48);
}

.shared-vault-fields input:focus {
  border-color: rgba(var(--mnp-vert-a3e635), 0.72);
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-84cc16), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shared-vault-dialog-error {
  min-height: 24px;
  margin: 10px 32px 0;
  color: #fb7185;
  font-weight: 900;
}

.shared-vault-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 32px 30px;
}

.shared-vault-actions .btn {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .shared-vault-dialog {
    width: calc(100vw - 28px);
    border-radius: 22px;
  }

  .shared-vault-dialog-top {
    padding: 24px 22px 18px;
  }

  .shared-vault-dialog-title {
    gap: 12px;
  }

  .shared-vault-dialog-title > span {
    width: 48px;
    height: 48px;
  }

  .shared-vault-dialog-title h2 {
    font-size: 1.55rem;
  }

  .shared-vault-fields,
  .shared-vault-actions {
    padding-right: 22px;
    padding-left: 22px;
  }

  .shared-vault-actions {
    display: grid;
  }

  .shared-vault-actions .btn {
    width: 100%;
  }
}

.shared-files-filters label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
}

.shared-files-filters label > span:first-child {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shared-files-select {
  position: relative;
  z-index: 1;
}

.shared-files-select.is-open {
  z-index: 40;
}

.shared-files-native-select {
  position: absolute;
  width: 1px !important;
  height: 1px;
  min-height: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.shared-files-select-trigger {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(65, 105, 178, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.shared-files-select-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shared-files-select-trigger > i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: -4px 2px 0 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.72;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.shared-files-select-trigger:hover {
  border-color: rgba(65, 105, 178, 0.48);
  background: #ffffff;
}

.shared-files-select-trigger:focus-visible {
  border-color: #4169b2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(65, 105, 178, 0.16);
}

.shared-files-select.is-open .shared-files-select-trigger {
  border-color: #4169b2;
  box-shadow: 0 0 0 3px rgba(65, 105, 178, 0.16);
}

.shared-files-select.is-open .shared-files-select-trigger > i {
  margin-top: 4px;
  transform: rotate(225deg);
}

.shared-files-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  width: max-content;
  min-width: 100%;
  max-width: min(280px, 80vw);
  padding: 6px;
  border: 1px solid rgba(65, 105, 178, 0.2);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.shared-files-select:nth-child(4) .shared-files-select-menu,
.shared-files-select:nth-child(5) .shared-files-select-menu {
  right: 0;
  left: auto;
}

.shared-files-select.is-open .shared-files-select-menu {
  display: grid;
  gap: 2px;
}

.shared-files-select-menu > button {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  color: rgb(var(--mnp-vert-17251c));
  background: transparent;
  font: inherit;
  font-weight: 750;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.shared-files-select-menu > button:hover {
  background: rgba(65, 105, 178, 0.09);
}

.shared-files-select-menu > button[aria-selected="true"] {
  color: #244b91;
  background: rgba(65, 105, 178, 0.14);
  font-weight: 900;
}

.shared-files-select-menu > button[aria-selected="true"] i {
  width: 10px;
  height: 6px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}

.shared-files-search-field {
  position: relative;
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(99, 102, 241, 0.12);
}

.shared-files-filters select,
.shared-files-filters input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 36px 0 13px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shared-files-filters select {
  min-height: 48px;
  padding: 0 38px 0 14px;
  border-radius: 8px;
  color-scheme: light;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.shared-files-filters select:hover {
  border-color: rgba(65, 105, 178, 0.42);
  background-color: #ffffff;
}

.shared-files-filters select:focus-visible {
  border-color: #4169b2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(65, 105, 178, 0.16);
}

.shared-files-filters select option {
  color: rgb(var(--mnp-vert-102016));
  background: #ffffff;
  font-weight: 750;
}

.shared-files-filters select option:checked {
  color: #ffffff;
  background: #4169b2;
}

.shared-files-filters input {
  cursor: text;
}

.shared-files-search-field input {
  min-height: 54px;
  padding-left: 46px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 242, 255, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.shared-files-search-field::after {
  content: "";
  position: absolute;
  left: 17px;
  bottom: 15px;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(99, 102, 241, 0.72);
  border-radius: 999px;
  pointer-events: none;
}

.shared-files-search-field::before {
  content: "";
  position: absolute;
  left: 33px;
  bottom: 13px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.72);
  transform: rotate(45deg);
  pointer-events: none;
}

.shared-files-status {
  color: var(--muted);
  font-weight: 900;
}

.shared-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ---- Anciennement 33-files.css ---- */
/* Partage de fichiers et coffre-fort
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.shared-file-card {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 42px rgba(var(--mnp-vert-082315), 0.08);
}

.shared-file-preview {
  display: grid;
  place-items: center;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.08);
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.2), rgba(99, 102, 241, 0.18));
}

.shared-file-preview video,
.shared-file-preview img {
  width: 100%;
  max-height: 240px;
  display: block;
  object-fit: contain;
  background: #0f172a;
}

.shared-file-preview > span {
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f766e, #6366f1);
  box-shadow: 0 18px 34px rgba(99, 102, 241, 0.22);
}

.shared-file-body {
  min-width: 0;
}

.shared-file-type {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shared-file-body h3 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shared-file-body p {
  margin: 0;
  min-height: 22px;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.shared-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.shared-file-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(238, 242, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 900;
}

.shared-file-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.shared-file-actions .btn {
  min-height: 42px;
  border-radius: 14px;
}

body.theme-dark .shared-files-upload,
body.theme-dark .shared-files-upload-launch,
body.theme-dark .shared-file-card,
body.theme-dark .shared-files-filters,
body.theme-dark .shared-files-vault-panel,
body.theme-dark .quicklinks-control-panel,
body.theme-dark .quicklink-card {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(30, 41, 59, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

body.theme-dark .shared-files-upload {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.72));
}

body.theme-dark .shared-vault-page-hero {
  border-color: rgba(45, 212, 191, 0.2);
  background: radial-gradient(circle at 16% 20%, rgba(45, 212, 191, 0.12), transparent 34%), linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(99, 102, 241, 0.14)), rgba(30, 41, 59, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

body.theme-dark .shared-vault-page-kicker {
  color: #99f6e4;
  background: rgba(45, 212, 191, 0.12);
}

body.theme-dark .shared-vault-page-safe {
  background: radial-gradient(circle at 50% 20%, rgba(129, 140, 248, 0.22), transparent 34%), linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(99, 102, 241, 0.12));
}

body.theme-dark .shared-files-drop {
  border-color: rgba(129, 140, 248, 0.28);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.84));
}

body.theme-dark .shared-files-upload-fields select,
body.theme-dark .shared-files-upload-fields input,
body.theme-dark .shared-files-filters select,
body.theme-dark .shared-files-filters input,
body.theme-dark .quicklinks-control-panel input,
body.theme-dark .quicklinks-control-panel select,
body.theme-dark .quicklinks-dialog input {
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.76);
}

body.theme-dark .shared-files-upload-fields {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.42);
}

.shared-files-vault-panel {
  gap: 10px;
  padding: 14px;
  border-color: rgba(var(--mnp-vert-2f6f45), 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(var(--mnp-vert-082315), 0.08);
}

.shared-vault-illustration {
  min-height: 126px;
  border: 1px solid rgba(var(--mnp-vert-2f6f45), 0.14);
  border-radius: 8px;
  color: rgb(var(--mnp-vert-eaf5ed));
  background: rgb(var(--mnp-vert-eef6f0));
}

.shared-vault-illustration::before {
  inset: auto 24px 14px;
  background: rgba(var(--mnp-vert-082315), 0.14);
  filter: blur(9px);
}

.shared-vault-box {
  width: 108px;
  height: 86px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgb(var(--mnp-vert-dce9df)), #8ca395 55%, #60796a);
  box-shadow: inset 0 5px 9px rgba(255, 255, 255, 0.5), inset 0 -10px 20px rgba(var(--mnp-vert-082315), 0.22), 0 16px 28px rgba(var(--mnp-vert-082315), 0.2);
}

.shared-vault-door {
  inset: 12px 15px;
  border-radius: 13px;
  background: linear-gradient(145deg, rgb(var(--mnp-vert-355744)), rgb(var(--mnp-vert-173624)) 62%, rgb(var(--mnp-vert-0b2417)));
}

.shared-vault-wheel {
  width: 44px;
  height: 44px;
  border-width: 6px;
  border-color: rgb(var(--mnp-vert-dce9df));
  background: conic-gradient(from 8deg, rgb(var(--mnp-vert-173624)) 0 12%, #b9cabe 12% 21%, rgb(var(--mnp-vert-173624)) 21% 34%, #b9cabe 34% 43%, rgb(var(--mnp-vert-173624)) 43% 56%, #b9cabe 56% 65%, rgb(var(--mnp-vert-173624)) 65% 78%, #b9cabe 78% 87%, rgb(var(--mnp-vert-173624)) 87% 100%);
}

.shared-files-open-vault {
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgb(var(--mnp-vert-2f6f45));
  border-radius: 8px;
  color: #ffffff;
  background: rgb(var(--mnp-vert-2f6f45));
  box-shadow: 0 10px 22px rgba(var(--mnp-vert-2f6f45), 0.2);
}

.shared-files-open-vault:hover {
  background: rgb(var(--mnp-vert-255b38));
  box-shadow: 0 12px 26px rgba(var(--mnp-vert-2f6f45), 0.26);
}

.shared-files-open-vault span {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.13);
}

.shared-files-vault-panel small {
  color: #52645a;
  font-weight: 750;
}

.shared-vault-dialog-title > span {
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(var(--mnp-vert-84cc16), 0.28), rgba(var(--mnp-vert-22c55e), 0.12));
  box-shadow: 0 18px 42px rgba(var(--mnp-vert-84cc16), 0.14);
}

body.theme-dark .shared-files-upload-launch,
body.theme-dark .shared-files-filters {
  border-color: rgba(148, 163, 184, 0.16);
  background: #1e293b;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

body.theme-dark .shared-files-add-button,
body.theme-dark .shared-files-open-vault {
  border-color: #6386cb;
  color: #ffffff;
  background: #4169b2;
  box-shadow: 0 10px 22px rgba(12, 25, 55, 0.3);
}

body.theme-dark .shared-files-filters select,
body.theme-dark .shared-files-filters input,
body.theme-dark .shared-files-search-field input {
  border-color: rgba(148, 163, 184, 0.2);
  color: #f8fafc;
  background: #111827;
  box-shadow: none;
}

body.theme-dark .shared-files-filters select {
  color-scheme: dark;
  border-color: rgba(148, 163, 184, 0.24);
  background-color: #111827;
}

body.theme-dark .shared-files-filters select:hover {
  border-color: rgba(99, 134, 203, 0.72);
  background-color: #162033;
}

body.theme-dark .shared-files-filters select:focus-visible {
  border-color: #6386cb;
  box-shadow: 0 0 0 3px rgba(99, 134, 203, 0.22);
}

body.theme-dark .shared-files-filters select option {
  color: #f8fafc;
  background: #111827;
}

body.theme-dark .shared-files-filters select option:checked {
  color: #ffffff;
  background: #4169b2;
}

body.theme-dark .shared-files-select-trigger {
  border-color: rgba(148, 163, 184, 0.24);
  color: #f8fafc;
  background: #111827;
}

body.theme-dark .shared-files-select-trigger:hover {
  border-color: rgba(99, 134, 203, 0.72);
  background: #162033;
}

body.theme-dark .shared-files-select.is-open .shared-files-select-trigger,
body.theme-dark .shared-files-select-trigger:focus-visible {
  border-color: #6386cb;
  box-shadow: 0 0 0 3px rgba(99, 134, 203, 0.22);
}

body.theme-dark .shared-files-select-menu {
  border-color: rgba(99, 134, 203, 0.34);
  background: #111827;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

body.theme-dark .shared-files-select-menu > button {
  color: #e5e7eb;
}

body.theme-dark .shared-files-select-menu > button:hover {
  color: #ffffff;
  background: rgba(99, 134, 203, 0.15);
}

body.theme-dark .shared-files-select-menu > button[aria-selected="true"] {
  color: #ffffff;
  background: #4169b2;
}

body.theme-dark .shared-files-search-field {
  border-top-color: rgba(148, 163, 184, 0.14);
}

body.theme-dark .shared-files-search-field::after {
  border-color: rgb(var(--mnp-vert-6ea87e));
}

body.theme-dark .shared-files-search-field::before {
  background: rgb(var(--mnp-vert-6ea87e));
}

body.theme-dark .shared-files-vault-panel {
  border-color: rgba(148, 163, 184, 0.18);
  background: #1e293b;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

body.theme-dark .shared-vault-illustration {
  border-color: rgba(148, 163, 184, 0.16);
  background: #111827;
}

body.theme-dark .shared-vault-box {
  background: linear-gradient(145deg, #b7c5bb, #718779 54%, #42584a);
}

body.theme-dark .shared-vault-door {
  background: linear-gradient(145deg, #314c39, rgb(var(--mnp-vert-182b1f)) 58%, rgb(var(--mnp-vert-0d1b13)));
}

body.theme-dark .shared-files-vault-panel small {
  color: #cbd5ce;
}

@media (max-width: 760px) {
  .shared-files-vault-panel {
    grid-template-columns: minmax(100px, 132px) minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
  }

  .shared-vault-illustration {
    min-height: 112px;
  }

  .shared-files-vault-panel small {
    grid-column: 1 / -1;
    max-width: none;
  }
}

body.theme-dark .shared-files-drop input[type="file"]::file-selector-button {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #6366f1);
}

body.theme-dark .shared-files-drop input[type="file"] {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
}

body.theme-dark .shared-file-preview {
  border-color: rgba(148, 163, 184, 0.16);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(99, 102, 241, 0.14));
}

body.theme-dark .shared-file-meta span {
  color: #f8fafc;
  background: rgba(99, 102, 241, 0.14);
}

body.theme-dark .quicklink-card.is-pinned {
  border-color: rgba(129, 140, 248, 0.3);
  background: radial-gradient(circle at 12% 10%, rgba(129, 140, 248, 0.12), transparent 34%), rgba(30, 41, 59, 0.78);
}

body.theme-dark .quicklink-url {
  color: #a5b4fc;
  background: rgba(129, 140, 248, 0.12);
}

body.theme-dark .quicklink-delete {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.2);
  background: rgba(127, 29, 29, 0.22);
}

body.theme-dark .quicklinks-pin-label {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.62);
}

/* SOURCE: css/34-cash.css */
/* ---- Anciennement 28-cash.css ---- */
/* Module caisse / finances
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.cash-field-title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 950;
}

.cash-date-trigger {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.05rem;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.14);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 20px rgba(var(--mnp-vert-082315), 0.06);
  font-size: 1.05rem;
  font-weight: 950;
  text-align: left;
}

.cash-date-trigger:hover,
.cash-date-trigger[aria-expanded="true"] {
  border-color: rgba(var(--mnp-vert-176b3c), 0.28);
  background: #fff;
  box-shadow: 0 14px 28px rgba(var(--mnp-vert-176b3c), 0.12);
  transform: translateY(-1px);
}

.cash-date-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--brand);
  background: rgba(var(--mnp-vert-176b3c), 0.1);
}

.cash-date-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bread-date-field .cash-field-title {
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 800;
}

.bread-date-field .cash-date-trigger {
  min-height: 46px;
  height: 46px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 1rem;
}

.bread-date-field .cash-date-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.bread-date-field .cash-date-icon svg {
  width: 19px;
  height: 19px;
}

.cash-calendar-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 25;
  width: min(360px, calc(100vw - 48px));
  padding: 1rem;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 70px rgba(var(--mnp-vert-082315), 0.18);
  backdrop-filter: blur(18px);
}

.cash-calendar-popover[hidden] {
  display: none;
}

.cash-calendar-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.cash-calendar-head strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
  text-align: center;
  text-transform: capitalize;
}

.cash-calendar-head button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 14px;
  color: var(--text);
  background: rgba(248, 250, 246, 0.92);
  font-size: 1.55rem;
  font-weight: 850;
}

.cash-calendar-head button:hover {
  color: #fff;
  background: var(--brand);
  border-color: rgba(var(--mnp-vert-176b3c), 0.22);
}

.cash-calendar-weekdays,
.cash-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.cash-calendar-weekdays {
  margin-bottom: 0.45rem;
}

.cash-calendar-weekdays span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.cash-calendar-day {
  aspect-ratio: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  background: transparent;
  font-size: 0.94rem;
  font-weight: 850;
}

.cash-calendar-day span {
  line-height: 1;
}

.cash-calendar-day:hover {
  color: var(--brand);
  background: rgba(var(--mnp-vert-176b3c), 0.08);
  border-color: rgba(var(--mnp-vert-176b3c), 0.12);
}

.cash-calendar-day.is-muted {
  color: rgba(105, 117, 107, 0.62);
}

.cash-calendar-day.is-today {
  border-color: rgba(241, 154, 34, 0.38);
  background: rgba(241, 154, 34, 0.1);
}

.cash-calendar-day.is-selected {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 10px 22px rgba(var(--mnp-vert-176b3c), 0.2);
}

.cash-calendar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(var(--mnp-vert-102016), 0.08);
}

.cash-calendar-actions button {
  min-height: 38px;
  padding: 0 0.8rem;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(var(--mnp-vert-176b3c), 0.08);
  font-size: 0.86rem;
  font-weight: 950;
}

.cash-calendar-actions button:hover {
  color: #fff;
  background: var(--brand);
}

.theme-dark .cash-date-field {
  background: radial-gradient(circle at 88% 8%, rgba(99, 102, 241, 0.12), transparent 34%), rgba(30, 41, 59, 0.68);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: none;
}

.theme-dark .bread-date-field {
  background: transparent;
}

.theme-dark .cash-date-trigger {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: none;
}

.theme-dark .cash-date-trigger:hover,
.theme-dark .cash-date-trigger[aria-expanded="true"] {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(129, 140, 248, 0.44);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.theme-dark .cash-date-icon {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.18);
}

.theme-dark .cash-calendar-popover {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.theme-dark .cash-calendar-head button {
  color: var(--ink);
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(148, 163, 184, 0.18);
}

.theme-dark .cash-calendar-head button:hover,
.theme-dark .cash-calendar-actions button:hover,
.theme-dark .cash-calendar-day.is-selected {
  color: #fff;
  background: #6366f1;
  border-color: rgba(129, 140, 248, 0.42);
}

.theme-dark .cash-calendar-day {
  color: var(--ink);
}

.theme-dark .cash-calendar-day:hover {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.26);
}

.theme-dark .cash-calendar-day.is-muted {
  color: rgba(148, 163, 184, 0.56);
}

.theme-dark .cash-calendar-day.is-today {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(251, 191, 36, 0.1);
}

.theme-dark .cash-calendar-actions {
  border-top-color: rgba(148, 163, 184, 0.16);
}

.theme-dark .cash-calendar-actions button {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.14);
}

@media (max-width: 520px) {
  .cash-calendar-popover {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ---- Anciennement 34-cash.css ---- */
/* Module caisse / finances
   Aussi : Hub des applications.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.applications-panel {
  display: grid;
  gap: 18px;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.application-card {
  min-height: 178px;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-content: start;
  gap: 10px 14px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(var(--mnp-vert-e8f3e8), 0.72)), var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 18px 42px rgba(var(--mnp-vert-082315), 0.08);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.application-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--mnp-vert-176b3c), 0.28);
  box-shadow: 0 22px 50px rgba(var(--mnp-vert-082315), 0.12);
}

.application-logo {
  width: 52px;
  height: 52px;
  display: grid;
  grid-row: span 2;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.application-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.application-name {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  align-self: end;
}

.application-card strong {
  font-size: 21px;
  line-height: 1.05;
  align-self: start;
}

.application-card small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.45;
}

body.theme-dark .application-card {
  border-color: rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.92)), var(--surface);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

body.theme-dark .application-logo {
  background: transparent;
  box-shadow: none;
}

.cash-wizard-shell {
  width: min(100%, 1080px);
}

.cash-wizard-form {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.cash-wizard-step {
  display: none;
  animation: cashWizardSlide 0.28s ease both;
}

.cash-wizard-form[data-cash-wizard-step="intro"] [data-cash-step="intro"],
.cash-wizard-form[data-cash-wizard-step="date"] [data-cash-step="date"],
.cash-wizard-form[data-cash-wizard-step="amounts"] [data-cash-step="amounts"],
.cash-wizard-form[data-cash-wizard-step="media"] [data-cash-step="media"],
.cash-wizard-form[data-cash-wizard-step="review"] [data-cash-step="review"],
.cash-wizard-step.active {
  display: block;
}

.cash-wizard-form[data-cash-wizard-step="intro"] .cash-wizard-intro {
  display: grid;
}

@keyframes cashWizardSlide {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cash-wizard-intro {
  min-height: 420px;
  place-items: center;
}

.cash-wizard-start {
  width: min(100%, 560px);
  min-height: 118px;
  padding: 24px;
  border: 1px solid rgba(var(--mnp-vert-176b3c), 0.18);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-176b3c)), rgb(var(--mnp-vert-4f8f36)));
  box-shadow: 0 22px 56px rgba(var(--mnp-vert-082315), 0.16);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 950;
  line-height: 1.08;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cash-wizard-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 72px rgba(var(--mnp-vert-082315), 0.2);
}

.cash-wizard-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(var(--mnp-vert-082315), 0.08);
}

.cash-wizard-card h3 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
}

.cash-wizard-card p {
  margin: 0;
  color: var(--muted);
}

.cash-wizard-date {
  max-width: 460px;
}

.cash-wizard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.cash-wizard-grid label,
.cash-wizard-note,
.cash-camera-upload {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--brand-deep);
  font-weight: 900;
}

.cash-amount-block[hidden] {
  display: none;
}

.cash-amount-block {
  animation: cashWizardSlide 0.22s ease both;
}

.cash-amount-block.active {
  border-color: rgba(99, 102, 241, 0.38);
  box-shadow: 0 16px 34px rgba(99, 102, 241, 0.12);
}

.cash-amount-block.completed {
  border-color: rgba(var(--mnp-vert-176b3c), 0.22);
}

.cash-amount-block.completed::after {
  content: "Rempli";
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgb(var(--mnp-vert-176b3c));
  background: rgba(var(--mnp-vert-176b3c), 0.1);
  font-size: 11px;
  font-weight: 950;
}

.cash-wizard-grid input,
.cash-wizard-note textarea {
  width: 100%;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 18px;
}

.cash-camera-upload {
  grid-template-columns: 62px 1fr;
  align-items: center;
  cursor: pointer;
}

.cash-camera-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand);
}

.cash-camera-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cash-camera-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cash-wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.cash-wizard-actions .btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.cash-wizard-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(184, 66, 43, 0.28);
  border-radius: 8px;
  color: #fee2e2;
  background: rgba(184, 66, 43, 0.18);
  font-weight: 900;
}

.cash-wizard-error[hidden] {
  display: none;
}

.cash-review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.cash-review-list article {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.cash-review-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cash-review-list strong {
  color: var(--brand-deep);
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

body.theme-dark .cash-wizard-card {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(30, 41, 59, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

body.theme-dark .cash-wizard-grid label,
body.theme-dark .cash-wizard-note,
body.theme-dark .cash-camera-upload,
body.theme-dark .cash-review-list article {
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.56);
}

body.theme-dark .cash-wizard-grid input,
body.theme-dark .cash-wizard-note textarea {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
}

body.theme-dark .cash-review-list strong {
  color: #f8fafc;
}

body.theme-dark .cash-amount-block.active {
  border-color: rgba(129, 140, 248, 0.44);
  box-shadow: 0 16px 34px rgba(99, 102, 241, 0.18);
}

body.theme-dark .cash-amount-block.completed::after {
  color: rgb(var(--mnp-vert-bbf7d0));
  background: rgba(var(--mnp-vert-22c55e), 0.14);
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-shell {
  width: min(100%, 1180px);
  display: grid;
  gap: 20px;
}

body.theme-dark .mnp-main-page.is-employee-finance .admin-section-head.compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 4px;
}

body.theme-dark .mnp-main-page.is-employee-finance .admin-section-head.compact .tag {
  color: rgb(var(--mnp-vert-b9ff42));
  border-color: rgba(var(--mnp-vert-8ee820), 0.18);
  background: rgba(var(--mnp-vert-8ee820), 0.1);
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-form {
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.14);
  border-radius: 18px;
  background: radial-gradient(circle at 0% 0%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 32%), linear-gradient(145deg, rgba(16, 31, 47, 0.9), rgba(8, 18, 31, 0.96));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-intro {
  min-height: 300px;
  padding: 24px;
  place-items: stretch;
}

.cash-start-card {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  align-items: stretch;
  gap: 18px;
}

.cash-start-main,
.cash-start-side article,
.cash-start-steps {
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.12);
  border-radius: 16px;
  background: rgba(8, 19, 32, 0.58);
}

.cash-start-main {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: clamp(22px, 3vw, 34px);
}

.cash-start-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: rgb(var(--mnp-vert-b9ff42));
  background: radial-gradient(circle at 28% 18%, rgba(var(--mnp-vert-beff57), 0.34), transparent 36%), rgba(var(--mnp-vert-97e845), 0.13);
}

.cash-start-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cash-start-main h3 {
  margin: 4px 0 0;
  color: #f8fbff;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 950;
  line-height: 1.04;
}

.cash-start-main p {
  max-width: 560px;
  margin: 0;
  color: rgba(211, 222, 239, 0.78);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-start {
  width: auto;
  min-height: 52px;
  margin-top: 8px;
  padding: 0 24px;
  border-color: rgba(var(--mnp-vert-8ee820), 0.32);
  border-radius: 999px;
  color: #07111f;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
  box-shadow: 0 16px 34px rgba(var(--mnp-vert-8ee820), 0.14);
  font-size: 16px;
  line-height: 1;
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-card {
  min-height: 360px;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.14);
  border-radius: 18px;
  background: radial-gradient(circle at 0% 0%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 32%), linear-gradient(145deg, rgba(16, 31, 47, 0.9), rgba(8, 18, 31, 0.96));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-card > .tag {
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #f8fbff;
  background: linear-gradient(90deg, rgba(var(--mnp-vert-8ee820), 0.34), rgba(var(--mnp-vert-8ee820), 0.1));
  box-shadow: inset 0 0 0 1px rgba(var(--mnp-vert-8ee820), 0.14);
  font-size: 13px;
  font-weight: 950;
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-card h3 {
  color: #f8fbff;
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 950;
  letter-spacing: 0;
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-card p {
  max-width: 720px;
  color: rgba(211, 222, 239, 0.78);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-date,
body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-grid label,
body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-note,
body.theme-dark .mnp-main-page.is-employee-finance .cash-camera-upload,
body.theme-dark .mnp-main-page.is-employee-finance .cash-review-list article {
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.12);
  border-radius: 16px;
  color: #f8fbff;
  background: radial-gradient(circle at 88% 12%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 34%), rgba(8, 19, 32, 0.58);
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-date {
  max-width: 470px;
  padding: 16px;
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-field-title,
body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-grid label,
body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-note {
  color: #f8fbff;
  font-weight: 950;
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-date-trigger,
body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-grid input,
body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-note textarea {
  color: #f8fbff;
  border-color: rgba(var(--mnp-vert-8ee820), 0.14);
  background: rgba(6, 15, 28, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-date-trigger:hover,
body.theme-dark .mnp-main-page.is-employee-finance .cash-date-trigger[aria-expanded="true"],
body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-grid input:focus,
body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-note textarea:focus {
  outline: none;
  border-color: rgba(var(--mnp-vert-8ee820), 0.46);
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-8ee820), 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-date-icon,
body.theme-dark .mnp-main-page.is-employee-finance .cash-camera-icon {
  color: #07111f;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-78c52d)));
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-amount-block.active {
  border-color: rgba(var(--mnp-vert-8ee820), 0.34);
  box-shadow: 0 16px 34px rgba(var(--mnp-vert-8ee820), 0.12);
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-amount-block.completed {
  border-color: rgba(var(--mnp-vert-8ee820), 0.22);
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-amount-block.completed::after {
  color: #07111f;
  background: rgb(var(--mnp-vert-b9ff42));
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-actions {
  align-self: end;
  margin-top: auto;
  padding-top: 12px;
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-actions .btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 950;
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-actions .btn:not(.secondary) {
  color: #07111f;
  border-color: rgba(var(--mnp-vert-8ee820), 0.32);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
  box-shadow: 0 16px 34px rgba(var(--mnp-vert-8ee820), 0.14);
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-wizard-actions .btn.secondary {
  color: #f8fbff;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.cash-start-side {
  display: grid;
  gap: 14px;
}

.cash-start-side article {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
}

.cash-start-side article span,
.cash-start-steps li {
  color: rgb(var(--mnp-vert-a8ef3f));
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.cash-start-side article strong {
  color: #f8fbff;
  font-size: 28px;
  line-height: 1;
}

.cash-start-side article small {
  color: rgba(211, 222, 239, 0.72);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.cash-start-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px;
  list-style: none;
}

.cash-start-steps li {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(248, 251, 255, 0.86);
  text-transform: none;
}

.cash-start-steps li span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #07111f;
  background: rgb(var(--mnp-vert-b9ff42));
  font-size: 12px;
  font-weight: 950;
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-report-history {
  padding: 20px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.12);
  border-radius: 18px;
  background: radial-gradient(circle at 0% 0%, rgba(var(--mnp-vert-8ee820), 0.06), transparent 30%), rgba(8, 19, 32, 0.58);
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-report-history .empty {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border: 1px dashed rgba(var(--mnp-vert-8ee820), 0.16);
  border-radius: 14px;
  color: rgba(211, 222, 239, 0.72);
  background: rgba(8, 19, 32, 0.58);
  font-weight: 750;
}

body.theme-dark .mnp-main-page.is-employee-finance .cash-report-row {
  border-color: rgba(var(--mnp-vert-8ee820), 0.1);
}

/* SOURCE: css/35-settings.css */
/* Parametres du compte et profil
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

body.theme-dark .dialog-backdrop:has(.profile-dialog) {
  padding: 18px;
  background: radial-gradient(circle at 18% 18%, rgba(var(--mnp-vert-8ee820), 0.1), transparent 34%), rgba(2, 8, 15, 0.74);
  backdrop-filter: blur(7px);
}

body.theme-dark .profile-dialog {
  width: min(860px, calc(100vw - 36px));
  max-height: min(820px, calc(100dvh - 36px));
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px 20px;
  padding: 28px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.14);
  border-radius: 20px;
  background: radial-gradient(circle at 10% 0%, rgba(var(--mnp-vert-8ee820), 0.1), transparent 34%), linear-gradient(145deg, rgba(16, 31, 47, 0.98), rgba(8, 18, 31, 0.99));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .profile-dialog h2,
body.theme-dark .profile-dialog > p,
body.theme-dark .profile-dialog > input[type="hidden"],
body.theme-dark .profile-dialog > .actions {
  grid-column: 1 / -1;
}

body.theme-dark .profile-dialog h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

body.theme-dark .profile-dialog > p {
  max-width: 620px;
  margin: -8px 0 4px;
  color: rgba(211, 222, 239, 0.78);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

body.theme-dark .profile-dialog .profile-preview {
  grid-column: 1;
  align-self: start;
  min-height: 138px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.14);
  border-radius: 18px;
  background: radial-gradient(circle at 30% 10%, rgba(var(--mnp-vert-8ee820), 0.16), transparent 42%), rgba(8, 19, 32, 0.62);
}

body.theme-dark .profile-dialog .profile-preview-avatar {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  color: #07111f;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
  box-shadow: 0 18px 34px rgba(var(--mnp-vert-8ee820), 0.14);
  font-size: 28px;
}

body.theme-dark .profile-dialog .profile-preview strong {
  color: #f8fbff;
  font-size: 20px;
}

body.theme-dark .profile-dialog .profile-preview small {
  color: rgb(var(--mnp-vert-a8ef3f));
  font-weight: 950;
}

body.theme-dark .profile-dialog .profile-preview .profile-remove-image {
  grid-column: 1 / -1;
  width: fit-content;
}

body.theme-dark .profile-dialog > .field,
body.theme-dark .profile-dialog .profile-security-row,
body.theme-dark .profile-dialog .profile-setting-row,
body.theme-dark .profile-dialog .profile-theme-row,
body.theme-dark .profile-dialog .profile-placeholder,
body.theme-dark .profile-dialog .two-factor-authenticator-box {
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.12);
  border-radius: 16px;
  background: radial-gradient(circle at 88% 10%, rgba(var(--mnp-vert-8ee820), 0.07), transparent 34%), rgba(8, 19, 32, 0.58);
}

body.theme-dark .profile-dialog > .field {
  display: grid;
  gap: 9px;
  padding: 16px;
}

body.theme-dark .profile-dialog > .field:nth-of-type(2),
body.theme-dark .profile-dialog > .field:nth-of-type(3),
body.theme-dark .profile-dialog > .field:nth-of-type(4),
body.theme-dark .profile-dialog .profile-security-row,
body.theme-dark .profile-dialog .two-factor-authenticator-box,
body.theme-dark .profile-dialog .two-factor-confirm-field,
body.theme-dark .profile-dialog .profile-setting-row,
body.theme-dark .profile-dialog .profile-theme-row,
body.theme-dark .profile-dialog .profile-placeholder {
  grid-column: 2;
}

body.theme-dark .profile-dialog label,
body.theme-dark .profile-dialog .field > span,
body.theme-dark .profile-dialog .field > label,
body.theme-dark .profile-dialog .profile-security-row strong,
body.theme-dark .profile-dialog .profile-setting-row strong,
body.theme-dark .profile-dialog .profile-theme-row strong,
body.theme-dark .profile-dialog .two-factor-authenticator-box strong {
  color: #f8fbff;
  font-weight: 950;
}

body.theme-dark .profile-dialog small,
body.theme-dark .profile-dialog .field-help,
body.theme-dark .profile-dialog .profile-security-row small,
body.theme-dark .profile-dialog .profile-setting-row small,
body.theme-dark .profile-dialog .profile-theme-row small,
body.theme-dark .profile-dialog .two-factor-authenticator-box small {
  color: rgba(211, 222, 239, 0.74);
  font-weight: 750;
}

body.theme-dark .profile-dialog input,
body.theme-dark .profile-dialog textarea {
  color: #f8fbff;
  border-color: rgba(var(--mnp-vert-8ee820), 0.14);
  background: rgba(6, 15, 28, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .profile-dialog input:focus,
body.theme-dark .profile-dialog textarea:focus {
  outline: none;
  border-color: rgba(var(--mnp-vert-8ee820), 0.46);
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-8ee820), 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .profile-dialog input[type="file"]::file-selector-button {
  min-height: 40px;
  margin-right: 12px;
  padding: 0 16px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.32);
  border-radius: 999px;
  color: #07111f;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
  font-weight: 950;
}

body.theme-dark .profile-dialog .profile-security-row,
body.theme-dark .profile-dialog .profile-setting-row,
body.theme-dark .profile-dialog .profile-theme-row {
  min-height: 78px;
  padding: 16px;
}

body.theme-dark .profile-dialog .compact-switch {
  min-width: 140px;
}

body.theme-dark .profile-dialog .compact-switch span {
  color: rgb(var(--mnp-vert-b9ff42));
}

body.theme-dark .profile-dialog .two-factor-authenticator-box {
  max-height: 220px;
  overflow: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--mnp-vert-8ee820), 0.35) transparent;
}

body.theme-dark .profile-dialog .two-factor-qr-row {
  border-color: rgba(var(--mnp-vert-8ee820), 0.12);
  background: rgba(6, 15, 28, 0.5);
}

body.theme-dark .profile-dialog .two-factor-qr-row img {
  width: 108px;
  height: 108px;
  border-radius: 14px;
}

body.theme-dark .profile-dialog .profile-placeholder {
  padding: 14px 16px;
  color: rgba(211, 222, 239, 0.68);
}

body.theme-dark .profile-dialog > .actions {
  position: sticky;
  bottom: -28px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 2px -28px -28px;
  padding: 16px 28px 20px;
  border-top: 1px solid rgba(var(--mnp-vert-8ee820), 0.12);
  background: rgba(8, 18, 31, 0.96);
  backdrop-filter: blur(10px);
}

body.theme-dark .profile-dialog > .actions .btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 950;
}

body.theme-dark .profile-dialog > .actions .btn:not(.secondary) {
  color: #07111f;
  border-color: rgba(var(--mnp-vert-8ee820), 0.32);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
  box-shadow: 0 16px 34px rgba(var(--mnp-vert-8ee820), 0.14);
}

body.theme-dark .profile-dialog > .actions .btn.secondary {
  color: #f8fbff;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 820px) {
  body.theme-dark .profile-dialog {
    grid-template-columns: 1fr;
  }

  body.theme-dark .profile-dialog .profile-preview,
  body.theme-dark .profile-dialog > .field:nth-of-type(2),
  body.theme-dark .profile-dialog > .field:nth-of-type(3),
  body.theme-dark .profile-dialog > .field:nth-of-type(4),
  body.theme-dark .profile-dialog .profile-security-row,
  body.theme-dark .profile-dialog .two-factor-authenticator-box,
  body.theme-dark .profile-dialog .two-factor-confirm-field,
  body.theme-dark .profile-dialog .profile-setting-row,
  body.theme-dark .profile-dialog .profile-theme-row,
  body.theme-dark .profile-dialog .profile-placeholder {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .cash-wizard-form {
    min-height: 520px;
  }

  .cash-wizard-actions {
    justify-content: stretch;
  }

  .cash-wizard-actions .btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .cash-start-card {
    grid-template-columns: 1fr;
  }
}

/* SOURCE: css/36-ui.css */
/* Composants : boutons, etiquettes, cartes, etats vides, indicateurs
   Aussi : OnlyOffice.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.onlyoffice-shell {
  display: grid;
  gap: 22px;
  width: min(100%, 1180px);
}

.onlyoffice-head {
  align-items: center;
}

.onlyoffice-launch {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
}

.onlyoffice-launch span,
.onlyoffice-placeholder > span {
  display: inline-grid;
  place-items: center;
}

.onlyoffice-launch svg,
.onlyoffice-placeholder svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.local-sheet-card,
.onlyoffice-editor-panel {
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 24px;
  background: radial-gradient(circle at 12% 8%, rgba(15, 118, 110, 0.08), transparent 34%), rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 46px rgba(var(--mnp-vert-082315), 0.08);
}

.local-sheet-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.local-sheet-head,
.local-sheet-title-row,
.local-sheet-bottom {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.local-sheet-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
}

.local-sheet-head p,
.local-sheet-title-row > span,
.local-sheet-bottom p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.local-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.local-sheet-actions .btn,
.local-sheet-bottom .btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border-radius: 14px;
}

.local-sheet-actions svg,
.local-sheet-bottom svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.local-sheet-title-row label {
  display: grid;
  gap: 7px;
  width: min(420px, 100%);
  color: var(--ink);
  font-weight: 950;
}

.local-sheet-title-row label span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.local-sheet-title-row input {
  min-height: 46px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.12);
  border-radius: 15px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 950;
}

.local-sheet-formula {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 18px;
  background: rgba(238, 242, 255, 0.66);
}

.local-sheet-formula span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #6366f1);
  font-weight: 950;
}

.local-sheet-formula input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.12);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-weight: 850;
}

.local-sheet-scroll {
  overflow: auto;
  max-height: 680px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.local-sheet-table {
  width: max(100%, 1180px);
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--ink);
}

.local-sheet-table th,
.local-sheet-table td {
  min-width: 120px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 9px 11px;
  vertical-align: middle;
  font-weight: 850;
}

.local-sheet-table thead th,
.local-sheet-table tbody th {
  position: sticky;
  z-index: 2;
  color: var(--muted);
  background: rgba(238, 242, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 950;
  text-align: center;
}

.local-sheet-table thead th {
  top: 0;
}

.local-sheet-table tbody th {
  left: 0;
  width: 54px;
  min-width: 54px;
}

.local-sheet-table thead th:first-child {
  left: 0;
  z-index: 4;
}

.local-sheet-table td {
  background: rgba(255, 255, 255, 0.94);
  outline: none;
  cursor: cell;
}

.local-sheet-table td:focus,
.local-sheet-table td.is-selected {
  box-shadow: inset 0 0 0 2px #6366f1;
  background: rgba(238, 242, 255, 0.86);
}

.local-sheet-table td.is-formula {
  color: #1d4ed8;
  font-weight: 950;
}

.onlyoffice-editor-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.onlyoffice-status {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(248, 250, 252, 0.74);
  font-weight: 950;
}

.onlyoffice-status.ready {
  color: rgb(var(--mnp-vert-047857));
  border-color: rgba(var(--mnp-vert-22c55e), 0.22);
  background: rgba(var(--mnp-vert-dcfce7), 0.75);
}

.onlyoffice-status.error {
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(254, 242, 242, 0.78);
}

#onlyoffice-editor {
  width: 100%;
  min-height: 760px;
}

.onlyoffice-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 30px;
  text-align: center;
}

.onlyoffice-placeholder > span {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #6366f1);
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.22);
}

.onlyoffice-placeholder strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.onlyoffice-placeholder p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.5;
}

body.theme-dark .local-sheet-card,
body.theme-dark .onlyoffice-editor-panel {
  border-color: rgba(148, 163, 184, 0.18);
  background: radial-gradient(circle at 12% 8%, rgba(99, 102, 241, 0.13), transparent 34%), rgba(30, 41, 59, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

body.theme-dark .local-sheet-title-row input,
body.theme-dark .local-sheet-formula input {
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.74);
}

body.theme-dark .onlyoffice-status {
  border-color: rgba(148, 163, 184, 0.14);
  background-color: rgba(15, 23, 42, 0.48);
}

body.theme-dark .local-sheet-scroll {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.62);
}

body.theme-dark .local-sheet-formula {
  border-color: rgba(129, 140, 248, 0.18);
  background: rgba(15, 23, 42, 0.46);
}

body.theme-dark .local-sheet-table th,
body.theme-dark .local-sheet-table td {
  border-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .local-sheet-table thead th,
body.theme-dark .local-sheet-table tbody th {
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.96);
}

body.theme-dark .local-sheet-table td {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.86);
}

body.theme-dark .local-sheet-table td:focus {
  background: rgba(49, 46, 129, 0.46);
}

body.theme-dark .local-sheet-table td.is-selected {
  box-shadow: inset 0 0 0 2px #818cf8;
  background: rgba(49, 46, 129, 0.46);
}

body.theme-dark .local-sheet-table td.is-formula {
  color: #93c5fd;
}

body.theme-dark .onlyoffice-status.ready {
  color: rgb(var(--mnp-vert-bbf7d0));
  border-color: rgba(var(--mnp-vert-22c55e), 0.24);
  background: rgba(var(--mnp-vert-14532d), 0.34);
}

body.theme-dark .onlyoffice-status.error {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(127, 29, 29, 0.28);
}

/* SOURCE: css/37-statistics.css */
/* Statistiques
   Aussi : Partage de fichiers et coffre-fort, Conversion de fichiers.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.stats-shell {
  display: grid;
  gap: 22px;
  width: min(100%, 1180px);
}

.stats-head {
  align-items: center;
}

.stats-head-badge {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.stats-hero,
.stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stats-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-mini-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-kpi {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 22px;
  background: radial-gradient(circle at 16% 12%, rgba(15, 118, 110, 0.08), transparent 34%), rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(var(--mnp-vert-082315), 0.08);
}

.stats-kpi.good {
  border-color: rgba(var(--mnp-vert-22c55e), 0.2);
}

.stats-kpi.warning {
  border-color: rgba(245, 158, 11, 0.24);
}

.stats-kpi.danger {
  border-color: rgba(239, 68, 68, 0.24);
}

.stats-kpi.info {
  border-color: rgba(99, 102, 241, 0.24);
}

.stats-kpi-icon,
.stats-panel-head > span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #6366f1);
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.22);
}

.stats-kpi-icon svg,
.stats-panel-head svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats-kpi small,
.stats-panel-head p,
.stats-bar-row span,
.stats-domain-table small,
.stats-list span {
  color: var(--muted);
}

.stats-kpi small {
  display: block;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats-kpi strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  line-height: 1;
}

.stats-kpi em {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
}

.stats-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stats-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 46px rgba(var(--mnp-vert-082315), 0.08);
}

.stats-panel-wide {
  grid-column: 1 / -1;
}

.stats-panel-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.stats-panel-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.22rem;
}

.stats-panel-head p {
  margin: 4px 0 0;
  font-weight: 800;
}

.stats-bars,
.stats-domain-table {
  display: grid;
  gap: 12px;
}

.stats-bar-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
}

.stats-bar-row strong,
.stats-domain-table strong,
.stats-list strong {
  color: var(--ink);
}

.stats-bar-row span {
  display: block;
  margin-top: 3px;
  font-weight: 800;
}

.stats-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
}

.stats-bar-track i {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #6366f1);
}

.stats-domain-table article {
  display: grid;
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr) minmax(210px, 0.35fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.08);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
}

.stats-domain-table span,
.stats-domain-table small {
  display: block;
  margin-top: 3px;
  font-weight: 850;
}

.stats-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats-list li,
.stats-empty {
  padding: 12px 14px;
  border: 1px solid rgba(var(--mnp-vert-102016), 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
}

.stats-list span {
  display: block;
  margin-top: 4px;
  font-weight: 800;
}

.stats-empty {
  color: var(--muted);
  font-weight: 850;
}

.stats-module-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stats-module-cloud span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(238, 242, 255, 0.74);
  font-weight: 950;
}

.stats-module-cloud span.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #6366f1);
}

body.theme-dark .stats-head-badge,
body.theme-dark .stats-kpi,
body.theme-dark .stats-panel {
  border-color: rgba(148, 163, 184, 0.18);
  background: radial-gradient(circle at 16% 12%, rgba(99, 102, 241, 0.12), transparent 34%), rgba(30, 41, 59, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

body.theme-dark .stats-bar-row,
body.theme-dark .stats-domain-table article,
body.theme-dark .stats-list li,
body.theme-dark .stats-empty {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.46);
}

body.theme-dark .stats-bar-track {
  background: rgba(129, 140, 248, 0.16);
}

body.theme-dark .stats-module-cloud span {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.52);
}

body.theme-dark .stats-module-cloud span.active {
  color: #ffffff;
  border-color: rgba(129, 140, 248, 0.34);
  background: linear-gradient(135deg, #0f766e, #6366f1);
}

@media (max-width: 1180px) {
  .shared-files-upload {
    grid-template-columns: 1fr;
  }

  .shared-files-upload-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shared-files-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shared-files-filter-row,
  .shared-vault-page-hero,
  .quicklinks-control-panel {
    grid-template-columns: 1fr;
  }

  .stats-hero,
  .stats-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-domain-table article {
    grid-template-columns: 1fr;
  }

  .local-sheet-head,
  .local-sheet-title-row,
  .local-sheet-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .local-sheet-actions {
    justify-content: flex-start;
  }

  .local-sheet-formula {
    grid-template-columns: 1fr;
  }

  .shared-files-search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {

  .shared-files-upload,
  .shared-files-upload-fields,
  .shared-files-filters {
    grid-template-columns: 1fr;
  }

  .shared-files-search-field {
    grid-column: auto;
  }

  .shared-files-upload-fields {
    align-items: stretch;
  }

  .shared-file-actions,
  .quicklinks-dialog-grid,
  .quicklink-actions {
    grid-template-columns: 1fr;
  }

  .quicklink-delete {
    width: 100%;
  }

  .stats-panel-grid,
  .stats-bar-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .conversion-switch,
  .stats-hero,
  .stats-mini-grid,
  .stats-mini-grid.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .conversion-editor-toolbar {
    grid-template-columns: 1fr;
  }

  .conversion-tool-group {
    width: fit-content;
  }
}

body:has(.login-page) {
  min-height: 100vh;
  background: radial-gradient(circle at 18% 76%, rgba(var(--mnp-vert-84cc16), 0.13), transparent 24%), radial-gradient(circle at 84% 18%, rgba(99, 102, 241, 0.18), transparent 28%), linear-gradient(135deg, #07111f 0%, #07101d 42%, #0a1024 100%);
  overflow-x: hidden;
}

.hygiene-fryer-card {
  gap: 14px;
}

.fryer-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compact-action {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

/* SOURCE: css/39-admin.css */
/* Administration : utilisateurs, societes, modules, domaines, architecture
   Aussi : Hub des applications, Structure des pages, Parametres du compte et profil.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.mnp-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 8px 0 0;
  border: 0;
  color: #f8fbff;
  background: transparent;
}

.mnp-profile-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #1d2c45, #101927);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-weight: 950;
  background-size: cover;
  background-position: center;
}

.mnp-profile-avatar.has-image {
  color: transparent;
}

.mnp-profile-chip span:not(.mnp-profile-avatar) {
  display: grid;
  gap: 2px;
  text-align: left;
}

.mnp-profile-chip strong {
  font-size: 14px;
}

.mnp-profile-chip small,
.mnp-profile-chip em {
  color: rgba(213, 224, 239, 0.72);
  font-style: normal;
}

body.theme-dark .mnp-site-shell .main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.theme-dark .mnp-main-page {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 86px);
  padding: 0;
  margin: 0;
}

body.theme-dark .mnp-main-page > .view-head {
  padding: 34px 40px 0 336px;
  margin: 0 0 16px;
}

body.theme-dark .mnp-main-page.is-applications-home > .view-head,
body.theme-dark .mnp-main-page.is-rights-home > .view-head {
  display: none;
}

body.theme-dark .mnp-main-page .admin-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

body.theme-dark .mnp-main-page .admin-content {
  min-width: 0;
  padding: 38px clamp(28px, 3.5vw, 52px) 54px;
}

body.theme-dark .mnp-app-sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  width: 300px;
  min-height: calc(100vh - 86px);
  max-height: calc(100vh - 86px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px 16px 22px;
  border: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(5, 16, 28, 0.96), rgba(3, 12, 22, 0.98)), #06101b;
  box-shadow: 18px 0 48px rgba(0, 0, 0, 0.24);
  scrollbar-width: none;
}

body.theme-dark .mnp-app-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.theme-dark .mnp-company-card {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  color: #f7fbff;
  background: linear-gradient(135deg, rgba(20, 39, 62, 0.86), rgba(13, 29, 48, 0.72));
  text-align: left;
}

body.theme-dark .mnp-company-card .mnp-company-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgb(var(--mnp-vert-9ff137));
  background: rgba(var(--mnp-vert-8ee820), 0.14);
  font-size: 22px;
}

body.theme-dark .mnp-company-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

body.theme-dark .mnp-company-card small,
body.theme-dark .mnp-company-card em {
  color: rgba(213, 224, 239, 0.72);
  font-style: normal;
}

body.theme-dark .mnp-app-sidebar .admin-nav {
  flex: 1 1 auto;
  min-height: 0;
  gap: 4px;
  align-content: start;
  overflow: auto;
  scrollbar-width: none;
}

body.theme-dark .mnp-app-sidebar .admin-nav::-webkit-scrollbar {
  display: none;
}

body.theme-dark .mnp-app-sidebar .tab-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(232, 240, 250, 0.9);
  background: transparent;
  font-size: 15px;
  font-weight: 800;
}

body.theme-dark .mnp-app-sidebar .tab-button.active {
  color: #f7fbff;
  background: linear-gradient(90deg, rgba(var(--mnp-vert-8ee820), 0.2), rgba(var(--mnp-vert-8ee820), 0.04));
  border-color: rgba(var(--mnp-vert-8ee820), 0.12);
  box-shadow: inset 3px 0 0 rgb(var(--mnp-vert-8ee820));
}

.mnp-nav-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: rgb(var(--mnp-vert-9ff137));
  font-size: 16px;
  line-height: 1;
  flex: 0 0 22px;
}

.mnp-nav-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.theme-dark .mnp-app-sidebar .tab-button.active .mnp-nav-icon {
  color: rgb(var(--mnp-vert-b6ff4d));
  filter: drop-shadow(0 0 8px rgba(var(--mnp-vert-a3e635), 0.35));
}

.mnp-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mnp-sidebar-section {
  display: block;
  margin: 20px 10px 8px;
  color: rgb(var(--mnp-vert-9ff137));
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.theme-dark .mnp-main-page.is-applications-home .admin-content {
  padding-top: 36px;
}

body.theme-dark .mnp-main-page.is-applications-home .applications-panel {
  max-width: 1480px;
  gap: 42px;
}

body.theme-dark .mnp-main-page.is-applications-home .admin-section-head.compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.theme-dark .mnp-main-page.is-applications-home .admin-section-head .tag {
  justify-self: start;
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.16);
  border-radius: 999px;
  color: rgb(var(--mnp-vert-9ff137));
  background: rgba(var(--mnp-vert-8ee820), 0.08);
}

body.theme-dark .mnp-main-page.is-applications-home .admin-section-head > .tag:last-child {
  justify-self: end;
  margin-top: 64px;
  color: #c9c0ff;
  border-color: rgba(157, 117, 255, 0.22);
  background: rgba(157, 117, 255, 0.12);
}

body.theme-dark .mnp-main-page.is-applications-home .admin-section-head h2 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: clamp(36px, 3.2vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

body.theme-dark .mnp-main-page.is-applications-home .admin-section-head p {
  margin: 0;
  color: rgba(213, 224, 239, 0.78);
  font-size: 17px;
}

/* SOURCE: css/40-suppliers.css */
/* Fournisseurs
   Aussi : Hub des applications, Messagerie.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

body.theme-dark .mnp-main-page.is-applications-home .applications-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 30px;
}

body.theme-dark .mnp-main-page.is-applications-home .application-card {
  min-height: 254px;
  grid-template-columns: 72px 1fr;
  gap: 14px 20px;
  padding: 34px 24px 28px;
  border-radius: 12px;
  border-color: rgba(148, 163, 184, 0.16);
  background: radial-gradient(circle at 18% 12%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 32%), linear-gradient(145deg, rgba(15, 31, 50, 0.94), rgba(6, 17, 31, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 70px rgba(0, 0, 0, 0.2);
}

body.theme-dark .mnp-main-page.is-applications-home .application-logo {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

body.theme-dark .mnp-main-page.is-applications-home .application-name {
  align-self: end;
  color: rgb(var(--mnp-vert-9ff137));
  font-size: 13px;
  font-weight: 950;
}

body.theme-dark .mnp-main-page.is-applications-home .application-card strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.05;
}

body.theme-dark .mnp-main-page.is-applications-home .application-card small {
  color: rgba(213, 224, 239, 0.82);
  font-size: 17px;
  line-height: 1.45;
}

@media (max-width: 1320px) {
  body.theme-dark .mnp-main-page.is-applications-home .applications-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 900px) {
  body.theme-dark .mnp-main-page .admin-shell {
    grid-template-columns: 1fr;
  }

  body.theme-dark .mnp-app-sidebar {
    position: static;
    width: auto;
    min-height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  body.theme-dark .mnp-main-page .admin-content {
    padding: 26px 18px 42px;
  }

  body.theme-dark .mnp-main-page.is-applications-home .applications-grid {
    grid-template-columns: 1fr;
  }

  .mnp-profile-chip span:not(.mnp-profile-avatar) {
    display: none;
  }
}

body.theme-dark .mnp-site-shell .chat-shortcut,
body.theme-dark .chat-shortcut {
  right: 22px !important;
  bottom: 22px !important;
  z-index: 80;
  width: 58px;
  height: 58px;
  color: rgb(var(--mnp-vert-9ff137));
  background: radial-gradient(circle at 34% 24%, rgba(var(--mnp-vert-8ee820), 0.22), transparent 34%), linear-gradient(145deg, rgba(20, 39, 62, 0.98), rgba(5, 16, 28, 0.98));
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.22);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 24px rgba(var(--mnp-vert-8ee820), 0.14);
}

body.theme-dark .mnp-site-shell .chat-shortcut:hover,
body.theme-dark .chat-shortcut:hover {
  transform: translateY(-3px);
  color: rgb(var(--mnp-vert-d7ff8a));
  border-color: rgba(var(--mnp-vert-8ee820), 0.42);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.48), 0 0 34px rgba(var(--mnp-vert-8ee820), 0.2);
}

body.theme-dark .mnp-site-shell .chat-shortcut svg,
body.theme-dark .chat-shortcut svg {
  width: 27px;
  height: 27px;
}

body.theme-dark .mnp-site-shell .chat-shortcut strong,
body.theme-dark .chat-shortcut strong {
  right: -5px;
  top: -6px;
  color: #06101b;
  background: rgb(var(--mnp-vert-9ff137));
  border-color: #06101b;
  box-shadow: 0 0 16px rgba(var(--mnp-vert-8ee820), 0.36);
}

body.theme-dark .mnp-main-page.is-suppliers-home > .view-head {
  display: none;
}

body.theme-dark .mnp-main-page.is-suppliers-home .admin-content {
  padding-top: 34px;
}

body.theme-dark .suppliers-page-shell {
  width: min(100%, 1500px);
  display: grid;
  gap: 14px;
}

body.theme-dark .suppliers-page-shell .suppliers-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  margin: 0 0 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.theme-dark .suppliers-head .tag:first-child {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border-radius: 999px;
  color: rgb(var(--mnp-vert-9ff137));
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.17);
  background: rgba(var(--mnp-vert-8ee820), 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .suppliers-head h2 {
  margin: 22px 0 12px;
  color: #fff;
  font-size: clamp(38px, 3.2vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

body.theme-dark .suppliers-head p {
  margin: 0;
  max-width: 860px;
  color: rgba(213, 224, 239, 0.82);
  font-size: 16px;
  line-height: 1.55;
}

body.theme-dark .suppliers-head .actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 128px;
}

body.theme-dark .suppliers-add-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 26px;
  border-radius: 10px;
  color: #fff;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.2);
  background: linear-gradient(135deg, rgba(var(--mnp-vert-8ee820), 0.2), rgba(var(--mnp-vert-538123), 0.18));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  font-weight: 900;
}

body.theme-dark .suppliers-add-btn span {
  font-size: 24px;
  line-height: 0;
  color: rgb(var(--mnp-vert-d9ff8d));
}

body.theme-dark .suppliers-head .actions > .tag {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border-radius: 999px;
  color: #f7fbff;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(9, 21, 35, 0.66);
}

body.theme-dark .suppliers-mail-card {
  display: grid;
  gap: 20px;
  padding: 28px 30px 30px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: radial-gradient(circle at 14% 0%, rgba(var(--mnp-vert-8ee820), 0.05), transparent 26%), linear-gradient(145deg, rgba(15, 31, 50, 0.88), rgba(5, 16, 29, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 70px rgba(0, 0, 0, 0.18);
}

body.theme-dark .suppliers-mail-card .stock-form-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(260px, 1fr);
  gap: 28px;
}

body.theme-dark .suppliers-mail-card .field {
  display: grid;
  gap: 10px;
}

body.theme-dark .suppliers-mail-card label {
  color: #f7fbff;
  font-size: 15px;
  font-weight: 850;
}

body.theme-dark .suppliers-mail-card select,
body.theme-dark .suppliers-mail-card input,
body.theme-dark .suppliers-mail-card textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  color: #f7fbff;
  background: rgba(7, 17, 31, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .suppliers-mail-card select,
body.theme-dark .suppliers-mail-card input {
  padding: 0 20px;
}

body.theme-dark .suppliers-mail-card textarea {
  min-height: 116px;
  padding: 16px 20px;
  resize: vertical;
}

body.theme-dark .suppliers-mail-card select:focus,
body.theme-dark .suppliers-mail-card input:focus,
body.theme-dark .suppliers-mail-card textarea:focus {
  outline: none;
  border-color: rgba(var(--mnp-vert-8ee820), 0.36);
  box-shadow: 0 0 0 3px rgba(var(--mnp-vert-8ee820), 0.1);
}

body.theme-dark .suppliers-send-btn {
  min-height: 56px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  border-radius: 10px;
  color: #f7fbff;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.22);
  background: linear-gradient(135deg, rgba(var(--mnp-vert-8ee820), 0.2), rgba(var(--mnp-vert-386426), 0.24));
  font-weight: 950;
}

body.theme-dark .suppliers-send-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  color: rgba(247, 251, 255, 0.86);
  background: linear-gradient(135deg, rgba(var(--mnp-vert-8ee820), 0.14), rgba(var(--mnp-vert-386426), 0.18));
}

body.theme-dark .suppliers-list {
  min-height: 222px;
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: radial-gradient(circle at 50% 10%, rgba(var(--mnp-vert-8ee820), 0.04), transparent 24%), linear-gradient(145deg, rgba(12, 25, 43, 0.84), rgba(5, 16, 29, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .supplier-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  border-color: rgba(148, 163, 184, 0.13);
  background: rgba(8, 19, 32, 0.68);
}

.supplier-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #06101b;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-9ff137)), rgb(var(--mnp-vert-5da51d)));
  font-size: 13px;
  font-weight: 950;
}

body.theme-dark .suppliers-empty {
  min-height: 168px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  text-align: center;
}

body.theme-dark .suppliers-empty > span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgb(var(--mnp-vert-9ff137));
  background: rgba(var(--mnp-vert-8ee820), 0.1);
  box-shadow: 0 0 0 1px rgba(var(--mnp-vert-8ee820), 0.1), 0 18px 42px rgba(0, 0, 0, 0.24);
  font-size: 35px;
}

body.theme-dark .suppliers-empty strong {
  margin-top: 8px;
  color: #fff;
  font-size: 24px;
}

body.theme-dark .suppliers-empty p {
  margin: 0;
  color: rgba(213, 224, 239, 0.78);
  font-size: 16px;
}

body.theme-dark .supplier-create-dialog {
  width: min(680px, calc(100vw - 36px));
  display: grid;
  gap: 18px;
  padding: 30px;
  border-color: rgba(var(--mnp-vert-8ee820), 0.18);
  border-radius: 18px;
  background: radial-gradient(circle at 12% 0%, rgba(var(--mnp-vert-8ee820), 0.13), transparent 32%), linear-gradient(145deg, rgba(9, 21, 34, 0.98), rgba(5, 16, 29, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

body.theme-dark .dialog-backdrop:has(.supplier-create-dialog) {
  padding: 24px;
  background: radial-gradient(circle at 48% 42%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 30%), rgba(2, 8, 15, 0.74);
  backdrop-filter: blur(8px);
}

body.theme-dark .supplier-create-dialog .dialog-title-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 48px;
  align-items: start;
  gap: 16px;
  margin-bottom: 4px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(var(--mnp-vert-8ee820), 0.12);
}

body.theme-dark .supplier-dialog-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.18);
  border-radius: 15px;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: radial-gradient(circle at 30% 20%, rgba(var(--mnp-vert-8ee820), 0.2), transparent 58%), rgba(var(--mnp-vert-8ee820), 0.09);
}

body.theme-dark .supplier-dialog-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.theme-dark .supplier-create-dialog h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.04;
}

body.theme-dark .supplier-create-dialog .dialog-title-row p {
  margin: 8px 0 0;
  max-width: 430px;
  color: rgba(213, 224, 239, 0.76);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}

body.theme-dark .supplier-create-dialog .icon-button {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  justify-self: end;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  color: transparent;
  font-size: 0;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .supplier-create-dialog .icon-button::before {
  content: "x";
  color: #f8fbff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-1px);
}

body.theme-dark .supplier-create-dialog .icon-button:hover {
  border-color: rgba(var(--mnp-vert-8ee820), 0.34);
  background: rgba(var(--mnp-vert-8ee820), 0.11);
}

body.theme-dark .supplier-create-dialog .field {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.12);
  border-radius: 15px;
  background: radial-gradient(circle at 94% 8%, rgba(var(--mnp-vert-8ee820), 0.06), transparent 38%), rgba(6, 15, 28, 0.58);
}

body.theme-dark .supplier-create-dialog label {
  color: #f8fbff;
  font-size: 14px;
  font-weight: 950;
}

body.theme-dark .supplier-create-dialog input,
body.theme-dark .supplier-create-dialog textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 13px;
  color: #f8fbff;
  background: rgba(6, 15, 28, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .supplier-create-dialog input {
  min-height: 54px;
  padding: 0 18px;
}

body.theme-dark .supplier-create-dialog textarea {
  min-height: 118px;
  padding: 16px 18px;
  resize: vertical;
}

body.theme-dark .supplier-create-dialog input:focus,
body.theme-dark .supplier-create-dialog textarea:focus {
  outline: none;
  border-color: rgba(var(--mnp-vert-8ee820), 0.46);
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-8ee820), 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .supplier-create-dialog .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

body.theme-dark .supplier-create-dialog .actions .btn {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 950;
}

body.theme-dark .supplier-create-dialog .actions .btn:not(.secondary) {
  color: #07111f;
  border-color: rgba(var(--mnp-vert-8ee820), 0.32);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
  box-shadow: 0 16px 34px rgba(var(--mnp-vert-8ee820), 0.14);
}

body.theme-dark .supplier-create-dialog .actions .btn.secondary {
  color: #f8fbff;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  body.theme-dark .suppliers-page-shell .suppliers-head,
  body.theme-dark .suppliers-mail-card .stock-form-grid {
    grid-template-columns: 1fr;
  }

  body.theme-dark .suppliers-head .actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  body.theme-dark .supplier-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  body.theme-dark .supplier-row .actions {
    grid-column: 1 / -1;
  }
}

body.theme-dark .mnp-main-page.is-courses-home > .view-head {
  display: none;
}

body.theme-dark .mnp-main-page.is-courses-home .admin-content {
  padding: 42px clamp(28px, 4vw, 58px) 76px;
}

body.theme-dark .mnp-courses-page {
  width: min(100%, 1500px);
  display: grid;
  gap: 22px;
  color: #f8fbff;
}

body.theme-dark .mnp-courses-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

body.theme-dark .mnp-page-pill {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.18);
  border-radius: 999px;
  color: rgb(var(--mnp-vert-b9ff42));
  background: rgba(var(--mnp-vert-8ee820), 0.11);
  font-size: 13px;
  font-weight: 900;
}

/* SOURCE: css/42-stock.css */
/* Module stock
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

body.theme-dark .mnp-stock-page {
  width: min(100%, 1500px);
  display: grid;
  gap: 22px;
  color: #f8fbff;
}

body.theme-dark .mnp-stock-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

body.theme-dark .mnp-stock-head h2 {
  margin: 22px 0 8px;
  color: #fff;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

body.theme-dark .mnp-stock-head p {
  max-width: 820px;
  margin: 0;
  color: rgba(213, 224, 239, 0.78);
  font-size: 17px;
  line-height: 1.55;
}

body.theme-dark .mnp-stock-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
}

body.theme-dark .mnp-stock-actions .btn {
  min-height: 52px;
  border-radius: 999px;
  font-weight: 950;
}

body.theme-dark .mnp-stock-actions .btn:not(.secondary) {
  color: #07111f;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.28);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
  box-shadow: 0 18px 44px rgba(var(--mnp-vert-8ee820), 0.14);
}

body.theme-dark .mnp-stock-actions .btn.secondary {
  color: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(13, 27, 46, 0.72);
}

body.theme-dark .mnp-stock-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

body.theme-dark .mnp-stock-kpi,
body.theme-dark .mnp-stock-workspace,
body.theme-dark .mnp-stock-page .global-inventory-panel,
body.theme-dark .mnp-stock-page .stock-list-panel,
body.theme-dark .mnp-stock-page .storage-space-detail,
body.theme-dark .mnp-stock-page .stock-alert-panel {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 26px;
  background: radial-gradient(circle at 14% 0%, rgba(var(--mnp-vert-8ee820), 0.06), transparent 28%), linear-gradient(145deg, rgba(15, 31, 50, 0.86), rgba(5, 16, 29, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 26px 76px rgba(0, 0, 0, 0.18);
}

body.theme-dark .mnp-stock-kpi {
  min-height: 132px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
}

body.theme-dark .mnp-stock-kpi > span,
body.theme-dark .mnp-stock-page .stock-alert-row::before {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: rgb(var(--mnp-vert-b9ff42));
  background: linear-gradient(135deg, rgba(var(--mnp-vert-8ee820), 0.18), rgba(var(--mnp-vert-8ee820), 0.08));
  box-shadow: 0 0 0 1px rgba(var(--mnp-vert-8ee820), 0.12), 0 16px 42px rgba(var(--mnp-vert-8ee820), 0.08);
  font-size: 13px;
  font-weight: 950;
}

body.theme-dark .mnp-stock-kpi small {
  display: block;
  color: rgb(var(--mnp-vert-b9ff42));
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

body.theme-dark .mnp-stock-kpi strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 35px;
  line-height: 1;
}

body.theme-dark .mnp-stock-kpi em {
  display: block;
  margin-top: 10px;
  color: rgba(213, 224, 239, 0.75);
  font-style: normal;
  font-weight: 800;
}

body.theme-dark .mnp-stock-page .stock-alert-panel {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px;
  border-color: rgba(255, 176, 70, 0.2);
  background: radial-gradient(circle at 14% 0%, rgba(255, 176, 70, 0.1), transparent 28%), linear-gradient(145deg, rgba(35, 29, 22, 0.86), rgba(5, 16, 29, 0.92));
}

body.theme-dark .mnp-stock-page .stock-alert-head h2 {
  color: #fff;
}

body.theme-dark .mnp-stock-page .stock-alert-head p,
body.theme-dark .mnp-stock-page .stock-alert-row p {
  color: rgba(213, 224, 239, 0.72);
}

body.theme-dark .mnp-stock-page .stock-alert-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 176, 70, 0.14);
  border-radius: 22px;
  background: rgba(6, 15, 28, 0.58);
}

body.theme-dark .mnp-stock-page .stock-alert-row::before {
  content: "AL";
  color: #ffd078;
  background: linear-gradient(135deg, rgba(255, 176, 70, 0.18), rgba(255, 176, 70, 0.08));
}

body.theme-dark .mnp-stock-page .stock-alert-row strong {
  color: #fff;
}

body.theme-dark .mnp-stock-workspace {
  display: grid;
  gap: 22px;
  padding: 22px;
}

body.theme-dark .mnp-stock-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background: rgba(6, 15, 28, 0.44);
}

body.theme-dark .mnp-stock-tabs .tab-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(247, 251, 255, 0.86);
  border: 1px solid transparent;
  background: transparent;
  font-weight: 900;
}

body.theme-dark .mnp-stock-tabs .tab-button:hover {
  border-color: rgba(var(--mnp-vert-8ee820), 0.22);
  background: rgba(var(--mnp-vert-8ee820), 0.08);
}

body.theme-dark .mnp-stock-tabs .tab-button.active {
  color: rgb(var(--mnp-vert-b9ff42));
  border-color: rgba(var(--mnp-vert-8ee820), 0.22);
  background: rgba(var(--mnp-vert-8ee820), 0.13);
  box-shadow: inset 0 -1px 0 rgba(var(--mnp-vert-8ee820), 0.24);
}

body.theme-dark .mnp-stock-tabs .storage-add-tab {
  color: #07111f;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
}

body.theme-dark .mnp-stock-page .stock-list-panel,
body.theme-dark .mnp-stock-page .global-inventory-panel,
body.theme-dark .mnp-stock-page .storage-space-detail {
  display: grid;
  gap: 18px;
  padding: 26px;
}

body.theme-dark .mnp-stock-page .stock-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

body.theme-dark .mnp-stock-page .stock-list-head h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 28px;
}

body.theme-dark .mnp-stock-page .stock-list-head .tag {
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.16);
  color: rgb(var(--mnp-vert-b9ff42));
  background: rgba(var(--mnp-vert-8ee820), 0.1);
}

body.theme-dark .mnp-stock-page .stock-list-head .btn {
  min-height: 46px;
  border-radius: 999px;
  color: #07111f;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
}

body.theme-dark .mnp-stock-page .stock-list,
body.theme-dark .mnp-stock-page .global-inventory-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

body.theme-dark .mnp-stock-page .stock-row,
body.theme-dark .mnp-stock-page .global-inventory-card {
  min-height: 258px;
  display: grid;
  grid-template-rows: auto 116px auto auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: radial-gradient(circle at 100% 0%, rgba(var(--mnp-vert-8ee820), 0.06), transparent 30%), rgba(8, 19, 32, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .mnp-stock-page .stock-row {
  position: relative;
}

body.theme-dark .mnp-stock-page .stock-row.is-low {
  border-color: rgba(255, 93, 93, 0.26);
  background: radial-gradient(circle at 100% 0%, rgba(255, 93, 93, 0.08), transparent 34%), rgba(8, 19, 32, 0.72);
}

body.theme-dark .mnp-stock-page .stock-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

body.theme-dark .mnp-stock-page .stock-count,
body.theme-dark .mnp-stock-page .stock-threshold {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(247, 251, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

body.theme-dark .mnp-stock-page .stock-row.is-low .stock-threshold {
  color: #ffd3d3;
  background: rgba(255, 93, 93, 0.14);
}

body.theme-dark .mnp-stock-page .stock-image,
body.theme-dark .mnp-stock-page .global-inventory-visual {
  min-height: 116px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  color: rgba(213, 224, 239, 0.58);
  background: radial-gradient(circle at 72% 22%, rgba(var(--mnp-vert-8ee820), 0.12), transparent 34%), rgba(6, 15, 28, 0.68);
  background-size: cover;
  background-position: center;
  font-weight: 850;
}

body.theme-dark .mnp-stock-page .stock-image.has-image {
  color: transparent;
}

body.theme-dark .mnp-stock-page .global-inventory-visual strong {
  color: #fff;
  font-size: 42px;
}

body.theme-dark .mnp-stock-page .global-inventory-visual span {
  color: rgba(213, 224, 239, 0.68);
}

body.theme-dark .mnp-stock-page .stock-main strong,
body.theme-dark .mnp-stock-page .global-inventory-card .stock-main strong {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
}

body.theme-dark .mnp-stock-page .stock-main p,
body.theme-dark .mnp-stock-page .global-inventory-card .stock-main p {
  margin: 6px 0 0;
  color: rgba(213, 224, 239, 0.72);
  font-weight: 800;
}

body.theme-dark .mnp-stock-page .stock-row .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.theme-dark .mnp-stock-page .stock-row .actions .btn {
  min-height: 38px;
  border-radius: 999px;
  color: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
  box-shadow: none;
}

body.theme-dark .mnp-stock-page .storage-space-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.theme-dark .mnp-stock-page .storage-space-metadata article,
body.theme-dark .mnp-stock-page .global-inventory-domain-list article {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(6, 15, 28, 0.62);
}

body.theme-dark .mnp-stock-page .storage-space-metadata span,
body.theme-dark .mnp-stock-page .global-inventory-domain-list p {
  color: rgba(213, 224, 239, 0.68);
}

body.theme-dark .mnp-stock-page .storage-space-metadata strong,
body.theme-dark .mnp-stock-page .global-inventory-domain-list strong,
body.theme-dark .mnp-stock-page .global-inventory-domain-list span {
  color: #fff;
}

body.theme-dark .mnp-stock-page .empty {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  color: rgba(213, 224, 239, 0.7);
  background: rgba(13, 27, 46, 0.48);
  font-weight: 800;
}

body.theme-dark .dialog-backdrop:has(.stock-create-dialog) {
  z-index: 82;
  padding: 24px;
  background: radial-gradient(circle at 48% 42%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 28%), rgba(2, 8, 15, 0.72);
  backdrop-filter: blur(12px);
}

body.theme-dark .stock-create-dialog {
  width: min(860px, calc(100vw - 36px));
  max-height: min(840px, calc(100dvh - 44px));
  display: grid;
  gap: 22px;
  padding: 34px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  color: #f8fbff;
  background: radial-gradient(circle at 12% 0%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 30%), linear-gradient(145deg, rgba(19, 30, 58, 0.98), rgba(8, 16, 34, 0.98));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
}

body.theme-dark .stock-create-dialog::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.theme-dark .stock-edit-dialog {
  width: min(560px, calc(100vw - 36px));
  gap: 16px;
  background: radial-gradient(circle at 14% 0%, rgba(var(--mnp-vert-8ee820), 0.1), transparent 30%), radial-gradient(circle at 100% 36%, rgba(var(--mnp-vert-8ee820), 0.05), transparent 24%), linear-gradient(145deg, rgba(15, 29, 47, 0.98), rgba(7, 16, 29, 0.99)) !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.18);
}

body.theme-dark .stock-edit-dialog > h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}

body.theme-dark .stock-edit-dialog > p {
  margin: -4px 0 8px;
  color: #aebbd1;
  font-size: 16px;
  font-weight: 750;
}

body.theme-dark .stock-edit-dialog .stock-edit-image {
  min-height: 178px;
  border-radius: 22px;
  color: rgba(213, 224, 239, 0.82);
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.12);
  background: radial-gradient(circle at 50% 28%, rgba(var(--mnp-vert-8ee820), 0.09), transparent 38%), linear-gradient(145deg, rgba(8, 18, 32, 0.9), rgba(12, 24, 43, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .stock-edit-dialog .stock-edit-image.has-image {
  border-color: rgba(var(--mnp-vert-8ee820), 0.24);
}

body.theme-dark .stock-edit-dialog input[type="file"]::file-selector-button {
  min-height: 38px;
  margin: 0 12px 0 0;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: #07111f;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-7cca2c)));
  font-weight: 950;
}

body.theme-dark .stock-edit-dialog .empty-inline {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #aebbd1;
  border: 1px dashed rgba(148, 163, 184, 0.18);
  background: rgba(6, 15, 28, 0.52);
  font-weight: 850;
}

body.theme-dark .stock-edit-dialog .stock-dialog-actions .btn.danger {
  color: #fff;
  border-color: rgba(239, 83, 80, 0.42);
  background: linear-gradient(135deg, #ef5350, #b93632);
  box-shadow: 0 18px 44px rgba(239, 83, 80, 0.16);
}

body.theme-dark .storage-create-dialog {
  width: min(760px, calc(100vw - 36px));
}

body.theme-dark .stock-create-dialog .dialog-close {
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  color: #f8fbff;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .stock-create-dialog .dialog-close:hover {
  border-color: rgba(var(--mnp-vert-8ee820), 0.34);
  background: rgba(var(--mnp-vert-8ee820), 0.11);
}

body.theme-dark .stock-dialog-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-right: 58px;
}

body.theme-dark .stock-dialog-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: rgb(var(--mnp-vert-b9ff42));
  background: linear-gradient(135deg, rgba(var(--mnp-vert-8ee820), 0.18), rgba(var(--mnp-vert-8ee820), 0.08));
  box-shadow: 0 0 0 1px rgba(var(--mnp-vert-8ee820), 0.14), 0 18px 48px rgba(var(--mnp-vert-8ee820), 0.08);
  font-size: 13px;
  font-weight: 950;
}

body.theme-dark .stock-dialog-head h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
}

body.theme-dark .stock-dialog-head p {
  margin: 7px 0 0;
  color: rgba(213, 224, 239, 0.72);
  font-size: 15px;
}

body.theme-dark .stock-create-dialog .stock-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(6, 15, 28, 0.44);
}

body.theme-dark .storage-create-dialog .stock-create-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.theme-dark .storage-create-dialog .stock-create-grid .field:last-child {
  grid-column: 1 / -1;
}

body.theme-dark .stock-create-dialog .field {
  gap: 9px;
}

body.theme-dark .stock-create-dialog .field label {
  color: #f8fbff;
  font-size: 14px;
  font-weight: 900;
}

body.theme-dark .stock-create-dialog input,
body.theme-dark .stock-create-dialog select {
  width: 100%;
  height: 56px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 0 18px;
  color: #f8fbff;
  background: rgba(6, 15, 28, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .stock-create-dialog input[type="file"] {
  height: auto;
  min-height: 56px;
  padding: 9px 12px;
}

body.theme-dark .stock-create-dialog input[type="file"]::file-selector-button {
  min-height: 38px;
  margin: 0 12px 0 0;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #07111f;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
  font-weight: 950;
  cursor: pointer;
}

body.theme-dark .stock-create-dialog input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, rgb(var(--mnp-vert-caff57)), rgb(var(--mnp-vert-82cf2d)));
}

body.theme-dark .stock-create-dialog select {
  cursor: pointer;
}

body.theme-dark .stock-create-dialog input:focus,
body.theme-dark .stock-create-dialog select:focus {
  outline: none;
  border-color: rgba(var(--mnp-vert-8ee820), 0.46);
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-8ee820), 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .stock-create-dialog .stock-domain-field {
  grid-column: 1 / -1;
}

body.theme-dark .stock-create-dialog .stock-domain-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.theme-dark .stock-create-dialog .stock-domain-pill span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: rgba(247, 251, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

body.theme-dark .stock-create-dialog .stock-domain-pill input:checked + span {
  color: #07111f;
  border-color: rgba(var(--mnp-vert-8ee820), 0.36);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
}

body.theme-dark .stock-create-dialog .stock-number-stepper {
  height: 56px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(6, 15, 28, 0.72);
}

body.theme-dark .stock-create-dialog .stock-number-stepper input {
  height: 54px;
  border: 0;
  border-radius: 0;
  text-align: center;
  background: transparent;
}

body.theme-dark .stock-create-dialog .stock-step-button {
  color: rgb(var(--mnp-vert-b9ff42));
  background: rgba(var(--mnp-vert-8ee820), 0.08);
  font-size: 20px;
  font-weight: 950;
}

body.theme-dark .stock-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

body.theme-dark .stock-dialog-actions .btn {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 950;
}

body.theme-dark .stock-dialog-actions .btn:not(.secondary) {
  color: #07111f;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.28);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
  box-shadow: 0 18px 44px rgba(var(--mnp-vert-8ee820), 0.16);
}

body.theme-dark .stock-dialog-actions .btn.secondary {
  color: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1180px) {
  body.theme-dark .mnp-stock-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.theme-dark .mnp-stock-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.theme-dark .mnp-stock-kpis,
  body.theme-dark .mnp-stock-page .storage-space-metadata,
  body.theme-dark .mnp-stock-page .stock-alert-row {
    grid-template-columns: 1fr;
  }

  body.theme-dark .mnp-stock-actions,
  body.theme-dark .mnp-stock-page .stock-list-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.theme-dark .stock-create-dialog {
    padding: 26px;
  }

  body.theme-dark .stock-dialog-head,
  body.theme-dark .stock-create-dialog .stock-create-grid,
  body.theme-dark .storage-create-dialog .stock-create-grid {
    grid-template-columns: 1fr;
  }

  body.theme-dark .stock-dialog-head {
    padding-right: 54px;
  }

  body.theme-dark .stock-dialog-actions {
    flex-direction: column;
  }
}

body.theme-dark .mnp-main-page.is-logs-home > .view-head {
  display: none;
}

body.theme-dark .mnp-main-page.is-logs-home .admin-content {
  padding: 42px clamp(28px, 4vw, 58px) 76px;
}

/* SOURCE: css/43-logs.css */
/* Journaux et archives
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

body.theme-dark .mnp-logs-page {
  width: min(100%, 1500px);
  display: grid;
  gap: 22px;
  color: #f8fbff;
}

body.theme-dark .mnp-logs-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

body.theme-dark .mnp-logs-head h2 {
  margin: 22px 0 8px;
  color: #fff;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

body.theme-dark .mnp-logs-head p {
  max-width: 820px;
  margin: 0;
  color: rgba(213, 224, 239, 0.78);
  font-size: 17px;
  line-height: 1.55;
}

body.theme-dark .mnp-logs-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 4px;
}

body.theme-dark .mnp-logs-actions .btn {
  min-height: 50px;
  border-radius: 999px;
  font-weight: 950;
}

body.theme-dark .mnp-logs-actions .btn:not(.secondary) {
  color: #07111f;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.28);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
  box-shadow: 0 18px 44px rgba(var(--mnp-vert-8ee820), 0.14);
}

body.theme-dark .mnp-logs-actions .btn.secondary {
  color: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(13, 27, 46, 0.72);
}

body.theme-dark .mnp-logs-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

body.theme-dark .mnp-logs-kpi,
body.theme-dark .mnp-logs-page .log-filters,
body.theme-dark .mnp-logs-page .log-row.log-row-readable {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 26px;
  background: radial-gradient(circle at 14% 0%, rgba(var(--mnp-vert-8ee820), 0.06), transparent 28%), linear-gradient(145deg, rgba(15, 31, 50, 0.86), rgba(5, 16, 29, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 26px 76px rgba(0, 0, 0, 0.18);
}

body.theme-dark .mnp-logs-page.is-archived .mnp-logs-kpi,
body.theme-dark .mnp-logs-page.is-archived .log-row.log-row-readable {
  background: radial-gradient(circle at 14% 0%, rgba(129, 140, 248, 0.08), transparent 28%), linear-gradient(145deg, rgba(15, 31, 50, 0.86), rgba(5, 16, 29, 0.92));
}

body.theme-dark .mnp-logs-kpi {
  min-height: 132px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
}

body.theme-dark .mnp-logs-kpi > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: rgb(var(--mnp-vert-b9ff42));
  background: linear-gradient(135deg, rgba(var(--mnp-vert-8ee820), 0.18), rgba(var(--mnp-vert-8ee820), 0.08));
  box-shadow: 0 0 0 1px rgba(var(--mnp-vert-8ee820), 0.12), 0 16px 42px rgba(var(--mnp-vert-8ee820), 0.08);
  font-size: 13px;
  font-weight: 950;
}

body.theme-dark .mnp-logs-kpi small {
  display: block;
  color: rgb(var(--mnp-vert-b9ff42));
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

body.theme-dark .mnp-logs-kpi strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 35px;
  line-height: 1;
}

body.theme-dark .mnp-logs-kpi em {
  display: block;
  margin-top: 10px;
  color: rgba(213, 224, 239, 0.75);
  font-style: normal;
  font-weight: 800;
}

body.theme-dark .mnp-logs-page .log-filters.archive-log-filters,
body.theme-dark .mnp-logs-page .log-filters.manager-log-filters,
body.theme-dark .mnp-logs-page .log-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr)) auto;
  gap: 14px;
  padding: 18px;
}

body.theme-dark .mnp-logs-page .log-filters label {
  display: grid;
  gap: 8px;
}

body.theme-dark .mnp-logs-page .log-filters span {
  color: rgb(var(--mnp-vert-b9ff42));
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.theme-dark .mnp-logs-page .log-filters select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 0 18px;
  color: #f8fbff;
  background: rgba(6, 15, 28, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .mnp-logs-page .log-filters select:focus {
  outline: none;
  border-color: rgba(var(--mnp-vert-8ee820), 0.46);
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-8ee820), 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .mnp-logs-page .log-filters .btn {
  min-height: 52px;
  align-self: end;
  border-radius: 999px;
  color: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 950;
}

body.theme-dark .mnp-logs-list {
  display: grid;
  gap: 14px;
}

body.theme-dark .mnp-logs-page .log-row.log-row-readable {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 18px;
}

body.theme-dark .mnp-logs-page .log-readable-side {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-content: center;
  align-items: center;
  justify-items: center;
  padding: 0 20px 0 0;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
}

body.theme-dark .mnp-logs-page .log-select {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(6, 15, 28, 0.66);
}

body.theme-dark .mnp-logs-page .log-select input {
  width: 18px;
  height: 18px;
  accent-color: rgb(var(--mnp-vert-9de23d));
}

body.theme-dark .mnp-logs-page .log-type,
body.theme-dark .mnp-logs-page .log-archive-marker {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: rgb(var(--mnp-vert-b9ff42));
  background: rgba(var(--mnp-vert-8ee820), 0.11);
  font-weight: 950;
}

body.theme-dark .mnp-logs-page .log-archive-marker {
  grid-column: 2;
  color: #cbd5ff;
  background: rgba(129, 140, 248, 0.14);
}

body.theme-dark .mnp-logs-page .log-readable-main strong {
  color: #fff;
  font-size: 23px;
  line-height: 1.2;
  white-space: normal;
}

body.theme-dark .mnp-logs-page .log-readable-main p {
  margin: 8px 0 0;
  color: rgba(213, 224, 239, 0.74);
  font-size: 16px;
  line-height: 1.5;
  -webkit-line-clamp: 3;
}

body.theme-dark .mnp-logs-page .log-readable-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

body.theme-dark .mnp-logs-page .log-readable-meta span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(213, 224, 239, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(6, 15, 28, 0.54);
  font-weight: 850;
}

body.theme-dark .mnp-logs-page .log-readable-meta b {
  color: #fff;
}

body.theme-dark .mnp-logs-page .empty {
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  color: rgba(213, 224, 239, 0.7);
  background: rgba(13, 27, 46, 0.48);
  font-weight: 850;
}

@media (max-width: 1180px) {
  body.theme-dark .mnp-logs-head,
  body.theme-dark .mnp-logs-page .log-filters.archive-log-filters,
  body.theme-dark .mnp-logs-page .log-filters.manager-log-filters,
  body.theme-dark .mnp-logs-page .log-filters {
    grid-template-columns: 1fr;
  }

  body.theme-dark .mnp-logs-actions {
    justify-content: flex-start;
  }

  body.theme-dark .mnp-logs-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.theme-dark .mnp-logs-kpis,
  body.theme-dark .mnp-logs-page .log-row.log-row-readable {
    grid-template-columns: 1fr;
  }

  body.theme-dark .mnp-logs-page .log-readable-side {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }
}

body.theme-dark .mnp-main-page.is-dashboard-home > .view-head {
  margin-left: 300px;
  padding: 38px clamp(28px, 4vw, 56px) 22px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.theme-dark .mnp-main-page.is-dashboard-home .admin-shell {
  margin-top: calc(-1 * clamp(146px, 12vw, 182px));
  min-height: calc(100vh - 86px);
  grid-template-columns: 300px minmax(0, 1fr);
}

body.theme-dark .mnp-main-page.is-dashboard-home .mnp-app-sidebar {
  top: 86px;
  min-height: calc(100vh - 86px);
  max-height: calc(100vh - 86px);
}

body.theme-dark .mnp-main-page.is-dashboard-home > .view-head h1 {
  color: #f8fbff;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1;
}

body.theme-dark .mnp-main-page.is-dashboard-home > .view-head p {
  color: #aebbd1;
  font-size: 17px;
}

body.theme-dark .mnp-main-page.is-dashboard-home > .view-head .btn.secondary {
  min-height: 54px;
  padding: 0 26px;
  border-radius: 18px;
  color: #f8fbff;
  background: rgba(8, 18, 31, 0.7);
  border-color: rgba(169, 183, 205, 0.22);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

body.theme-dark .mnp-main-page.is-dashboard-home .admin-content {
  padding: clamp(146px, 12vw, 182px) clamp(28px, 4vw, 56px) 70px;
}

/* SOURCE: css/44-manager.css */
/* Espace gerant : tableau de bord, droits
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

body.theme-dark .mnp-manager-dashboard {
  gap: 22px;
}

body.theme-dark .mnp-dashboard-head {
  min-height: 0;
  padding: 28px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  border-radius: 26px 26px 0 0;
  background: radial-gradient(circle at 84% 18%, rgba(var(--mnp-vert-9cf13d), 0.08), transparent 28%), linear-gradient(145deg, rgba(12, 27, 45, 0.72), rgba(8, 18, 31, 0.62));
  border: 1px solid rgba(169, 183, 205, 0.16);
  border-bottom: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .mnp-dashboard-head h2 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: #f8fbff;
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.1;
}

body.theme-dark .mnp-dashboard-head h2::before,
body.theme-dark .mnp-manager-dashboard .dashboard-panel-head h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 3px;
  height: 28px;
  border-radius: 999px;
  background: rgb(var(--mnp-vert-9cf13d));
  box-shadow: 0 0 18px rgba(var(--mnp-vert-9cf13d), 0.42);
}

body.theme-dark .mnp-dashboard-head p {
  margin: 10px 0 0;
  color: #aebbd1;
  font-size: 16px;
  font-weight: 650;
}

body.theme-dark .mnp-dashboard-head .tag {
  min-height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: rgb(var(--mnp-vert-9cf13d));
  background: rgba(8, 18, 31, 0.72);
  border: 1px solid rgba(var(--mnp-vert-9cf13d), 0.12);
}

body.theme-dark .mnp-dashboard-kpi,
body.theme-dark .mnp-manager-dashboard .dashboard-action-card,
body.theme-dark .mnp-manager-dashboard .dashboard-panel {
  border-radius: 20px;
  background: radial-gradient(circle at 82% 18%, rgba(var(--mnp-vert-9cf13d), 0.07), transparent 34%), linear-gradient(145deg, rgba(18, 35, 56, 0.86), rgba(10, 22, 38, 0.84));
  border: 1px solid rgba(169, 183, 205, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 62px rgba(0, 0, 0, 0.26);
}

body.theme-dark .mnp-dashboard-kpi {
  min-height: 108px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

body.theme-dark .mnp-dashboard-icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  color: rgb(var(--mnp-vert-9cf13d));
  background: radial-gradient(circle at 62% 20%, rgba(var(--mnp-vert-9cf13d), 0.18), transparent 56%), rgba(var(--mnp-vert-22432d), 0.7);
  border: 1px solid rgba(var(--mnp-vert-9cf13d), 0.12);
  box-shadow: 0 0 24px rgba(var(--mnp-vert-9cf13d), 0.1);
}

body.theme-dark .mnp-dashboard-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.theme-dark .mnp-dashboard-icon.small {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

body.theme-dark .mnp-dashboard-icon.small svg {
  width: 25px;
  height: 25px;
}

body.theme-dark .mnp-dashboard-kpi small,
body.theme-dark .mnp-manager-dashboard .dashboard-action-card span:not(.mnp-dashboard-icon),
body.theme-dark .mnp-manager-dashboard .dashboard-panel-head span,
body.theme-dark .mnp-manager-dashboard .dashboard-log-list small {
  color: #aebbd1;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

body.theme-dark .mnp-dashboard-kpi strong,
body.theme-dark .mnp-manager-dashboard .dashboard-action-card strong {
  display: block;
  margin-top: 8px;
  color: #f8fbff;
  font-size: 34px;
  line-height: 1;
}

body.theme-dark .mnp-dashboard-kpi em {
  display: block;
  margin-top: 8px;
  color: #aebbd1;
  font-style: normal;
  font-weight: 700;
}

body.theme-dark .mnp-manager-dashboard .dashboard-action-card {
  min-height: 148px;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 14px;
  padding: 18px;
}

body.theme-dark .mnp-manager-dashboard .dashboard-action-card.warning .mnp-dashboard-icon {
  color: #f6b44b;
  background: rgba(121, 78, 17, 0.35);
}

body.theme-dark .mnp-manager-dashboard .dashboard-action-card.danger .mnp-dashboard-icon {
  color: #63e4ef;
  background: rgba(14, 116, 144, 0.27);
}

body.theme-dark .mnp-manager-dashboard .dashboard-action-card.info .mnp-dashboard-icon {
  color: #9b7cff;
  background: rgba(78, 61, 155, 0.32);
}

body.theme-dark .mnp-manager-dashboard .dashboard-action-card small {
  display: block;
  margin-top: 14px;
  color: #b8c4d8;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 760;
}

body.theme-dark .mnp-manager-dashboard .dashboard-panel {
  padding: 22px;
  border-radius: 22px;
}

body.theme-dark .mnp-manager-dashboard .dashboard-panel-head {
  margin-bottom: 18px;
}

body.theme-dark .mnp-manager-dashboard .dashboard-panel-head h3 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: #f8fbff;
  font-size: 26px;
}

body.theme-dark .mnp-manager-dashboard .dashboard-panel-head button {
  min-height: 44px;
  padding: 0 22px;
  color: rgb(var(--mnp-vert-9cf13d));
  background: rgba(var(--mnp-vert-9cf13d), 0.08);
  border: 1px solid rgba(var(--mnp-vert-9cf13d), 0.22);
  border-radius: 999px;
}

body.theme-dark .mnp-manager-dashboard .dashboard-priority-list,
body.theme-dark .mnp-manager-dashboard .dashboard-log-list {
  gap: 14px;
}

body.theme-dark .mnp-manager-dashboard .dashboard-priority-list button,
body.theme-dark .mnp-manager-dashboard .dashboard-priority-list .dashboard-ok,
body.theme-dark .mnp-manager-dashboard .dashboard-log-list li {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(18, 35, 56, 0.72);
  border: 1px solid rgba(169, 183, 205, 0.13);
}

body.theme-dark .mnp-manager-dashboard .dashboard-priority-list button:hover {
  background: rgba(var(--mnp-vert-9cf13d), 0.08);
  border-color: rgba(var(--mnp-vert-9cf13d), 0.22);
}

body.theme-dark .mnp-manager-dashboard .dashboard-priority-list strong,
body.theme-dark .mnp-manager-dashboard .dashboard-log-list strong {
  color: #f8fbff;
  font-size: 17px;
}

body.theme-dark .mnp-manager-dashboard .dashboard-priority-list span:not(.mnp-dashboard-icon),
body.theme-dark .mnp-manager-dashboard .dashboard-log-list span:not(.mnp-dashboard-icon) {
  color: #b8c4d8;
  font-size: 15px;
  font-weight: 760;
}

body.theme-dark .mnp-manager-dashboard .dashboard-log-list small {
  display: block;
  margin-top: 8px;
  text-transform: none;
}

@media (max-width: 980px) {
  body.theme-dark .mnp-main-page.is-dashboard-home > .view-head {
    margin-left: 0;
    padding: 28px 18px 18px;
  }

  body.theme-dark .mnp-main-page.is-dashboard-home .admin-shell {
    margin-top: 0;
  }

  body.theme-dark .mnp-main-page.is-dashboard-home .admin-content {
    padding: 24px 18px 70px;
  }

}

body.theme-dark .mnp-main-page.is-rights-home .admin-content {
  padding: 34px clamp(28px, 3.6vw, 58px) 70px;
}

.mnp-rights-page {
  display: grid;
  gap: 24px;
}

.mnp-rights-page .mnp-page-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  max-width: 1480px;
}

.mnp-rights-page .mnp-title-line {
  width: 3px;
  height: 34px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgb(var(--mnp-vert-a3e635));
  box-shadow: 0 0 22px rgba(var(--mnp-vert-a3e635), 0.65);
}

.mnp-rights-page .mnp-page-title h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(36px, 3vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.mnp-rights-page .mnp-page-title p {
  margin: 12px 0 0;
  max-width: 720px;
  color: #c6d3e5;
  font-size: 17px;
  line-height: 1.55;
}

.mnp-rights-count {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(var(--mnp-vert-a3e635), 0.34);
  border-radius: 999px;
  color: rgb(var(--mnp-vert-b6ff4d));
  background: rgba(var(--mnp-vert-09140d), 0.72);
  box-shadow: inset 0 0 20px rgba(var(--mnp-vert-a3e635), 0.08);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.mnp-rights-list {
  width: min(1480px, 100%);
  display: grid;
  gap: 22px;
}

body.theme-dark .mnp-rights-card.manager-rights-card {
  position: relative;
  display: grid;
  gap: 20px;
  min-height: 220px;
  padding: 24px 28px 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  background: radial-gradient(circle at 10% 0%, rgba(var(--mnp-vert-a3e635), 0.1), transparent 28%), linear-gradient(135deg, rgba(12, 26, 41, 0.94), rgba(7, 15, 27, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

body.theme-dark .mnp-rights-card.manager-rights-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--mnp-vert-a3e635), 0.1), transparent 30%);
  opacity: 0.7;
}

.mnp-rights-card > * {
  position: relative;
  z-index: 1;
}

.mnp-rights-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.mnp-rights-user .user-avatar {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(var(--mnp-vert-a3e635), 0.3);
  border-radius: 50%;
  color: rgb(var(--mnp-vert-b6ff4d));
  background: rgba(var(--mnp-vert-a3e635), 0.08);
  box-shadow: 0 0 24px rgba(var(--mnp-vert-a3e635), 0.12);
}

.mnp-rights-user strong {
  display: block;
  color: #f8fafc;
  font-size: 22px;
  line-height: 1.15;
}

.mnp-rights-user small {
  display: block;
  margin-top: 8px;
  color: #c5d2e5;
  font-size: 15px;
}

.mnp-rights-user-tags {
  justify-content: flex-end;
}

body.theme-dark .mnp-rights-user-tags .tag {
  border-color: rgba(var(--mnp-vert-a3e635), 0.18);
  color: rgb(var(--mnp-vert-b6ff4d));
  background: rgba(var(--mnp-vert-a3e635), 0.08);
}

.mnp-rights-form {
  display: grid;
  gap: 16px;
}

.mnp-rights-label {
  margin-top: 2px;
  color: #f8fafc !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}

.mnp-rights-domain-grid.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 2px;
}

body.theme-dark .mnp-rights-domain-grid .check-pill {
  width: auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(var(--mnp-vert-a3e635), 0.24);
  border-radius: 999px;
  color: rgb(var(--mnp-vert-dfffc0));
  background: rgba(var(--mnp-vert-12211a), 0.76);
  box-shadow: inset 0 0 18px rgba(var(--mnp-vert-a3e635), 0.06);
  font-weight: 900;
}

body.theme-dark .mnp-rights-domain-grid .check-pill span {
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.theme-dark .mnp-rights-domain-grid .check-pill:has(input:checked) {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(var(--mnp-vert-84cc16), 0.58), rgba(var(--mnp-vert-3f6212), 0.76));
  border-color: rgba(var(--mnp-vert-bef264), 0.4);
}

.mnp-rights-page .manager-rights-form .manager-module-rights-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  grid-auto-rows: minmax(86px, auto);
  gap: 12px;
}

.mnp-rights-page .manager-rights-form .manager-module-pill.check-pill {
  position: relative;
  width: 100%;
  min-height: 92px;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 132px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: radial-gradient(circle at 0% 50%, rgba(var(--mnp-vert-a3e635), 0.1), transparent 32%), linear-gradient(135deg, rgba(13, 27, 43, 0.86), rgba(8, 17, 30, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.mnp-rights-page .manager-rights-form .manager-module-pill.check-pill:hover {
  border-color: rgba(var(--mnp-vert-a3e635), 0.32);
  background: radial-gradient(circle at 0% 50%, rgba(var(--mnp-vert-a3e635), 0.14), transparent 36%), rgba(12, 26, 41, 0.86);
  transform: translateY(-1px);
}

.mnp-rights-page .manager-module-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mnp-rights-module-icon {
  width: 48px !important;
  height: 48px;
  min-width: 48px;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(var(--mnp-vert-a3e635), 0.14) !important;
  border-radius: 14px !important;
  background: rgba(var(--mnp-vert-a3e635), 0.09) !important;
  box-shadow: 0 0 26px rgba(var(--mnp-vert-a3e635), 0.09) !important;
}

.mnp-rights-page .manager-rights-form .manager-module-pill.check-pill > span {
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}

.mnp-rights-module-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: rgb(var(--mnp-vert-a3e635));
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnp-rights-module-copy {
  min-width: 0;
  width: auto !important;
  display: block !important;
  padding: 0 !important;
  text-align: left !important;
  overflow: hidden;
}

.mnp-rights-module-copy strong {
  display: block;
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mnp-rights-module-copy small {
  width: auto !important;
  min-width: 0;
  display: block !important;
  margin-top: 6px;
  color: #c6d3e5 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mnp-rights-module-status {
  min-height: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 16px !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 999px !important;
  color: #9aa9bd !important;
  background: rgba(15, 23, 42, 0.92) !important;
  font-size: 0 !important;
  font-weight: 950;
  white-space: nowrap;
}

.mnp-rights-page .manager-rights-form .manager-module-pill.check-pill > .mnp-rights-module-status {
  width: auto !important;
  min-width: 104px;
  justify-self: end;
  text-align: center;
  font-style: normal;
}

.mnp-rights-module-status::before {
  content: "Bloque";
  font-size: 13px;
}

.mnp-rights-page .manager-module-pill:has(input:checked) {
  border-color: rgba(var(--mnp-vert-a3e635), 0.34) !important;
  background: radial-gradient(circle at 0% 50%, rgba(var(--mnp-vert-a3e635), 0.12), transparent 34%), linear-gradient(135deg, rgba(12, 31, 35, 0.9), rgba(8, 17, 30, 0.96)) !important;
}

.mnp-rights-page .manager-module-pill:has(input:checked) .mnp-rights-module-status {
  border-color: rgba(var(--mnp-vert-a3e635), 0.42) !important;
  color: rgb(var(--mnp-vert-b6ff4d)) !important;
  background: rgba(var(--mnp-vert-122a15), 0.78) !important;
}

.mnp-rights-page .manager-module-pill:has(input:checked) .mnp-rights-module-status::before {
  content: "Autorise";
}

.mnp-rights-page .manager-module-pill.check-pill::after {
  content: none !important;
}

.mnp-rights-save.btn.secondary {
  min-height: 48px;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-color: rgba(var(--mnp-vert-a3e635), 0.36) !important;
  color: rgb(var(--mnp-vert-dfffc0)) !important;
  background: rgba(var(--mnp-vert-1e3a18), 0.44) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.mnp-rights-save svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1180px) {
  .mnp-rights-page .manager-rights-form .manager-module-rights-grid {
    grid-template-columns: 1fr;
  }

  .mnp-rights-user {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mnp-rights-user-tags {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body.theme-dark .mnp-main-page.is-rights-home .admin-content {
    padding: 24px 18px 70px;
  }

  .mnp-rights-page .mnp-page-title {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mnp-rights-count {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .mnp-rights-page .manager-rights-form .manager-module-pill.check-pill {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .mnp-rights-module-status {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

body.theme-dark {
  background: radial-gradient(circle at 76% 10%, rgba(56, 189, 248, 0.08), transparent 28%), radial-gradient(circle at 20% 18%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 26%), linear-gradient(135deg, #030b13 0%, #071524 48%, #03101c 100%);
  --mnp-soft-hover-border: rgba(var(--mnp-vert-8ee820), 0.24);
  --mnp-soft-hover-shadow: 0 16px 34px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(var(--mnp-vert-8ee820), 0.055);
}

body.theme-dark :is( button, .btn, .tab-button, .dashboard-action-card, .application-card, .quicklink-card, .hygiene-menu-card, .hygiene-dlc-card, .course-card, .global-inventory-card, .stock-row, .manager-module-pill, .cash-date-trigger, .shared-files-open-vault, .shared-files-add-button ) {
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

body.theme-dark .btn:not(.secondary):not(.danger):not(:disabled):hover,
body.theme-dark .access-main-action:not(:disabled):hover,
body.theme-dark .cash-report-form .btn:hover,
body.theme-dark .course-request-form .course-preview-btn:hover,
body.theme-dark .module-form .bread-submit-btn:hover,
body.theme-dark .mnp-courses-actions .btn:hover,
body.theme-dark .mnp-courses-card-head .btn:hover,
body.theme-dark .mnp-stock-page .stock-row .actions .btn:hover,
body.theme-dark .stock-create-dialog .stock-step-button:hover,
body.theme-dark .shared-files-add-button:hover,
body.theme-dark .shared-files-open-vault:hover {
  color: #f8fafc !important;
  background: linear-gradient(135deg, rgba(var(--mnp-vert-4e7925), 0.94), rgba(var(--mnp-vert-1e441b), 0.9)) !important;
  border-color: rgba(var(--mnp-vert-a3e635), 0.36) !important;
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.24), 0 0 18px rgba(var(--mnp-vert-8ee820), 0.1) !important;
  transform: translateY(-1px);
}

body.theme-dark .dashboard-action-card:not(:disabled):hover,
body.theme-dark .mnp-manager-dashboard .dashboard-action-card:hover,
body.theme-dark .application-card:hover,
body.theme-dark .mnp-main-page.is-applications-home .application-card:hover,
body.theme-dark .quicklink-card:hover,
body.theme-dark .mnp-main-page.is-hygiene-home .hygiene-menu-card:hover,
body.theme-dark .hygiene-dlc-card:hover,
body.theme-dark .course-card:hover,
body.theme-dark .global-inventory-card:hover,
body.theme-dark .stock-row:hover,
body.theme-dark .mnp-rights-page .manager-module-pill.check-pill:hover,
body.theme-dark .manager-rights-form .manager-module-pill.check-pill:hover {
  color: #f8fafc !important;
  background: radial-gradient(circle at 12% 10%, rgba(var(--mnp-vert-8ee820), 0.12), transparent 34%), linear-gradient(145deg, rgba(15, 30, 48, 0.94), rgba(7, 18, 31, 0.98)) !important;
  border-color: var(--mnp-soft-hover-border) !important;
  box-shadow: var(--mnp-soft-hover-shadow) !important;
  transform: translateY(-1px);
}

body.theme-dark .mnp-app-sidebar .tab-button:hover,
body.theme-dark .mnp-site-sidebar .tab-button:hover,
body.theme-dark .admin-sidebar .tab-button:hover {
  color: rgb(var(--mnp-vert-eaffd1)) !important;
  background: linear-gradient(90deg, rgba(var(--mnp-vert-8ee820), 0.13), rgba(var(--mnp-vert-8ee820), 0.025)) !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.18) !important;
  box-shadow: inset 3px 0 0 rgba(var(--mnp-vert-8ee820), 0.58) !important;
}

body.theme-dark :is(select, input, textarea):hover {
  border-color: rgba(var(--mnp-vert-8ee820), 0.22) !important;
  box-shadow: 0 0 0 1px rgba(var(--mnp-vert-8ee820), 0.03) !important;
}

body.theme-dark .teams-chat-backdrop,
.theme-dark .teams-chat-backdrop {
  background: rgba(2, 8, 15, 0.18) !important;
  backdrop-filter: blur(2px) !important;
}

/* SOURCE: css/45-access.css */
/* Choix de la societe, des domaines et dossiers
   Aussi : Espace employe, Structure des pages.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

body.theme-dark .domain-folder-dialog,
.theme-dark .domain-folder-dialog {
  width: min(520px, calc(100vw - 36px)) !important;
  padding: 34px 34px 30px !important;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.2) !important;
  border-radius: 20px !important;
  color: #f8fbff !important;
  background: radial-gradient(circle at 0% 0%, rgba(var(--mnp-vert-8ee820), 0.14), transparent 38%), linear-gradient(145deg, rgba(15, 28, 43, 0.98), rgba(5, 13, 24, 0.98)) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.theme-dark .domain-folder-dialog .dialog-close,
.theme-dark .domain-folder-dialog .dialog-close {
  top: 22px !important;
  right: 22px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;
  color: #f8fbff !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  font-size: 0 !important;
}

body.theme-dark .domain-folder-dialog .dialog-close::before,
.theme-dark .domain-folder-dialog .dialog-close::before {
  content: "x";
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

body.theme-dark .domain-folder-dialog .dialog-close:hover,
.theme-dark .domain-folder-dialog .dialog-close:hover {
  border-color: rgba(var(--mnp-vert-8ee820), 0.34) !important;
  background: rgba(var(--mnp-vert-8ee820), 0.12) !important;
}

body.theme-dark .domain-folder-dialog .dialog-title-row,
.theme-dark .domain-folder-dialog .dialog-title-row {
  padding-right: 58px !important;
  margin-bottom: 30px !important;
}

body.theme-dark .domain-folder-dialog h2,
.theme-dark .domain-folder-dialog h2 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 32px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

body.theme-dark .domain-folder-dialog p,
.theme-dark .domain-folder-dialog p {
  margin: 8px 0 0 !important;
  color: rgba(213, 224, 239, 0.74) !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 750 !important;
}

body.theme-dark .domain-folder-dialog .field,
.theme-dark .domain-folder-dialog .field {
  display: grid !important;
  gap: 10px !important;
}

body.theme-dark .domain-folder-dialog .field span,
.theme-dark .domain-folder-dialog .field span {
  color: #f8fbff !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

body.theme-dark .domain-folder-dialog input,
.theme-dark .domain-folder-dialog input {
  width: 100% !important;
  height: 58px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: rgba(4, 12, 23, 0.8) !important;
  color: #f8fbff !important;
  padding: 0 18px !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body.theme-dark .domain-folder-dialog input::placeholder,
.theme-dark .domain-folder-dialog input::placeholder {
  color: rgba(213, 224, 239, 0.44) !important;
}

body.theme-dark .domain-folder-dialog input:focus,
.theme-dark .domain-folder-dialog input:focus {
  outline: none !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.5) !important;
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-8ee820), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.theme-dark .domain-folder-dialog .actions,
.theme-dark .domain-folder-dialog .actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin-top: 18px !important;
}

body.theme-dark .domain-folder-dialog .btn,
.theme-dark .domain-folder-dialog .btn {
  min-height: 52px !important;
  padding: 0 24px !important;
  border-radius: 999px !important;
  font-weight: 950 !important;
}

body.theme-dark .domain-folder-dialog .btn:not(.secondary),
.theme-dark .domain-folder-dialog .btn:not(.secondary) {
  color: #07111f !important;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.28) !important;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-78c52d))) !important;
  box-shadow: 0 18px 42px rgba(var(--mnp-vert-8ee820), 0.16) !important;
}

body.theme-dark .domain-folder-dialog .btn.secondary,
.theme-dark .domain-folder-dialog .btn.secondary {
  color: #f8fbff !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark .domain-folder-dialog .btn:hover,
.theme-dark .domain-folder-dialog .btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  body.theme-dark .domain-folder-dialog,
  .theme-dark .domain-folder-dialog {
    padding: 28px 22px 24px !important;
  }

  body.theme-dark .domain-folder-dialog h2,
  .theme-dark .domain-folder-dialog h2 {
    font-size: 27px !important;
  }

  body.theme-dark .domain-folder-dialog .actions,
  .theme-dark .domain-folder-dialog .actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

body.theme-dark .mnp-main-page.is-employee-workspace {
  height: calc(100vh - 86px);
  min-height: calc(100vh - 86px);
  overflow: hidden;
  background: radial-gradient(circle at 13% 10%, rgba(var(--mnp-vert-8ee820), 0.12), transparent 30%), radial-gradient(circle at 82% 18%, rgba(77, 140, 255, 0.08), transparent 34%), linear-gradient(135deg, #06101b 0%, #081321 46%, #03101a 100%) !important;
  color: #f8fbff;
}

body.theme-dark .mnp-main-page.is-employee-workspace::before {
  content: "";
  position: fixed;
  left: 292px;
  top: 86px;
  width: 420px;
  height: 420px;
  pointer-events: none;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.14);
  border-radius: 999px;
  transform: translate(-58%, -48%);
  box-shadow: 0 0 70px rgba(var(--mnp-vert-8ee820), 0.08);
  opacity: 0.7;
}

body.theme-dark .mnp-main-page.is-employee-workspace .admin-content > .view-head {
  position: relative;
  z-index: 2;
  margin: 0 0 42px;
  padding: 38px 0 22px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.theme-dark .mnp-main-page.is-employee-workspace .admin-content > .view-head h1 {
  color: #f8fbff;
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

body.theme-dark .mnp-main-page.is-employee-workspace .admin-content > .view-head p {
  max-width: 820px;
  color: #aebbd1;
  font-size: 17px;
  font-weight: 750;
}

body.theme-dark .mnp-main-page.is-employee-workspace [data-manager-domains-button] {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  color: #f8fbff !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  font-weight: 950;
}

body.theme-dark .mnp-main-page.is-employee-workspace [data-manager-domains-button]:hover {
  border-color: rgba(var(--mnp-vert-8ee820), 0.28) !important;
  background: rgba(var(--mnp-vert-8ee820), 0.1) !important;
  color: rgb(var(--mnp-vert-eaffd1)) !important;
}

body.theme-dark .mnp-main-page.is-employee-workspace .workspace-shell {
  position: relative;
  z-index: 1;
  height: calc(100vh - 86px);
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  margin-top: 0;
  overflow: hidden;
}

body.theme-dark .mnp-main-page.is-employee-workspace .workspace-sidebar {
  position: relative;
  top: auto;
  align-self: start;
  height: calc(100vh - 86px);
  min-height: 0;
  max-height: none;
  width: 300px;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 22px;
  overflow: auto;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(6, 13, 24, 0.98), rgba(4, 10, 18, 0.99)) !important;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.24);
}

body.theme-dark .mnp-main-page.is-employee-workspace .workspace-context {
  min-height: 70px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(15, 27, 47, 0.8) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .mnp-main-page.is-employee-workspace .mnp-company-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: rgb(var(--mnp-vert-b9ff42));
  background: rgba(var(--mnp-vert-8ee820), 0.12);
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.12);
  font-size: 24px;
}

body.theme-dark .mnp-main-page.is-employee-workspace .workspace-context strong,
body.theme-dark .mnp-main-page.is-employee-workspace .workspace-context small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-dark .mnp-main-page.is-employee-workspace .workspace-context strong {
  color: #f8fbff;
  font-size: 16px;
  font-weight: 950;
}

body.theme-dark .mnp-main-page.is-employee-workspace .workspace-context small,
body.theme-dark .mnp-main-page.is-employee-workspace .workspace-context em {
  color: #98a8c3;
  font-style: normal;
  font-weight: 850;
}

/* SOURCE: css/46-work.css */
/* Espace employe
   Aussi : Module stock, Administration, Espace gerant.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

body.theme-dark .mnp-main-page.is-employee-workspace .admin-nav {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 0 14px 18px;
  overflow: auto;
  scrollbar-width: none;
}

body.theme-dark .mnp-main-page.is-employee-workspace .admin-nav::-webkit-scrollbar {
  display: none;
}

body.theme-dark .mnp-main-page.is-employee-workspace .admin-nav .tab-button {
  min-height: 54px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: #d7e2f3;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

body.theme-dark .mnp-main-page.is-employee-workspace .admin-nav .mnp-nav-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: rgb(var(--mnp-vert-b9ff42));
  background: rgba(var(--mnp-vert-8ee820), 0.09);
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.08);
  font-size: 18px;
}

body.theme-dark .mnp-main-page.is-employee-workspace .admin-nav .mnp-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 900;
}

body.theme-dark .mnp-main-page.is-employee-workspace .admin-nav .tab-button:hover {
  color: rgb(var(--mnp-vert-eaffd1)) !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.16) !important;
  background: linear-gradient(90deg, rgba(var(--mnp-vert-8ee820), 0.1), rgba(var(--mnp-vert-8ee820), 0.02)) !important;
  transform: translateX(2px);
}

body.theme-dark .mnp-main-page.is-employee-workspace .admin-nav .tab-button.active {
  color: rgb(var(--mnp-vert-b9ff42)) !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.24) !important;
  background: linear-gradient(90deg, rgba(var(--mnp-vert-8ee820), 0.16), rgba(var(--mnp-vert-8ee820), 0.045)) !important;
  box-shadow: inset 3px 0 0 rgba(var(--mnp-vert-8ee820), 0.88) !important;
}

body.theme-dark .mnp-main-page.is-employee-workspace .admin-nav .tab-button.active .mnp-nav-icon {
  background: rgba(var(--mnp-vert-8ee820), 0.16);
  border-color: rgba(var(--mnp-vert-8ee820), 0.2);
  box-shadow: 0 10px 26px rgba(var(--mnp-vert-8ee820), 0.08);
}

body.theme-dark .mnp-main-page.is-employee-workspace .employee-sidebar-settings {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

body.theme-dark .mnp-main-page.is-employee-workspace .employee-sidebar-settings > span {
  display: block;
  margin: 0 10px 2px;
  color: rgb(var(--mnp-vert-b9ff42));
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

body.theme-dark .mnp-main-page.is-employee-workspace .employee-sidebar-settings .tab-button {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: #d7e2f3;
  background: transparent;
  text-align: left;
}

body.theme-dark .mnp-main-page.is-employee-workspace .employee-sidebar-settings .mnp-nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: rgb(var(--mnp-vert-b9ff42));
  background: rgba(var(--mnp-vert-8ee820), 0.09);
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.08);
}

body.theme-dark .mnp-main-page.is-employee-workspace .employee-sidebar-settings .tab-button:hover {
  color: rgb(var(--mnp-vert-eaffd1));
  border-color: rgba(var(--mnp-vert-8ee820), 0.16);
  background: linear-gradient(90deg, rgba(var(--mnp-vert-8ee820), 0.1), rgba(var(--mnp-vert-8ee820), 0.02));
}

body.theme-dark .mnp-main-page .admin-sidebar .manager-sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 18px 14px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

body.theme-dark .mnp-main-page .admin-sidebar .manager-domains-sidebar-button {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 0;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: #d7e2f3;
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
}

body.theme-dark .mnp-main-page .admin-sidebar .manager-domains-sidebar-button .mnp-nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: rgb(var(--mnp-vert-b9ff42));
  background: rgba(var(--mnp-vert-8ee820), 0.09);
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.08);
}

body.theme-dark .mnp-main-page .admin-sidebar .manager-domains-sidebar-button:hover {
  color: rgb(var(--mnp-vert-eaffd1));
  border-color: rgba(var(--mnp-vert-8ee820), 0.16);
  background: linear-gradient(90deg, rgba(var(--mnp-vert-8ee820), 0.1), rgba(var(--mnp-vert-8ee820), 0.02));
}

body.theme-dark .mnp-main-page.is-employee-workspace .admin-content {
  min-width: 0;
  height: calc(100vh - 86px);
  margin-left: 0;
  padding: 0 clamp(28px, 4vw, 56px) 72px;
  overflow-y: auto;
  overflow-x: hidden;
}

body.theme-dark .mnp-main-page.is-employee-workspace .employee-stock-panel,
body.theme-dark .mnp-main-page.is-employee-workspace .admin-content > .empty,
body.theme-dark .mnp-main-page.is-employee-workspace .cash-report-form,
body.theme-dark .mnp-main-page.is-employee-workspace .cash-report-history {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 18px;
  background: radial-gradient(circle at 0% 0%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 32%), linear-gradient(145deg, rgba(16, 31, 50, 0.92), rgba(8, 18, 32, 0.94)) !important;
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .mnp-main-page.is-employee-workspace .employee-stock-panel {
  width: min(100%, 1180px);
  padding: 26px;
}

body.theme-dark .mnp-main-page.is-employee-workspace .employee-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

body.theme-dark .mnp-main-page.is-employee-workspace .employee-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: 0;
}

body.theme-dark .mnp-main-page.is-employee-workspace .employee-section-head p {
  margin: 8px 0 0;
  color: #aebbd1;
  font-size: 16px;
  font-weight: 750;
}

body.theme-dark .mnp-main-page.is-employee-workspace .employee-section-head .tag {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: rgb(var(--mnp-vert-b9ff42));
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.18);
  background: rgba(var(--mnp-vert-8ee820), 0.12);
  font-weight: 950;
}

body.theme-dark .mnp-main-page.is-employee-workspace .employee-stock-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

body.theme-dark .mnp-main-page.is-employee-workspace .employee-stock-actions .btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #07111f;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.28);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
  box-shadow: 0 16px 34px rgba(var(--mnp-vert-8ee820), 0.13);
  font-weight: 950;
}

body.theme-dark .mnp-main-page.is-employee-workspace .stock-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 270px));
  gap: 16px;
}

body.theme-dark .mnp-main-page.is-employee-workspace .stock-row {
  min-height: 382px;
  display: grid;
  grid-template-rows: auto 150px auto auto;
  gap: 13px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: radial-gradient(circle at 72% 18%, rgba(129, 140, 248, 0.12), transparent 34%), linear-gradient(180deg, rgba(20, 31, 48, 0.94), rgba(10, 19, 32, 0.96)) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

body.theme-dark .mnp-main-page.is-employee-workspace .stock-row:hover {
  border-color: rgba(var(--mnp-vert-8ee820), 0.28);
  background: radial-gradient(circle at 72% 18%, rgba(var(--mnp-vert-8ee820), 0.1), transparent 34%), linear-gradient(180deg, rgba(20, 34, 48, 0.96), rgba(10, 19, 32, 0.98)) !important;
  transform: translateY(-2px);
}

body.theme-dark .mnp-main-page.is-employee-workspace .stock-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.theme-dark .mnp-main-page.is-employee-workspace .stock-count,
body.theme-dark .mnp-main-page.is-employee-workspace .stock-threshold {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: #dfe9fb;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 950;
}

body.theme-dark .mnp-main-page.is-employee-workspace .stock-image {
  min-height: 150px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: rgba(213, 224, 239, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.11);
  background: radial-gradient(circle at 76% 24%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 38%), rgba(5, 13, 24, 0.74);
  font-weight: 950;
}

body.theme-dark .mnp-main-page.is-employee-workspace .stock-row h3,
body.theme-dark .mnp-main-page.is-employee-workspace .stock-row strong {
  color: #fff;
  font-weight: 950;
}

body.theme-dark .mnp-main-page.is-employee-workspace .stock-row p,
body.theme-dark .mnp-main-page.is-employee-workspace .stock-row small {
  color: #aebbd1;
  font-weight: 750;
}

body.theme-dark .mnp-main-page.is-employee-workspace .stock-row .actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
}

body.theme-dark .mnp-main-page.is-employee-workspace .stock-row .actions .btn {
  min-width: 46px;
  min-height: 46px;
  border-radius: 999px;
  color: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 950;
}

body.theme-dark .mnp-main-page.is-employee-workspace .stock-row .actions .btn:hover {
  color: #07111f !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.28);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-78c52d))) !important;
}

body.theme-dark .mnp-main-page.is-employee-courses .stock-list {
  grid-template-columns: repeat(auto-fill, minmax(160px, 190px));
  gap: 12px;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-card.stock-row {
  min-height: 232px;
  grid-template-rows: auto 86px auto auto;
  gap: 9px;
  padding: 10px;
  border-radius: 16px;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-card .stock-card-top {
  min-height: 26px;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-card .course-count,
body.theme-dark .mnp-main-page.is-employee-courses .course-card .stock-count,
body.theme-dark .mnp-main-page.is-employee-courses .course-card .stock-threshold {
  min-height: 26px;
  padding: 0 9px;
  font-size: 11px;
  border-radius: 999px;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-card .stock-image {
  min-height: 86px;
  border-radius: 13px;
  font-size: 13px;
}

/* SOURCE: css/47-courses.css */
/* ---- Anciennement 41-courses.css ---- */
/* Module courses
   Aussi : Fournisseurs.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

body.theme-dark .mnp-courses-head h2 {
  margin: 22px 0 8px;
  color: #fff;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

body.theme-dark .mnp-courses-head p {
  max-width: 840px;
  margin: 0;
  color: rgba(213, 224, 239, 0.78);
  font-size: 17px;
  line-height: 1.55;
}

body.theme-dark .mnp-courses-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

body.theme-dark .mnp-courses-actions .btn,
body.theme-dark .mnp-courses-card-head .btn {
  min-height: 46px;
  border-radius: 999px;
  color: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(13, 27, 46, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .mnp-courses-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

body.theme-dark .mnp-courses-kpi,
body.theme-dark .mnp-courses-card,
body.theme-dark .mnp-courses-history {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  background: radial-gradient(circle at 14% 0%, rgba(var(--mnp-vert-8ee820), 0.06), transparent 28%), linear-gradient(145deg, rgba(15, 31, 50, 0.86), rgba(5, 16, 29, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 26px 76px rgba(0, 0, 0, 0.18);
}

body.theme-dark .mnp-courses-kpi {
  min-height: 132px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
}

body.theme-dark .mnp-courses-kpi > span,
body.theme-dark .mnp-courses-domain-title > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: rgb(var(--mnp-vert-b9ff42));
  background: linear-gradient(135deg, rgba(var(--mnp-vert-8ee820), 0.18), rgba(var(--mnp-vert-8ee820), 0.08));
  box-shadow: 0 0 0 1px rgba(var(--mnp-vert-8ee820), 0.12), 0 16px 42px rgba(var(--mnp-vert-8ee820), 0.08);
  font-size: 13px;
  font-weight: 950;
}

body.theme-dark .mnp-courses-kpi small,
body.theme-dark .mnp-courses-domain-title small,
body.theme-dark .mnp-courses-card-head p {
  color: rgba(213, 224, 239, 0.72);
}

body.theme-dark .mnp-courses-kpi small {
  display: block;
  color: rgb(var(--mnp-vert-b9ff42));
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

body.theme-dark .mnp-courses-kpi strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 35px;
  line-height: 1;
}

body.theme-dark .mnp-courses-kpi em {
  display: block;
  margin-top: 10px;
  color: rgba(213, 224, 239, 0.75);
  font-style: normal;
  font-weight: 800;
}

body.theme-dark .mnp-courses-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 18px;
}

body.theme-dark .mnp-courses-card,
body.theme-dark .mnp-courses-history {
  padding: 26px;
}

body.theme-dark .mnp-courses-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

body.theme-dark .mnp-courses-card-head h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 24px;
}

body.theme-dark .mnp-courses-card-head p {
  margin: 0;
}

body.theme-dark .mnp-courses-card-head > span {
  min-width: 42px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: rgb(var(--mnp-vert-b9ff42));
  background: rgba(var(--mnp-vert-8ee820), 0.11);
  font-weight: 950;
}

body.theme-dark .mnp-courses-domain-list,
body.theme-dark .mnp-courses-product-list,
body.theme-dark .mnp-courses-supplier-panel .course-supplier-zones {
  display: grid;
  gap: 14px;
}

body.theme-dark .mnp-courses-domain-card {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(8, 19, 32, 0.58);
}

body.theme-dark .mnp-courses-domain-card.has-items {
  border-color: rgba(var(--mnp-vert-8ee820), 0.18);
  background: radial-gradient(circle at 100% 0%, rgba(var(--mnp-vert-8ee820), 0.06), transparent 30%), rgba(8, 19, 32, 0.68);
}

body.theme-dark .mnp-courses-domain-head,
body.theme-dark .mnp-courses-domain-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.theme-dark .mnp-courses-domain-head {
  justify-content: space-between;
}

body.theme-dark .mnp-courses-domain-title strong {
  display: block;
  color: #fff;
  font-size: 19px;
}

body.theme-dark .mnp-courses-empty,
body.theme-dark .mnp-courses-page .empty {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: rgba(213, 224, 239, 0.7);
  background: rgba(13, 27, 46, 0.48);
  font-weight: 800;
}

body.theme-dark .mnp-courses-page .course-treatment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  background: rgba(6, 15, 28, 0.68);
}

body.theme-dark .mnp-courses-page .course-treatment-row strong {
  display: block;
  color: #fff;
}

body.theme-dark .mnp-courses-page .course-treatment-row span {
  display: inline-flex;
  margin-top: 5px;
  color: rgb(var(--mnp-vert-b9ff42));
  font-weight: 950;
}

body.theme-dark .mnp-courses-page .course-treatment-row .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.theme-dark .mnp-courses-page .course-treatment-row .btn,
body.theme-dark .mnp-courses-page .course-supplier-zone .btn,
body.theme-dark .mnp-courses-page .sent-course-panel .btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
}

body.theme-dark .mnp-courses-page .course-treatment-row .btn:not(.secondary):not(.danger),
body.theme-dark .mnp-courses-page .course-supplier-zone .btn:not(.secondary):not(.danger) {
  color: #07111f;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
}

body.theme-dark .mnp-courses-page .course-message-list {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(116, 208, 255, 0.12);
  background: rgba(41, 121, 255, 0.06);
}

body.theme-dark .mnp-courses-page .course-message-list > strong {
  display: block;
  margin-bottom: 10px;
  color: #dff1ff;
}

body.theme-dark .mnp-courses-page .course-message-item {
  padding: 10px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

body.theme-dark .mnp-courses-page .course-message-item:first-of-type {
  border-top: 0;
}

body.theme-dark .mnp-courses-page .course-message-item p {
  margin: 0 0 5px;
  color: #f8fbff;
}

body.theme-dark .mnp-courses-page .course-message-item small {
  color: rgba(213, 224, 239, 0.68);
}

body.theme-dark .mnp-courses-page .course-supplier-zone {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(8, 19, 32, 0.66);
}

body.theme-dark .mnp-courses-page .course-supplier-zone h3 {
  margin: 0 0 4px;
  color: #fff;
}

body.theme-dark .mnp-courses-page .course-supplier-zone p {
  margin: 0 0 12px;
  color: rgba(213, 224, 239, 0.7);
}

body.theme-dark .mnp-courses-page .course-supplier-zone ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.theme-dark .mnp-courses-page .course-supplier-zone li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(5, 14, 26, 0.66);
  color: rgba(247, 251, 255, 0.92);
}

body.theme-dark .mnp-courses-page .course-supplier-zone li strong {
  color: rgb(var(--mnp-vert-b9ff42));
}

body.theme-dark .mnp-courses-page .course-supplier-zone .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.theme-dark .mnp-courses-history .sent-course-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

body.theme-dark .mnp-courses-history .course-history-details {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(8, 19, 32, 0.58);
  overflow: hidden;
}

body.theme-dark .mnp-courses-history .course-history-details summary {
  padding: 16px;
  color: #fff;
}

body.theme-dark .mnp-courses-history .course-history-details summary small {
  color: rgba(213, 224, 239, 0.68);
}

body.theme-dark .mnp-courses-history .sent-course-list {
  padding: 0 16px 16px;
}

body.theme-dark .dialog-backdrop:has(.course-mail-dialog) {
  z-index: 80;
  padding: 24px;
  background: radial-gradient(circle at 48% 42%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 28%), rgba(2, 8, 15, 0.72);
  backdrop-filter: blur(12px);
}

body.theme-dark .course-mail-dialog::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.theme-dark .course-mail-dialog {
  width: min(720px, calc(100vw - 36px));
  max-height: min(820px, calc(100dvh - 44px));
  display: grid;
  gap: 20px;
  padding: 34px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  color: #f8fbff;
  background: radial-gradient(circle at 12% 0%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 30%), linear-gradient(145deg, rgba(19, 30, 58, 0.98), rgba(8, 16, 34, 0.98));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
}

body.theme-dark .course-mail-dialog .dialog-close {
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  color: #f8fbff;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .course-mail-dialog .dialog-close:hover {
  border-color: rgba(var(--mnp-vert-8ee820), 0.34);
  background: rgba(var(--mnp-vert-8ee820), 0.11);
}

body.theme-dark .course-mail-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-right: 58px;
}

body.theme-dark .course-mail-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: rgb(var(--mnp-vert-b9ff42));
  background: linear-gradient(135deg, rgba(var(--mnp-vert-8ee820), 0.18), rgba(var(--mnp-vert-8ee820), 0.08));
  box-shadow: 0 0 0 1px rgba(var(--mnp-vert-8ee820), 0.14), 0 18px 48px rgba(var(--mnp-vert-8ee820), 0.08);
  font-size: 13px;
  font-weight: 950;
}

body.theme-dark .course-mail-head h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
}

body.theme-dark .course-mail-head p {
  margin: 7px 0 0;
  color: rgba(213, 224, 239, 0.72);
  font-size: 15px;
}

body.theme-dark .course-mail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.theme-dark .course-mail-meta > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(6, 15, 28, 0.6);
}

body.theme-dark .course-mail-meta small {
  display: block;
  margin-bottom: 7px;
  color: rgb(var(--mnp-vert-b9ff42));
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

body.theme-dark .course-mail-meta strong,
body.theme-dark .course-mail-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-dark .course-mail-meta strong {
  color: #fff;
  font-size: 17px;
}

body.theme-dark .course-mail-meta span {
  margin-top: 4px;
  color: rgba(213, 224, 239, 0.72);
}

body.theme-dark .course-mail-dialog .field {
  gap: 9px;
}

body.theme-dark .course-mail-dialog .field label {
  color: #f8fbff;
  font-size: 14px;
  font-weight: 900;
}

body.theme-dark .course-mail-dialog input,
body.theme-dark .course-mail-dialog textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  color: #f8fbff;
  background: rgba(6, 15, 28, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .course-mail-dialog input {
  height: 56px;
  padding: 0 18px;
}

body.theme-dark .course-mail-dialog textarea {
  min-height: 220px;
  padding: 18px;
  line-height: 1.55;
  resize: vertical;
}

body.theme-dark .course-mail-dialog input:focus,
body.theme-dark .course-mail-dialog textarea:focus {
  outline: none;
  border-color: rgba(var(--mnp-vert-8ee820), 0.46);
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-8ee820), 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .course-mail-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 4px;
}

body.theme-dark .course-mail-actions .btn {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 950;
}

body.theme-dark .course-mail-actions .btn:not(.secondary) {
  color: #07111f;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.28);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
  box-shadow: 0 18px 44px rgba(var(--mnp-vert-8ee820), 0.16);
}

body.theme-dark .course-mail-actions .btn.secondary {
  color: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .course-mail-dialog .supplier-edit-list {
  display: grid;
  gap: 12px;
}

body.theme-dark .course-mail-dialog .supplier-edit-list label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(6, 15, 28, 0.62);
}

body.theme-dark .course-mail-dialog .supplier-edit-list span {
  color: #fff;
  font-weight: 900;
}

body.theme-dark .course-mail-dialog .supplier-edit-list small {
  display: block;
  margin-top: 4px;
  color: rgba(213, 224, 239, 0.65);
}

body.theme-dark .course-mail-dialog .supplier-edit-list input {
  height: 46px;
  text-align: center;
}

@media (max-width: 1180px) {
  body.theme-dark .mnp-courses-kpis,
  body.theme-dark .mnp-courses-layout,
  body.theme-dark .mnp-courses-history .sent-course-panel {
    grid-template-columns: 1fr 1fr;
  }

  body.theme-dark .mnp-courses-supplier-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body.theme-dark .mnp-courses-head,
  body.theme-dark .mnp-courses-kpis,
  body.theme-dark .mnp-courses-layout,
  body.theme-dark .mnp-courses-history .sent-course-panel {
    grid-template-columns: 1fr;
  }

  body.theme-dark .mnp-courses-actions,
  body.theme-dark .mnp-courses-domain-head,
  body.theme-dark .mnp-courses-page .course-treatment-row {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  body.theme-dark .course-mail-dialog {
    padding: 26px;
  }

  body.theme-dark .course-mail-head,
  body.theme-dark .course-mail-meta,
  body.theme-dark .course-mail-dialog .supplier-edit-list label {
    grid-template-columns: 1fr;
  }

  body.theme-dark .course-mail-head {
    padding-right: 54px;
  }

  body.theme-dark .course-mail-actions {
    flex-direction: column;
  }
}

body.theme-dark .mnp-main-page.is-stocks-home > .view-head {
  display: none;
}

body.theme-dark .mnp-main-page.is-stocks-home .admin-content {
  padding: 42px clamp(28px, 4vw, 58px) 76px;
}

/* ---- Anciennement 47-courses.css ---- */
/* Module courses
   Aussi : Administration, Module pain, Espace employe.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

body.theme-dark .mnp-main-page.is-employee-courses .course-card h3,
body.theme-dark .mnp-main-page.is-employee-courses .course-card strong {
  font-size: 17px;
  line-height: 1.08;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-card p,
body.theme-dark .mnp-main-page.is-employee-courses .course-card small {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.2;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-card .actions {
  gap: 8px;
  padding-top: 0;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-card .actions .btn {
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  font-size: 18px;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-card {
  border-color: rgba(var(--mnp-vert-8ee820), 0.14) !important;
  background: radial-gradient(circle at 80% 0%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 36%), linear-gradient(180deg, rgba(15, 30, 48, 0.94), rgba(7, 18, 31, 0.98)) !important;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-card.has-request {
  border-color: rgba(var(--mnp-vert-8ee820), 0.38) !important;
  box-shadow: 0 18px 42px rgba(var(--mnp-vert-8ee820), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-card .course-count {
  color: rgb(var(--mnp-vert-b9ff42)) !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.18) !important;
  background: rgba(var(--mnp-vert-8ee820), 0.1) !important;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-card.has-request .course-count {
  color: #07111f !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.38) !important;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-78c52d))) !important;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-request-form .course-preview-btn {
  color: #07111f !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.32) !important;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923))) !important;
  box-shadow: 0 16px 34px rgba(var(--mnp-vert-8ee820), 0.14) !important;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-request-form .course-preview-btn:hover {
  color: #07111f !important;
  border-color: rgba(var(--mnp-vert-beff5d), 0.46) !important;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-c8ff5c)), rgb(var(--mnp-vert-80d033))) !important;
  box-shadow: 0 18px 40px rgba(var(--mnp-vert-8ee820), 0.18) !important;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-request-form .course-preview-btn:disabled,
body.theme-dark .mnp-main-page.is-employee-courses .course-request-form .course-preview-btn:disabled:hover {
  color: rgba(213, 224, 239, 0.58) !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.12) !important;
  background: rgba(var(--mnp-vert-8ee820), 0.12) !important;
  box-shadow: none !important;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-request-form .btn.secondary {
  color: #f8fbff !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark .mnp-main-page.is-employee-courses .course-request-form .btn.secondary:hover {
  color: rgb(var(--mnp-vert-eaffd1)) !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.24) !important;
  background: rgba(var(--mnp-vert-8ee820), 0.1) !important;
}

body.theme-dark .dialog-backdrop:has(.course-preview-dialog) {
  z-index: 84;
  padding: 24px;
  background: radial-gradient(circle at 50% 42%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 30%), rgba(2, 8, 15, 0.74) !important;
  backdrop-filter: blur(12px);
}

body.theme-dark .course-preview-dialog {
  width: min(520px, calc(100vw - 36px));
  gap: 16px;
  padding: 34px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.18);
  border-radius: 26px;
  color: #f8fbff;
  background: radial-gradient(circle at 50% 0%, rgba(var(--mnp-vert-8ee820), 0.09), transparent 34%), linear-gradient(145deg, rgba(15, 30, 48, 0.98), rgba(7, 16, 29, 0.99)) !important;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.theme-dark .course-preview-dialog .confirm-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 2px;
  border-radius: 22px;
  color: rgb(var(--mnp-vert-b9ff42));
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.18);
  background: linear-gradient(135deg, rgba(var(--mnp-vert-8ee820), 0.18), rgba(var(--mnp-vert-8ee820), 0.08));
  box-shadow: 0 18px 48px rgba(var(--mnp-vert-8ee820), 0.08);
  font-size: 26px;
  font-weight: 950;
}

body.theme-dark .course-preview-dialog h2 {
  color: #f8fbff;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}

body.theme-dark .course-preview-dialog p {
  color: #aebbd1;
  font-size: 16px;
  font-weight: 750;
}

body.theme-dark .course-preview-list li {
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.12);
  border-radius: 14px;
  color: #f8fbff;
  background: rgba(6, 15, 28, 0.66);
}

body.theme-dark .course-preview-list strong {
  color: rgb(var(--mnp-vert-b9ff42));
}

body.theme-dark .course-preview-message {
  color: #dce8f7;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.12);
  background: rgba(var(--mnp-vert-8ee820), 0.07) !important;
}

body.theme-dark .course-preview-dialog .actions {
  gap: 12px;
}

body.theme-dark .course-preview-dialog .btn {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 950;
}

body.theme-dark .course-preview-dialog .btn:not(.secondary) {
  color: #07111f !important;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.3) !important;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923))) !important;
  box-shadow: 0 18px 44px rgba(var(--mnp-vert-8ee820), 0.16) !important;
}

body.theme-dark .course-preview-dialog .btn:not(.secondary):hover {
  color: #07111f !important;
  border-color: rgba(var(--mnp-vert-beff5d), 0.46) !important;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-c8ff5c)), rgb(var(--mnp-vert-80d033))) !important;
}

body.theme-dark .course-preview-dialog .btn:not(.secondary):disabled {
  color: rgba(213, 224, 239, 0.58) !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.12) !important;
  background: rgba(var(--mnp-vert-8ee820), 0.12) !important;
  box-shadow: none !important;
}

body.theme-dark .course-preview-dialog .btn.secondary {
  color: #f8fbff !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark .course-preview-dialog .btn.secondary:hover {
  color: rgb(var(--mnp-vert-eaffd1)) !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.24) !important;
  background: rgba(var(--mnp-vert-8ee820), 0.1) !important;
}

body.theme-dark .mnp-main-page.is-employee-pain .employee-section-head .tag {
  color: rgb(var(--mnp-vert-b9ff42)) !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.18) !important;
  background: rgba(var(--mnp-vert-8ee820), 0.1) !important;
}

body.theme-dark .mnp-main-page.is-employee-pain .module-form {
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.14) !important;
  border-radius: 18px;
  background: radial-gradient(circle at 0% 0%, rgba(var(--mnp-vert-8ee820), 0.07), transparent 30%), rgba(8, 19, 32, 0.66) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .mnp-main-page.is-employee-pain .module-form label,
body.theme-dark .mnp-main-page.is-employee-pain .bread-date-field .cash-field-title {
  color: #f8fbff !important;
  font-weight: 950;
}

body.theme-dark .mnp-main-page.is-employee-pain .bread-field-label {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  line-height: 1;
}

body.theme-dark .mnp-main-page.is-employee-pain .bread-field-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.2);
  border-radius: 12px;
  color: rgb(var(--mnp-vert-b9ff42));
  background: radial-gradient(circle at 30% 18%, rgba(var(--mnp-vert-beff5d), 0.18), transparent 52%), rgba(var(--mnp-vert-8ee820), 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.theme-dark .mnp-main-page.is-employee-pain .bread-field-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.theme-dark .mnp-main-page.is-employee-pain .bread-field-icon.faluche {
  color: rgb(var(--mnp-vert-d8ff8b));
  background: radial-gradient(circle at 35% 15%, rgba(255, 255, 255, 0.12), transparent 42%), rgba(var(--mnp-vert-8ee820), 0.12);
}

body.theme-dark .mnp-main-page.is-employee-pain .module-form input,
body.theme-dark .mnp-main-page.is-employee-pain .bread-date-field .cash-date-trigger {
  color: #f8fbff !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.14) !important;
  background: rgba(6, 15, 28, 0.74) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body.theme-dark .mnp-main-page.is-employee-pain .module-form input:focus,
body.theme-dark .mnp-main-page.is-employee-pain .bread-date-field .cash-date-trigger:focus-visible {
  outline: none !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.46) !important;
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-8ee820), 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.theme-dark .mnp-main-page.is-employee-pain .bread-date-field .cash-date-icon {
  color: #07111f !important;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-78c52d))) !important;
}

body.theme-dark .mnp-main-page.is-employee-pain .module-form .bread-submit-btn,
body.theme-dark .mnp-main-page.is-employee-pain .module-form .btn:not(.secondary):not(.danger) {
  color: #07111f !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.32) !important;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923))) !important;
  box-shadow: 0 16px 34px rgba(var(--mnp-vert-8ee820), 0.14) !important;
}

body.theme-dark .mnp-main-page.is-employee-pain .module-form .bread-submit-btn:hover,
body.theme-dark .mnp-main-page.is-employee-pain .module-form .btn:not(.secondary):not(.danger):hover {
  color: #07111f !important;
  border-color: rgba(var(--mnp-vert-beff5d), 0.46) !important;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-c8ff5c)), rgb(var(--mnp-vert-80d033))) !important;
  box-shadow: 0 18px 40px rgba(var(--mnp-vert-8ee820), 0.18) !important;
}

body.theme-dark .mnp-main-page.is-employee-pain .empty {
  color: #aebbd1 !important;
  border-color: rgba(var(--mnp-vert-8ee820), 0.12) !important;
  background: rgba(8, 19, 32, 0.58) !important;
}

body.theme-dark .mnp-main-page.is-employee-workspace .admin-content > .empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #aebbd1;
  font-weight: 850;
}

@media (max-width: 1180px) {
  body.theme-dark .mnp-main-page.is-employee-workspace::before {
  }

  body.theme-dark .mnp-main-page.is-employee-workspace {
  }

  body.theme-dark .mnp-main-page.is-employee-workspace .admin-content > .view-head {
    margin-left: 0;
    padding: 28px 18px 18px;
  }

  body.theme-dark .mnp-main-page.is-employee-workspace .workspace-shell {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    margin-top: 0;
    overflow: visible;
  }

  body.theme-dark .mnp-main-page.is-employee-workspace .workspace-sidebar {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: auto;
    max-height: none;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: none;
  }

  body.theme-dark .mnp-main-page.is-employee-workspace .workspace-context {
    margin: 14px 18px;
  }

  body.theme-dark .mnp-main-page.is-employee-workspace .admin-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 18px 14px;
  }

  body.theme-dark .mnp-main-page.is-employee-workspace .admin-nav .tab-button {
    min-width: max-content;
  }

  body.theme-dark .mnp-main-page.is-employee-workspace .admin-content {
    margin-left: 0;
    height: auto;
    padding: 24px 18px 72px;
    overflow: visible;
  }
}

@media (max-width: 680px) {
  body.theme-dark .mnp-main-page.is-employee-workspace .admin-content > .view-head {
    align-items: stretch;
    flex-direction: column;
  }

  body.theme-dark .mnp-main-page.is-employee-workspace .employee-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.theme-dark .mnp-main-page.is-employee-workspace .stock-list {
    grid-template-columns: 1fr;
  }
}

/* SOURCE: css/48-chat.css */
/* Messagerie
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

body.theme-dark .teams-chat-panel,
.theme-dark .teams-chat-panel {
  width: min(840px, calc(100vw - 40px)) !important;
  height: min(730px, calc(100dvh - 70px)) !important;
  grid-template-columns: 245px minmax(0, 1fr) !important;
  border-radius: 18px !important;
  border: 1px solid rgba(var(--mnp-vert-a3e635), 0.48) !important;
  color: #f8fafc !important;
  background: linear-gradient(145deg, rgba(6, 15, 27, 0.98), rgba(3, 11, 21, 0.985)) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46), 0 0 38px rgba(var(--mnp-vert-a3e635), 0.11) !important;
}

body.theme-dark .teams-chat-sidebar,
.theme-dark .teams-chat-sidebar {
  padding: 18px 14px !important;
  gap: 10px !important;
  background: linear-gradient(180deg, rgba(10, 24, 39, 0.92), rgba(4, 13, 25, 0.96)) !important;
  border-right: 1px solid rgba(148, 163, 184, 0.15) !important;
}

body.theme-dark .teams-chat-title strong,
.theme-dark .teams-chat-title strong {
  color: #f8fafc !important;
  font-size: 18px !important;
}

body.theme-dark .teams-chat-label,
body.theme-dark .teams-chat-label.with-action,
.theme-dark .teams-chat-label,
.theme-dark .teams-chat-label.with-action {
  margin: 12px 0 2px !important;
  color: #8fa0b7 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

body.theme-dark .teams-chat-label.with-action .teams-group-add,
.theme-dark .teams-chat-label.with-action .teams-group-add {
  width: 34px !important;
  height: 34px !important;
  border: 1px solid rgba(var(--mnp-vert-a3e635), 0.32) !important;
  border-radius: 999px !important;
  background: rgba(var(--mnp-vert-507c1c), 0.34) !important;
  color: rgb(var(--mnp-vert-b8ff4d)) !important;
  box-shadow: 0 0 18px rgba(var(--mnp-vert-a3e635), 0.12) !important;
}

body.theme-dark .teams-conversation,
.theme-dark .teams-conversation {
  min-height: 52px !important;
  border-radius: 13px !important;
  padding: 8px 10px !important;
  color: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  background: rgba(15, 23, 42, 0.42) !important;
  box-shadow: none !important;
}

body.theme-dark .teams-conversation:hover,
body.theme-dark .teams-conversation.active,
.theme-dark .teams-conversation:hover,
.theme-dark .teams-conversation.active {
  color: #f8fafc !important;
  background: linear-gradient(90deg, rgba(var(--mnp-vert-a3e635), 0.18), rgba(var(--mnp-vert-a3e635), 0.045)) !important;
  border-color: rgba(var(--mnp-vert-a3e635), 0.38) !important;
  box-shadow: inset 3px 0 0 rgba(var(--mnp-vert-a3e635), 0.72), 0 14px 24px rgba(0, 0, 0, 0.2) !important;
  transform: none !important;
}

body.theme-dark .teams-conversation.active::before,
.theme-dark .teams-conversation.active::before {
  content: none !important;
}

body.theme-dark .teams-conversation > span:not(.teams-avatar),
body.theme-dark .teams-avatar,
body.theme-dark .teams-conversation.active > span:not(.teams-avatar),
body.theme-dark .teams-conversation.active .teams-avatar,
.theme-dark .teams-conversation > span:not(.teams-avatar),
.theme-dark .teams-avatar,
.theme-dark .teams-conversation.active > span:not(.teams-avatar),
.theme-dark .teams-conversation.active .teams-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  color: rgb(var(--mnp-vert-e7ffd0)) !important;
  background: linear-gradient(145deg, rgba(var(--mnp-vert-a3e635), 0.22), rgba(var(--mnp-vert-1f3722), 0.9)) !important;
  border: 1px solid rgba(var(--mnp-vert-a3e635), 0.18) !important;
}

body.theme-dark .teams-conversation strong,
body.theme-dark .teams-conversation.active strong,
.theme-dark .teams-conversation strong,
.theme-dark .teams-conversation.active strong {
  color: #f5f8ff !important;
  font-size: 14px !important;
}

body.theme-dark .teams-conversation em,
body.theme-dark .teams-chat-head .tag,
.theme-dark .teams-conversation em,
.theme-dark .teams-chat-head .tag {
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 999px !important;
  padding: 0 12px !important;
  color: #f8fafc !important;
  background: rgba(15, 23, 42, 0.76) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

body.theme-dark .teams-chat-main,
.theme-dark .teams-chat-main {
  background: radial-gradient(circle at 50% 12%, rgba(var(--mnp-vert-a3e635), 0.045), transparent 35%), #030b15 !important;
}

body.theme-dark .teams-chat-head,
.theme-dark .teams-chat-head {
  min-height: 88px !important;
  padding: 20px 22px !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
}

body.theme-dark .teams-chat-head h2,
.theme-dark .teams-chat-head h2 {
  color: #f8fafc !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
}

body.theme-dark .teams-chat-head p,
.theme-dark .teams-chat-head p {
  margin-top: 6px !important;
  color: #aab8cc !important;
  font-size: 14px !important;
}

body.theme-dark .teams-message-list,
.theme-dark .teams-message-list {
  padding: 22px !important;
  gap: 12px !important;
  align-content: end !important;
}

body.theme-dark .teams-message,
.theme-dark .teams-message {
  width: min(78%, 460px) !important;
  border-radius: 16px !important;
  background: rgba(15, 27, 45, 0.82) !important;
  border-color: rgba(148, 163, 184, 0.14) !important;
  color: #eaf1fb !important;
}

body.theme-dark .teams-message.mine,
.theme-dark .teams-message.mine {
  justify-self: end !important;
  background: linear-gradient(145deg, rgba(var(--mnp-vert-507c1c), 0.24), rgba(15, 27, 45, 0.86)) !important;
  border-color: rgba(var(--mnp-vert-a3e635), 0.24) !important;
}

body.theme-dark .teams-empty,
.theme-dark .teams-empty {
  align-self: center !important;
  justify-self: center !important;
  display: grid !important;
  place-items: center !important;
  gap: 14px !important;
  max-width: 340px !important;
  color: #b8c6da !important;
  background: transparent !important;
  border: 0 !important;
  font-weight: 850 !important;
}

body.theme-dark .teams-empty::before,
.theme-dark .teams-empty::before {
  content: "" !important;
  width: 74px !important;
  height: 58px !important;
  display: block !important;
  background: radial-gradient(circle at 30% 45%, rgb(var(--mnp-vert-b8ff4d)) 0 3px, transparent 3.4px), radial-gradient(circle at 50% 45%, rgb(var(--mnp-vert-b8ff4d)) 0 3px, transparent 3.4px), radial-gradient(circle at 70% 45%, rgb(var(--mnp-vert-b8ff4d)) 0 3px, transparent 3.4px) !important;
  border: 3px solid rgb(var(--mnp-vert-b8ff4d)) !important;
  border-radius: 18px !important;
  box-shadow: 0 0 22px rgba(var(--mnp-vert-a3e635), 0.26) !important;
}

body.theme-dark .teams-muted,
.theme-dark .teams-muted {
  padding: 8px 4px !important;
  color: #aab8cc !important;
  text-align: left !important;
  font-weight: 800 !important;
}

body.theme-dark .teams-chat-form,
.theme-dark .teams-chat-form {
  grid-template-columns: 52px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 18px !important;
  border-top: 1px solid rgba(148, 163, 184, 0.12) !important;
  background: rgba(3, 11, 21, 0.92) !important;
}

body.theme-dark .chat-image-upload,
.theme-dark .chat-image-upload {
  width: 48px !important;
  height: 48px !important;
  border: 1px solid rgba(var(--mnp-vert-a3e635), 0.36) !important;
  border-radius: 14px !important;
  color: rgb(var(--mnp-vert-b8ff4d)) !important;
  background: rgba(var(--mnp-vert-507c1c), 0.28) !important;
  font-size: 26px !important;
}

body.theme-dark .teams-chat-form textarea,
.theme-dark .teams-chat-form textarea {
  min-height: 48px !important;
  max-height: 120px !important;
  resize: none !important;
  border-radius: 14px !important;
  padding: 13px 16px !important;
  color: #f8fafc !important;
  background: rgba(15, 23, 42, 0.84) !important;
  border-color: rgba(148, 163, 184, 0.17) !important;
}

body.theme-dark .teams-chat-form .btn,
.theme-dark .teams-chat-form .btn {
  min-height: 48px !important;
  border-radius: 14px !important;
  padding: 0 20px !important;
  border: 1px solid rgba(var(--mnp-vert-a3e635), 0.42) !important;
  color: #07111d !important;
  background: linear-gradient(180deg, rgb(var(--mnp-vert-a7f044)), rgb(var(--mnp-vert-6fc82a))) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), 0 0 20px rgba(var(--mnp-vert-a3e635), 0.13) !important;
}

@media (max-width: 760px) {
  body.theme-dark .teams-chat-panel,
  .theme-dark .teams-chat-panel {
    width: 100vw !important;
    height: 100dvh !important;
    grid-template-columns: 1fr !important;
    border-radius: 0 !important;
  }

  body.theme-dark .teams-chat-sidebar,
  .theme-dark .teams-chat-sidebar {
    max-height: 230px !important;
  }

  body.theme-dark .teams-chat-form,
  .theme-dark .teams-chat-form {
    grid-template-columns: 44px minmax(0, 1fr) !important;
  }

  body.theme-dark .teams-chat-form .btn,
  .theme-dark .teams-chat-form .btn {
    grid-column: 1 / -1 !important;
  }
}

body.theme-dark .chat-image-preview-trigger,
.theme-dark .chat-image-preview-trigger {
  appearance: none;
  border: 1px solid rgba(var(--mnp-vert-97e845), 0.22);
  background: linear-gradient(135deg, rgba(var(--mnp-vert-97e845), 0.1), rgba(13, 23, 37, 0.92));
  border-radius: 16px;
  padding: 10px;
  cursor: zoom-in;
  display: inline-flex;
  max-width: min(360px, 100%);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

body.theme-dark .chat-image-preview-trigger:hover,
.theme-dark .chat-image-preview-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--mnp-vert-97e845), 0.48);
  background: linear-gradient(135deg, rgba(var(--mnp-vert-97e845), 0.16), rgba(13, 23, 37, 0.96));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(var(--mnp-vert-97e845), 0.08);
}

.chat-attachment-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(3, 8, 14, 0.72);
  backdrop-filter: blur(14px);
}

.chat-attachment-preview {
  width: min(1120px, calc(100vw - 68px));
  max-height: calc(100dvh - 68px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(var(--mnp-vert-97e845), 0.34);
  border-radius: 24px;
  background: radial-gradient(circle at 18% 0%, rgba(var(--mnp-vert-97e845), 0.16), transparent 34%), linear-gradient(145deg, rgba(11, 20, 34, 0.98), rgba(5, 11, 19, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58), 0 0 54px rgba(var(--mnp-vert-97e845), 0.14);
}

.chat-attachment-preview header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-attachment-preview strong {
  display: block;
  color: #f8fbff;
  font-size: 1.02rem;
}

.chat-attachment-preview small {
  display: block;
  margin-top: 4px;
  color: #9fb0c7;
}

.chat-attachment-preview-close {
  width: 46px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(20, 30, 48, 0.86);
  color: #f8fbff;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.chat-attachment-preview-close:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--mnp-vert-97e845), 0.45);
  background: rgba(var(--mnp-vert-1f2f1d), 0.94);
}

.chat-attachment-preview-media {
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 7, 13, 0.34);
}

.chat-attachment-preview-media img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

@media (max-width: 720px) {
  .chat-attachment-preview-backdrop {
    padding: 14px;
  }

  .chat-attachment-preview {
    width: calc(100vw - 28px);
    max-height: calc(100dvh - 28px);
    border-radius: 18px;
  }

  .chat-attachment-preview-media {
    padding: 12px;
  }
}

.mnp-main-page > .view-head {
  position: relative;
  z-index: 30;
}

.mnp-main-page > .view-head .view-actions,
.mnp-main-page [data-manager-domains-button] {
  position: relative;
  z-index: 31;
  pointer-events: auto;
}

body.theme-dark .employee-profile-dialog {
  width: min(980px, calc(100vw - 36px));
  max-height: min(860px, calc(100dvh - 36px));
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.16);
  border-radius: 18px;
  background: radial-gradient(circle at 10% 0%, rgba(var(--mnp-vert-8ee820), 0.12), transparent 32%), linear-gradient(145deg, rgba(9, 21, 34, 0.98), rgba(7, 15, 28, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

body.theme-dark .employee-profile-dialog .employee-profile-head {
  display: block;
  margin: 0;
}

body.theme-dark .employee-profile-dialog .employee-profile-head h2 {
  font-size: clamp(34px, 4vw, 48px);
}

body.theme-dark .employee-profile-dialog .mnp-settings-card {
  padding: 20px;
  border-color: rgba(var(--mnp-vert-8ee820), 0.14);
  border-radius: 16px;
  background: radial-gradient(circle at 88% 0%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 36%), rgba(13, 25, 40, 0.78);
}

body.theme-dark .employee-profile-dialog .mnp-settings-profile-grid {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
}

body.theme-dark .employee-profile-dialog .mnp-settings-profile-side {
  gap: 14px;
  padding-top: 0;
}

body.theme-dark .employee-profile-dialog .mnp-settings-person {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.14);
  border-radius: 16px;
  background: rgba(6, 15, 28, 0.58);
}

body.theme-dark .employee-profile-dialog .mnp-photo-button {
  position: relative;
  width: fit-content;
  overflow: hidden;
  color: #07111f;
  border-color: rgba(var(--mnp-vert-8ee820), 0.32);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
}

body.theme-dark .employee-profile-dialog .mnp-photo-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* SOURCE: css/49-login.css */
/* ---- Anciennement 38-login.css ---- */
/* Accueil et connexion (choix d'espace, formulaires)
   Aussi : Module hygiene.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.hygiene-fryer-card.is-due {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.04));
}

.hygiene-fryer-card.is-overdue {
  border-color: rgba(239, 68, 68, 0.62);
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.36), rgba(30, 41, 59, 0.84));
  box-shadow: 0 18px 44px rgba(127, 29, 29, 0.18);
}

.fryer-oil-meter {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.36);
}

.fryer-oil-meter span,
.fryer-oil-meter small {
  color: var(--muted);
  font-weight: 750;
}

.fryer-oil-meter strong {
  color: var(--ink);
  font-size: 22px;
}

.fryer-oil-bar {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.fryer-oil-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--oil-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(var(--mnp-vert-22c55e)), rgb(var(--mnp-vert-a3e635)));
}

.hygiene-fryer-card.is-due .fryer-oil-bar::before {
  background: linear-gradient(90deg, #f59e0b, #facc15);
}

.hygiene-fryer-card.is-overdue .fryer-oil-bar::before {
  width: 100%;
  background: linear-gradient(90deg, #ef4444, #fb7185);
}

.hygiene-fryer-card.is-overdue .fryer-oil-meter strong,
.fryer-alert-text {
  color: #fecaca;
}

body:not(.theme-dark) .hygiene-fryer-card.is-overdue {
  background: linear-gradient(145deg, rgba(254, 226, 226, 0.96), rgba(255, 255, 255, 0.92));
}

body:not(.theme-dark) .hygiene-fryer-card.is-overdue .fryer-oil-meter strong,
body:not(.theme-dark) .fryer-alert-text {
  color: #991b1b;
}

.hygiene-dlc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hygiene-dlc-card {
  min-height: 310px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.72)), rgba(15, 23, 42, 0.34);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hygiene-dlc-card:hover,
.hygiene-dlc-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.28);
}

.hygiene-dlc-card.is-expired {
  border-color: rgba(239, 68, 68, 0.62);
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.36), rgba(30, 41, 59, 0.84));
}

.hygiene-dlc-card strong {
  font-size: 21px;
  line-height: 1.15;
}

.hygiene-dlc-card small,
.hygiene-dlc-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.hygiene-dlc-card.is-expired em {
  color: #fecaca;
}

.hygiene-dlc-photo {
  min-height: 158px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  color: var(--muted);
  background: radial-gradient(circle at 30% 20%, rgba(var(--mnp-vert-84cc16), 0.16), transparent 32%), rgba(15, 23, 42, 0.48);
  background-position: center;
  background-size: cover;
  font-weight: 850;
}

.hygiene-dlc-photo.large {
  width: min(240px, 100%);
  min-height: 190px;
}

.hygiene-dlc-product-head {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.hygiene-dlc-camera {
  position: relative;
  width: fit-content;
  margin-top: 12px;
  overflow: hidden;
}

.hygiene-dlc-camera input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hygiene-dlc-photo-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.hygiene-dlc-empty {
  grid-column: 1 / -1;
}

.hygiene-dlc-shot {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.62)), rgba(15, 23, 42, 0.36);
}

.hygiene-dlc-shot.is-expired {
  border-color: rgba(239, 68, 68, 0.52);
  background: rgba(127, 29, 29, 0.22);
}

.hygiene-dlc-shot > span {
  width: 100%;
  height: 150px;
  border-radius: 13px;
  background-position: center;
  background-size: cover;
}

.hygiene-dlc-shot strong {
  display: block;
  color: var(--ink);
}

.hygiene-dlc-shot small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

body:not(.theme-dark) .hygiene-dlc-card,
body:not(.theme-dark) .hygiene-dlc-shot,
body:not(.theme-dark) .hygiene-dlc-photo {
  background-color: rgba(255, 255, 255, 0.86);
}

body:not(.theme-dark) .hygiene-dlc-card.is-expired,
body:not(.theme-dark) .hygiene-dlc-shot.is-expired {
  background: rgba(254, 226, 226, 0.96);
}

body:not(.theme-dark) .hygiene-dlc-card.is-expired em {
  color: #991b1b;
}

@media (max-width: 720px) {
  .hygiene-dlc-grid,
  .hygiene-dlc-photo-list,
  .hygiene-dlc-product-head {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .hygiene-dlc-grid,
  .hygiene-dlc-photo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body:has(.login-page) .topbar {
  display: none;
}

body:has(.login-page) .main {
  width: 100%;
  padding: 0;
}

.login-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(34px, 7vw, 88px);
  padding: clamp(28px, 5vw, 76px) clamp(24px, 7vw, 132px);
  color: #f8fafc;
  isolation: isolate;
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  inset: auto auto 8% -7%;
  width: 32vw;
  min-width: 300px;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--mnp-vert-84cc16), 0.42);
  border-radius: 32% 68% 54% 46%;
  transform: rotate(-18deg);
  filter: drop-shadow(0 0 18px rgba(var(--mnp-vert-84cc16), 0.24));
  z-index: -1;
}

.login-page::after {
  inset: -16% auto auto -10%;
  border-color: rgba(var(--mnp-vert-22c55e), 0.42);
  transform: rotate(14deg);
}

.login-brand-logo {
  width: min(210px, 46vw);
  height: auto;
  display: block;
  margin: 0 0 28px 82px;
  filter: drop-shadow(0 0 28px rgba(var(--mnp-vert-84cc16), 0.28));
}

.login-input-wrap > svg,
.login-submit svg,
.login-eye svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-input-wrap > svg {
  color: rgb(var(--mnp-vert-a3e635));
}

.login-card {
  position: relative;
  width: min(720px, 100%);
  justify-self: end;
  display: grid;
  gap: 24px;
  padding: clamp(30px, 4.7vw, 58px);
  border: 1px solid rgba(129, 140, 248, 0.72);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.72)), rgba(15, 23, 42, 0.74);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38), 0 0 42px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.login-card-title {
  text-align: center;
}

.login-card-title h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.login-card-title h2::after {
  color: rgb(var(--mnp-vert-9bd12f));
  content: " !";
}

.login-card-title p {
  font-size: clamp(17px, 1.8vw, 21px);
}

.login-field {
  display: grid;
  gap: 10px;
  color: #f8fafc;
  font-weight: 750;
  font-size: 16px;
}

.login-input-wrap {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.42);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-field:focus-within .login-input-wrap {
  border-color: rgba(var(--mnp-vert-a3e635), 0.72);
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-84cc16), 0.12);
}

.login-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #f8fafc;
  background: transparent;
  font: inherit;
  font-size: 18px;
}

.login-input-wrap input::placeholder {
  color: rgba(203, 213, 225, 0.58);
}

.login-eye {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: rgba(203, 213, 225, 0.84);
  background: transparent;
  cursor: pointer;
}

.login-eye:hover,
.login-eye:focus-visible {
  color: #fff;
  background: rgba(148, 163, 184, 0.12);
}

.login-eye svg {
  width: 25px;
  height: 25px;
}

.login-options,
.login-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 16px;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.login-remember input {
  width: 22px;
  height: 22px;
  accent-color: rgb(var(--mnp-vert-9bd12f));
}

.login-link {
  border: 0;
  padding: 0;
  color: rgb(var(--mnp-vert-9bd12f));
  background: transparent;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.login-link:hover,
.login-link:focus-visible {
  color: rgb(var(--mnp-vert-c8f266));
  text-decoration: underline;
  text-underline-offset: 4px;
}

.login-submit {
  min-height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid rgba(var(--mnp-vert-bef264), 0.66);
  border-radius: 14px;
  color: #f8fafc;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-a3e635)) 0%, rgb(var(--mnp-vert-4d7c0f)) 100%);
  box-shadow: 0 18px 42px rgba(var(--mnp-vert-84cc16), 0.28);
  font-size: 23px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-submit:hover,
.login-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(var(--mnp-vert-84cc16), 0.34);
}

.login-card-foot {
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.login-card .notice {
  margin: -6px 0 0;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.3);
  border-color: rgba(248, 113, 113, 0.28);
}

@media (max-width: 980px) {
  .login-page {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 28px 18px 42px;
  }

  .login-card {
    justify-self: center;
  }

  .login-brand-logo {
    margin: 0 auto 20px;
    width: 150px;
  }
}

@media (max-width: 560px) {
  .login-page {
    gap: 22px;
  }

  .login-card {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .login-input-wrap {
    min-height: 64px;
    padding: 0 14px;
  }

  .login-options,
  .login-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-submit {
    min-height: 66px;
    font-size: 20px;
  }
}

body.theme-dark .mnp-site-shell {
  min-height: 100vh;
  color: #f7fbff;
}

body.theme-dark .mnp-site-shell .topbar {
  height: 86px;
  padding: 0 26px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(4, 13, 23, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

body.theme-dark .mnp-site-shell .brand-logo {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 18px rgba(var(--mnp-vert-8ee820), 0.18));
}

body.theme-dark .mnp-site-shell .brand-title {
  color: #f8fbff;
  font-size: 18px;
  font-weight: 950;
}

body.theme-dark .mnp-site-shell .brand-title::first-letter {
  color: #f8fbff;
}

body.theme-dark .mnp-site-shell .brand-subtitle {
  color: rgba(213, 224, 239, 0.78);
  font-size: 12px;
}

body.theme-dark .top-actions {
  gap: 12px;
}

body.theme-dark .top-actions .top-company-switch,
body.theme-dark .top-actions .top-logout {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #f7fbff;
  background: rgba(15, 28, 46, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.theme-dark .notification-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 28, 46, 0.72);
}

/* ---- Anciennement 49-login.css ---- */
/* Accueil et connexion (choix d'espace, formulaires)
   Aussi : Espace employe.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

body.theme-dark .employee-profile-dialog .employee-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 16px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.12);
  border-radius: 15px;
  background: rgba(6, 15, 28, 0.58);
}

body.theme-dark .employee-profile-dialog .employee-profile-row strong {
  display: block;
  color: #f8fbff;
  font-size: 16px;
  font-weight: 950;
}

body.theme-dark .employee-profile-dialog .employee-profile-row small {
  display: block;
  margin-top: 5px;
  color: rgba(213, 224, 242, 0.74);
  font-weight: 750;
}

body.theme-dark .employee-profile-dialog .employee-profile-a2f-details {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), 0.12);
  border-radius: 15px;
  background: rgba(6, 15, 28, 0.54);
}

body.theme-dark .employee-profile-dialog .employee-profile-a2f-details summary {
  color: rgb(var(--mnp-vert-a8ef3f));
  cursor: pointer;
  font-weight: 950;
}

body.theme-dark .employee-profile-dialog .mnp-settings-qr-box {
  margin: 14px 0 0;
}

body.theme-dark .employee-profile-dialog .two-factor-confirm-field {
  margin-top: 14px;
}

body.theme-dark .employee-profile-dialog > .actions {
  position: sticky;
  bottom: -28px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 -28px -28px;
  padding: 16px 28px 20px;
  border-top: 1px solid rgba(var(--mnp-vert-8ee820), 0.12);
  background: rgba(7, 15, 28, 0.94);
}

body.theme-dark .employee-profile-dialog > .actions .btn:not(.secondary) {
  color: #07111f;
  border-color: rgba(var(--mnp-vert-8ee820), 0.32);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b9ff42)), rgb(var(--mnp-vert-6fb923)));
}

body.theme-dark .employee-profile-dialog > .actions .btn.secondary {
  color: #f8fbff;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.theme-toggle.is-locked {
  cursor: not-allowed;
  opacity: 0.92;
}

@media (max-width: 820px) {
  body.theme-dark .employee-profile-dialog .mnp-settings-profile-grid {
    grid-template-columns: 1fr;
  }

  body.theme-dark .employee-profile-dialog .employee-profile-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

body:has(.login-hub-page) {
  background: #030815;
}

body:has(.login-hub-page) .topbar {
  display: none;
}

body:has(.login-hub-page) .main {
  min-height: 100dvh;
  padding: 0;
}

.login-hub-page {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  justify-content: center;
  align-content: center;
  padding: 44px;
  overflow: hidden;
  background: radial-gradient(circle at -6% 3%, rgba(var(--mnp-vert-a3ee3d), 0.22), transparent 24%), radial-gradient(circle at 84% 14%, rgba(111, 96, 255, 0.24), transparent 26%), radial-gradient(circle at 15% 90%, rgba(var(--mnp-vert-8ee820), 0.12), transparent 34%), linear-gradient(135deg, #030815 0%, #07111f 52%, #040916 100%);
  color: #f8fbff;
}

.login-hub-page::before,
.login-hub-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-hub-page::before {
  left: -130px;
  top: -120px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(var(--mnp-vert-b1ff4c), 0.55);
  border-radius: 999px;
  box-shadow: 0 0 38px rgba(var(--mnp-vert-8ee820), 0.22);
}

.login-hub-page::after {
  left: 0;
  bottom: 0;
  width: 330px;
  height: 160px;
  opacity: 0.42;
  background-image: radial-gradient(rgba(var(--mnp-vert-a8ef3f), 0.7) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, #000, transparent);
}

.login-home-stage {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  width: min(1200px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 0.94fr);
  gap: 28px;
  align-items: start;
}

.login-hub-page.is-choice-step .login-home-stage,
.login-hub-page.is-login-step .login-home-stage {
  width: min(560px, calc(100vw - 48px));
  grid-template-columns: 1fr;
  gap: 16px;
}

.login-hub-page.is-login-step .login-home-stage {
  width: min(540px, calc(100vw - 48px));
}

.login-screen-pill {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  margin-bottom: 16px;
  padding: 6px 18px;
  border: 1px solid rgba(213, 224, 242, 0.17);
  border-radius: 999px;
  background: rgba(3, 8, 18, 0.56);
  color: rgba(226, 235, 250, 0.82);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-screen-pill svg {
  width: 14px;
  height: 14px;
  color: rgb(var(--mnp-vert-a8ef3f));
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.login-screen-pill-left {
  grid-column: 1;
}

.login-screen-pill-right {
  grid-column: 2;
}

.login-hub-page.is-login-step .login-screen-pill-right,
.login-hub-page.is-choice-step .login-screen-pill-left {
  grid-column: 1;
}

.login-space-panel,
.login-pro-card {
  min-height: 522px;
  border: 1px solid rgba(213, 224, 242, 0.18);
  border-radius: 24px;
  background: radial-gradient(circle at 12% 12%, rgba(var(--mnp-vert-8ee820), 0.09), transparent 35%), linear-gradient(150deg, rgba(12, 21, 36, 0.88), rgba(3, 8, 18, 0.92));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-space-panel {
  grid-column: 1;
  padding: 28px;
}

.login-pro-card {
  grid-column: 2;
  position: relative;
  width: 100%;
  max-width: none;
  padding: 34px;
  border-color: rgba(129, 128, 255, 0.55);
  background: radial-gradient(circle at 92% 0%, rgba(111, 96, 255, 0.2), transparent 30%), linear-gradient(155deg, rgba(10, 18, 34, 0.95), rgba(5, 9, 22, 0.96));
  box-shadow: 0 0 0 1px rgba(111, 96, 255, 0.16), 0 30px 82px rgba(0, 0, 0, 0.42), 0 0 40px rgba(111, 96, 255, 0.22);
}

.login-hub-page.is-login-step .login-pro-card {
  grid-column: 1;
}

.login-space-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 26px;
}

.login-space-brand .login-brand-logo {
  width: 114px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(var(--mnp-vert-8ee820), 0.2));
}

.login-space-brand h1 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(38px, 5vw, 50px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: 0;
}

.login-space-brand p,
.login-card-title p {
  margin: 9px 0 0;
  color: rgba(213, 224, 242, 0.72);
  font-weight: 650;
}

.login-space-list {
  display: grid;
  gap: 14px;
}

.login-space-card {
  width: 100%;
  min-height: 98px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 136px;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(213, 224, 242, 0.12);
  border-radius: 18px;
  background: radial-gradient(circle at 10% 45%, rgba(var(--mnp-vert-8ee820), 0.07), transparent 34%), rgba(11, 19, 33, 0.76);
  color: #f8fbff;
  text-align: left;
  cursor: default;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.login-space-card.is-primary {
  border-color: rgba(var(--mnp-vert-a8ef3f), 0.8);
  box-shadow: 0 0 28px rgba(var(--mnp-vert-8ee820), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.login-space-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--mnp-vert-a8ef3f), 0.18);
  border-radius: 16px;
  background: rgba(var(--mnp-vert-8ee820), 0.09);
}

.login-space-icon svg {
  width: 34px;
  height: 34px;
  color: rgb(var(--mnp-vert-a8ef3f));
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.login-space-copy strong {
  display: block;
  color: #f8fbff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.05;
}

.login-space-copy em,
.login-pro-card .login-card-title h2 span {
  color: rgb(var(--mnp-vert-a8ef3f));
  font-style: normal;
}

.login-space-copy small {
  display: block;
  margin-top: 7px;
  color: rgba(213, 224, 242, 0.7);
  font-size: 14px;
  font-weight: 650;
}

.login-space-action {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(var(--mnp-vert-a8ef3f), 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--mnp-vert-b8ff43), 0.86), rgba(var(--mnp-vert-5d8727), 0.88));
  color: #f8fbff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(var(--mnp-vert-8ee820), 0.18);
}

.login-space-action.is-muted {
  border-color: rgba(213, 224, 242, 0.18);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.login-space-action svg,
.login-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgb(var(--mnp-vert-a8ef3f));
  font-size: 13px;
  font-weight: 800;
}

.login-back-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.login-pro-card .login-card-title {
  margin-bottom: 22px;
  text-align: center;
}

.login-pro-card .login-card-title h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.login-pro-card .login-field {
  gap: 8px;
  margin-top: 16px;
}

.login-pro-card .login-input-wrap {
  min-height: 58px;
  border-radius: 13px;
  border-color: rgba(213, 224, 242, 0.14);
  background: rgba(4, 10, 22, 0.8);
}

.login-pro-card .login-input-wrap:focus-within {
  border-color: rgba(var(--mnp-vert-a8ef3f), 0.66);
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-8ee820), 0.12);
}

.login-pro-card .login-input-wrap > svg,
.login-card-foot > svg {
  color: rgb(var(--mnp-vert-a8ef3f));
}

.login-pro-card .login-options {
  margin-top: 14px;
}

.login-pro-card .login-remember input {
  accent-color: rgb(var(--mnp-vert-a8ef3f));
}

.login-pro-card .login-link {
  color: rgb(var(--mnp-vert-a8ef3f));
}

.login-pro-card .login-submit {
  min-height: 58px;
  margin-top: 18px;
  border-radius: 13px;
  color: #f8fbff;
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b7f44d)), rgb(var(--mnp-vert-5e842d)));
  box-shadow: 0 18px 40px rgba(var(--mnp-vert-8ee820), 0.24);
}

.login-pro-card .login-card-foot {
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(213, 224, 242, 0.14);
  color: rgba(213, 224, 242, 0.7);
  text-align: center;
}

.login-pro-card .login-card-foot > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

@media (max-width: 760px) {
  .login-hub-page {
    padding: 24px;
    align-items: start;
  }

  .login-home-stage {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .login-screen-pill-left,
  .login-screen-pill-right,
  .login-space-panel,
  .login-pro-card {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .login-space-panel,
  .login-pro-card {
    min-height: auto;
    padding: 24px;
    border-radius: 18px;
  }

  .login-space-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-space-card {
    grid-template-columns: 58px 1fr;
  }

  .login-space-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

body .login-hub-page:has(.mnp-send-page) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

body .login-hub-page:has(.mnp-send-page) .login-home-stage {
  position: relative;
  inset: auto;
  flex: 0 1 auto;
  width: min(1120px, calc(100vw - 48px));
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  transform: none;
  grid-template-columns: minmax(0, 1fr);
}

body .login-hub-page:has(.mnp-send-page) .login-screen-pill,
body .login-hub-page:has(.mnp-send-page) .mnp-send-page {
  grid-column: 1;
  justify-self: center;
}

body .login-hub-page:has(.mnp-send-page) .mnp-send-page {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

@media (max-width: 820px) {
  body .login-hub-page:has(.mnp-send-page) .login-home-stage {
    width: 100%;
  }
}

body .login-hub-page:has(.mnp-send-desktop) .login-home-stage {
  width: min(1320px, calc(100vw - 42px));
  max-width: 1320px;
}

/* Accès administrateur dans le lobby. */
.login-space-card.login-space-admin { border-color:#ff354d; background:radial-gradient(circle at 10% 45%,rgba(255,35,65,.22),transparent 55%),rgba(30,10,20,.9); box-shadow:0 0 24px rgba(255,35,65,.2); cursor:pointer; }
.login-space-admin .login-space-icon { border-color:rgba(255,53,77,.45); background:rgba(255,35,65,.16); }
.login-space-admin .login-space-icon svg,.login-space-admin .login-space-copy em { color:#ff455b; }
.login-space-admin .login-space-action { border-color:#ff455b; background:linear-gradient(135deg,#ff2341,#cc1232); box-shadow:0 12px 24px rgba(255,35,65,.25); }
.login-space-card.login-space-admin:hover { border-color:#ff7182; box-shadow:0 0 30px rgba(255,35,65,.35); }

/* Survol et navigation clavier des espaces du lobby. */
.login-space-card { --space-glow:var(--mnp-vert-a8ef3f); transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
.login-space-card:not(:disabled) { cursor:pointer; }
.login-space-admin { --space-glow:255,53,77; }
.login-space-card .login-space-icon { transition:transform .22s ease,box-shadow .22s ease; }
.login-space-card .login-space-action { transition:transform .22s ease,filter .22s ease,box-shadow .22s ease; }
.login-space-card .login-space-action svg { transition:transform .22s ease; }
.login-space-card:focus-visible { outline:3px solid rgb(var(--space-glow)); outline-offset:5px; }
@media (hover:hover) and (pointer:fine) {
  .login-space-card:not(:disabled):hover { transform:translateY(-4px); border-color:rgb(var(--space-glow)); box-shadow:0 14px 32px rgba(0,0,0,.25),0 0 26px rgba(var(--space-glow),.24),inset 0 0 30px rgba(var(--space-glow),.07); }
  .login-space-card:not(:disabled):hover .login-space-icon { transform:scale(1.06); box-shadow:0 0 20px rgba(var(--space-glow),.2); }
  .login-space-card:not(:disabled):hover .login-space-action { transform:translateX(3px); filter:brightness(1.15); box-shadow:0 8px 24px rgba(var(--space-glow),.3); }
  .login-space-card:not(:disabled):hover .login-space-action svg { transform:translateX(3px); }
}
.login-space-card:not(:disabled):active { transform:translateY(-1px) scale(.99); }
@media (prefers-reduced-motion:reduce) {
  .login-space-card,.login-space-card .login-space-icon,.login-space-card .login-space-action,.login-space-card .login-space-action svg { transition:none; }
  .login-space-card:not(:disabled):is(:hover,:active),.login-space-card:not(:disabled):hover .login-space-icon,.login-space-card:not(:disabled):hover .login-space-action,.login-space-card:not(:disabled):hover .login-space-action svg { transform:none; }
}

.login-space-inbox{--space-glow:56,189,248;--mnp-vert-a8ef3f:56,189,248;--mnp-vert-8ee820:56,189,248;}
.login-space-inbox .login-space-icon,.login-space-inbox em{color:#38bdf8;}
.login-space-inbox .login-space-action{background:linear-gradient(135deg,#38bdf8,#2563eb);color:#fff;}
.login-space-school{--space-glow:245,197,66;--mnp-vert-a8ef3f:245,197,66;--mnp-vert-8ee820:245,197,66;}
.login-space-school .login-space-icon,.login-space-school em{color:#f5c542;}
.login-space-school .login-space-action{background:linear-gradient(135deg,#f5c542,#d97706);color:#1f1300;}

/* SOURCE: css/50-send.css */
/* MNP Send : envoi de fichiers et bureau
   Aussi : Choix de la societe, des domaines et dossiers, Structure des pages, Base.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

body .login-hub-page:has(.mnp-send-desktop) .mnp-send-desktop {
  width: 100%;
  max-width: 1320px;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(213, 224, 242, 0.15);
  border-radius: 24px;
  background: #0a1220;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.55);
}

.mnp-desktop-bar {
  min-height: 66px;
  display: grid;
  grid-template-columns: 150px 1fr 190px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(213, 224, 242, 0.1);
  background: rgba(17, 27, 45, 0.97);
}

.mnp-window-dots {
  display: flex;
  gap: 8px;
}

.mnp-window-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff6767;
}

.mnp-window-dots i:nth-child(2) {
  background: #f4bf4f;
}

.mnp-window-dots i:nth-child(3) {
  background: rgb(var(--mnp-vert-77cf63));
}

.mnp-window-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #f7faff;
  font-weight: 900;
}

.mnp-window-title svg {
  width: 20px;
  height: 20px;
  fill: rgba(var(--mnp-vert-a8ef3f), 0.16);
  stroke: rgb(var(--mnp-vert-a8ef3f));
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnp-window-title small {
  color: rgba(213, 224, 242, 0.48);
  font-weight: 700;
}

.mnp-desktop-body {
  min-height: 720px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

/* Barre latérale commune des MNP (shared/mnp-sidebar.css) dans la fenêtre : elle suit la hauteur de la fenêtre */
.mnp-desktop-body > .mnp-side {
  position: relative;
  top: auto;
  min-height: 100%;
  max-height: none;
  box-shadow: none;
}

.mnp-desktop-content {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 30px;
  background: radial-gradient(circle at 14% 0%, rgba(var(--mnp-vert-8ee820), 0.08), transparent 27%), linear-gradient(145deg, #0d1727, #080f1c);
}

.mnp-desktop-content::before,
.mnp-desktop-content::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.mnp-desktop-content::before {
  right: 28px;
  bottom: 25px;
  width: 105px;
  height: 105px;
  border-right: 1px solid rgba(var(--mnp-vert-a8ef3f), .07);
  border-bottom: 1px solid rgba(var(--mnp-vert-a8ef3f), .07);
  border-radius: 0 0 28px 0;
}

.mnp-desktop-content::after {
  right: 48px;
  bottom: 46px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(var(--mnp-vert-a8ef3f), .3);
  box-shadow: -18px 0 rgba(var(--mnp-vert-a8ef3f), .13), 0 -18px rgba(var(--mnp-vert-a8ef3f), .13), -18px -18px rgba(var(--mnp-vert-a8ef3f), .07);
}

.mnp-desktop-content > * {
  position: relative;
  z-index: 1;
}

.mnp-send-desktop .mnp-send-hero {
  grid-template-columns: 62px minmax(0, 1fr);
}

.mnp-send-desktop .mnp-send-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.mnp-send-desktop .mnp-send-hero h1 {
  font-size: clamp(38px, 4vw, 54px);
}

.mnp-send-desktop .mnp-send-card {
  border-radius: 18px;
  background: rgba(15, 26, 45, 0.86);
}

.mnp-send-desktop .mnp-send-drop {
  min-height: 315px;
}

.mnp-send-desktop .mnp-send-result,
.mnp-send-desktop .mnp-send-history {
  border-radius: 18px;
}

.mnp-history-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.mnp-history-heading span {
  color: rgb(var(--mnp-vert-a8ef3f));
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mnp-history-heading h2 {
  margin: 4px 0 0;
}

.mnp-history-heading > small {
  color: rgba(213,224,242,.46);
  font-size: 11px;
}

@media (max-width: 980px) {
  .mnp-desktop-body {
    grid-template-columns: 1fr;
  }

  .mnp-desktop-body > .mnp-side {
    width: 100%;
  }

  .mnp-desktop-content {
    padding: 22px;
  }

  .mnp-desktop-bar {
    grid-template-columns: 70px 1fr auto;
  }

  .mnp-window-title small {
    display: none;
  }
}

@media (max-width: 620px) {
  body .login-hub-page:has(.mnp-send-desktop) .login-home-stage {
    width: 100%;
  }

  body .login-hub-page:has(.mnp-send-desktop) .mnp-send-desktop {
    border-radius: 18px;
  }

  .mnp-desktop-bar {
    min-height: 58px;
    grid-template-columns: 52px 1fr auto;
    padding: 0 12px;
  }

  .mnp-window-title {
    justify-content: flex-start;
  }

  .mnp-window-title span {
    display: none;
  }

  .mnp-desktop-content {
    padding: 18px 14px;
  }
}

[data-mnp-send-panel] {
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

[data-mnp-send-panel].is-folder-target {
  border-color: rgba(var(--mnp-vert-a8ef3f), 0.58);
  box-shadow: 0 0 0 3px rgba(var(--mnp-vert-a8ef3f), 0.08), 0 18px 45px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

@keyframes mnp-folder-shake {
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
}

.mnp-send-desktop .mnp-send-hero,
.mnp-send-desktop [data-mnp-send-panel],
.mnp-send-desktop [data-mnp-send-empty-panel] {
  display: none;
}

.mnp-send-desktop[data-active-folder="upload"] .mnp-send-hero,
.mnp-send-desktop[data-active-folder="upload"] [data-mnp-send-panel="upload"],
.mnp-send-desktop[data-active-folder="storage"] [data-mnp-send-panel="storage"],
.mnp-send-desktop[data-active-folder="history"] [data-mnp-send-panel="history"],
.mnp-send-desktop[data-active-folder="links"] [data-mnp-send-panel="links"],
.mnp-send-desktop[data-active-folder="links"] [data-mnp-send-empty-panel="links"],
.mnp-send-desktop[data-active-folder="trash"] [data-mnp-send-empty-panel="trash"] {
  display: grid;
}

.mnp-send-folder-empty {
  min-height: 470px;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 40px;
  border: 1px solid rgba(213, 224, 242, 0.1);
  border-radius: 20px;
  background: rgba(14, 25, 43, 0.72);
  text-align: center;
}

.mnp-empty-folder-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid rgba(var(--mnp-vert-a8ef3f), 0.22);
  border-radius: 22px;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: rgba(var(--mnp-vert-a8ef3f), 0.09);
}

.mnp-empty-folder-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnp-send-folder-empty small {
  color: rgb(var(--mnp-vert-a8ef3f));
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mnp-send-folder-empty h2 {
  margin: 3px 0 0;
  color: #f8fbff;
  font-size: 25px;
}

.mnp-send-folder-empty p {
  margin: 0;
  color: rgba(213, 224, 242, .58);
}

.mnp-send-folder-empty button {
  min-height: 42px;
  margin-top: 14px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  color: #09111d;
  background: rgb(var(--mnp-vert-a8ef3f));
  font-weight: 950;
  cursor: pointer;
}

.mnp-storage-view {
  align-content: start;
  gap: 18px;
  min-height: 600px;
  padding: 22px;
  border: 1px solid rgba(213, 224, 242, 0.1);
  border-radius: 20px;
  background: rgba(14, 25, 43, 0.76);
}

.mnp-storage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.mnp-storage-toolbar small {
  color: rgb(var(--mnp-vert-a8ef3f));
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mnp-storage-toolbar h2 {
  margin: 4px 0 0;
  color: #f8fbff;
  font-size: 24px;
}

.mnp-storage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mnp-storage-actions button,
.mnp-storage-upload {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(213,224,242,.12);
  border-radius: 10px;
  color: #f8fbff;
  background: rgba(255,255,255,.055);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.mnp-storage-upload.is-folder-upload {
  color: #f8fbff;
  border-color: rgba(var(--mnp-vert-a8ef3f), .28);
  background: rgba(var(--mnp-vert-a8ef3f), .08);
}

.mnp-storage-upload {
  color: #09111d;
  border-color: rgb(var(--mnp-vert-a8ef3f));
  background: rgb(var(--mnp-vert-a8ef3f));
  gap: 7px;
  white-space: nowrap;
}

.mnp-storage-upload > svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnp-storage-upload:hover,
.mnp-storage-actions button:hover {
  filter: brightness(1.12);
}

.mnp-storage-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mnp-storage-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: rgba(213,224,242,.48);
  font-size: 11px;
}

.mnp-storage-path b {
  color: rgba(213,224,242,.25);
}

.mnp-storage-path strong {
  color: #f8fbff;
}

.mnp-storage-path button {
  max-width: min(280px, 100%);
  overflow: hidden;
  padding: 4px 7px;
  border: 0;
  border-radius: 7px;
  color: rgba(213, 224, 242, .55);
  background: transparent;
  font: inherit;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

.mnp-storage-path button:hover {
  color: rgb(var(--mnp-vert-a8ef3f));
  background: rgba(var(--mnp-vert-a8ef3f), .08);
}

.mnp-storage-path button[aria-current="page"] {
  color: #f8fbff;
  background: rgba(255,255,255,.055);
  font-weight: 950;
}

.mnp-storage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  align-content: start;
  gap: 12px;
}

.mnp-drive-item {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(213,224,242,.09);
  border-radius: 15px;
  background: rgba(5,11,22,.55);
  transition: .2s ease;
}

.mnp-drive-item:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--mnp-vert-a8ef3f), .34);
  background: rgba(14,28,43,.9);
}

.mnp-drive-open {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 18px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mnp-drive-open > span {
  width: 52px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 12px;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: rgba(var(--mnp-vert-a8ef3f), .1);
  font-size: 11px;
  font-weight: 1000;
}

.mnp-drive-open > span svg {
  width: 29px;
  height: 29px;
  fill: rgba(var(--mnp-vert-a8ef3f), .16);
  stroke: currentColor;
  stroke-width: 1.7;
}

.mnp-drive-open strong {
  width: 100%;
  overflow: hidden;
  color: #f8fbff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mnp-drive-open small {
  color: rgba(213,224,242,.44);
  font-size: 10px;
}

.mnp-drive-delete {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,120,120,.16);
  border-radius: 8px;
  color: rgba(255,170,170,.7);
  background: rgba(70,20,28,.35);
  cursor: pointer;
}

.mnp-storage-state {
  grid-column: 1 / -1;
  min-height: 390px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: rgba(213,224,242,.55);
  text-align: center;
}

.mnp-storage-state strong {
  color: #f8fbff;
}

@media (max-width: 650px) {
  .mnp-storage-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mnp-storage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* SOURCE: css/51-admin.css */
/* ---- Anciennement 29-admin.css ---- */
/* Administration : utilisateurs, societes, modules, domaines, architecture
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

body.theme-dark .admin-page.admin-v2 {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 2.6vw, 38px);
}

.admin-v2 .admin-command-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.admin-v2 .admin-command-kicker {
  display: block;
  margin-bottom: 7px;
  color: rgb(var(--mnp-vert-a8ef3f));
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.admin-v2 .admin-command-bar h1 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -.035em;
}

.admin-v2 .admin-command-bar p {
  max-width: 720px;
  margin: 9px 0 0;
  color: rgba(213,224,242,.6);
  font-size: 13px;
}

.admin-v2 .admin-command-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.theme-dark .admin-v2 .admin-shell {
  min-height: 760px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0;
  overflow: clip;
  border: 1px solid rgba(213,224,242,.11);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}

/* Barre latérale commune des MNP (shared/mnp-sidebar.css) dans la carte : collée sous la barre du haut (86 px)
   pendant le défilement, pour garder « Espaces MNP » visible ; la carte coupe avec overflow: clip (pas hidden,
   qui empêcherait la barre de rester collée) */
.admin-v2 .admin-shell > .mnp-side {
  --mnp-side-top: 86px;
  min-height: min(100%, calc(100vh - 86px));
  box-shadow: none;
}

body.theme-dark .admin-v2 .admin-content {
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
}

.admin-v2 .admin-content-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(213,224,242,.075);
}

.admin-v2 .admin-content-context > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(213,224,242,.36);
  font-size: 10px;
}

.admin-v2 .admin-content-context b {
  color: rgba(213,224,242,.18);
}

.admin-v2 .admin-content-context strong {
  color: rgba(238,244,252,.82);
}

.admin-v2 .admin-content-context > small {
  color: rgba(213,224,242,.4);
  font-size: 9px;
}

.admin-v2 .admin-section-head {
  margin-bottom: 18px;
}

.admin-v2 .admin-section-head h2 {
  color: #f8fbff;
  font-size: clamp(23px, 2.4vw, 31px);
  letter-spacing: -.025em;
}

.admin-v2 .admin-section-head p {
  max-width: 760px;
  color: rgba(213,224,242,.52);
}

.admin-v2 .admin-form,
.admin-v2 .work-panel,
.admin-v2 .domain-management {
  border-color: rgba(213,224,242,.09);
  border-radius: 17px;
  background: rgba(16,28,47,.68);
  box-shadow: none;
}

.admin-v2 .admin-form {
  padding: 22px;
}

.admin-v2 .admin-form input,
.admin-v2 .admin-form select,
.admin-v2 .admin-form textarea {
  border-radius: 11px;
  border-color: rgba(213,224,242,.11);
  background: rgba(4,10,19,.5);
}

.admin-v2 .admin-metrics {
  gap: 12px;
}

.admin-v2 .admin-metrics .metric {
  min-height: 112px;
  padding: 19px;
  border: 1px solid rgba(213,224,242,.08);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(18,32,52,.9), rgba(10,19,33,.9));
}

.admin-v2 .admin-metrics .metric strong {
  color: rgb(var(--mnp-vert-a8ef3f));
  font-size: 30px;
}

.admin-v2 .dashboard-action-card {
  border-radius: 15px;
  border-color: rgba(213,224,242,.08);
  background: rgba(16,28,47,.68);
}

.admin-v2 .user-company-folder {
  overflow: hidden;
  border-color: rgba(213,224,242,.09);
  border-radius: 15px;
  background: rgba(15,27,45,.62);
}

.admin-v2 .admin-person {
  border-radius: 13px;
}

@media (max-width: 1050px) {
  body.theme-dark .admin-v2 .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-v2 .admin-shell > .mnp-side {
    width: 100%;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  body.theme-dark .admin-page.admin-v2 {
    padding: 12px;
  }

  .admin-v2 .admin-command-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-v2 .admin-command-actions {
    width: 100%;
    justify-content: space-between;
  }

  body.theme-dark .admin-v2 .admin-shell {
    border-radius: 18px;
  }

  body.theme-dark .admin-v2 .admin-content {
    padding: 18px 14px 26px;
  }

  .admin-v2 .admin-content-context,
  .admin-v2 .admin-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-v2 .admin-section-head .btn {
    width: 100%;
  }
}

/* ---- Anciennement 51-admin.css ---- */
/* Administration : utilisateurs, societes, modules, domaines, architecture
   Aussi : Choix de la societe, des domaines et dossiers, Base.
   (issu de polish.css ; l'ordre des fichiers compte : voir css/README.md) */

.mnp-folder-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 7, 14, 0.72);
  backdrop-filter: blur(10px);
  animation: mnp-dialog-fade .18s ease-out;
}

.mnp-folder-dialog {
  position: relative;
  width: min(470px, 100%);
  display: grid;
  justify-items: center;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(var(--mnp-vert-a8ef3f), 0.2);
  border-radius: 23px;
  background: radial-gradient(circle at 50% 0%, rgba(var(--mnp-vert-a8ef3f), .12), transparent 38%), linear-gradient(145deg, #121e31, #09111e);
  box-shadow: 0 36px 100px rgba(0, 0, 0, .62);
  animation: mnp-dialog-in .22s ease-out;
}

.mnp-folder-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213,224,242,.1);
  border-radius: 10px;
  color: rgba(231,238,249,.62);
  background: rgba(255,255,255,.045);
  font-size: 20px;
  cursor: pointer;
}

.mnp-folder-dialog-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border: 1px solid rgba(var(--mnp-vert-a8ef3f), .28);
  border-radius: 19px;
  color: rgb(var(--mnp-vert-a8ef3f));
  background: rgba(var(--mnp-vert-a8ef3f), .1);
}

.mnp-folder-dialog-icon svg {
  width: 34px;
  height: 34px;
  fill: rgba(var(--mnp-vert-a8ef3f), .13);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnp-folder-dialog > small {
  color: rgb(var(--mnp-vert-a8ef3f));
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mnp-folder-dialog h2 {
  margin: 5px 0 7px;
  color: #f8fbff;
  font-size: 27px;
}

.mnp-folder-dialog > p {
  margin: 0 0 22px;
  color: rgba(213,224,242,.55);
  text-align: center;
}

.mnp-folder-dialog > p strong {
  color: rgba(238,244,252,.86);
}

.mnp-folder-dialog > label {
  width: 100%;
  display: grid;
  gap: 8px;
}

.mnp-folder-dialog > label span {
  color: #f8fbff;
  font-size: 12px;
  font-weight: 900;
}

.mnp-folder-dialog input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(213,224,242,.14);
  border-radius: 13px;
  outline: 0;
  color: #f8fbff;
  background: rgba(4,10,19,.72);
  font: inherit;
  font-weight: 800;
}

.mnp-folder-dialog input:focus {
  border-color: rgb(var(--mnp-vert-a8ef3f));
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-a8ef3f), .1);
}

.mnp-folder-dialog .notice {
  width: 100%;
  margin: 9px 0 0;
  color: #ffabab;
  font-size: 11px;
}

.mnp-folder-dialog-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 22px;
}

.mnp-folder-dialog-actions button {
  min-height: 48px;
  border: 1px solid rgba(213,224,242,.12);
  border-radius: 12px;
  color: #f8fbff;
  background: rgba(255,255,255,.055);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.mnp-folder-dialog-actions button[type="submit"] {
  color: #09111d;
  border-color: rgb(var(--mnp-vert-a8ef3f));
  background: linear-gradient(135deg, rgb(var(--mnp-vert-b8f94d)), rgb(var(--mnp-vert-83bb35)));
  box-shadow: 0 13px 28px rgba(var(--mnp-vert-8ee820), .16);
}

.mnp-delete-dialog .mnp-folder-dialog-icon {
  color: #ff8b8b;
  border-color: rgba(255,100,110,.25);
  background: rgba(255,78,92,.09);
}

.mnp-delete-dialog > small {
  color: #ff9292;
}

.mnp-delete-warning {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,100,110,.15);
  border-radius: 11px;
  color: rgba(255,198,198,.75);
  background: rgba(100,22,32,.18);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.mnp-folder-dialog-actions button.is-danger {
  color: #fff;
  border-color: rgba(255,99,108,.5);
  background: linear-gradient(135deg, #ef5963, #b92f43);
  box-shadow: 0 13px 28px rgba(190,45,60,.2);
}

.mnp-folder-dialog-actions button:disabled {
  opacity: .55;
  cursor: wait;
}

@keyframes mnp-dialog-fade {
  from {
    opacity: 0;
  }
}

@keyframes mnp-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
}

@media (max-width: 520px) {
  .mnp-folder-dialog {
    padding: 28px 20px 22px;
  }

  .mnp-folder-dialog-actions {
    grid-template-columns: 1fr;
  }
}

body.theme-dark .admin-page.admin-v2 {
  --admin-mnp-green: rgb(var(--mnp-vert-8ee820));
  --admin-mnp-bg: #03101c;
  --admin-mnp-surface: #071524;
  --admin-mnp-line: rgba(148, 163, 184, .13);
}

body.theme-dark .admin-v2 .admin-shell {
  border-color: var(--admin-mnp-line);
  background: var(--admin-mnp-bg);
}

body.theme-dark .admin-v2 .admin-content {
  background: radial-gradient(circle at 88% 2%, rgba(var(--mnp-vert-8ee820), .055), transparent 28%), linear-gradient(145deg, var(--admin-mnp-surface), var(--admin-mnp-bg));
}

body.theme-dark .admin-v2 .admin-command-kicker,
body.theme-dark .admin-v2 .admin-metrics .metric strong {
  color: var(--admin-mnp-green);
}

body.theme-dark .admin-v2 .admin-form,
body.theme-dark .admin-v2 .work-panel,
body.theme-dark .admin-v2 .domain-management,
body.theme-dark .admin-v2 .dashboard-action-card,
body.theme-dark .admin-v2 .user-company-folder {
  border-color: var(--admin-mnp-line);
  background: rgba(11,26,43,.78);
}

body.theme-dark .admin-v2 .admin-metrics .metric {
  border-color: var(--admin-mnp-line);
  background: linear-gradient(145deg, rgba(11,29,47,.96), rgba(5,17,29,.96));
}

body.theme-dark .admin-v2 .btn:not(.danger):not(.secondary) {
  color: #06101a;
  border-color: rgba(var(--mnp-vert-8ee820), .72);
  background: linear-gradient(135deg, rgb(var(--mnp-vert-a5ef43)), rgb(var(--mnp-vert-71ab2b)));
  box-shadow: 0 12px 28px rgba(var(--mnp-vert-68ab23), .16);
}

body.theme-dark .admin-v2 .btn.secondary {
  color: rgba(239,246,255,.82);
  border-color: var(--admin-mnp-line);
  background: rgba(15,31,49,.86);
  box-shadow: none;
}

body.theme-dark .admin-v2 .btn.secondary:hover {
  color: var(--admin-mnp-green);
  border-color: rgba(var(--mnp-vert-8ee820), .24);
  background: rgba(var(--mnp-vert-8ee820), .1);
}

body.theme-dark .admin-v2 .admin-form input:focus,
body.theme-dark .admin-v2 .admin-form select:focus,
body.theme-dark .admin-v2 .admin-form textarea:focus {
  border-color: rgba(var(--mnp-vert-8ee820), .55);
  box-shadow: 0 0 0 4px rgba(var(--mnp-vert-8ee820), .09);
}

body.theme-dark .admin-v2 input[type="checkbox"]:checked {
  border-color: var(--admin-mnp-green);
  background: var(--admin-mnp-green);
  box-shadow: 0 7px 18px rgba(var(--mnp-vert-8ee820), .16);
}

body.theme-dark .admin-v2 .tag.good,
body.theme-dark .admin-v2 .access-type-btn.is-active {
  color: var(--admin-mnp-green);
  border-color: rgba(var(--mnp-vert-8ee820), .24);
  background: rgba(var(--mnp-vert-8ee820), .1);
}

.admin-v2 .admin-section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--admin-mnp-green);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.admin-v2 .admin-users-heading {
  align-items: flex-end;
}

.admin-v2 .admin-user-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 11px;
  margin-bottom: 17px;
}

.admin-v2 .admin-user-overview article {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 17px;
  border: 1px solid var(--admin-mnp-line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(12,30,48,.92), rgba(5,17,29,.92));
}

.admin-v2 .admin-user-overview span {
  color: rgba(213,224,242,.48);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-v2 .admin-user-overview strong {
  color: #f8fbff;
  font-size: 27px;
  line-height: 1;
}

.admin-v2 .admin-user-overview small {
  color: rgba(213,224,242,.36);
  font-size: 9px;
}

.admin-v2 .admin-user-overview .is-active strong {
  color: var(--admin-mnp-green);
}

.admin-v2 .admin-user-overview .is-temporary strong {
  color: #f4bf4f;
}

.admin-v2 .admin-user-overview .is-disabled strong {
  color: #ff8b8b;
}

.admin-v2 .admin-user-workspace {
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--admin-mnp-line);
  border-radius: 17px;
  background: rgba(6,17,30,.55);
}

.admin-v2 .admin-user-toolbar {
  display: grid;
  grid-template-columns: minmax(260px,1fr) repeat(3,minmax(145px,.42fr));
  gap: 9px;
  padding: 14px;
  border-bottom: 1px solid var(--admin-mnp-line);
  background: rgba(12,28,46,.68);
}

.admin-v2 .admin-user-search {
  min-height: 43px;
  display: grid;
  grid-template-columns: 22px minmax(0,1fr);
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 11px;
  background: rgba(3,12,22,.72);
}

.admin-v2 .admin-user-search:focus-within {
  border-color: rgba(var(--mnp-vert-8ee820), .45);
  box-shadow: 0 0 0 3px rgba(var(--mnp-vert-8ee820), .07);
}

.admin-v2 .admin-user-search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: rgba(213,224,242,.4);
  stroke-width: 1.8;
}

.admin-v2 .admin-user-search input {
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: #f8fbff;
  background: transparent;
  font-size: 11px;
}

.admin-v2 .admin-user-toolbar select {
  min-height: 43px;
  padding: 0 36px 0 12px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 11px;
  color: rgba(238,244,252,.78);
  background-color: rgba(3,12,22,.72);
  font-size: 10px;
  font-weight: 800;
}

.admin-v2 .admin-user-create-wrap {
  padding: 14px;
  border-bottom: 1px solid var(--admin-mnp-line);
  background: rgba(var(--mnp-vert-8ee820), .025);
}

.admin-v2 .admin-user-create-wrap .admin-form {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin: 0;
}

.admin-v2 .admin-user-create-wrap .admin-row-head,
.admin-v2 .admin-user-create-wrap .admin-access-duration,
.admin-v2 .admin-user-create-wrap .temporary-access-field,
.admin-v2 .admin-user-create-wrap .switch-row,
.admin-v2 .admin-user-create-wrap .admin-form > button[type="submit"] {
  grid-column: 1 / -1;
}

.admin-v2 .admin-user-list-head,
.admin-v2 .admin-user-record-summary {
  display: grid;
  grid-template-columns: minmax(230px,1.65fr) minmax(150px,1fr) minmax(90px,.55fr) minmax(150px,.9fr) 22px;
  align-items: center;
  gap: 14px;
}

.admin-v2 .admin-user-list-head {
  min-height: 38px;
  padding: 0 17px;
  border-bottom: 1px solid rgba(148,163,184,.08);
  color: rgba(213,224,242,.3);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.admin-v2 .admin-user-record {
  border-bottom: 1px solid rgba(148,163,184,.075);
}

.admin-v2 .admin-user-record:last-of-type {
  border-bottom: 0;
}

.admin-v2 .admin-user-record[hidden] {
  display: none !important;
}

.admin-v2 .admin-user-record-summary {
  width: 100%;
  min-height: 68px;
  padding: 9px 17px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .17s ease;
}

.admin-v2 .admin-user-record-summary:hover {
  background: rgba(255,255,255,.025);
}

.admin-v2 .admin-user-record.is-open .admin-user-record-summary {
  background: rgba(var(--mnp-vert-8ee820), .045);
}

.admin-v2 .admin-user-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  align-items: center;
  gap: 10px;
}

.admin-v2 .admin-user-identity .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.admin-v2 .admin-user-identity strong,
.admin-v2 .admin-user-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-v2 .admin-user-identity strong {
  color: #f8fbff;
  font-size: 11px;
}

.admin-v2 .admin-user-identity small {
  margin-top: 3px;
  color: rgba(213,224,242,.35);
  font-size: 9px;
}

.admin-v2 .admin-user-companies {
  overflow: hidden;
  color: rgba(226,235,247,.6);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-v2 .admin-user-role {
  width: max-content;
  padding: 5px 8px;
  border: 1px solid rgba(148,163,184,.11);
  border-radius: 8px;
  color: rgba(226,235,247,.7);
  background: rgba(255,255,255,.04);
  font-size: 9px;
  font-weight: 850;
}

.admin-v2 .admin-user-setting-card.is-spaces {
  grid-column: 1 / -1;
}

.admin-v2 .admin-space-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-v2 .admin-space-access-choice {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 14px;
  background: rgba(4,10,24,.48);
  cursor: pointer;
  transition: .18s ease;
}

.admin-v2 .admin-space-access-choice:hover {
  border-color: rgba(var(--mnp-vert-aeee4e), .36);
  transform: translateY(-1px);
}

.admin-v2 .admin-space-access-choice.is-enabled,
.admin-v2 .admin-space-access-choice:has(input:checked) {
  border-color: rgba(var(--mnp-vert-aeee4e), .42);
  background: linear-gradient(135deg, rgba(var(--mnp-vert-aeee4e), .09), rgba(7,15,31,.62));
  box-shadow: inset 3px 0 rgb(var(--mnp-vert-aeee4e));
}

.admin-v2 .admin-space-access-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-v2 .admin-space-access-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(var(--mnp-vert-aeee4e), .1);
  color: rgb(var(--mnp-vert-b7f353));
  font-size: 16px;
  font-weight: 950;
}

.admin-v2 .admin-space-access-choice span:nth-of-type(2) {
  display: grid;
  gap: 3px;
}

.admin-v2 .admin-space-access-choice strong {
  color: #f5f8ff;
  font-size: 12px;
}

.admin-v2 .admin-space-access-choice small {
  color: rgba(188,201,222,.58);
  font-size: 9px;
}

.admin-v2 .admin-space-access-choice em {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(148,163,184,.08);
  color: rgba(188,201,222,.58);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-v2 .admin-space-access-choice:has(input:checked) em {
  background: rgba(var(--mnp-vert-aeee4e), .12);
  color: rgb(var(--mnp-vert-b7f353));
}

.admin-v2 .admin-space-access-grid.is-create {
  margin-top: 5px;
}

.login-space-card.is-denied {
  opacity: .38;
  filter: grayscale(.7);
  cursor: not-allowed;
}

.login-space-card.is-denied .login-space-action {
  font-size: 0;
}

.login-space-card.is-denied .login-space-action::before {
  content: "Accès bloqué";
  font-size: 12px;
}

.admin-v2 .admin-user-status {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(148,163,184,.11);
  border-radius: 99px;
  color: rgba(226,235,247,.64);
  font-size: 8px;
  font-weight: 900;
}

.admin-v2 .admin-user-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.admin-v2 .admin-user-status.is-active {
  color: var(--admin-mnp-green);
  border-color: rgba(var(--mnp-vert-8ee820), .18);
  background: rgba(var(--mnp-vert-8ee820), .06);
}

.admin-v2 .admin-user-status.is-temporary {
  color: #f4bf4f;
  border-color: rgba(244,191,79,.2);
  background: rgba(244,191,79,.06);
}

.admin-v2 .admin-user-status.is-inactive {
  color: #ff8b8b;
  border-color: rgba(255,107,112,.18);
  background: rgba(255,107,112,.06);
}

.admin-v2 .admin-user-chevron {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: rgba(213,224,242,.3);
  stroke-width: 2;
  transition: transform .18s ease;
}

.admin-v2 .admin-user-record.is-open .admin-user-chevron {
  color: var(--admin-mnp-green);
  transform: rotate(90deg);
}

.admin-v2 .admin-user-no-result {
  padding: 48px 20px;
  color: rgba(213,224,242,.45);
  text-align: center;
}

.admin-v2 .admin-user-details {
  padding: 17px;
  border-top: 1px solid rgba(var(--mnp-vert-8ee820), .1);
  background: rgba(3,12,22,.4);
}

.admin-v2 .admin-user-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-v2 .admin-protected-account {
  padding: 8px 11px;
  border: 1px solid rgba(var(--mnp-vert-8ee820), .16);
  border-radius: 9px;
  color: var(--admin-mnp-green);
  background: rgba(var(--mnp-vert-8ee820), .055);
  font-size: 9px;
  font-weight: 850;
}

.admin-v2 .admin-user-detail-grid {
  display: grid;
  grid-template-columns: minmax(210px,.8fr) minmax(250px,1fr) minmax(330px,1.5fr);
  gap: 10px;
}

.admin-v2 .admin-user-setting-card {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 15px;
  border: 1px solid rgba(148,163,184,.1);
  border-radius: 13px;
  background: rgba(11,26,43,.64);
}

.admin-v2 .admin-user-setting-card > div:first-child strong,
.admin-v2 .admin-user-setting-card > div:first-child small {
  display: block;
}

.admin-v2 .admin-user-setting-card > div:first-child strong {
  color: #f8fbff;
  font-size: 11px;
}

.admin-v2 .admin-user-setting-card > div:first-child small {
  margin-top: 4px;
  color: rgba(213,224,242,.38);
  font-size: 9px;
  line-height: 1.4;
}

.admin-v2 .admin-user-setting-card > input {
  min-height: 41px;
  padding: 0 11px;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 9px;
  color: #f8fbff;
  background: rgba(3,12,22,.65);
  font-size: 10px;
}

.admin-v2 .admin-user-setting-card .check-grid {
  max-height: 170px;
  overflow: auto;
}

.admin-v2 .admin-user-setting-card .access-type-switch {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 1180px) {
  .admin-v2 .admin-space-access-grid {
    grid-template-columns: 1fr;
  }

  .admin-v2 .admin-user-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .admin-v2 .admin-user-search {
    grid-column: 1 / -1;
  }

  .admin-v2 .admin-user-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-v2 .admin-user-setting-card.is-domains {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .admin-v2 .admin-user-overview {
    grid-template-columns: 1fr 1fr;
  }

  .admin-v2 .admin-user-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-v2 .admin-user-search {
    grid-column: auto;
  }

  .admin-v2 .admin-user-list-head {
    display: none;
  }

  .admin-v2 .admin-user-record-summary {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
    padding: 13px;
  }

  .admin-v2 .admin-user-companies,
  .admin-v2 .admin-user-role,
  .admin-v2 .admin-user-status {
    grid-column: 1;
    margin-left: 50px;
  }

  .admin-v2 .admin-user-chevron {
    grid-column: 2;
    grid-row: 1 / 4;
  }

  .admin-v2 .admin-user-detail-grid,
  .admin-v2 .admin-user-create-wrap .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-v2 .admin-user-create-wrap .admin-form > * {
    grid-column: 1;
  }
}

html {
  background: #050b14;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--mnp-vert-b7f353), .48) #070e19;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #070e19;
  border-left: 1px solid rgba(148, 163, 184, .07);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  min-height: 70px;
  border: 3px solid #070e19;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--mnp-vert-b7f353), .72), rgba(var(--mnp-vert-709a2f), .72));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgb(var(--mnp-vert-b7f353)), rgb(var(--mnp-vert-7eaa35)));
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: #070e19;
}

/* SOURCE: shared/hover-refinement.css */
﻿/* MNP unified hover refinement: subtle dark premium hover, no flashy purple fill. */
:root {
  --mnp-hover-bg: rgba(var(--mnp-vert-8ee820, 142, 232, 32), 0.065);
  --mnp-hover-bg-2: rgba(15, 30, 48, 0.96);
  --mnp-hover-border: rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.28);
  --mnp-hover-border-soft: rgba(148, 163, 184, 0.18);
  --mnp-hover-text: #f8fafc;
  --mnp-hover-green: rgb(var(--mnp-vert-b8ff4d, 184, 255, 77));
  --mnp-hover-shadow: 0 14px 30px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.045);
}

:is(
  button,
  a,
  .btn,
  .card,
  .panel,
  .metric-card,
  .stat-card,
  .summary-card,
  .dashboard-action-card,
  .application-card,
  .quicklink-card,
  .hygiene-menu-card,
  .hygiene-dlc-card,
  .course-card,
  .global-inventory-card,
  .storage-space-card,
  .stock-row,
  .manager-module-pill,
  .business-card,
  .task-card,
  .file-card,
  .folder-card,
  .site-card,
  .company-card,
  .module-card,
  .tool-card,
  .vault-card,
  .quick-grid button,
  .category-list button,
  .row-actions button,
  .row-actions a,
  .view-switcher button,
  .project-tabs button,
  .ribbon-tabs button,
  .sheet-tabs button,
  .sheet-sidebar nav button,
  .sidebar nav button,
  .mnp-app-sidebar .tab-button,
  .mnp-site-sidebar .tab-button,
  .domain-sidebar .tab-button,
  .admin-sidebar .tab-button
) {
  transition:
    background-color 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    color 0.16s ease,
    opacity 0.16s ease !important;
}

:is(button, a, .btn):not(:disabled):hover {
  transform: translateY(-1px);
}

body.theme-dark :is(
  .dashboard-action-card,
  .metric-card,
  .stat-card,
  .summary-card,
  .application-card,
  .quicklink-card,
  .hygiene-menu-card,
  .hygiene-dlc-card,
  .course-card,
  .global-inventory-card,
  .storage-space-card,
  .manager-module-pill,
  .stock-row,
  .card,
  .panel
):hover,
:is(
  .task-card,
  .file-card,
  .folder-card,
  .site-card,
  .business-card,
  .metric-card,
  .module-card,
  .tool-card,
  .vault-card,
  .quick-grid button
):hover {
  color: var(--mnp-hover-text) !important;
  border-color: var(--mnp-hover-border) !important;
  background:
    radial-gradient(circle at 14% 8%, rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.11), transparent 32%),
    linear-gradient(145deg, rgba(15, 30, 48, 0.97), rgba(7, 18, 31, 0.99)) !important;
  box-shadow: var(--mnp-hover-shadow) !important;
  transform: translateY(-1px);
}

body.theme-dark :is(
  .dashboard-action-card,
  .metric-card,
  .stat-card,
  .summary-card,
  .application-card,
  .quicklink-card,
  .hygiene-menu-card,
  .hygiene-dlc-card,
  .course-card,
  .global-inventory-card,
  .storage-space-card,
  .manager-module-pill,
  .stock-row,
  .card,
  .panel,
  .task-card,
  .file-card,
  .folder-card,
  .site-card,
  .business-card,
  .module-card,
  .tool-card,
  .vault-card
):hover :is(svg, .card-icon, .module-icon, .stat-icon, .metric-icon, .file-icon, .site-icon, .cat-icon) {
  color: var(--mnp-hover-green) !important;
}

body.theme-dark :is(
  .dashboard-action-card.is-active,
  .dashboard-action-card.is-selected,
  .dashboard-action-card[aria-current="true"],
  .tab-button.is-active,
  .tab-button.active,
  .sidebar nav button.is-active,
  .mnp-app-sidebar .tab-button.is-active,
  .mnp-site-sidebar .tab-button.is-active,
  .domain-sidebar .tab-button.is-active,
  .admin-sidebar .tab-button.is-active,
  .project-tabs button.is-active,
  .ribbon-tabs button.is-active,
  .sheet-tabs button.is-active,
  .view-switcher button.is-active
) {
  background:
    linear-gradient(90deg, rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.16), rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.035)) !important;
  border-color: rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.34) !important;
  color: rgb(var(--mnp-vert-eaffd1, 234, 255, 209)) !important;
  box-shadow: inset 3px 0 0 rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.7), 0 10px 24px rgba(0, 0, 0, 0.16) !important;
}

body.theme-dark :is(
  .mnp-app-sidebar .tab-button,
  .mnp-site-sidebar .tab-button,
  .domain-sidebar .tab-button,
  .admin-sidebar .tab-button,
  .sidebar nav button,
  .sheet-sidebar nav button,
  .category-list button,
  .project-tabs button,
  .ribbon-tabs button,
  .sheet-tabs button,
  .view-switcher button,
  .row-actions button,
  .row-actions a,
  .btn.secondary,
  .ghost-btn,
  .icon-btn,
  .text-action,
  .open-chip
):not(:disabled):hover {
  color: rgb(var(--mnp-vert-eaffd1, 234, 255, 209)) !important;
  border-color: rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.24) !important;
  background: linear-gradient(90deg, rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.105), rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.025)) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.035) !important;
}

body.theme-dark :is(
  .btn:not(.secondary):not(.danger),
  .primary,
  .btn-primary,
  .shared-files-add-button,
  .panel-cta,
  .access-main-action,
  .stock-step-button
):not(:disabled):hover {
  color: #07111d !important;
  background: linear-gradient(180deg, rgb(var(--mnp-vert-a7f044, 167, 240, 68)), rgb(var(--mnp-vert-72c82b, 114, 200, 43))) !important;
  border-color: rgba(var(--mnp-vert-beff5d, 190, 255, 93), 0.5) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22), 0 0 18px rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.13) !important;
}

body.theme-dark :is(.danger, .btn-danger):not(:disabled):hover {
  color: #ffd1d1 !important;
  background: rgba(239, 83, 80, 0.16) !important;
  border-color: rgba(239, 83, 80, 0.38) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18) !important;
}

body.theme-dark :is(input, textarea, select):hover {
  border-color: rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.22) !important;
  box-shadow: 0 0 0 1px rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.025) !important;
}

/* Same refinement for standalone apps that do not add body.theme-dark. */
:is(
  .sidebar nav button,
  .kanban-sidebar nav button,
  .sheet-sidebar nav button,
  .category-list button,
  .project-tabs button,
  .ribbon-tabs button,
  .sheet-tabs button,
  .view-switcher button,
  .row-actions button,
  .row-actions a,
  .btn.secondary,
  .ghost-btn,
  .icon-btn,
  .text-action,
  .open-chip
):not(:disabled):hover {
  color: rgb(var(--mnp-vert-eaffd1, 234, 255, 209)) !important;
  border-color: rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.24) !important;
  background: linear-gradient(90deg, rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.105), rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.025)) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.035) !important;
}

:is(
  .btn:not(.secondary):not(.danger),
  .primary,
  .btn-primary,
  .shared-files-add-button,
  .panel-cta,
  .access-main-action,
  .stock-step-button
):not(:disabled):hover {
  background: linear-gradient(180deg, rgb(var(--mnp-vert-a7f044, 167, 240, 68)), rgb(var(--mnp-vert-72c82b, 114, 200, 43))) !important;
  border-color: rgba(var(--mnp-vert-beff5d, 190, 255, 93), 0.5) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22), 0 0 18px rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.13) !important;
}

:is(.danger, .btn-danger):not(:disabled):hover {
  color: #ffd1d1 !important;
  background: rgba(239, 83, 80, 0.16) !important;
  border-color: rgba(239, 83, 80, 0.38) !important;
}

:is(input, textarea, select):hover {
  border-color: rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.22) !important;
  box-shadow: 0 0 0 1px rgba(var(--mnp-vert-a3e635, 163, 230, 53), 0.025) !important;
}

/* Admin : le survol reste dans le rouge de la console, pas le dégradé vert des autres espaces. */
html[data-space="admin"] body.theme-dark .admin-v3 .btn:not(.secondary):not(.danger):not(:disabled):hover {
  color: #fff !important;
  background: #c21f36 !important;
  border-color: #e23b52 !important;
  box-shadow: none !important;
  transform: none;
}
html[data-space="admin"] body.theme-dark .admin-v3 .btn.secondary:not(:disabled):hover {
  color: var(--ink) !important;
  background: var(--surface-soft) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
  transform: none;
}

/* SOURCE: shared/mnp-sidebar.css */
/* Barre laterale commune a tous les MNP (modele : barre de l'espace gerant de MNP Pro).
   Markup genere par shared/mnp-sidebar.js : aside.mnp-side[data-space][data-tone]
     .mnp-side-context  bloc societe / application (icone, titre, sous-titre)
     .mnp-side-nav      liens .mnp-side-item (.is-active), titres .mnp-side-section
     .mnp-side-footer   liens du bas, dont .mnp-side-back « Espaces MNP » (retour au choix des espaces)
   Couleur de l'espace : data-space = pro (vert), perso (corail), architecture (indigo), send (turquoise).
   Teinte : data-tone = dark (defaut, comme Pro en theme sombre), light (comme Pro en theme clair) ou auto
   (claire quand la page est en theme clair : body.theme-light ou <html data-theme="light">). */

.mnp-side,
.mnp-side-back.is-standalone {
  --mnp-side-accent: 142, 232, 32;
  --mnp-side-icon: 159, 241, 55;
  --mnp-side-active: 163, 230, 53;
  --mnp-side-active-icon: 182, 255, 77;
  --mnp-side-ink: 234, 255, 209;
  --mnp-side-deep: 8, 35, 21;
  --mnp-side-text: 16, 32, 22;
  --mnp-side-back-icon: 185, 255, 66;
}

.mnp-side {
  --mnp-side-width: 300px;
  --mnp-side-top: 0px;
  box-sizing: border-box;
  width: var(--mnp-side-width);
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 22px;
  border: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0;
  background: linear-gradient(rgba(5, 16, 28, 0.96), rgba(3, 12, 22, 0.98)), #06101b;
  color: #f7fbff;
  box-shadow: 18px 0 48px rgba(0, 0, 0, 0.24);
  font-family: inherit;
  position: sticky;
  top: var(--mnp-side-top);
  align-self: start;
  min-height: calc(100vh - var(--mnp-side-top));
  max-height: calc(100vh - var(--mnp-side-top));
  overflow: auto;
  scrollbar-width: none;
}

/* Sous la barre du haut partagee des applications (shared/floating-support.js, 82 px) */
body.mnp-shared-topbar-mounted .mnp-side {
  --mnp-side-top: 82px;
}

.mnp-side::-webkit-scrollbar {
  display: none;
}

.mnp-side *,
.mnp-side *::before,
.mnp-side *::after {
  box-sizing: border-box;
}

.mnp-side[data-space="perso"],
.mnp-side-back.is-standalone[data-space="perso"] {
  --mnp-side-accent: 255, 138, 92;
  --mnp-side-icon: 255, 155, 119;
  --mnp-side-active: 252, 143, 110;
  --mnp-side-active-icon: 255, 178, 153;
  --mnp-side-ink: 244, 208, 197;
  --mnp-side-deep: 54, 15, 0;
  --mnp-side-text: 46, 19, 10;
  --mnp-side-back-icon: 255, 178, 155;
}

.mnp-side[data-space="architecture"],
.mnp-side-back.is-standalone[data-space="architecture"] {
  --mnp-side-accent: 129, 140, 248;
  --mnp-side-icon: 136, 151, 255;
  --mnp-side-active: 126, 146, 243;
  --mnp-side-active-icon: 152, 170, 255;
  --mnp-side-ink: 183, 192, 223;
  --mnp-side-deep: 24, 19, 70;
  --mnp-side-text: 23, 23, 56;
  --mnp-side-back-icon: 150, 171, 255;
}

.mnp-side[data-space="send"],
.mnp-side-back.is-standalone[data-space="send"] {
  --mnp-side-accent: 45, 212, 191;
  --mnp-side-icon: 73, 222, 199;
  --mnp-side-active: 81, 212, 187;
  --mnp-side-active-icon: 101, 237, 211;
  --mnp-side-ink: 202, 236, 227;
  --mnp-side-deep: 5, 34, 33;
  --mnp-side-text: 14, 31, 30;
  --mnp-side-back-icon: 98, 237, 210;
}

.mnp-side[data-space="school"],
.mnp-side-back.is-standalone[data-space="school"] {
  --mnp-side-accent: 245, 197, 66;
  --mnp-side-icon: 247, 208, 96;
  --mnp-side-active: 240, 190, 60;
  --mnp-side-active-icon: 250, 215, 110;
  --mnp-side-ink: 240, 230, 200;
  --mnp-side-deep: 38, 28, 4;
  --mnp-side-text: 33, 26, 8;
  --mnp-side-back-icon: 250, 214, 108;
}

/* ---------- Bloc societe / application ---------- */
.mnp-side .mnp-side-context {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 39, 62, 0.86), rgba(13, 29, 48, 0.72));
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.mnp-side button.mnp-side-context,
.mnp-side a.mnp-side-context {
  cursor: pointer;
}

.mnp-side button.mnp-side-context:hover,
.mnp-side a.mnp-side-context:hover {
  border-color: rgba(var(--mnp-side-accent), 0.24);
}

.mnp-side .mnp-side-context-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(var(--mnp-side-accent), 0.14);
  color: rgb(var(--mnp-side-icon));
  font-size: 22px;
  font-weight: 900;
}

.mnp-side .mnp-side-context-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mnp-side .mnp-side-context-icon.is-logo img {
  padding: 6px;
  object-fit: contain;
}

.mnp-side .mnp-side-context-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnp-side .mnp-side-context-text {
  min-width: 0;
}

.mnp-side .mnp-side-context-text strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mnp-side .mnp-side-context-text small {
  display: block;
  overflow: hidden;
  color: rgba(213, 224, 239, 0.72);
  font-size: 13.3333px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mnp-side .mnp-side-context-chevron {
  color: rgba(213, 224, 239, 0.72);
  font-style: normal;
}

/* ---------- Liens ---------- */
.mnp-side .mnp-side-nav,
.mnp-side .mnp-side-footer {
  display: grid;
  gap: 4px;
  min-height: 0;
}

/* comme dans Pro : la liste defile, le bloc du haut et les boutons du bas restent visibles */
.mnp-side .mnp-side-nav {
  flex: 1 1 auto;
  align-content: start;
  overflow-y: auto;
  scrollbar-width: none;
}

.mnp-side .mnp-side-nav::-webkit-scrollbar {
  display: none;
}

.mnp-side .mnp-side-context,
.mnp-side .mnp-side-footer {
  flex-shrink: 0;
}

.mnp-side .mnp-side-item,
.mnp-side-item.is-standalone {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(232, 240, 250, 0.9);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  box-shadow: none;
  transform: none;
  letter-spacing: normal;
  text-transform: none;
  -webkit-appearance: none;
  appearance: none;
}

.mnp-side .mnp-side-icon,
.mnp-side-item.is-standalone .mnp-side-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  color: rgb(var(--mnp-side-icon));
  font-size: 16px;
  line-height: 1;
}

.mnp-side .mnp-side-icon svg,
.mnp-side-item.is-standalone .mnp-side-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnp-side .mnp-side-label,
.mnp-side-item.is-standalone .mnp-side-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mnp-side .mnp-side-badge {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(var(--mnp-side-accent), 0.16);
  color: rgb(var(--mnp-side-ink));
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.mnp-side .mnp-side-item:hover,
.mnp-side-item.is-standalone:hover {
  color: rgb(var(--mnp-side-ink));
  background: linear-gradient(90deg, rgba(var(--mnp-side-accent), 0.13), rgba(var(--mnp-side-accent), 0.025));
  border-color: rgba(var(--mnp-side-accent), 0.18);
  box-shadow: inset 3px 0 0 rgba(var(--mnp-side-accent), 0.58);
}

/* Pas de levee au survol (shared/hover-refinement.css souleve tous les button / a) */
.mnp-side .mnp-side-item.mnp-side-item:hover,
.mnp-side-item.is-standalone.mnp-side-item:hover,
.mnp-side .mnp-side-context.mnp-side-context:hover {
  transform: none;
}

.mnp-side .mnp-side-item.is-active,
.mnp-side-item.is-standalone.is-active {
  color: rgb(var(--mnp-side-ink));
  background: linear-gradient(90deg, rgba(var(--mnp-side-active), 0.16), rgba(var(--mnp-side-active), 0.035));
  border-color: rgba(var(--mnp-side-active), 0.34);
  box-shadow: inset 3px 0 0 rgba(var(--mnp-side-active), 0.7), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.mnp-side .mnp-side-item.is-active .mnp-side-icon,
.mnp-side-item.is-standalone.is-active .mnp-side-icon {
  color: rgb(var(--mnp-side-active-icon));
  filter: drop-shadow(0 0 8px rgba(var(--mnp-side-active), 0.35));
}

.mnp-side .mnp-side-item:focus-visible,
.mnp-side-item.is-standalone:focus-visible,
.mnp-side .mnp-side-context:focus-visible {
  outline: 2px solid rgba(var(--mnp-side-accent), 0.7);
  outline-offset: 2px;
}

.mnp-side .mnp-side-item:disabled,
.mnp-side-item.is-standalone:disabled,
.mnp-side .mnp-side-item[aria-disabled="true"],
.mnp-side-item.is-standalone[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.mnp-side .mnp-side-section {
  display: block;
  margin: 20px 10px 8px;
  color: rgb(var(--mnp-side-icon));
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Ligne avec une action secondaire a droite (ex. supprimer une feuille) */
.mnp-side .mnp-side-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.mnp-side .mnp-side-row > .mnp-side-item {
  padding-right: 40px;
}

.mnp-side .mnp-side-row-action {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(213, 224, 239, 0.6);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.mnp-side .mnp-side-row:hover .mnp-side-row-action,
.mnp-side .mnp-side-row.is-active .mnp-side-row-action,
.mnp-side .mnp-side-row-action:focus-visible {
  opacity: 1;
}

.mnp-side .mnp-side-row-action.mnp-side-row-action:hover {
  border-color: rgba(239, 83, 80, 0.38);
  background: rgba(239, 83, 80, 0.16);
  color: #ffd1d1;
  transform: translateY(-50%);
}

/* ---------- Bas de barre et retour aux espaces ---------- */
.mnp-side .mnp-side-footer {
  gap: 8px;
  margin-top: auto;
  padding: 18px 14px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.mnp-side .mnp-side-nav + .mnp-side-footer {
  margin-top: auto;
}

/* Boutons du bas (« Espaces MNP », « Mes domaines »...) : carte comme « Mes domaines » de MNP Pro */
.mnp-side .mnp-side-footer .mnp-side-item,
.mnp-side-back.is-standalone {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: rgb(215, 226, 243);
  box-shadow: none;
}

.mnp-side .mnp-side-footer .mnp-side-icon,
.mnp-side-back.is-standalone .mnp-side-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border: 1px solid rgba(var(--mnp-side-accent), 0.08);
  border-radius: 12px;
  background: rgba(var(--mnp-side-accent), 0.09);
  color: rgb(var(--mnp-side-back-icon));
  filter: none;
}

.mnp-side .mnp-side-footer .mnp-side-item:hover,
.mnp-side-back.is-standalone:hover {
  color: rgb(var(--mnp-side-ink));
  border-color: rgba(var(--mnp-side-accent), 0.16);
  background: linear-gradient(90deg, rgba(var(--mnp-side-accent), 0.1), rgba(var(--mnp-side-accent), 0.02));
  box-shadow: none;
}

/* Bouton « Espaces MNP » isole (page sans barre laterale, ex. MNP Architecture) */
.mnp-side-back.is-standalone {
  width: auto;
  background: rgba(6, 16, 27, 0.82);
  backdrop-filter: blur(8px);
}

.mnp-side-back.is-standalone[data-tone="light"],
:root[data-theme="light"] .mnp-side-back.is-standalone[data-tone="auto"],
body.theme-light .mnp-side-back.is-standalone[data-tone="auto"] {
  border-color: rgba(var(--mnp-side-text), 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: rgb(var(--mnp-side-deep));
}

.mnp-side-back.is-standalone[data-tone="light"] .mnp-side-icon,
:root[data-theme="light"] .mnp-side-back.is-standalone[data-tone="auto"] .mnp-side-icon,
body.theme-light .mnp-side-back.is-standalone[data-tone="auto"] .mnp-side-icon {
  border-color: rgba(var(--mnp-side-accent), 0.18);
  background: rgba(var(--mnp-side-accent), 0.14);
  color: rgb(var(--mnp-side-deep));
}

.mnp-side-back.is-standalone[data-tone="light"]:hover,
:root[data-theme="light"] .mnp-side-back.is-standalone[data-tone="auto"]:hover,
body.theme-light .mnp-side-back.is-standalone[data-tone="auto"]:hover {
  border-color: rgba(var(--mnp-side-accent), 0.3);
  background: rgba(var(--mnp-side-accent), 0.12);
  color: rgb(var(--mnp-side-deep));
}

/* ---------- Barre repliee (icones seules) ---------- */
.mnp-side.is-collapsed {
  --mnp-side-width: 78px;
  padding-inline: 10px;
}

.mnp-side.is-collapsed .mnp-side-context {
  grid-template-columns: 44px;
  justify-content: center;
  padding: 8px 0;
}

.mnp-side.is-collapsed .mnp-side-context > :not(.mnp-side-context-icon),
.mnp-side.is-collapsed .mnp-side-label,
.mnp-side.is-collapsed .mnp-side-row-action {
  display: none;
}

/* les titres de rubrique deviennent de simples separateurs */
.mnp-side.is-collapsed .mnp-side-section {
  height: 1px;
  margin: 10px 8px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.16);
  color: transparent;
}

.mnp-side.is-collapsed .mnp-side-item {
  position: relative;
  justify-content: center;
  padding: 0;
}

.mnp-side.is-collapsed .mnp-side-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 17px;
  padding: 1px 4px;
  font-size: 10px;
}

.mnp-side.is-collapsed .mnp-side-footer {
  padding-inline: 0;
}

.mnp-side.is-collapsed .mnp-side-footer .mnp-side-item {
  grid-template-columns: 34px;
  justify-content: center;
  padding: 0;
}

/* ---------- Teinte claire (comme la barre de Pro en theme clair) ---------- */
.mnp-side[data-tone="light"],
body.theme-light .mnp-side[data-tone="auto"],
:root[data-theme="light"] .mnp-side[data-tone="auto"] {
  --mnp-side-width: 240px;
  padding: 12px;
  border: 1px solid rgba(var(--mnp-side-text), 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  color: rgb(var(--mnp-side-text));
  box-shadow: 0 24px 70px rgba(var(--mnp-side-deep), 0.08);
}

.mnp-side[data-tone="light"] .mnp-side-context,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-context,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-context {
  border: 0;
  border-radius: 14px;
  background: rgba(var(--mnp-side-deep), 0.06);
  color: rgb(var(--mnp-side-deep));
}

.mnp-side[data-tone="light"] .mnp-side-context-icon,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-context-icon,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-context-icon {
  background: rgba(var(--mnp-side-accent), 0.18);
  color: rgb(var(--mnp-side-deep));
}

.mnp-side[data-tone="light"] .mnp-side-context-text strong,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-context-text strong,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-context-text strong {
  color: rgb(var(--mnp-side-deep));
}

.mnp-side[data-tone="light"] .mnp-side-context-text small,
.mnp-side[data-tone="light"] .mnp-side-context-chevron,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-context-text small,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-context-text small,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-context-chevron,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-context-chevron {
  color: rgba(var(--mnp-side-text), 0.62);
}

.mnp-side[data-tone="light"] .mnp-side-item,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-item,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-item {
  border-radius: 13px;
  color: rgb(var(--mnp-side-deep));
  font-size: 16px;
  font-weight: 850;
}

.mnp-side[data-tone="light"] .mnp-side-item:hover,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-item:hover,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-item:hover {
  color: rgb(var(--mnp-side-deep));
  background: rgba(var(--mnp-side-deep), 0.06);
  border-color: transparent;
  box-shadow: none;
}

.mnp-side[data-tone="light"] .mnp-side-item.is-active,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-item.is-active,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-item.is-active {
  color: #ffffff;
  background: rgb(var(--mnp-side-deep));
  border-color: rgb(var(--mnp-side-deep));
  box-shadow: 0 14px 30px rgba(var(--mnp-side-deep), 0.16);
}

.mnp-side[data-tone="light"] .mnp-side-item.is-active .mnp-side-icon,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-item.is-active .mnp-side-icon,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-item.is-active .mnp-side-icon {
  filter: none;
}

.mnp-side[data-tone="light"] .mnp-side-footer,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-footer,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-footer {
  padding-inline: 0;
  border-top-color: rgba(var(--mnp-side-text), 0.09);
}

.mnp-side[data-tone="light"] .mnp-side-item.is-active .mnp-side-badge,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-item.is-active .mnp-side-badge,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-item.is-active .mnp-side-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.mnp-side[data-tone="light"] .mnp-side-footer .mnp-side-item,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-footer .mnp-side-item,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-footer .mnp-side-item {
  border-color: rgba(var(--mnp-side-text), 0.09);
  border-radius: 16px;
  font-size: 15px;
  background: rgba(var(--mnp-side-deep), 0.05);
  color: rgb(var(--mnp-side-deep));
}

.mnp-side[data-tone="light"] .mnp-side-footer .mnp-side-icon,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-footer .mnp-side-icon,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-footer .mnp-side-icon {
  background: rgba(var(--mnp-side-accent), 0.18);
  color: rgb(var(--mnp-side-deep));
}

.mnp-side[data-tone="light"] .mnp-side-footer .mnp-side-item:hover,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-footer .mnp-side-item:hover,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-footer .mnp-side-item:hover {
  background: rgba(var(--mnp-side-deep), 0.09);
  color: rgb(var(--mnp-side-deep));
}

.mnp-side[data-tone="light"] .mnp-side-badge,
body.theme-light .mnp-side[data-tone="auto"] .mnp-side-badge,
:root[data-theme="light"] .mnp-side[data-tone="auto"] .mnp-side-badge {
  color: rgb(var(--mnp-side-deep));
}

/* ---------- Ecrans etroits : la barre passe au-dessus du contenu ---------- */
@media (max-width: 900px) {
  .mnp-side {
    width: 100%;
    position: static;
    min-height: 0;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding: 12px;
    box-shadow: none;
  }

  .mnp-side .mnp-side-context {
    margin-bottom: 12px;
  }

  .mnp-side .mnp-side-nav {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .mnp-side .mnp-side-label {
    padding-block: 6px;
    white-space: normal;
  }

  .mnp-side .mnp-side-section {
    grid-column: 1 / -1;
    margin: 10px 4px 2px;
  }

  .mnp-side .mnp-side-footer {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    margin-top: 12px;
    padding-top: 12px;
  }
}

/* SOURCE: css/52-admin-supervision.css */
html[data-space="admin"] {
  --mnp-vert-047857: 117, 77, 170;
  --mnp-vert-06120a: 39, 24, 58;
  --mnp-vert-07120a: 39, 24, 58;
  --mnp-vert-08140c: 39, 24, 58;
  --mnp-vert-082315: 39, 24, 58;
  --mnp-vert-09140d: 39, 24, 58;
  --mnp-vert-0a120c: 39, 24, 58;
  --mnp-vert-0b2417: 39, 24, 58;
  --mnp-vert-0c1613: 39, 24, 58;
  --mnp-vert-0d1b13: 39, 24, 58;
  --mnp-vert-0d704a: 117, 77, 170;
  --mnp-vert-0f5f39: 39, 24, 58;
  --mnp-vert-10170b: 39, 24, 58;
  --mnp-vert-102016: 39, 24, 58;
  --mnp-vert-11341d: 39, 24, 58;
  --mnp-vert-12211a: 39, 24, 58;
  --mnp-vert-122a15: 39, 24, 58;
  --mnp-vert-137545: 117, 77, 170;
  --mnp-vert-14532d: 39, 24, 58;
  --mnp-vert-147d4f: 117, 77, 170;
  --mnp-vert-15251e: 39, 24, 58;
  --mnp-vert-166534: 39, 24, 58;
  --mnp-vert-17251c: 39, 24, 58;
  --mnp-vert-173624: 39, 24, 58;
  --mnp-vert-176b3c: 39, 24, 58;
  --mnp-vert-182b1f: 39, 24, 58;
  --mnp-vert-1c6e3b: 117, 77, 170;
  --mnp-vert-1e3a18: 39, 24, 58;
  --mnp-vert-1e441b: 39, 24, 58;
  --mnp-vert-1f2f1d: 39, 24, 58;
  --mnp-vert-1f3722: 39, 24, 58;
  --mnp-vert-1f492a: 39, 24, 58;
  --mnp-vert-22432d: 39, 24, 58;
  --mnp-vert-22c55e: 117, 77, 170;
  --mnp-vert-255b38: 39, 24, 58;
  --mnp-vert-2d5f2f: 39, 24, 58;
  --mnp-vert-2f6f3d: 117, 77, 170;
  --mnp-vert-2f6f45: 117, 77, 170;
  --mnp-vert-32603e: 117, 77, 170;
  --mnp-vert-355744: 117, 77, 170;
  --mnp-vert-35643d: 117, 77, 170;
  --mnp-vert-376d44: 117, 77, 170;
  --mnp-vert-377143: 117, 77, 170;
  --mnp-vert-386426: 39, 24, 58;
  --mnp-vert-3f6212: 39, 24, 58;
  --mnp-vert-495c23: 117, 77, 170;
  --mnp-vert-4d7c0f: 117, 77, 170;
  --mnp-vert-4e7925: 117, 77, 170;
  --mnp-vert-4f8f36: 117, 77, 170;
  --mnp-vert-507c1c: 117, 77, 170;
  --mnp-vert-538123: 117, 77, 170;
  --mnp-vert-5d8727: 117, 77, 170;
  --mnp-vert-5da51d: 117, 77, 170;
  --mnp-vert-5e842d: 117, 77, 170;
  --mnp-vert-65b978: 188, 162, 255;
  --mnp-vert-68ab23: 117, 77, 170;
  --mnp-vert-6ea87e: 188, 162, 255;
  --mnp-vert-6fb923: 117, 77, 170;
  --mnp-vert-6fc82a: 117, 77, 170;
  --mnp-vert-709a2f: 117, 77, 170;
  --mnp-vert-71ab2b: 117, 77, 170;
  --mnp-vert-72c82b: 117, 77, 170;
  --mnp-vert-75b872: 188, 162, 255;
  --mnp-vert-77cf63: 188, 162, 255;
  --mnp-vert-78b836: 117, 77, 170;
  --mnp-vert-78c52d: 117, 77, 170;
  --mnp-vert-7bac35: 117, 77, 170;
  --mnp-vert-7cb42f: 117, 77, 170;
  --mnp-vert-7cca2c: 117, 77, 170;
  --mnp-vert-7eaa35: 117, 77, 170;
  --mnp-vert-80d033: 117, 77, 170;
  --mnp-vert-82cf2d: 117, 77, 170;
  --mnp-vert-83bb35: 117, 77, 170;
  --mnp-vert-84cc16: 117, 77, 170;
  --mnp-vert-8ebe40: 188, 162, 255;
  --mnp-vert-8ed69b: 188, 162, 255;
  --mnp-vert-8ee820: 188, 162, 255;
  --mnp-vert-97e845: 188, 162, 255;
  --mnp-vert-97f430: 188, 162, 255;
  --mnp-vert-9bd12f: 188, 162, 255;
  --mnp-vert-9cf13d: 188, 162, 255;
  --mnp-vert-9de23d: 188, 162, 255;
  --mnp-vert-9fef48: 188, 162, 255;
  --mnp-vert-9ff137: 188, 162, 255;
  --mnp-vert-a3e635: 188, 162, 255;
  --mnp-vert-a3ee3d: 188, 162, 255;
  --mnp-vert-a5ef43: 188, 162, 255;
  --mnp-vert-a7f044: 188, 162, 255;
  --mnp-vert-a7f33d: 188, 162, 255;
  --mnp-vert-a8ef3f: 188, 162, 255;
  --mnp-vert-aeee4e: 188, 162, 255;
  --mnp-vert-b1ff4c: 188, 162, 255;
  --mnp-vert-b6ff42: 188, 162, 255;
  --mnp-vert-b6ff4d: 188, 162, 255;
  --mnp-vert-b7f353: 188, 162, 255;
  --mnp-vert-b7f44d: 188, 162, 255;
  --mnp-vert-b8f94d: 188, 162, 255;
  --mnp-vert-b8ff43: 188, 162, 255;
  --mnp-vert-b8ff4d: 188, 162, 255;
  --mnp-vert-b9efbf: 188, 162, 255;
  --mnp-vert-b9ff42: 188, 162, 255;
  --mnp-vert-bbf7d0: 188, 162, 255;
  --mnp-vert-bef264: 188, 162, 255;
  --mnp-vert-beff57: 188, 162, 255;
  --mnp-vert-beff5d: 188, 162, 255;
  --mnp-vert-c4dca6: 188, 162, 255;
  --mnp-vert-c8f266: 188, 162, 255;
  --mnp-vert-c8ff5c: 188, 162, 255;
  --mnp-vert-caff57: 188, 162, 255;
  --mnp-vert-d7ff8a: 188, 162, 255;
  --mnp-vert-d8ff8b: 188, 162, 255;
  --mnp-vert-d9f99d: 188, 162, 255;
  --mnp-vert-d9ff8d: 188, 162, 255;
  --mnp-vert-dce9df: 244, 239, 252;
  --mnp-vert-dcfce7: 244, 239, 252;
  --mnp-vert-dfffc0: 244, 239, 252;
  --mnp-vert-e1edda: 244, 239, 252;
  --mnp-vert-e4f4e7: 244, 239, 252;
  --mnp-vert-e7f1e5: 244, 239, 252;
  --mnp-vert-e7ffd0: 244, 239, 252;
  --mnp-vert-e8f0e5: 244, 239, 252;
  --mnp-vert-e8f3e8: 244, 239, 252;
  --mnp-vert-eaf5ed: 244, 239, 252;
  --mnp-vert-eaffd1: 244, 239, 252;
  --mnp-vert-ebf5ec: 244, 239, 252;
  --mnp-vert-ecf2ea: 244, 239, 252;
  --mnp-vert-ecfdf5: 244, 239, 252;
  --mnp-vert-eef6f0: 244, 239, 252;
  --mnp-vert-eff4ec: 244, 239, 252;
  --mnp-vert-eff6ec: 244, 239, 252;
  --mnp-vert-f1f6ed: 244, 239, 252;
  --mnp-vert-f1f7ef: 244, 239, 252;
  --mnp-vert-f1f8f0: 244, 239, 252;
  --mnp-vert-f2f8f1: 244, 239, 252;
  --mnp-vert-f4f8f2: 244, 239, 252;
  --mnp-vert-f5f9f3: 244, 239, 252;
  --mnp-vert-f5faf1: 244, 239, 252;
  --mnp-vert-f7f8f4: 244, 239, 252;
}
/* MNP Admin : identité prune/lavande isolée des autres espaces. */
html[data-space="admin"] { --admin-accent:#bca2ff; --admin-purple:#7651ce; }
html[data-space="admin"] body {
  --bg:#f4f1fa; --surface:#fff; --surface-soft:#f9f7fd; --ink:#261b3c; --muted:#736a83;
  --line:#e2dbea; --brand:#7651ce; --brand-deep:#362053; --brand-soft:#eee7fa;
  background:var(--bg); color:var(--ink);
}
html[data-space="admin"] body.theme-dark {
  --bg:#110f1b; --surface:#1c1729; --surface-soft:#211c30; --ink:#f3eefc; --muted:#ada1be;
  --line:#352c46; --brand:#bca2ff; --brand-deep:#f0e7ff; --brand-soft:#302344;
  background:var(--bg);
}
html[data-space="admin"] .topbar { background:var(--surface); border-bottom:1px solid var(--line); }
html[data-space="admin"] .brand-title { color:var(--ink); }
html[data-space="admin"] .main { width:100%; max-width:none; padding:0; margin:0; }
html[data-space="admin"] body.theme-dark .admin-page.admin-v2.admin-v3 {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
html[data-space="admin"] .admin-v3 { padding:0; margin:0; width:100%; max-width:none; background:var(--bg); }
html[data-space="admin"] .admin-v3 .admin-command-bar {
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  padding:26px 34px; margin:0; border:0; border-bottom:1px solid var(--line); border-radius:0;
  background:linear-gradient(110deg,var(--surface),var(--brand-soft)); box-shadow:none;
}
html[data-space="admin"] .admin-command-kicker { color:var(--brand); font-size:11px; letter-spacing:.16em; font-weight:800; text-transform:uppercase; }
html[data-space="admin"] .admin-command-bar h1 { color:var(--ink); font-size:26px; letter-spacing:-.04em; margin:6px 0; }
html[data-space="admin"] .admin-command-bar p { color:var(--muted); margin:0; font-size:13px; }
html[data-space="admin"] .admin-command-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
html[data-space="admin"] .admin-v3 .admin-shell { display:grid; grid-template-columns:248px minmax(0,1fr); gap:0; width:100%; border:0; border-radius:0; box-shadow:none; background:var(--bg); }
html[data-space="admin"] .admin-v3 .admin-content { min-width:0; padding:28px clamp(20px,3vw,44px) 60px; background:var(--bg); }
html[data-space="admin"] .admin-content-context { display:flex; justify-content:space-between; gap:16px; margin-bottom:32px; color:var(--muted); border-bottom:1px solid var(--line); padding-bottom:18px; font-size:12px; }
html[data-space="admin"] .admin-content-context strong { color:var(--ink); }
html[data-space="admin"] .admin-v3 .mnp-side {
  --mnp-side-width:248px; --mnp-side-accent:188,162,255; --mnp-side-icon:197,176,245;
  --mnp-side-active:188,162,255; --mnp-side-active-icon:218,201,255; --mnp-side-ink:229,214,253;
  --mnp-side-deep:35,21,59; --mnp-side-text:43,28,65; --mnp-side-back-icon:201,174,255;
  background:linear-gradient(170deg,#22192f,#15101e); box-shadow:none; border-right:1px solid var(--line);
}
html[data-space="admin"] .admin-v3 .mnp-side-context { background:#30243f; border-color:#48345f; }
html[data-space="admin"] .admin-v3 .btn:not(.danger):not(.secondary) { color:#fff; background:#7950ce; border:1px solid #8c66da; box-shadow:none; }
html[data-space="admin"] .admin-v3 .btn.secondary { background:var(--surface); color:var(--ink); border:1px solid var(--line); box-shadow:none; }
html[data-space="admin"] .admin-v3 .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:10px; min-height:40px; font-size:12px; }
html[data-space="admin"] .admin-v3 .btn svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; }
html[data-space="admin"] .admin-v3 button:disabled { cursor:wait; opacity:.65; }
html[data-space="admin"] .admin-v3 :is(button,a,input,select,textarea):focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
html[data-space="admin"] .admin-v3 :is(.admin-form,.work-panel,.domain-management,.database-hero,.dashboard-action-card,.user-company-folder,.admin-user-workspace,.admin-user-overview article,.domain-panel,.module-company-card,.architecture-center) { background:var(--surface); border-color:var(--line); color:var(--ink); box-shadow:none; }
html[data-space="admin"] .admin-v3 :is(input,select,textarea) { color:var(--ink); background:var(--surface-soft); border-color:var(--line); accent-color:var(--brand); }
html[data-space="admin"] .admin-v3 :is(h2,h3,h4,.admin-section-head h2) { color:var(--ink); }
html[data-space="admin"] .admin-v3 .admin-section-head p { color:var(--muted); }
.admin-v3 .admin-eyebrow { display:block; color:var(--brand); font-size:10px; font-weight:850; letter-spacing:.15em; margin-bottom:8px; }
.admin-v3 .admin-health-head { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:25px; }
.admin-v3 .admin-health-head h2 { font-size:32px; font-weight:800; letter-spacing:-.045em; margin:0 0 9px; }
.admin-v3 .admin-health-head p { color:var(--muted); font-size:13px; line-height:1.65; max-width:610px; margin:0; }
.admin-v3 .admin-health-head .btn { flex-shrink:0; }
.admin-v3 .admin-reminders { display:grid; gap:10px; margin-bottom:22px; }
.admin-v3 .admin-reminder { display:flex; gap:14px; align-items:flex-start; padding:14px 16px; border:1px solid rgba(246,185,59,.38); border-radius:14px; background:rgba(246,185,59,.10); }
.admin-v3 .admin-reminder-icon { flex:none; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#f6b93b; color:#2a1d02; font-weight:900; }
.admin-v3 .admin-reminder strong { display:block; margin-bottom:3px; font-size:14px; }
.admin-v3 .admin-reminder p { margin:0; color:var(--muted); font-size:13px; line-height:1.55; }
.admin-v3 .admin-reminder small { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.admin-v3 .admin-health-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
.admin-v3 .admin-restart-status { margin:-12px 0 20px; padding:10px 14px; border-radius:12px; font-size:13px; background:rgba(245,185,59,.12); color:#f6c35b; }
.admin-v3 .admin-restart-status.error { background:rgba(255,95,111,.12); color:#ff8a96; }
.admin-v3 .admin-health-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:26px; }
.admin-v3 .admin-health-kpi { display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; gap:14px; padding:23px; min-height:170px; background:var(--surface); border:1px solid var(--line); border-radius:16px; }
.admin-v3 .admin-health-kpi.primary { background:linear-gradient(130deg,#503179,#352145); border-color:#745299; color:#fff; }
.admin-v3 .admin-health-kpi > span:first-child { font-size:12px; font-weight:600; }
.admin-v3 .admin-health-kpi > strong { font-size:38px; letter-spacing:-.04em; font-variant-numeric:tabular-nums; line-height:1; }
.admin-v3 .admin-health-kpi strong small { font-size:15px; font-weight:500; opacity:.65; }
.admin-v3 .admin-health-kpi > small { color:var(--muted); font-size:11px; line-height:1.5; }
.admin-v3 .admin-health-history { display:flex; align-items:center; gap:5px; width:100%; min-height:40px; }
.admin-v3 .admin-health-history > span { width:10px; height:30px; border-radius:3px; background:#52bfa0; }
.admin-v3 .admin-health-history > span.issue { background:#e9ac5a; height:22px; }
.admin-v3 .admin-health-history small { color:var(--muted); font-size:12px; }
.admin-v3 .admin-health-toolbar { display:flex; justify-content:space-between; gap:15px; align-items:center; margin-bottom:16px; }
.admin-v3 .admin-health-toolbar > small { color:var(--muted); font-size:11px; }
.admin-v3 .admin-health-filters { display:flex; gap:5px; padding:4px; background:var(--surface); border:1px solid var(--line); border-radius:10px; }
.admin-v3 .admin-health-filters button { padding:8px 13px; border:0; background:transparent; color:var(--muted); border-radius:7px; cursor:pointer; font-size:12px; }
.admin-v3 .admin-health-filters button[aria-pressed="true"] { color:var(--brand); background:var(--brand-soft); font-weight:700; }
.admin-v3 .admin-health-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.admin-v3 .admin-health-card { min-width:0; padding:20px 22px 0; border:1px solid var(--line); border-radius:15px; background:var(--surface); transition:transform .15s,border-color .15s; }
.admin-v3 .admin-health-card:hover { transform:translateY(-2px); border-color:var(--brand); }
.admin-v3 .admin-health-card-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.admin-v3 .admin-health-icon { width:38px; height:38px; display:grid; place-items:center; color:var(--brand); border-radius:11px; background:var(--brand-soft); }
.admin-v3 .admin-health-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.admin-v3 .admin-health-badge { display:inline-flex; align-items:center; gap:6px; padding:5px 8px; border-radius:6px; font-size:10px; font-weight:650; color:var(--muted); background:var(--surface-soft); }
.admin-v3 .admin-health-badge::before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; }
.admin-v3 .admin-health-badge.ok { background:#dcf5ec; color:#176348; }
.admin-v3 .admin-health-badge.slow,.admin-v3 .admin-health-badge.denied { background:#fff0d9; color:#805014; }
.admin-v3 .admin-health-badge.error { background:#ffe4e9; color:#a21c41; }
.admin-v3 .admin-health-card h3 { font-size:16px; margin:17px 0 4px; }
.admin-v3 .admin-health-card > p { font-size:12px; color:var(--muted); margin:0; }
.admin-v3 .admin-health-reading { display:flex; align-items:center; justify-content:space-between; margin:22px 0 12px; gap:12px; }
.admin-v3 .admin-health-reading strong { font-size:27px; font-weight:750; font-variant-numeric:tabular-nums; }
.admin-v3 .admin-health-reading small { font-size:11px; color:var(--muted); font-weight:500; }
.admin-v3 .admin-health-reading svg { width:92px; height:30px; fill:none; stroke:var(--brand); stroke-width:1.5; opacity:.45; }
.admin-v3 .admin-health-card > .admin-health-detail { min-height:34px; font-size:11px; line-height:1.55; overflow-wrap:anywhere; }
.admin-v3 .admin-health-card-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:13px 0; margin-top:13px; border-top:1px solid var(--line); color:var(--muted); font-size:10px; }
.admin-v3 .admin-health-card-foot a { color:var(--brand); text-decoration:none; font-size:11px; font-weight:750; }
.admin-v3 .admin-health-note { color:var(--muted); font-size:11px; line-height:1.6; margin:16px 0 34px; }
.admin-v3 .admin-health-empty { padding:30px; background:var(--surface); border:1px solid var(--line); border-radius:12px; grid-column:1/-1; }
.admin-v3 .admin-operations { border-top:1px solid var(--line); padding-top:28px; }
@media(max-width:1200px) {
  .admin-v3 .admin-health-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-v3 .admin-health-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-v3 .admin-health-head { align-items:flex-start; flex-direction:column; }
}
@media(max-width:800px) {
  html[data-space="admin"] .admin-v3 .admin-shell { grid-template-columns:1fr; }
  html[data-space="admin"] .admin-v3 .mnp-side { position:static; width:100%; min-height:0; max-height:none; padding:12px; }
  html[data-space="admin"] .admin-v3 .mnp-side-context,html[data-space="admin"] .admin-v3 .mnp-side-footer { display:none; }
  html[data-space="admin"] .admin-v3 .mnp-side-nav { display:flex; overflow-x:auto; gap:6px; }
  html[data-space="admin"] .admin-v3 .mnp-side-nav > * { flex-shrink:0; }
  html[data-space="admin"] .admin-v3 .admin-command-bar { padding:22px; flex-direction:column; align-items:flex-start; }
  html[data-space="admin"] .admin-v3 .admin-content { padding:24px 18px 40px; }
  html[data-space="admin"] .admin-content-context { flex-wrap:wrap; margin-bottom:24px; }
}
@media(max-width:480px) {
  .admin-v3 .admin-health-grid { grid-template-columns:1fr; }
  .admin-v3 .admin-health-kpis { gap:8px; }
  .admin-v3 .admin-health-kpi { padding:15px; min-height:160px; }
  .admin-v3 .admin-health-kpi > strong { font-size:30px; }
  .admin-v3 .admin-health-toolbar { align-items:flex-start; flex-direction:column; }
  .admin-v3 .admin-health-head h2 { font-size:28px; }
}
@media(prefers-reduced-motion:reduce) { .admin-v3 .admin-health-card { transition:none; } }
@media(max-width:800px) {
  html[data-space="admin"] .admin-v3 .mnp-side-nav > .mnp-side-item { width:auto; min-width:max-content; }
}
html[data-space="admin"] .mnp-site-shell { padding:0; }
html[data-space="admin"] .admin-v3 .mnp-side-context small { font-size:10px; }
html[data-space="admin"] .admin-content-context :is(span,small,b) { color:var(--muted); }

/* Console Admin : surfaces sobres, densité commune et navigation structurée. */
html[data-space="admin"] .admin-clean.admin-v3 { --admin-accent:#f0445b; --admin-soft:rgba(240,68,91,.1); --admin-line:var(--line,#293344); }
html[data-space="admin"] .admin-clean.admin-v3 .admin-command-bar { padding:24px 32px; background:var(--surface); border-bottom:1px solid var(--admin-line); gap:24px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-command-kicker { color:var(--admin-accent); font-size:11px; letter-spacing:.14em; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-command-bar h1 { font-size:23px; margin:5px 0 8px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-command-actions { display:flex; align-items:end; gap:14px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-shell { grid-template-columns:226px minmax(0,1fr); }
html[data-space="admin"] .admin-clean.admin-v3 .admin-content { padding:24px 32px 60px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-content-context { margin-bottom:24px; padding-bottom:14px; }
html[data-space="admin"] .admin-clean.admin-v3 .mnp-side { background:var(--surface); padding:20px 12px; border-right:1px solid var(--admin-line); }
html[data-space="admin"] .admin-clean.admin-v3 .mnp-side-context { background:var(--admin-soft); border-color:rgba(240,68,91,.25); }
html[data-space="admin"] .admin-clean.admin-v3 .mnp-side-item { border-radius:9px; min-height:42px; font-size:13px; }
html[data-space="admin"] .admin-clean.admin-v3 .mnp-side-item:is(.active,.is-active) { background:var(--admin-soft); color:var(--admin-accent); border-color:rgba(240,68,91,.3); box-shadow:none; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-section-head { margin:0 0 18px; padding:0; gap:16px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-section-head h2 { font-size:22px; margin:0 0 7px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-section-head p { max-width:760px; font-size:13px; line-height:1.6; color:var(--muted); }
html[data-space="admin"] .admin-clean.admin-v3 .btn { min-height:40px; padding:10px 15px; border-radius:9px; font-size:13px; font-weight:700; }
html[data-space="admin"] .admin-clean.admin-v3 .btn:not(.danger):not(.secondary) { background:#dc3049; border-color:#ed4058; color:white; }
html[data-space="admin"] .admin-clean.admin-v3 .btn.secondary { box-shadow:none; }
html[data-space="admin"] body.theme-dark .admin-v3 .domain-row.active .domain-row-button {
  background: transparent;
  border-color: transparent;
  box-shadow: inset 3px 0 #f0445b;
}
html[data-space="admin"] body.theme-dark .admin-v3 .domain-row-button:hover,
html[data-space="admin"] body.theme-dark .admin-v3 .domain-row.active .domain-row-button:hover {
  color: var(--ink);
  background: rgba(240, 68, 91, 0.18);
  border-color: rgba(240, 68, 91, 0.4);
  box-shadow: inset 3px 0 #f0445b;
}
html[data-space="admin"] body.theme-dark .admin-v3 .domain-row-button:hover strong,
html[data-space="admin"] body.theme-dark .admin-v3 .domain-row.active .domain-row-button:hover strong { color: var(--ink); }
html[data-space="admin"] body.theme-dark .admin-v3 .domain-row-button:hover small,
html[data-space="admin"] body.theme-dark .admin-v3 .domain-row.active .domain-row-button:hover small { color: var(--muted); }
html[data-space="admin"] body.theme-dark .admin-v3 .domain-row.active .domain-thumb:not(.has-photo) {
  background-image: linear-gradient(145deg, var(--brand-deep), var(--brand));
  border-color: transparent;
}
html[data-space="admin"] body.theme-dark .admin-v3 .domain-row-button:hover .domain-thumb,
html[data-space="admin"] body.theme-dark .admin-v3 .domain-row.active .domain-row-button:hover .domain-thumb {
  color: #fff;
  background: linear-gradient(145deg, #f0445b, #c21f36);
  background-image: linear-gradient(145deg, #f0445b, #c21f36);
  border-color: transparent;
}
html[data-space="admin"] .admin-v3 .domain-management:not(:has(.domain-panel)) {
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
html[data-space="admin"] .admin-v3 .domain-management:not(:has(.domain-panel)) .domain-row-button {
  width: 100%;
  box-sizing: border-box;
  padding-left: 18px;
  padding-right: 18px;
}
html[data-space="admin"] .admin-v3 .admin-user-details {
  display: grid;
  gap: 14px;
  padding: 18px 18px 20px;
}
html[data-space="admin"] .admin-v3 .admin-user-detail-actions {
  justify-content: flex-end;
  margin: 0;
}
html[data-space="admin"] .admin-v3 .admin-user-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
html[data-space="admin"] .admin-v3 .admin-user-setting-card.is-spaces,
html[data-space="admin"] .admin-v3 .admin-user-setting-card.is-domains {
  grid-column: 1 / -1;
}
html[data-space="admin"] .admin-v3 .admin-user-setting-card {
  align-content: start;
  gap: 14px;
  padding: 16px 18px 18px;
}
html[data-space="admin"] .admin-v3 .admin-user-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
html[data-space="admin"] .admin-v3 .admin-user-block-head .btn,
html[data-space="admin"] .admin-v3 .admin-user-block-head .admin-protected-account {
  flex: none;
  margin-top: 2px;
}
html[data-space="admin"] .admin-v3 .admin-user-block-head strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}
html[data-space="admin"] .admin-v3 .admin-user-block-head small {
  display: block;
  max-width: 520px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
html[data-space="admin"] .admin-v3 .admin-user-fields {
  display: grid;
  gap: 12px;
}
html[data-space="admin"] .admin-v3 .admin-user-fields .field,
html[data-space="admin"] .admin-v3 .admin-user-access-form .field {
  gap: 6px;
}
html[data-space="admin"] .admin-v3 .admin-user-fields .field span,
html[data-space="admin"] .admin-v3 .admin-user-access-form .field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
html[data-space="admin"] .admin-v3 .admin-user-setting-card .check-grid {
  max-height: none;
  overflow: visible;
}
html[data-space="admin"] .admin-v3 .admin-space-access-choice:hover {
  transform: none;
  border-color: rgba(240, 68, 91, 0.45);
}
html[data-space="admin"] .admin-v3 .admin-space-access-choice.is-enabled,
html[data-space="admin"] .admin-v3 .admin-space-access-choice:has(input:checked) {
  border-color: rgba(240, 68, 91, 0.45);
  background: rgba(240, 68, 91, 0.08);
  box-shadow: inset 3px 0 #f0445b;
}
html[data-space="admin"] .admin-v3 .admin-space-access-icon {
  background: rgba(240, 68, 91, 0.12);
  color: #f6c3cb;
}
html[data-space="admin"] .admin-v3 .admin-space-access-choice:has(input:checked) em {
  background: rgba(240, 68, 91, 0.14);
  color: #ffd5dc;
}
@media (max-width: 980px) {
  html[data-space="admin"] .admin-v3 .admin-user-detail-grid,
  html[data-space="admin"] .admin-v3 .admin-space-access-grid {
    grid-template-columns: 1fr;
  }
  html[data-space="admin"] .admin-v3 .admin-user-block-head {
    flex-direction: column;
  }
}
html[data-space="admin"] .admin-v3 .domain-panel {
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-space="admin"] .admin-v3 .domain-photo-preview {
  min-height: 148px;
  border-radius: 12px;
}
html[data-space="admin"] .admin-v3 .domain-photo-preview:not(.has-photo) {
  color: #ffd5dc;
  background: var(--surface);
  background-image: none;
  border: 1px solid var(--line);
}
html[data-space="admin"] .admin-v3 .domain-photo-preview span {
  background: rgba(240, 68, 91, 0.16);
  border-color: transparent;
  color: #ffd5dc;
}
html[data-space="admin"] .admin-v3 .domain-panel .domain-mode {
  padding: 16px 18px;
  border: 1px solid var(--line);
}
html[data-space="admin"] .admin-v3 .domain-panel .domain-mode span,
html[data-space="admin"] .admin-v3 .domain-panel .domain-mode.independent span {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
html[data-space="admin"] .admin-v3 .domain-panel .domain-mode p { display: none; }
html[data-space="admin"] .admin-v3 .domain-edit-form,
html[data-space="admin"] .admin-v3 .domain-quick-assign {
  margin: 0;
}
html[data-space="admin"] .admin-v3 .admin-domain-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
html[data-space="admin"] .admin-v3 .domain-panel input[type="file"] {
  width: 100%;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}
html[data-space="admin"] .admin-v3 .domain-panel input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 8px;
  min-height: 30px;
  padding: 0 12px;
  background: #dc3049;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
html[data-space="admin"] .admin-v3 .domain-panel select:hover,
html[data-space="admin"] .admin-v3 .domain-panel select:focus {
  border-color: rgba(240, 68, 91, 0.45);
  box-shadow: none;
  outline-color: rgba(240, 68, 91, 0.28);
}
html[data-space="admin"] .admin-v3 .quick-user {
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
}
html[data-space="admin"] .admin-v3 .quick-user:hover {
  border-color: rgba(240, 68, 91, 0.4);
  background: rgba(240, 68, 91, 0.08);
}
html[data-space="admin"] body.theme-dark .admin-v3 .quick-user:has(input:checked),
html[data-space="admin"] .admin-v3 .quick-user:has(input:checked) {
  background: rgba(240, 68, 91, 0.1);
  border-color: rgba(240, 68, 91, 0.4);
  box-shadow: inset 3px 0 #f0445b;
}
html[data-space="admin"] .admin-v3 .quick-user input {
  accent-color: #dc3049;
  width: 16px;
  height: 16px;
}
html[data-space="admin"] .admin-v3 .admin-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
html[data-space="admin"] .admin-v3 .admin-tool-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
html[data-space="admin"] .admin-v3 .admin-tool-choice:hover {
  border-color: rgba(240, 68, 91, 0.4);
  background: rgba(240, 68, 91, 0.08);
}
html[data-space="admin"] .admin-v3 .admin-tool-choice:has(input:checked) {
  background: rgba(240, 68, 91, 0.1);
  border-color: rgba(240, 68, 91, 0.4);
  box-shadow: inset 3px 0 #f0445b;
}
html[data-space="admin"] .admin-v3 .admin-tool-choice strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}
html[data-space="admin"] .admin-v3 .admin-tool-choice small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
@media (max-width: 980px) {
  html[data-space="admin"] .admin-v3 .admin-tool-grid {
    grid-template-columns: 1fr;
  }
}
html[data-space="admin"] .admin-v3 .quick-user strong {
  color: var(--ink);
}
html[data-space="admin"] .admin-v3 .quick-user .user-avatar {
  width: 36px;
  height: 36px;
  color: #ffd5dc;
  background: rgba(240, 68, 91, 0.16);
  border-color: transparent;
}
html[data-space="admin"] .admin-clean.admin-v3 :is(input,select,textarea) { border-radius:8px; min-height:40px; font-size:14px; }
html[data-space="admin"] .admin-clean.admin-v3 input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  border-radius: 6px;
}
html[data-space="admin"] body.theme-dark .admin-v3 input[type="checkbox"]:hover {
  border-color: rgba(240, 68, 91, 0.55);
  box-shadow: none;
}
html[data-space="admin"] body.theme-dark .admin-v3 input[type="checkbox"]:checked {
  background: #dc3049;
  border-color: #dc3049;
  box-shadow: none;
}
html[data-space="admin"] .admin-clean.admin-v3 :is(button,input,select,textarea,a):focus-visible { outline:2px solid var(--admin-accent); outline-offset:3px; }
html[data-space="admin"] .admin-clean.admin-v3 :is(.admin-form,.admin-user-workspace,.domain-management,.domain-panel,.module-company-card,.admin-user-setting-card,.architecture-center,.admin-health-card,.request-card) { border-radius:12px; box-shadow:none; border:1px solid var(--admin-line); }
html[data-space="admin"] .admin-clean.admin-v3 .domain-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-space="admin"] .admin-clean.admin-v3 .admin-user-overview { gap:12px; margin-bottom:20px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-user-overview article { padding:16px 20px; border-radius:10px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-user-record-summary { min-height:70px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-user-details { padding:20px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-user-detail-grid { gap:16px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-user-setting-card { padding:18px; background:var(--surface); }
html[data-space="admin"] .admin-clean.admin-v3 .admin-floating-company-backdrop { background:rgba(0,0,0,.6); backdrop-filter:blur(4px); padding:20px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-floating-company { width:min(1000px,100%); max-height:90vh; border-radius:16px; background:var(--bg); border:1px solid var(--admin-line); box-shadow:0 24px 80px rgba(0,0,0,.4); }
html[data-space="admin"] .admin-clean.admin-v3 .admin-floating-head { background:var(--surface); padding:20px; position:sticky; top:0; z-index:2; border-bottom:1px solid var(--admin-line); }
html[data-space="admin"] .admin-clean.admin-v3 .admin-company-summary { gap:12px; padding:16px 20px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-company-summary > div { border-radius:8px; background:var(--surface); }
.admin-finder { position:relative; width:clamp(230px,24vw,340px); }
.admin-finder label { display:block; font-size:11px; color:var(--muted); margin-bottom:7px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-finder input { width:100%; background:var(--bg); border:1px solid var(--admin-line); color:var(--ink); padding:10px 13px; }
.admin-find-results { position:absolute; right:0; top:100%; margin-top:8px; width:100%; background:var(--surface); border:1px solid var(--admin-line); border-radius:10px; box-shadow:0 14px 40px rgba(0,0,0,.25); padding:6px; z-index:30; }
.admin-find-results[hidden] { display:none; }
.admin-find-results button { width:100%; display:grid; text-align:left; padding:11px; gap:4px; color:var(--ink); background:transparent; border:0; border-radius:7px; cursor:pointer; }
.admin-find-results button:hover { background:var(--admin-soft); }
.admin-find-results small { color:var(--muted); font-size:11px; }
.admin-find-results p { padding:8px; font-size:13px; }
.admin-overview-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.admin-stat-tile { text-align:left; display:grid; gap:10px; background:var(--surface); border:1px solid var(--admin-line); border-radius:12px; padding:20px; color:var(--ink); cursor:pointer; }
.admin-stat-tile span { color:var(--muted); font-size:12px; }
.admin-stat-tile strong { font-size:32px; line-height:1; }
.admin-stat-tile small { font-size:11px; color:var(--muted); }
.admin-stat-tile:hover { border-color:var(--admin-accent); }
.admin-shortcuts { display:flex; flex-wrap:wrap; gap:10px; margin:20px 0 28px; }
.admin-priority-strip { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:28px; }
.admin-priority-strip button { display:flex; flex-wrap:wrap; gap:12px; text-align:left; padding:15px 18px; color:var(--ink); background:var(--admin-soft); border:1px solid rgba(240,68,91,.25); border-radius:10px; cursor:pointer; }
.admin-priority-strip span { font-size:12px; color:var(--muted); }
.admin-business-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.admin-business-card { background:var(--surface); border:1px solid var(--admin-line); border-radius:12px; padding:22px; }
.admin-business-card header { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:start; gap:10px; }
.admin-business-card h3 { color:var(--ink); margin:0 0 7px; font-size:18px; }
.admin-business-card p { font-size:12px; color:var(--muted); margin:0; }
.admin-pill { font-size:10px; padding:6px 9px; border-radius:20px; color:var(--muted); background:var(--bg); white-space:nowrap; }
.admin-pill.is-attention { color:#ff9caa; background:rgba(240,68,91,.12); }
.admin-business-card dl { margin:22px 0; display:grid; grid-template-columns:1fr; }
.admin-business-card dl > div { display:flex; align-items:center; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--admin-line); }
.admin-business-card dt { color:var(--muted); font-size:12px; }
.admin-business-card dd { margin:0; color:var(--ink); font-size:15px; font-weight:750; }
.admin-business-card .has-value dd { color:#ff9caa; }
.admin-business-card footer { display:flex; justify-content:end; }
.admin-request-columns { display:grid; gap:24px; }
@media (max-width:1100px) {
 html[data-space="admin"] .admin-clean.admin-v3 .admin-command-bar { flex-wrap:wrap; }
 html[data-space="admin"] .admin-clean.admin-v3 .admin-command-actions { flex:1; justify-content:space-between; }
 .admin-overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .admin-business-grid { grid-template-columns:1fr; }
}
@media (max-width:900px) {
 html[data-space="admin"] .admin-clean.admin-v3 .admin-shell { grid-template-columns:1fr; }
 html[data-space="admin"] .admin-clean.admin-v3 .admin-content { padding:20px 16px 40px; }
 html[data-space="admin"] .admin-clean.admin-v3 .admin-command-bar { padding:20px 16px; }
 html[data-space="admin"] .admin-clean.admin-v3 .admin-command-actions { flex-wrap:wrap; align-items:start; }
 .admin-finder { width:100%; }
 html[data-space="admin"] .admin-clean.admin-v3 .mnp-side { position:static; height:auto; max-height:none; border-right:0; border-bottom:1px solid var(--admin-line); }
 .admin-stat-tile { padding:16px; }
 .admin-business-card { padding:16px; }
}

html[data-space="admin"] body.theme-dark { --bg:#0e1420; --surface:#161f2d; --surface-soft:#1b2737; --ink:#edf2fa; --muted:#9dacc0; --line:#29374a; --brand:#ff667b; --brand-soft:rgba(240,68,91,.1); }
html[data-space="admin"] .admin-clean.admin-v3 .admin-operations { border-top:0; padding-top:0; }
html[data-space="admin"] .admin-clean.admin-v3 .mnp-side { --mnp-side-width:226px; --mnp-side-accent:240,68,91; --mnp-side-icon:190,202,219; --mnp-side-active-icon:255,120,140; }
@media(max-width:900px) { html[data-space="admin"] .admin-clean.admin-v3 .mnp-side { --mnp-side-width:100%; width:100%; } html[data-space="admin"] .admin-clean.admin-v3 .mnp-side-section { display:none; } }

html[data-space="admin"] .admin-clean.admin-v3 .admin-company-stack { gap:16px; padding:20px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-company-card { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:20px; }
html[data-space="admin"] .admin-clean.admin-v3 .company-banner-preview { max-height:130px; min-height:100px; border-radius:8px; }
.admin-config-section { border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.admin-config-section > summary { padding:17px 20px; cursor:pointer; color:var(--ink); font-size:14px; font-weight:750; }
.admin-config-section > summary span { font-size:11px; font-weight:400; color:var(--muted); margin-left:12px; }
html[data-space="admin"] .admin-clean.admin-v3 .admin-config-section .admin-company-card { border:0; border-top:1px solid var(--line); border-radius:0 0 10px 10px; }

html[data-space="admin"] .admin-clean.admin-v3 .architecture-clean { padding:24px; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
.architecture-clean .arch-heading { display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.architecture-clean h2 { font-size:23px; margin:8px 0; }
.architecture-clean h3 { font-size:17px; margin:24px 0 14px; }
.architecture-clean h4 { margin:24px 0 12px; }
.architecture-clean p { font-size:13px; color:var(--muted); line-height:1.6; }
.arch-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.arch-scan-status { display:flex; flex-wrap:wrap; gap:12px; align-items:center; padding:16px 0; color:var(--muted); font-size:11px; }
.arch-source { padding:6px 9px; border-radius:6px; background:var(--bg); color:var(--ink); }
.architecture-clean .arch-notice { padding:14px 16px; border:1px solid rgba(240,68,91,.3); border-radius:8px; background:var(--admin-soft); }
.arch-tabs { display:flex; gap:5px; overflow:auto; padding:5px 0 12px; border-bottom:1px solid var(--line); }
.arch-tabs button { flex-shrink:0; padding:10px 13px; border:1px solid transparent; border-radius:8px; color:var(--muted); background:transparent; font:inherit; font-size:12px; cursor:pointer; }
.arch-tabs button.is-active { color:var(--ink); border-color:var(--line); background:var(--bg); }
.arch-tabs button:hover { color:var(--ink); background:var(--bg); }
.arch-search { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:20px 0; }
.arch-search > span { font-size:12px; color:var(--muted); }
html[data-space="admin"] .admin-clean.admin-v3 .arch-search input { width:min(430px,100%); padding:10px 13px; background:var(--bg); }
.arch-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:16px 0 24px; }
.arch-metric { display:grid; gap:10px; padding:18px; border:1px solid var(--line); border-radius:10px; background:var(--bg); }
.arch-metric span,.arch-metric small { font-size:11px; color:var(--muted); line-height:1.5; }
.arch-metric strong { font-size:25px; color:var(--ink); }
.arch-flow { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:18px; border:1px dashed var(--line); border-radius:10px; }
.arch-flow span { font-size:12px; color:var(--ink); }
.arch-flow b { color:var(--admin-accent); }
.arch-components { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.arch-components button { display:flex; justify-content:space-between; gap:16px; text-align:left; padding:18px; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--ink); cursor:pointer; }
.arch-components button:hover { border-color:var(--admin-accent); }
.arch-components span { display:grid; gap:8px; }
.arch-components strong { font-size:14px; }
.arch-components small { font-size:11px; color:var(--muted); }
.arch-components b { white-space:nowrap; }
.arch-components i { color:var(--admin-accent); font-style:normal; }
.arch-diagnostic { border-top:1px solid var(--line); margin-top:28px; padding-top:4px; }
.architecture-clean details { color:var(--muted); font-size:12px; }
.architecture-clean summary { cursor:pointer; padding:10px 0; color:var(--ink); }
.arch-view-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.arch-view-head small { font-size:11px; color:var(--muted); }
.arch-database { display:grid; grid-template-columns:240px minmax(0,1fr); gap:20px; }
.arch-table-list { display:grid; align-content:start; gap:6px; max-height:650px; overflow:auto; }
.arch-table-list button { display:grid; gap:6px; text-align:left; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--ink); cursor:pointer; }
.arch-table-list strong { font-size:12px; overflow-wrap:anywhere; }
.arch-table-list small { color:var(--muted); font-size:10px; }
.arch-table-list button[aria-pressed="true"] { border-color:var(--admin-accent); background:var(--admin-soft); }
.arch-table-detail { min-width:0; padding:0 18px 18px; border:1px solid var(--line); border-radius:10px; background:var(--bg); }
.arch-table-scroll { overflow:auto; }
.arch-table-scroll table { width:100%; border-collapse:collapse; font-size:12px; text-align:left; }
.arch-table-scroll th,.arch-table-scroll td { padding:12px 10px; border-bottom:1px solid var(--line); white-space:nowrap; color:var(--ink); }
.arch-table-scroll th { color:var(--muted); font-weight:500; }
.arch-relations { padding-left:18px; font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
.arch-records { display:grid; gap:10px; margin-top:18px; }
.arch-record { display:flex; align-items:start; gap:14px; padding:16px; border:1px solid var(--line); border-radius:8px; background:var(--bg); min-width:0; }
.arch-record > div { min-width:0; flex:1; display:grid; gap:7px; }
.arch-record code { font-size:12px; overflow-wrap:anywhere; white-space:normal; }
.arch-record small { color:var(--muted); font-size:11px; }
.arch-method,.arch-tag { padding:5px 7px; border-radius:5px; background:var(--surface); color:var(--muted); font-size:10px; white-space:nowrap; }
.arch-method { color:var(--ink); min-width:42px; text-align:center; }
.arch-role-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:20px 0; }
.arch-role-grid article { padding:0 18px 18px; border:1px solid var(--line); border-radius:10px; background:var(--bg); }
.arch-role-grid ul { padding-left:16px; font-size:12px; color:var(--muted); line-height:1.9; }
@media(max-width:1100px) { .arch-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .arch-role-grid { grid-template-columns:1fr; } }
@media(max-width:650px) { html[data-space="admin"] .admin-clean.admin-v3 .architecture-clean { padding:16px; } .arch-database { grid-template-columns:1fr; } .arch-table-list { max-height:240px; } .arch-components { grid-template-columns:1fr; } .arch-record { flex-wrap:wrap; } .arch-tag { white-space:normal; } }

.site-tree { padding:18px; border:1px solid var(--line); border-radius:10px; background:var(--bg); }
.site-folder > summary { display:flex; align-items:center; gap:8px; font-weight:700; list-style:none; }
.site-folder > summary > span { color:var(--admin-accent); transition:transform .15s; }
.site-folder[open] > summary > span { transform:rotate(90deg); }
.site-folder summary small { margin-left:auto; font-size:10px; color:var(--muted); font-weight:400; }
.site-folder > div { border-left:1px solid var(--line); margin-left:8px; padding-left:18px; }
.site-file { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:9px 0; font-size:12px; overflow-wrap:anywhere; }
.site-extension { width:38px; font-size:9px; text-align:center; padding:4px 0; border-radius:4px; background:var(--surface); color:var(--muted); }
.site-file a { margin-left:auto; color:var(--brand); font-size:11px; }
.site-graph { padding:24px 16px; border:1px solid var(--line); border-radius:12px; background:var(--bg); overflow:auto; }
.site-root { display:grid; gap:7px; text-align:center; padding:18px 30px; margin:auto; color:var(--ink); border:1px solid var(--admin-accent); border-radius:10px; background:var(--surface); cursor:pointer; }
.site-root small { color:var(--muted); font-size:11px; }
.site-graph-branches { display:grid; grid-template-columns:repeat(6,minmax(130px,1fr)); gap:16px; padding-top:40px; position:relative; min-width:900px; }
.site-graph-branches::before { content:''; position:absolute; left:50%; top:0; height:20px; border-left:1px solid var(--line); }
.site-graph-branches::after { content:''; position:absolute; left:10%; right:10%; top:20px; border-top:1px solid var(--line); }
.site-graph-branch { position:relative; min-width:0; }
.site-graph-branch::before { content:''; position:absolute; top:-20px; left:50%; height:20px; border-left:1px solid var(--line); }
.site-space-node { display:grid; gap:9px; width:100%; padding:16px 10px; background:var(--surface); border:1px solid var(--line); border-top:3px solid var(--site-node-color); border-radius:9px; color:var(--ink); cursor:pointer; }
.site-space-node strong { font-size:12px; }
.site-space-node small { color:var(--muted); font-size:10px; }
.site-space-node[aria-pressed="true"],.site-space-node:hover { border-color:var(--site-node-color); box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--site-node-color); }
.site-node-children { display:grid; gap:7px; border-left:1px solid var(--line); padding:12px 0 0 12px; margin-left:10px; }
.site-node-children span { font-size:11px; color:var(--muted); padding:7px 9px; border:1px solid var(--line); border-radius:6px; background:var(--surface); }
.site-node-children small { font-size:10px; color:var(--muted); }
.site-node-detail { margin-top:20px; padding:0 20px 20px; background:var(--bg); border:1px solid var(--line); border-radius:10px; }
.site-destinations { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.site-destinations > div { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:12px; border:1px solid var(--line); border-radius:7px; }
.site-destinations strong { font-size:12px; }
.site-destinations small { font-size:10px; color:var(--muted); }
@media(max-width:650px) { .site-destinations { grid-template-columns:1fr; } .site-folder > div { padding-left:10px; } .site-graph { padding:20px 10px; } }

/* Account warnings remain readable and editable; expiry wins over warnings. */
.admin-account-legend { display:flex; flex-wrap:wrap; gap:16px; padding:0 18px; font-size:12px; color:var(--muted); }
.admin-account-legend span::before { content:""; display:inline-block; width:9px; height:9px; margin-right:7px; border-radius:50%; background:#9ca3af; }
.admin-account-legend .issue::before { background:#df7479; }
.admin-v2 .admin-user-record.is-account-issue,
.admin-person.is-account-issue { background:rgba(220,65,80,.08); box-shadow:inset 3px 0 #d7727c; }
.admin-v2 .admin-user-record.is-account-issue .admin-user-record-summary,
.admin-person.is-account-issue .user-summary { background:rgba(220,65,80,.06); }
.admin-v2 .admin-user-record.is-account-issue .admin-user-record-summary:hover,
.admin-v2 .admin-user-record.is-account-issue.is-open .admin-user-record-summary { background:rgba(220,65,80,.13); }
.admin-v2 .admin-user-record.is-account-expired,
.admin-person.is-account-expired { background:rgba(130,138,150,.11); box-shadow:inset 3px 0 #9098a5; }
.admin-v2 .admin-user-record.is-account-expired .admin-user-record-summary,
.admin-person.is-account-expired .user-summary { background:rgba(130,138,150,.09); }
.admin-v2 .admin-user-record.is-account-expired .admin-user-record-summary:hover,
.admin-v2 .admin-user-record.is-account-expired.is-open .admin-user-record-summary { background:rgba(130,138,150,.18); }
.admin-v2 .is-account-expired .user-avatar { filter:grayscale(1); }
.admin-v2 .is-account-expired .admin-user-status,
.admin-person .account-expired-tag { color:var(--muted); background:rgba(130,138,150,.15); border-color:rgba(130,138,150,.3); }
.admin-v2 .is-account-expired .admin-user-status i { background:#9098a5; }
.admin-v2 .admin-user-identity .admin-account-reason { white-space:normal; font-size:11px; margin-top:3px; }
.admin-v2 .is-account-issue .admin-account-reason { color:var(--ink); font-weight:600; }

/* SOURCE: css/55-portal.css */
.mnp-login,
.mnp-portal {
  --portal-bg: #0c111b;
  --portal-panel: #141d2b;
  --portal-border: #2a3546;
  --portal-text: #f3f5fa;
  --portal-muted: #a5b0c1;
  min-height: 100vh;
  color: var(--portal-text);
  background:
    radial-gradient(ellipse at 7% 8%, #23362680, transparent 40%),
    radial-gradient(ellipse at 90% 20%, #2b264d60, transparent 42%),
    var(--portal-bg);
  font-family:
    Inter,
    Segoe UI,
    sans-serif;
  line-height: 1.5;
}
.mnp-login *,
.mnp-portal * {
  box-sizing: border-box;
}
.mnp-login {
  padding: 38px clamp(24px, 5vw, 90px) 20px;
}
.portal-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--portal-text);
  text-decoration: none;
  width: max-content;
}
.portal-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.portal-logo strong {
  font-size: 26px;
  line-height: 1.1;
}
.portal-logo strong span {
  display: block;
  font-size: 11px;
  color: var(--portal-muted);
  font-weight: 500;
  margin-top: 6px;
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.8fr);
  gap: clamp(35px, 7vw, 120px);
  max-width: 1270px;
  margin: 70px auto 50px;
  align-items: center;
}
.portal-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #b5ed56;
  display: block;
}
.login-story h1 {
  font-size: clamp(40px, 4.6vw, 72px);
  letter-spacing: -3px;
  line-height: 1.08;
  margin: 24px 0;
  color: #f7f8fc;
}
.login-story h1 em {
  color: #b5ed56;
  font-style: normal;
}
.login-story > p {
  color: var(--portal-muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 0 30px;
}
.login-preview {
  max-width: 520px;
  border: 1px solid #3c493c;
  border-radius: 18px;
  background: linear-gradient(130deg, #27362b99, #131c2c);
  padding: 19px;
  box-shadow: 0 25px 80px #0003;
  transform: rotate(-1deg);
}
.preview-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #ffffff12;
  padding-bottom: 15px;
  color: #a5b0c1;
  font-size: 10px;
}
.preview-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #728373;
}
.preview-dots span {
  margin-left: auto;
}
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.preview-grid > span {
  padding: 16px;
  border-radius: 11px;
  background: #1a2636;
  border: 1px solid #3d4a5b;
  color: #b5ed56;
  display: block;
  font-size: 22px;
}
.preview-grid b {
  font-size: 14px;
  color: #f4f5f8;
  margin-left: 8px;
}
.preview-grid small {
  display: block;
  color: #b7c0cd;
  font-size: 11px;
  margin-top: 8px;
}
.preview-grid > span:nth-child(2) {
  color: #f5a384;
}
.preview-grid > span:nth-child(3) {
  color: #aaa4ff;
}
.preview-grid > span:nth-child(4) {
  color: #60bcff;
}
.story-foot {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  font-size: 10px;
  color: #a5b0c1;
  flex-wrap: wrap;
}
.login-panel {
  padding: 34px;
  border: 1px solid var(--portal-border);
  border-radius: 23px;
  background: linear-gradient(145deg, #192334, #101722);
  box-shadow: 0 25px 90px #0003;
}
.login-panel h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 13px 0 7px;
}
.login-panel > p {
  font-size: 13px;
  color: var(--portal-muted);
  margin: 0 0 27px;
}
.login-panel form {
  display: grid;
  gap: 17px;
}
.login-panel label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
}
.login-panel input {
  border: 1px solid #364154;
  background: #0c1420;
  color: #fff;
  border-radius: 10px;
  width: 100%;
  padding: 14px 13px;
  font-size: 14px;
  min-height: 48px;
  outline: none;
}
.login-panel input:focus {
  border-color: #b5ed56;
  box-shadow: 0 0 0 3px #b5ed5620;
}
.portal-password {
  display: flex;
  position: relative;
}
.portal-password input {
  padding-right: 78px;
}
.portal-password button {
  position: absolute;
  right: 8px;
  top: 9px;
  padding: 6px;
  background: none;
  border: 0;
  color: #b9c4d5;
  font-size: 11px;
  cursor: pointer;
}
.portal-twofactor small {
  font-size: 11px;
  color: var(--portal-muted);
}
.portal-form-error {
  padding: 10px;
  border: 1px solid #b5ed5640;
  background: #b5ed5610;
  color: #e2f7c2;
  border-radius: 8px;
  font-size: 12px;
  margin: 0;
}
.portal-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  background: #b5ed56;
  color: #102009;
  border: 1px solid #b5ed56;
  border-radius: 10px;
  padding: 11px 17px;
  min-height: 44px;
  font-weight: 750;
  font-size: 12px;
  cursor: pointer;
  transition:
    transform 0.18s,
    filter 0.18s;
}
.portal-button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.portal-button:disabled {
  opacity: 0.55;
  cursor: default;
}
.portal-button.secondary {
  background: #243044;
  border-color: #3b475c;
  color: #f3f5fa;
}
.portal-text-button {
  background: none;
  border: 0;
  color: #c3cedf;
  font-size: 12px;
  padding: 10px 0;
  cursor: pointer;
}
.login-panel > .portal-text-button {
  display: block;
  margin: 10px auto 0;
}
.portal-help {
  font-size: 12px !important;
  color: #a5b0c1 !important;
  margin: 10px 0 !important;
}
.login-security {
  display: flex;
  gap: 12px;
  border-top: 1px solid #ffffff10;
  padding-top: 20px;
  margin-top: 20px;
}
.login-security > span {
  color: #b5ed56;
  font-size: 25px;
}
.login-security p {
  margin: 0;
  font-size: 11px;
}
.login-security small {
  display: block;
  color: #a5b0c1;
  font-size: 10px;
  margin-top: 4px;
}
.portal-login-footer {
  font-size: 10px;
  color: #8491a3;
  text-align: center;
  padding: 24px;
}
.portal-button:focus-visible,
.portal-tabs button:focus-visible,
.portal-text-button:focus-visible,
.portal-admin-card:focus-visible {
  outline: 3px solid #b5ed56;
  outline-offset: 4px;
}
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px clamp(24px, 5vw, 90px);
  border-bottom: 1px solid #ffffff0c;
  background: #0e1523b0;
}
.portal-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.portal-user small {
  display: block;
  color: #9eacbf;
  font-size: 10px;
}
.portal-user .portal-text-button {
  margin-left: 15px;
}
.portal-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #b5ed5620;
  color: #b5ed56;
  border: 1px solid #b5ed5630;
  font-weight: 800;
}
.portal-container {
  max-width: 1400px;
  margin: auto;
  padding: 0 clamp(24px, 5vw, 70px) 45px;
}
.portal-tabs {
  display: flex;
  gap: 28px;
  overflow: auto;
  border-bottom: 1px solid #ffffff13;
}
.portal-tabs button {
  padding: 24px 1px 18px;
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #a5b0c1;
  font-size: 12px;
  cursor: pointer;
}
.portal-tabs button[aria-current="page"] {
  color: #b5ed56;
  border-bottom-color: #b5ed56;
}
.portal-intro {
  padding: 40px 0 27px;
}
.portal-intro h1 {
  font-size: clamp(29px, 3.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -1.7px;
  color: #f3f5fa;
  margin: 12px 0;
}
.portal-intro p {
  font-size: 13px;
  max-width: 720px;
  color: #a5b0c1;
  margin: 0;
}
.portal-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.portal-product {
  display: flex;
  flex-direction: column;
  border: 1px solid #2a3546;
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(145deg, #1a2434, #131c2a);
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.portal-product:hover {
  transform: translateY(-4px);
  border-color: var(--product-color);
  box-shadow: 0 18px 35px #0002;
}
.product-tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  background: #ffffff05;
  color: #a5b0c1;
  font-size: 10px;
  border: 1px solid #ffffff0b;
}
.portal-product h3 {
  font-size: 20px;
  color: #f5f7fc;
  margin: 21px 0 8px;
  letter-spacing: -0.5px;
}
.portal-product > p {
  font-size: 12px;
  line-height: 1.65;
  color: #a5b0c1;
  min-height: 59px;
  margin: 0;
}
.portal-product ul {
  padding: 0;
  list-style: none;
  margin: 20px 0 24px;
  display: grid;
  gap: 8px;
}
.portal-product li {
  font-size: 11px;
  color: #c5cedc;
}
.portal-product li::before {
  content: "✓";
  color: var(--product-color);
  margin-right: 9px;
}
.product-bottom {
  margin-top: auto;
  display: grid;
  gap: 13px;
  border-top: 1px solid #ffffff0a;
  padding-top: 17px;
}
.product-status {
  font-size: 11px;
  color: #c4d3af;
}
.product-bottom .portal-button {
  background: var(--product-color);
  border-color: var(--product-color);
  color: #101827;
  justify-content: space-between;
}
.portal-admin-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 17px;
  text-align: left;
  margin-top: 24px;
  padding: 23px;
  background: linear-gradient(100deg, #54273570, #211b2d);
  border: 1px solid #dd455970;
  color: #ff8797;
  border-radius: 16px;
  cursor: pointer;
}
.portal-admin-card > span {
  font-size: 30px;
}
.portal-admin-card strong {
  font-size: 16px;
}
.portal-admin-card small {
  display: block;
  color: #cfadba;
  font-size: 11px;
  margin-top: 5px;
}
.portal-admin-card > b {
  margin-left: auto;
  font-size: 12px;
}
.portal-shop-note {
  padding: 18px 22px;
  border: 1px solid #8e83dc35;
  border-radius: 12px;
  background: #8e83dc0c;
  margin-bottom: 24px;
  font-size: 12px;
}
.portal-shop-note p {
  margin: 6px 0 0;
  color: #b3bbd0;
  font-size: 11px;
}
.portal-account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.portal-account-card {
  padding: 28px;
  background: #162030;
  border: 1px solid #2a3546;
  border-radius: 17px;
}
.portal-account-card h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 12px 0;
  color: #fff;
}
.portal-account-card p {
  font-size: 12px;
  line-height: 1.7;
  color: #b1bdcf;
}
.portal-account-card .portal-button {
  margin-top: 10px;
}
.portal-request-row {
  display: flex;
  gap: 15px;
  align-items: center;
  border-top: 1px solid #ffffff10;
  margin-top: 20px;
  padding-top: 16px;
  font-size: 12px;
}
.portal-request-row > div {
  margin-right: auto;
}
.portal-request-row p {
  margin: 4px 0;
}
.mnp-portal [hidden],
.mnp-login [hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .portal-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-layout {
    gap: 40px;
  }
  .login-panel {
    padding: 27px;
  }
  .login-story h1 {
    letter-spacing: -2px;
  }
  .story-foot {
    gap: 12px;
  }
}
@media (max-width: 760px) {
  .mnp-login {
    padding: 23px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 35px auto;
    gap: 30px;
  }
  .login-story h1 {
    font-size: 42px;
  }
  .login-story > p {
    font-size: 13px;
  }
  .login-preview,
  .story-foot {
    display: none;
  }
  .login-panel {
    padding: 27px 23px;
  }
  .portal-header {
    padding: 20px;
  }
  .portal-logo strong {
    font-size: 21px;
  }
  .portal-user > span:not(.portal-avatar) {
    display: none;
  }
  .portal-user {
    gap: 6px;
  }
  .portal-user .portal-text-button {
    margin-left: 5px;
    font-size: 10px;
  }
  .portal-container {
    padding: 0 20px 25px;
  }
  .portal-tabs {
    gap: 23px;
  }
  .portal-intro {
    padding-top: 30px;
  }
  .portal-products,
  .portal-account-grid {
    grid-template-columns: 1fr;
  }
  .portal-product {
    padding: 23px;
  }
  .portal-product > p {
    min-height: 0;
  }
  .portal-admin-card {
    padding: 20px;
  }
  .portal-admin-card small {
    max-width: 190px;
  }
  .portal-admin-card > b {
    font-size: 0;
  }
  .portal-admin-card > b::after {
    content: "→";
    font-size: 18px;
  }
  .portal-request-row {
    flex-wrap: wrap;
  }
  .portal-request-row > div {
    width: 100%;
  }
  .portal-user .portal-avatar {
    width: 34px;
    height: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portal-button,
  .portal-product {
    transition: none;
  }
  .portal-button:hover:not(:disabled),
  .portal-product:hover {
    transform: none;
  }
}

.totp-local-badge{display:grid;place-items:center;width:80px;height:80px;border-radius:16px;background:#a8ef3f15;color:#a8ef3f;font-size:36px;}

.lobby-shop-large{display:flex;flex-direction:column;border:1px solid #c6acff80;border-radius:22px;background:linear-gradient(145deg,#433168,#231c3f);color:#f6f0ff;cursor:pointer;box-shadow:0 20px 50px #0004,0 0 35px #aa7cff12;transition:transform .2s,box-shadow .2s,border-color .2s;justify-self:end;}.lobby-shop-large svg{fill:none;stroke:#d4b7ff;stroke-linecap:round;stroke-linejoin:round;}.lobby-shop-large strong{font-weight:800;line-height:1.15;}.lobby-shop-large>span{font-size:12px;color:#c8bbdd;}.lobby-shop-large>b{margin-top:8px;font-size:12px;color:#ddc9ff;}.lobby-shop-large:hover{transform:translateY(-5px);border-color:#dabaff;box-shadow:0 24px 55px #0005,0 0 40px #b780ff25;}.lobby-shop-large:focus-visible{outline:3px solid #dabaff;outline-offset:5px;}
@media(min-width:1100px){.login-hub-page.is-choice-step .lobby-shop-large{position:absolute;left:calc(100% + 28px);top:50%;margin-top:-120px;}}
@media(max-width:1099px){.lobby-shop-large{width:min(320px,100%);margin-top:6px;}}
@media(prefers-reduced-motion:reduce){.lobby-shop-large{transition:none;}.lobby-shop-large:hover{transform:none;}}
.lobby-shop-large{align-items:center;justify-content:center;text-align:center;width:230px;min-height:230px;gap:20px;padding:28px;}.lobby-shop-large svg{width:100px;height:100px;stroke-width:1.4;}.lobby-shop-large strong{font-size:30px;}
/* Lobby : conserve la présentation bureau, adapte compte, cartes et boutique aux petits écrans. */
@media(max-width:1099px){
  .login-hub-page.is-choice-step{padding:24px 20px;align-content:start;align-items:start;}
  .login-hub-page.is-choice-step .login-home-stage{width:min(680px,100%);min-width:0;gap:18px;align-self:start;}
  .login-hub-page.is-choice-step .login-active-account{position:static;inset:auto;width:100%;max-width:none;margin:0;justify-self:stretch;box-sizing:border-box;}
  .login-hub-page.is-choice-step .login-screen-pill{display:none;}
  .login-hub-page.is-choice-step .login-space-panel{width:100%;min-width:0;padding:24px;border-radius:22px;}
  .login-hub-page.is-choice-step .login-space-brand{flex-direction:row;align-items:center;gap:16px;margin-bottom:24px;}
  .login-hub-page.is-choice-step .login-brand-logo{width:64px;height:64px;flex:0 0 64px;}
  .login-hub-page.is-choice-step .login-space-brand h1{font-size:36px;line-height:1.1;}
  .login-hub-page.is-choice-step .login-space-brand p{font-size:13px;line-height:1.5;}
  .login-hub-page.is-choice-step .login-space-list{gap:12px;}
  .login-hub-page.is-choice-step .login-space-card{min-width:0;min-height:88px;grid-template-columns:52px minmax(0,1fr) 96px;gap:12px;padding:14px;border-radius:16px;}
  .login-hub-page.is-choice-step .login-space-icon{width:52px;height:52px;border-radius:13px;}
  .login-hub-page.is-choice-step .login-space-icon svg{width:28px;height:28px;}
  .login-hub-page.is-choice-step .login-space-copy{min-width:0;}
  .login-hub-page.is-choice-step .login-space-copy strong{font-size:21px;line-height:1.2;}
  .login-hub-page.is-choice-step .login-space-copy small{font-size:12px;line-height:1.45;margin-top:5px;}
  .login-hub-page.is-choice-step .login-space-action{grid-column:auto;width:96px;min-height:42px;padding:0 10px;gap:8px;font-size:11px;border-radius:10px;}
  .login-hub-page.is-choice-step .lobby-shop-large{position:static;inset:auto;margin:0;width:100%;min-height:128px;padding:20px;gap:10px;border-radius:20px;justify-self:stretch;}
  .login-hub-page.is-choice-step .lobby-shop-large svg{width:64px;height:64px;}
  .login-hub-page.is-choice-step .lobby-shop-large strong{font-size:24px;}
}
@media(max-width:480px){
  .login-hub-page.is-choice-step{padding:14px 12px;}
  .login-hub-page.is-choice-step .login-home-stage{gap:14px;}
  .login-hub-page.is-choice-step .login-active-account{padding:12px;gap:10px;border-radius:16px;}
  .login-hub-page.is-choice-step .login-active-account-avatar{width:42px;height:42px;min-width:42px;font-size:16px;}
  .login-hub-page.is-choice-step .login-active-account-profile{min-width:0;flex:1;}
  .login-hub-page.is-choice-step .login-active-account-profile strong{font-size:16px;overflow-wrap:anywhere;}
  .login-hub-page.is-choice-step .login-active-account-profile span{font-size:9px;}
  .login-hub-page.is-choice-step .login-active-account-logout{width:40px;height:40px;min-width:40px;}
  .login-hub-page.is-choice-step .login-space-panel{padding:16px 12px;border-radius:18px;}
  .login-hub-page.is-choice-step .login-space-brand{gap:12px;margin-bottom:18px;}
  .login-hub-page.is-choice-step .login-brand-logo{width:48px;height:48px;flex-basis:48px;}
  .login-hub-page.is-choice-step .login-space-brand h1{font-size:30px;}
  .login-hub-page.is-choice-step .login-space-brand p{font-size:11px;}
  .login-hub-page.is-choice-step .login-space-card{grid-template-columns:42px minmax(0,1fr) 36px;gap:10px;padding:12px 10px;min-height:84px;}
  .login-hub-page.is-choice-step .login-space-icon{width:42px;height:42px;border-radius:11px;}
  .login-hub-page.is-choice-step .login-space-icon svg{width:24px;height:24px;}
  .login-hub-page.is-choice-step .login-space-copy strong{font-size:18px;}
  .login-hub-page.is-choice-step .login-space-copy small{font-size:11px;}
  .login-hub-page.is-choice-step .login-space-action{width:36px;min-height:40px;padding:0;gap:0;font-size:0;}
  .login-hub-page.is-choice-step .login-space-action svg{width:18px;height:18px;flex:0 0 18px;}
  .login-hub-page.is-choice-step .lobby-shop-large{min-height:120px;padding:18px;gap:8px;}
  .login-hub-page.is-choice-step .lobby-shop-large svg{width:58px;height:58px;}
  .login-hub-page.is-choice-step .lobby-shop-large strong{font-size:22px;}
}

.mnp-auth-tabs{display:flex;gap:8px;margin:20px 0;}.mnp-auth-tabs button{flex:1;padding:12px;border:1px solid #364154;background:#101827;border-radius:10px;color:#b7c3d6;font-size:12px;cursor:pointer;}.mnp-auth-tabs button[aria-pressed="true"]{background:#b5ed5620;border-color:#b5ed56;color:#b5ed56;}.mnp-auth-hint{font-size:10px;line-height:1.5;color:#a5b0c1;font-weight:400;}.mnp-lobby-empty{padding:26px 12px;text-align:center;color:#c5cfe0;font-size:16px;line-height:1.6;}

.login-space-panel:has(.mnp-lobby-empty):not(:has(.login-space-card)){min-height:0;}

/* Connexion : une présentation sobre, indépendante du lobby. */
.mnp-auth-clean{padding:32px clamp(20px,5vw,72px) 16px;background:radial-gradient(ellipse at 0% 40%,#293c2438,transparent 52%),radial-gradient(ellipse at 100% 0%,#3b315b30,transparent 48%),#090e18;}
.mnp-auth-clean>.portal-logo{max-width:1080px;width:100%;margin:0 auto;}
.mnp-auth-clean .login-layout{max-width:1080px;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:80px;margin:56px auto 24px;align-items:center;}
.mnp-auth-clean .login-story h1{font-size:clamp(36px,4.1vw,58px);line-height:1.12;letter-spacing:-2px;margin:20px 0;}
.mnp-auth-clean .login-story>p{font-size:16px;line-height:1.7;max-width:370px;margin-bottom:24px;}
.mnp-auth-spaces{display:flex;flex-wrap:wrap;gap:8px;max-width:380px;}
.mnp-auth-spaces span{padding:7px 12px;border:1px solid #ffffff15;border-radius:8px;background:#ffffff04;color:#c4cfdf;font-size:12px;}
.mnp-auth-spaces span:nth-child(1){color:#b5ed56}.mnp-auth-spaces span:nth-child(2){color:#f0ae90}.mnp-auth-spaces span:nth-child(3){color:#aaa4ff}.mnp-auth-spaces span:nth-child(4){color:#83d2c0}.mnp-auth-spaces span:nth-child(5){color:#7ec4ff}
.mnp-auth-note{max-width:370px;border-left:2px solid #b5ed5655;padding-left:16px;margin-top:40px;}
.mnp-auth-note strong{font-size:13px;font-weight:600;}.mnp-auth-note p{font-size:12px;line-height:1.7;color:#8f9eb3;margin:7px 0 0;}
.mnp-auth-clean .login-panel{padding:32px;background:#111925;border:1px solid #ffffff16;border-radius:20px;box-shadow:0 24px 70px #0003;}
.mnp-auth-clean .login-panel h2{font-size:28px;letter-spacing:-.8px;margin:12px 0 8px;}
.mnp-auth-clean .login-panel>p{line-height:1.65;margin-bottom:22px;}
.mnp-auth-clean .mnp-auth-tabs{background:#080f1a;border:1px solid #ffffff0c;padding:4px;gap:4px;border-radius:11px;margin:0 0 24px;}
.mnp-auth-clean .mnp-auth-tabs button{border:0;background:transparent;min-height:40px;padding:9px 6px;font-size:13px;border-radius:7px;}
.mnp-auth-clean .mnp-auth-tabs button[aria-pressed="true"]{background:#263324;color:#c4ef8c;box-shadow:0 2px 8px #0003;}
.mnp-auth-clean .login-panel label{font-size:13px;gap:7px;}.mnp-auth-clean .login-panel input{font-size:16px;min-height:48px;background:#0c1320;border-color:#2c384b;border-radius:9px;}
.mnp-auth-clean .login-panel input::placeholder{color:#728197;font-size:14px;}
.mnp-auth-clean .login-panel form{gap:18px;}.mnp-auth-clean .login-submit{min-height:48px;font-size:14px;margin-top:4px;}
.mnp-auth-clean .mnp-auth-hint{font-size:11px;line-height:1.6;}.mnp-auth-clean .login-security{padding-top:18px;margin-top:20px;}.mnp-auth-clean .login-security small{font-size:11px;line-height:1.6;}.mnp-auth-clean .portal-login-footer{padding:18px 0;font-size:11px;}
.mnp-auth-clean .portal-form-error{border-color:#eb6c6c50;background:#eb6c6c12;color:#f4b4b4;}
.mnp-auth-clean button:focus-visible{outline:2px solid #b5ed56;outline-offset:3px;}
@media(max-width:900px){.mnp-auth-clean .login-layout{gap:36px;grid-template-columns:minmax(0,1fr) minmax(0,420px);}.mnp-auth-clean .login-story h1{font-size:40px;}}
@media(max-width:700px){.mnp-auth-clean{padding:22px 18px 12px;}.mnp-auth-clean .login-layout{display:block;max-width:440px;margin:28px auto 0;}.mnp-auth-clean>.portal-logo{max-width:440px;}.mnp-auth-clean .login-story{display:none;}.mnp-auth-clean .login-panel{padding:26px 22px;}.mnp-auth-clean .portal-logo img{width:40px;height:40px;}.mnp-auth-clean .portal-logo strong{font-size:23px;}}
@media(max-width:360px){.mnp-auth-clean{padding:18px 12px 10px;}.mnp-auth-clean .login-panel{padding:22px 16px;}.mnp-auth-clean .login-panel h2{font-size:25px;}}

/* Boutique : collection colorée, illustrations propres à chaque espace. */
.mnp-shop{background:radial-gradient(ellipse at 90% 0%,#69439030,transparent 40%),radial-gradient(ellipse at 0% 50%,#22495922,transparent 45%),#0b101b;}
.mnp-shop .portal-container{max-width:1160px;}
.mnp-shop .portal-intro{position:relative;padding:42px;border:1px solid #c4a0ff35;border-radius:26px;background:radial-gradient(circle at 95% 0%,#b184f535,transparent 45%),linear-gradient(120deg,#352449,#182238);overflow:hidden;margin:26px 0 38px;}
.mnp-shop .portal-intro:after{content:'✦';position:absolute;right:38px;top:-24px;font-size:180px;color:#cfb3ff1c;pointer-events:none;}
.mnp-shop .portal-intro .portal-eyebrow{color:#d1b8ff;}.mnp-shop .portal-intro h1{font-size:clamp(32px,4vw,50px);max-width:650px;line-height:1.12;letter-spacing:-1.5px;margin:18px 0;position:relative;z-index:1;}.mnp-shop .portal-intro p{font-size:15px;line-height:1.7;max-width:620px;color:#d2c7df;position:relative;z-index:1;}
.shop-collection-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 0 20px;}.shop-collection-heading h2{font-size:27px;letter-spacing:-.6px;margin:8px 0 0;color:#f8f4ff;}.shop-collection-heading>span{font-size:12px;color:#ac9ebd;}
.mnp-shop .portal-shop-note{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 20px;background:#bf99ed0a;border:1px solid #bf99ed22;margin-bottom:24px;}.mnp-shop .portal-shop-note strong{font-size:12px;color:#d9c5f2;}.mnp-shop .portal-shop-note p{margin:0;font-size:11px;}
.mnp-shop .portal-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
.shop-product.portal-product{padding:0;overflow:hidden;border-radius:24px;border-color:color-mix(in srgb,var(--product-color) 25%,#202b3b);background:#141d2b;}
.shop-product.portal-product:hover{border-color:var(--product-color);box-shadow:0 15px 45px #0004,0 0 30px color-mix(in srgb,var(--product-color) 10%,transparent);}
.shop-product-art{height:170px;position:relative;display:flex;align-items:center;padding:26px 32px;overflow:hidden;background:radial-gradient(ellipse at 80% 0%,color-mix(in srgb,var(--product-color) 25%,transparent),transparent 65%),linear-gradient(135deg,color-mix(in srgb,var(--product-color) 15%,#111827),#111827);border-bottom:1px solid #ffffff08;}
.shop-art-icon{position:relative;z-index:1;display:grid;place-items:center;width:100px;height:100px;border-radius:26px;border:1px solid color-mix(in srgb,var(--product-color) 50%,transparent);background:color-mix(in srgb,var(--product-color) 14%,#142031);color:var(--product-color);box-shadow:0 12px 30px #0003;transform:rotate(-7deg);}.shop-art-icon svg{width:58px;height:58px;}
.shop-art-orbit{position:absolute;width:300px;height:300px;right:-35px;top:-115px;border:1px solid color-mix(in srgb,var(--product-color) 25%,transparent);border-radius:50%;}.shop-art-orbit:before{content:'';position:absolute;inset:30px;border:1px solid color-mix(in srgb,var(--product-color) 15%,transparent);border-radius:50%;}
.shop-art-label{position:absolute;right:24px;top:22px;font-size:11px;font-weight:600;color:var(--product-color);padding:6px 12px;border-radius:30px;background:#0a111a65;border:1px solid #ffffff14;}
.shop-art-lines{position:absolute;right:38px;bottom:26px;width:150px;display:grid;gap:10px;transform:rotate(-7deg);}.shop-art-lines i{height:12px;border-radius:4px;background:color-mix(in srgb,var(--product-color) 25%,transparent);}.shop-art-lines i:nth-child(2){width:75%;opacity:.6}.shop-art-lines i:nth-child(3){width:50%;opacity:.35}
.shop-product-body{padding:26px;display:flex;flex-direction:column;flex:1;}.shop-product-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;}.shop-product-heading h3{font-size:24px;margin:0;color:var(--product-color);}.shop-product-heading .product-status{font-size:10px;color:#c0cada;background:#ffffff05;border:1px solid #ffffff10;border-radius:20px;padding:5px 9px;white-space:nowrap;}
.shop-product-body h4{font-size:19px;line-height:1.4;font-weight:650;letter-spacing:-.3px;margin:14px 0 10px;color:#f6f4fb;}.shop-product-body>p{font-size:13px;line-height:1.65;color:#aab9cf;margin:0;}.shop-product-body ul{margin:20px 0 24px;gap:9px;}.shop-product-body li{font-size:12px;}.shop-product .product-bottom{gap:10px;}.shop-product .product-bottom .portal-button{min-height:47px;font-size:13px;border-radius:12px;}.shop-product .product-bottom small{font-size:10px;color:#94a4bc;text-align:center;}
@media(max-width:760px){.mnp-shop .portal-intro{padding:26px 22px;margin:20px 0 28px;border-radius:20px;}.mnp-shop .portal-products{grid-template-columns:1fr;gap:20px;}.mnp-shop .portal-intro p{font-size:13px;}.mnp-shop .portal-shop-note{display:block;}.mnp-shop .portal-shop-note p{margin-top:7px;}.shop-collection-heading{align-items:start;}.shop-collection-heading>span{max-width:95px;text-align:right;}.shop-product-art{height:150px;}.shop-product-body{padding:22px;}.shop-art-lines{width:110px;right:26px;}.shop-product-heading h3{font-size:22px;}}
@media(max-width:380px){.shop-product-heading{align-items:start;flex-direction:column;gap:8px;}.shop-art-icon{width:82px;height:82px;}.shop-art-label{right:16px;}.shop-art-lines{width:85px;}.shop-collection-heading h2{font-size:23px;}}

.company-onboarding{max-width:980px;margin:0 auto;padding:28px 24px;color:#f3f5fa;}.onboarding-heading{margin:32px 0;}.onboarding-heading h1{font-size:clamp(28px,4vw,42px);line-height:1.2;margin:12px 0;}.onboarding-heading p,.company-onboarding form>p{color:#a8b6ca;font-size:14px;line-height:1.7;}.company-onboarding form{background:#121b29;padding:28px;border:1px solid #ffffff16;border-radius:22px;display:grid;gap:18px;}.onboarding-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px;}.onboarding-fields label{display:grid;gap:9px;font-size:13px;}.onboarding-fields input{min-height:48px;font-size:16px;width:100%;box-sizing:border-box;}.company-onboarding h2{font-size:22px;margin:12px 0 0;}.company-onboarding .module-check-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.company-onboarding .module-check-card:has(input:checked){border-color:#b5ed56;background:#b5ed5612;}.company-onboarding form>small{color:#94a6bd;font-size:11px;line-height:1.7;}.company-onboarding [hidden]{display:none!important;}@media(max-width:650px){.company-onboarding{padding:20px 14px;}.company-onboarding form{padding:20px 16px;}.onboarding-fields,.company-onboarding .module-check-grid{grid-template-columns:1fr;}}

/* Création d’entreprise : informations, sélection métier et aperçu vivant. */
.onboarding-redesign{max-width:1200px;padding:32px 28px 48px;}.onboarding-back{border:0;background:none;color:#aebed0;padding:0;font-size:13px;cursor:pointer;}.onboarding-back:hover{color:#b5ed56;}.onboarding-redesign .onboarding-heading{margin:36px 0 30px;}.onboarding-redesign .onboarding-heading h1{font-size:clamp(30px,3.5vw,44px);letter-spacing:-1.3px;}.onboarding-redesign .onboarding-heading p{font-size:15px;}
.onboarding-redesign form.onboarding-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:26px;padding:0;border:0;border-radius:0;background:none;}.onboarding-main{display:grid;gap:24px;min-width:0;}.onboarding-section{padding:28px;background:#121b29;border:1px solid #ffffff13;border-radius:22px;}.onboarding-section-title{display:flex;align-items:start;gap:14px;margin-bottom:24px;}.onboarding-section-title>span{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;background:#b5ed5610;border:1px solid #b5ed5630;border-radius:10px;color:#b5ed56;font-size:11px;font-weight:700;}.onboarding-redesign .onboarding-section-title h2{margin:0 0 6px;font-size:21px;letter-spacing:-.4px;}.onboarding-section-title p{margin:0;color:#91a3bb;font-size:12px;line-height:1.7;}
.onboarding-redesign .onboarding-fields{gap:18px;}.onboarding-redesign .onboarding-fields label{color:#ced8e6;font-size:12px;}.onboarding-redesign .onboarding-fields input{border:1px solid #344154;background:#0b1320;color:#f3f5fa;border-radius:10px;padding:13px 14px;outline:none;min-height:48px;font-size:16px;}.onboarding-redesign .onboarding-fields input::placeholder{color:#687d97;font-size:13px;}.onboarding-redesign .onboarding-fields input:focus{border-color:#b5ed56;box-shadow:0 0 0 3px #b5ed5615;}.onboarding-fields small{font-size:10px;color:#8b9bb2;line-height:1.6;font-weight:400;}
.onboarding-models{display:grid;grid-template-columns:1fr;gap:10px;}.onboarding-model{position:relative;display:flex;align-items:center;gap:14px;padding:16px;border:1px solid #ffffff10;border-radius:14px;background:#182231;cursor:pointer;transition:background .18s,border-color .18s;}.onboarding-model:hover{background:color-mix(in srgb,var(--model-color) 7%,#182231);border-color:color-mix(in srgb,var(--model-color) 45%,#182231);}.onboarding-model:has(input:checked){background:color-mix(in srgb,var(--model-color) 10%,#121b29);border-color:var(--model-color);}.onboarding-model input{position:absolute;opacity:0;width:1px;height:1px;}.onboarding-model:has(input:focus-visible){outline:2px solid var(--model-color);outline-offset:3px;}.onboarding-model-icon{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:12px;background:color-mix(in srgb,var(--model-color) 12%,transparent);color:var(--model-color);}.onboarding-model-icon svg{width:26px;height:26px;}.onboarding-model-copy{display:grid;gap:5px;flex:1;min-width:0;}.onboarding-model-copy strong{font-size:14px;color:#edf3fa;}.onboarding-model-copy small{font-size:11px;font-weight:400;line-height:1.6;color:#9cadc4;}.onboarding-model-check{width:22px;height:22px;flex:0 0 22px;border:1px solid #526076;border-radius:50%;font-size:11px;display:grid;place-items:center;color:transparent;}.onboarding-model:has(input:checked) .onboarding-model-check{background:var(--model-color);border-color:var(--model-color);color:#111827;}
.onboarding-summary{position:sticky;top:100px;min-width:0;padding:26px;border-radius:22px;background:radial-gradient(ellipse at 30% 0%,#b5ed5610,transparent 60%),#121b29;border:1px solid #b5ed562d;}.onboarding-summary-kicker{font-size:9px;letter-spacing:1.5px;font-weight:700;color:#a3b992;}.onboarding-summary-logo{display:grid;place-items:center;background:#b5ed5610;border:1px solid #b5ed5630;width:64px;height:64px;margin:22px 0 18px;border-radius:17px;color:#b5ed56;}.onboarding-summary-logo svg{width:36px;height:36px;}.onboarding-summary h3{font-size:23px;line-height:1.25;letter-spacing:-.4px;margin:0 0 8px;color:#f5f8fb;overflow-wrap:anywhere;}.onboarding-summary>p{font-size:12px;color:#9badc5;margin:0;line-height:1.6;overflow-wrap:anywhere;}.onboarding-summary-rule{height:1px;background:#ffffff10;margin:22px 0;}.onboarding-tool-preview{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px;}.onboarding-tool-preview p{font-size:12px;line-height:1.7;color:#8e9fb5;margin:0;}.onboarding-tool-preview span{font-size:10px;padding:5px 8px;border-radius:7px;border:1px solid #ffffff15;color:#c5d2e3;background:#ffffff04;}.onboarding-summary-benefits{display:grid;gap:10px;font-size:11px;color:#afc89b;margin:26px 0;}.onboarding-submit{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;background:#b5ed56;color:#14230c;border:0;border-radius:11px;font-size:13px;font-weight:750;min-height:48px;cursor:pointer;}.onboarding-submit:hover{background:#c4f17c;}.onboarding-submit:disabled{opacity:.6;cursor:wait;}.onboarding-submit:focus-visible{outline:2px solid #b5ed56;outline-offset:4px;}.onboarding-summary-note{display:block;text-align:center;color:#8295ad;font-size:10px;line-height:1.7;margin-top:12px;}.onboarding-summary .portal-form-error{margin:0 0 14px;padding:12px;}
@media(max-width:950px){.onboarding-redesign form.onboarding-layout{grid-template-columns:minmax(0,1fr) 280px;gap:18px;}.onboarding-section{padding:22px;}.onboarding-redesign .onboarding-fields{grid-template-columns:1fr;}.onboarding-summary{padding:22px;}}
@media(max-width:720px){.onboarding-redesign{padding:24px 14px 32px;}.onboarding-redesign .onboarding-heading{margin:28px 0;}.onboarding-redesign form.onboarding-layout{grid-template-columns:1fr;gap:20px;}.onboarding-summary{position:static;}.onboarding-model{padding:14px 12px;gap:11px;}.onboarding-model-copy strong{font-size:13px;}.onboarding-section{padding:20px 16px;}.onboarding-redesign .onboarding-section-title h2{font-size:19px;}}
@media(prefers-reduced-motion:reduce){.onboarding-model{transition:none;}}

.company-team{max-width:1380px;margin:0 auto;padding:32px 28px 72px}.team-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:20px 0 30px}.team-heading h1{font-size:clamp(28px,3.4vw,46px);letter-spacing:-1.4px;margin:10px 0}.team-heading p,.team-card p,.team-stats p{color:var(--muted,#a1adbd);line-height:1.65}.team-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.team-stats article,.team-card{border:1px solid rgba(150,170,195,.14);border-radius:22px;background:var(--panel,#171e2b);padding:24px}.team-stats article{background:linear-gradient(135deg,rgba(180,230,100,.06),transparent),var(--panel,#171e2b)}.team-stats span,.team-stats small{font-size:13px;color:var(--muted,#a1adbd)}.team-stats strong{display:block;font-size:32px;margin-top:12px}.team-stats p{font-size:12px;margin-bottom:0}.team-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}.team-main{display:grid;gap:24px;min-width:0}.team-card h2{font-size:22px;margin:0 0 14px;letter-spacing:-.4px}.team-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.team-card-head span,.team-card-head small{font-size:12px;color:var(--muted,#a1adbd)}.team-person{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid rgba(150,170,195,.12);min-width:0}.team-person:last-child{border-bottom:0}.team-person>div{flex:1;min-width:0}.team-person strong,.team-person small{display:block;overflow-wrap:anywhere}.team-person small{margin-top:5px;font-size:12px;color:var(--muted,#a1adbd)}.team-avatar{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:14px;background:rgba(181,237,86,.12);color:#b5ed56;font-weight:800}.team-role{font-size:12px;border:1px solid rgba(150,170,195,.15);padding:6px 10px;border-radius:99px}.team-remove{background:transparent;color:#ff969e;border:1px solid rgba(255,100,110,.2);padding:9px 12px;border-radius:10px;cursor:pointer}.team-fields{display:grid;grid-template-columns:2fr 1fr;gap:16px}.team-card label{display:grid;gap:8px;font-size:13px}.team-card input:not([type=checkbox]),.team-card select{width:100%;min-width:0;padding:13px 14px;border-radius:12px;border:1px solid rgba(150,170,195,.24);background:var(--bg,#0d1420);color:inherit;box-sizing:border-box;font:inherit}.team-card fieldset{border:0;padding:0;margin:22px 0}.team-card legend{font-size:13px;margin-bottom:12px}.team-checks{display:flex;flex-wrap:wrap;gap:12px}.team-checks label{display:flex;align-items:center;padding:10px 12px;border:1px solid rgba(150,170,195,.2);border-radius:10px}.team-card input[type=checkbox]{accent-color:#b5ed56;width:18px;height:18px;flex-shrink:0}.team-help{display:block;font-size:12px;line-height:1.65;margin-top:14px;color:var(--muted,#a1adbd)}.team-plan{position:sticky;top:110px}.team-plan h2{margin-top:18px;line-height:1.4}.team-plan-base{padding:22px 0;border-top:1px solid rgba(150,170,195,.15);border-bottom:1px solid rgba(150,170,195,.15);margin:20px 0}.team-plan-base strong{font-size:32px}.team-plan-base small{font-size:14px;font-weight:400}.team-plan-base p{margin-bottom:0;font-size:13px}.team-option{display:flex!important;align-items:flex-start;padding:18px 0;border-bottom:1px solid rgba(150,170,195,.15);line-height:1.5}.team-option small{display:block;margin-top:8px;color:var(--muted,#a1adbd)}.team-estimate{padding:22px 0}.team-estimate span{font-size:12px;color:var(--muted,#a1adbd)}.team-estimate strong{display:block;margin-top:8px;font-size:24px}.team-plan .btn{width:100%;white-space:normal}.team-notice,.team-invite-result{border:1px solid rgba(181,237,86,.28);border-radius:12px;padding:16px;margin:18px 0;background:rgba(181,237,86,.06);overflow-wrap:anywhere;font-size:13px}.team-invite-result label{margin:12px 0}.team-join{max-width:650px;margin:50px auto}.team-join .btn{margin:12px 8px 0 0}.company-send>.team-card{margin-top:24px}.company-send form{display:grid;gap:16px}.company-team button:focus-visible,.company-team input:focus-visible,.company-team select:focus-visible{outline:2px solid #b5ed56;outline-offset:4px}@media(max-width:1050px){.team-layout{grid-template-columns:minmax(0,1fr)}.team-plan{position:static}.team-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.company-team{padding:20px 14px 48px}.team-heading{align-items:flex-start;flex-direction:column}.team-stats{gap:10px}.team-stats article{padding:16px}.team-stats strong{font-size:25px}.team-card{padding:18px;border-radius:18px}.team-fields{grid-template-columns:1fr}.team-person{flex-wrap:wrap;gap:10px}.team-person>div{flex-basis:60%}.team-heading h1{letter-spacing:-.7px}.team-role{margin-left:auto}.team-checks{flex-direction:column}.team-plan-base strong{font-size:28px}}

.xp-guide{padding:24px;border:1px solid #a7db4e44;border-radius:20px;background:linear-gradient(120deg,#a7db4e10,transparent);margin:0 0 22px}.xp-guide-head{display:flex;justify-content:space-between;gap:16px;align-items:center}.xp-guide h3{margin:8px 0 18px;font-size:23px}.xp-guide progress{width:100%;height:7px;accent-color:#b5ed56}.xp-guide p{font-size:13px;color:var(--muted,#a1adbd)}.xp-steps,.xp-quick{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.xp-steps button,.xp-quick button{display:flex;align-items:center;gap:12px;padding:14px 18px;border-radius:14px;background:var(--panel,#171e2b);border:1px solid #8c9db530;color:inherit;cursor:pointer;text-align:left}.xp-steps button{flex:1;min-width:160px}.xp-steps .done span{color:#b5ed56}.xp-quick button:hover,.xp-task:hover{border-color:#b5ed56}.xp-today h2{font-size:clamp(28px,3vw,40px);margin:12px 0}.xp-today>.team-card{margin-top:22px}.xp-task{width:100%;display:flex;justify-content:space-between;gap:16px;text-align:left;background:transparent;color:inherit;border:1px solid #8c9db52b;border-radius:12px;padding:17px;margin:12px 0;cursor:pointer}.xp-task small{display:block;color:var(--muted,#a1adbd);margin-top:7px}.xp-shift{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid #8c9db525}.xp-upcoming{margin-bottom:20px}.xp-role-guide{padding:20px;border:1px solid #8c9db530;border-radius:16px;margin:20px 0}.xp-role-guide summary{cursor:pointer;font-weight:700}.xp-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:16px}.xp-role-grid p{line-height:1.65;font-size:13px;color:var(--muted,#a1adbd)}.company-team .team-estimate{border-top:1px solid #8c9db530;margin-top:10px}.company-team button,.xp-today button{min-height:44px}.company-team input,.company-team select{min-height:44px}@media(max-width:700px){.xp-role-grid{grid-template-columns:1fr;gap:6px}.xp-guide{padding:18px}.xp-guide-head{align-items:flex-start}.xp-guide-head>strong{white-space:nowrap}.xp-steps{gap:8px}.xp-steps button{min-width:calc(50% - 8px);padding:12px;font-size:13px}.xp-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.xp-quick button{padding:12px;min-height:54px}.mnp-main-page .admin-shell{display:block!important}.mnp-main-page .admin-sidebar{position:sticky!important;width:100%!important;max-height:none!important;padding:8px!important;z-index:8}.mnp-main-page .admin-sidebar .workspace-context,.mnp-main-page .admin-sidebar .manager-sidebar-footer,.mnp-main-page .admin-sidebar .mnp-sidebar-section,.mnp-main-page .employee-sidebar-settings>span{display:none!important}.mnp-main-page .admin-nav{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;gap:6px!important;scrollbar-width:thin;overscroll-behavior-x:contain}.mnp-main-page .admin-nav>.tab-button,.mnp-main-page .employee-sidebar-settings .tab-button{flex-shrink:0;width:auto!important;min-height:46px;white-space:nowrap}.mnp-main-page .employee-sidebar-settings{display:contents!important}.mnp-main-page .admin-content{padding:18px 12px!important;min-width:0}.mnp-main-page .view-head{flex-wrap:wrap;gap:12px}.mnp-main-page input:not([type=checkbox]):not([type=radio]),.mnp-main-page select,.mnp-main-page textarea{font-size:16px!important;min-height:44px}.mnp-main-page .btn{min-height:44px}.notification-panel{position:fixed!important;top:80px!important;left:12px!important;right:12px!important;width:auto!important;max-height:calc(100dvh - 100px);overflow:auto}.team-invite-result input{font-size:16px}}

@media(max-width:700px){.mnp-main-page .admin-sidebar{top:84px!important}.mnp-main-page .view-head h1{font-size:28px!important;line-height:1.2}.is-employee-today .admin-content>.view-head{display:none}.xp-today{padding-top:16px}.xp-today .team-card{padding:18px}}

/* Guide de démarrage dans une colonne dédiée à droite du tableau de bord. */
.xp-dashboard-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}
.xp-dashboard-main,.xp-dashboard-guide{min-width:0}
.xp-dashboard-main>.mnp-manager-dashboard{grid-template-columns:minmax(0,1fr)}
.xp-dashboard-main>.mnp-manager-dashboard>*{min-width:0}
.xp-dashboard-guide{position:sticky;top:106px}
.xp-dashboard-guide .xp-guide{margin:0;padding:22px}
.xp-dashboard-guide .xp-guide-head{flex-direction:column;align-items:flex-start;gap:0;margin-bottom:16px}
.xp-dashboard-guide .xp-guide h3{font-size:22px;line-height:1.35;margin-bottom:12px}
.xp-dashboard-guide .xp-guide-head>strong{font-size:13px;color:var(--muted,#a1adbd)}
.xp-dashboard-guide .xp-steps{display:flex;flex-direction:column;gap:10px;margin:18px 0}
.xp-dashboard-guide .xp-steps button{width:100%;min-width:0;flex:none;min-height:52px;padding:14px;font-size:13px;line-height:1.5}
.xp-dashboard-main>.mnp-manager-dashboard>.xp-quick{margin-top:0}
@media(max-width:1100px){.xp-dashboard-layout{grid-template-columns:minmax(0,1fr)}.xp-dashboard-guide{position:static}.xp-dashboard-guide .xp-guide{padding:20px}.xp-dashboard-guide .xp-guide-head{flex-direction:row;align-items:center;justify-content:space-between;gap:16px}}

/* Tracabilité — accès rapide depuis Aujourd’hui (employé + gérant). */
.today-trace-cta{
  display:flex;align-items:center;gap:18px;width:100%;min-height:88px;margin:8px 0 18px;padding:18px 22px;
  border:1px solid rgba(183,228,91,.38);border-radius:20px;color:inherit;text-align:left;font:inherit;cursor:pointer;
  background:radial-gradient(circle at 8% 30%,rgba(183,228,91,.16),transparent 42%),linear-gradient(135deg,rgba(22,34,48,.96),rgba(14,22,34,.92));
  box-shadow:inset 0 0 0 1px rgba(183,228,91,.06);
  transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;
}
.today-trace-cta:hover{
  border-color:rgba(183,228,91,.55);
  background:radial-gradient(circle at 8% 30%,rgba(183,228,91,.22),transparent 44%),linear-gradient(135deg,rgba(26,40,56,.98),rgba(16,26,40,.95));
  box-shadow:inset 0 0 0 1px rgba(183,228,91,.1);transform:none;
}
.today-trace-cta:focus-visible{outline:3px solid rgb(183,228,91);outline-offset:3px}
.today-trace-cta-icon{
  width:58px;height:58px;display:grid;place-items:center;flex:none;border-radius:16px;
  background:rgba(183,228,91,.16);color:rgb(183,228,91);
}
.today-trace-cta-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.today-trace-cta-copy{flex:1;min-width:0}
.today-trace-cta-copy strong{display:block;font-size:clamp(22px,2.4vw,28px);letter-spacing:-.035em;line-height:1.1}
.today-trace-cta-copy small{display:block;margin-top:6px;font-size:13px;line-height:1.4;opacity:.72}
.today-trace-cta-go{
  flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:999px;
  background:rgba(183,228,91,.16);color:rgb(183,228,91);font-size:14px;font-weight:800;
  transition:background .2s ease;
}
.today-trace-cta:hover .today-trace-cta-go{background:rgba(183,228,91,.24)}
body.theme-light .today-trace-cta{
  color:#15231a;border-color:rgba(113,171,43,.34);
  background:radial-gradient(circle at 8% 30%,rgba(113,171,43,.14),transparent 42%),rgba(255,255,255,.9);
}
body.theme-light .today-trace-cta:hover{
  border-color:rgba(113,171,43,.48);
  background:radial-gradient(circle at 8% 30%,rgba(113,171,43,.18),transparent 44%),rgba(246,252,236,.96);
}
body.theme-light .today-trace-cta-icon,body.theme-light .today-trace-cta-go{color:#406722;background:rgba(113,171,43,.12)}
.mnp-manager-dashboard>.today-trace-cta{margin:0 0 18px}
@media(max-width:720px){
  .today-trace-cta{flex-wrap:wrap;gap:14px;min-height:96px;padding:16px 18px}
  .today-trace-cta-go{width:100%;min-height:52px}
}

/* Outils du quotidien : pictogrammes communs et cartes accessibles. */
.xp-tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin:24px 0}
.xp-today .xp-tool{--tool-accent:rgb(var(--mnp-vert-9cf13d));display:flex;align-items:center;gap:18px;min-height:112px;min-width:0;padding:22px;text-align:left;color:var(--text,#f4f6fb);border:1px solid rgba(169,183,205,.18);border-radius:22px;background:linear-gradient(120deg,rgba(169,183,205,.07),rgba(169,183,205,.02));box-shadow:0 8px 24px rgba(0,0,0,.06);transition:background .18s,border-color .18s,transform .18s}
.xp-today .xp-tool[data-tool="planning"]{--tool-accent:#9fa8ff}
.xp-today .xp-tool[data-tool="hygiene"]{--tool-accent:#70d9d1}
.xp-today .xp-tool[data-tool="courses"]{--tool-accent:#eebd7f}
.xp-today .xp-tool-icon{display:grid;place-items:center;flex:0 0 60px;width:60px;height:60px;border-radius:18px;color:var(--tool-accent);background:color-mix(in srgb,var(--tool-accent) 12%,transparent);border:1px solid color-mix(in srgb,var(--tool-accent) 20%,transparent)}
.xp-tool-icon svg,.xp-section-icon svg,.xp-inline-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.xp-tool-copy{display:grid;gap:7px;min-width:0}
.xp-tool-copy strong{font-size:17px;line-height:1.3}.xp-tool-copy small{font-size:13px;line-height:1.5;color:var(--muted,#a1adbd)}
.xp-tool-arrow{margin-left:auto;color:var(--tool-accent);font-size:22px}
@media(hover:hover){.xp-today .xp-tool:hover{transform:translateY(-3px);border-color:var(--tool-accent);background:color-mix(in srgb,var(--tool-accent) 7%,transparent)}}
.xp-today .xp-tool:focus-visible{outline:2px solid var(--tool-accent);outline-offset:4px}
.xp-today .xp-section-title{display:flex;align-items:center;gap:12px;margin-top:0}
.xp-section-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;color:rgb(var(--mnp-vert-9cf13d));background:rgba(var(--mnp-vert-9cf13d),.09)}
.xp-section-icon svg{width:22px;height:22px}.xp-today .team-card{border-radius:22px}
.xp-today .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px}
.xp-inline-icon{display:inline-flex}.xp-inline-icon svg{width:19px;height:19px}
body.theme-light .xp-today .xp-tool{--tool-accent:#537919;color:#182334;background:#fff}body.theme-light .xp-today .xp-tool[data-tool="planning"]{--tool-accent:#6555bb}
@media(max-width:600px){.xp-today .xp-tool{padding:18px;gap:14px;min-height:96px}.xp-today .xp-tool-icon{flex-basis:50px;width:50px;height:50px;border-radius:15px}.xp-tool-copy strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.xp-today .xp-tool{transition:none}.xp-today .xp-tool:hover{transform:none}}

/* SOURCE: css/56-conversion-studio.css */
/* Atelier Conversion. Scoped to avoid altering other modules. */
.conversion-studio{--cv-bg:#f9faf8;--cv-panel:#fff;--cv-inset:#f3f5f2;--cv-line:#dfe5dc;--cv-text:#1c3025;--cv-muted:#617167;--cv-accent:rgb(var(--mnp-vert-147d4f));--cv-wash:rgba(var(--mnp-vert-147d4f),.07);color:var(--cv-text);display:grid;max-width:1360px;margin:0 auto;padding:12px 4px 24px;font-family:inherit}
body.theme-dark .conversion-studio{--cv-bg:#0b1220;--cv-panel:#111a29;--cv-inset:#0a1220;--cv-line:#273247;--cv-text:#f2f5fb;--cv-muted:#9ba8bd;--cv-accent:#b5e853;--cv-wash:rgba(181,232,83,.08)}
.conversion-studio *{box-sizing:border-box}.conversion-studio svg{width:21px;height:21px;flex-shrink:0}.conversion-studio button,.conversion-studio input,.conversion-studio select{font:inherit}.conversion-studio button{cursor:pointer}.conversion-studio button:disabled{cursor:not-allowed;opacity:.5}.conversion-studio [hidden]{display:none!important}.conversion-studio :is(button,a,input,select):focus-visible{outline:3px solid var(--cv-accent);outline-offset:4px}.conversion-studio p{margin:0;line-height:1.6}
.cv-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}.cv-eyebrow{color:var(--cv-muted);font-size:10px;font-weight:750;letter-spacing:.16em;display:flex;gap:12px;align-items:center}.cv-eyebrow span{opacity:.45}.conversion-studio h2{margin:10px 0 6px;font-size:clamp(30px,3.3vw,44px);line-height:1.15;color:var(--cv-text)}.cv-heading-dot{color:var(--cv-accent)}.cv-heading p{font-size:14px;color:var(--cv-muted)}.cv-service{display:flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid var(--cv-line);border-radius:30px;font-size:11px;color:var(--cv-muted);white-space:nowrap}.cv-service i{width:6px;height:6px;background:var(--cv-muted);border-radius:50%}.cv-service.is-ready i{background:var(--cv-accent);box-shadow:0 0 0 4px var(--cv-wash)}.cv-service.is-warning i{background:#e3b764}
.conversion-studio .cv-tools{display:grid;width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0;border:0;background:none;box-shadow:none;border-radius:0}
.conversion-studio .cv-tools button{position:relative;display:flex;align-items:center;gap:14px;text-align:left;padding:22px 20px;background:var(--cv-panel);border:1px solid var(--cv-line);box-shadow:none;color:var(--cv-text);transform:none;transition:border-color .18s,background .18s}
.conversion-studio .cv-tools button:hover{border-color:var(--cv-muted);background:var(--cv-inset)}.conversion-studio .cv-tools button.is-active{background:var(--cv-wash);color:var(--cv-text)}.cv-tool-icon{display:grid;place-items:center;border:1px solid var(--cv-line)}.is-active .cv-tool-icon{border-color:transparent}.cv-tool-copy{display:grid;gap:5px;min-width:0}.cv-tool-copy small{font-size:11px;font-weight:400;color:var(--cv-muted);line-height:1.4}.cv-tool-number{align-self:flex-start;margin-left:auto;color:var(--cv-muted);font-size:10px;font-weight:400;opacity:.6}
.conversion-studio .cv-workspace{display:none;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:0;margin:0;padding:0;background:var(--cv-panel);border:1px solid var(--cv-line);overflow:hidden}.conversion-studio .cv-workspace.is-active{display:grid}.cv-source{min-width:0;padding:26px}.cv-settings{min-width:0;border-left:1px solid var(--cv-line);padding:26px;display:flex;flex-direction:column;gap:24px;background:var(--cv-bg)}.cv-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}.cv-section-head h3{display:flex;align-items:center;gap:9px;margin:0;color:var(--cv-text)}.cv-section-head h3 span{display:grid;place-items:center;font-size:10px;font-weight:500}.cv-section-head>svg{color:var(--cv-muted);width:17px}.cv-label{font-size:10px;color:var(--cv-muted)}.cv-settings .cv-section-head{margin:0}
.cv-drop{position:relative;min-height:320px;transition:border-color .15s,background .15s}.cv-drop.is-dragging{border-color:var(--cv-accent);background:var(--cv-wash);outline:3px solid var(--cv-accent);outline-offset:3px}.cv-drop-content{display:flex;align-items:center;flex-direction:column;padding:36px 16px 28px;text-align:center}.conversion-studio .cv-drop h4{font-size:18px;font-weight:550;letter-spacing:-.03em;margin:22px 0 6px;color:var(--cv-text)}.cv-drop p{font-size:12px;color:var(--cv-muted)}.cv-file-art{position:relative;width:100px;height:82px}.cv-art-back,.cv-art-front{position:absolute;display:grid;place-content:center;gap:7px;width:57px;height:70px;border-radius:9px;border:1px solid var(--cv-line)}.cv-art-back{left:13px;top:6px;background:var(--cv-panel);transform:rotate(-15deg)}.cv-art-front{left:33px;top:4px;transform:rotate(9deg);color:var(--cv-accent);box-shadow:0 8px 14px #0000000a}.cv-art-front small{font-size:7px;letter-spacing:.12em;text-align:center}.cv-art-plus{position:absolute;right:-3px;bottom:3px;width:24px;height:24px;border-radius:50%;background:var(--cv-accent);color:var(--cv-panel);font-size:18px;line-height:23px;text-align:center;border:2px solid var(--cv-inset)}
.cv-browse{position:relative;display:flex;align-items:center;gap:8px;padding:11px 18px;margin-top:21px;border:1px solid var(--cv-line);font-size:12px;font-weight:600;cursor:pointer;overflow:hidden}.cv-browse svg{width:15px;height:15px}.cv-browse:hover{border-color:var(--cv-accent)}.cv-browse:focus-within{outline:3px solid var(--cv-accent);outline-offset:3px}.cv-browse input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.cv-input-hint{margin-top:15px;font-size:10px;color:var(--cv-muted)}.cv-drop.has-file{border-style:solid}.cv-drop.has-file .cv-drop-content{display:none}.cv-selected{padding:16px;display:grid;gap:14px}.cv-source-preview{height:236px;display:grid;place-items:center;overflow:hidden;border-radius:8px}.cv-source-preview img,.cv-source-preview video{display:block;max-width:100%;max-height:236px;object-fit:contain}.cv-file-meta{display:flex;align-items:center;gap:10px;min-width:0}.cv-file-meta>div{display:grid;gap:5px;min-width:0;flex:1}.cv-file-meta strong{font-size:12px;overflow-wrap:anywhere;color:var(--cv-text)}.cv-file-meta small{font-size:10px;color:var(--cv-muted)}.cv-file-symbol{display:grid;place-items:center;width:34px;height:38px;border:1px solid var(--cv-line);border-radius:7px;color:var(--cv-accent)}.cv-icon-button{background:none;color:var(--cv-muted);border:0;padding:8px;display:grid;place-items:center}.cv-icon-button svg{width:16px;height:16px}.cv-preview-unavailable{display:grid;justify-items:center;text-align:center;gap:16px;font-size:12px;line-height:1.5;color:var(--cv-muted)}.conversion-studio .cv-text-button{background:none;border:0;padding:4px;color:var(--cv-accent);font-size:11px;font-weight:550;text-decoration:underline;text-underline-offset:4px}.cv-selected>.cv-text-button{justify-self:center}
.cv-setting-group{display:grid;gap:12px}.cv-setting-group>label,.cv-field-label{font-size:12px;font-weight:550;color:var(--cv-text)}.cv-setting-group>small{font-size:10px;color:var(--cv-muted);line-height:1.6}.cv-format-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.cv-format-option{position:relative;cursor:pointer}.cv-format-option input{position:absolute;width:1px;height:1px;opacity:0}.cv-format-option span{display:block;text-align:center;border:1px solid var(--cv-line);padding:11px 4px;font-size:11px;color:var(--cv-muted)}.cv-format-option input:checked+span{color:var(--cv-accent);border-color:var(--cv-accent);background:var(--cv-wash)}.cv-format-option input:focus-visible+span{outline:3px solid var(--cv-accent);outline-offset:3px}.conversion-studio select{height:43px;min-height:43px;line-height:normal;border:1px solid var(--cv-line);border-radius:8px;background:var(--cv-panel);color:var(--cv-text);font-size:12px;font-weight:450;box-shadow:none;padding:0 12px}.cv-fixed-format{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--cv-accent);border-radius:8px;padding:14px;color:var(--cv-accent);background:var(--cv-wash);font-size:11px}.cv-fixed-format strong{font-size:13px}.cv-export-note{display:flex;gap:12px;font-size:12px;color:var(--cv-muted);line-height:1.7}.cv-export-note svg{color:var(--cv-accent);width:18px;height:18px;margin-top:3px}.cv-recipe{display:flex;justify-content:space-between;gap:10px;padding-top:20px;border-top:1px solid var(--cv-line);margin-top:auto;font-size:11px}.cv-recipe>span{color:var(--cv-muted)}.cv-recipe strong{font-weight:550;text-align:right;color:var(--cv-text)}
.conversion-studio .cv-submit{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;padding:13px 16px;margin-top:-9px;border:0;background:var(--cv-accent);color:var(--cv-panel);transition:filter .15s}.conversion-studio .cv-submit:hover{filter:brightness(1.08);transform:none}.cv-submit svg{width:16px;height:16px}.cv-submit.is-loading svg{animation:cv-pulse 1s infinite alternate}.cv-tool-availability{text-align:center;font-size:10px;color:var(--cv-muted);margin-top:-15px}.cv-tip{border-top:1px solid var(--cv-line);padding-top:18px}.cv-tip>span{display:flex;align-items:center;gap:7px;font-size:9px;font-weight:650;letter-spacing:.08em}.cv-tip svg{width:13px;height:13px}.cv-tip p{margin-top:8px;font-size:11px;color:var(--cv-muted);line-height:1.7}
.conversion-studio .cv-result{display:block;margin:20px 0 0;padding:17px 0 0;min-height:0;border:0;border-top:1px solid var(--cv-line);border-radius:0;background:none;color:var(--cv-text);box-shadow:none}.cv-result-heading{display:flex;align-items:center;gap:12px}.cv-result-heading>div{min-width:0}.cv-result-heading strong{font-size:12px;font-weight:550;color:var(--cv-text)}.cv-result-heading p{font-size:11px;color:var(--cv-muted);margin-top:4px;overflow-wrap:anywhere}.conversion-studio .cv-result .cv-result-icon{display:grid;place-items:center;flex-shrink:0;border:1px solid var(--cv-line);margin:0}.cv-result-icon svg{width:16px;height:16px}.conversion-studio .cv-result.is-ready .cv-result-icon{background:var(--cv-wash);color:var(--cv-accent);border-color:var(--cv-accent)}.cv-result.is-warning .cv-result-heading strong{color:#d5a654}.conversion-studio .cv-result .cv-spinner{width:23px;height:23px;border-width:2px;border-right-color:var(--cv-accent);animation:cv-spin .8s linear infinite}.cv-result-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:18px}.cv-download{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 15px;border-radius:8px;background:var(--cv-accent);color:var(--cv-panel);font-size:12px;font-weight:650;text-decoration:none}.cv-download svg{width:16px;height:16px}.conversion-studio .conversion-preview{border:1px solid var(--cv-line);border-radius:10px;margin-top:18px;padding:12px;background-color:var(--cv-panel);background-image:conic-gradient(var(--cv-inset) 25%,transparent 0 50%,var(--cv-inset) 0 75%,transparent 0);background-size:20px 20px}.conversion-studio .conversion-preview img{max-height:300px;max-width:100%;object-fit:contain;margin:auto;display:block}.conversion-studio .conversion-preview small{display:none}.conversion-studio .conversion-preview.is-error small{display:block}.conversion-studio .conversion-preview.is-error img{display:none}.conversion-studio .conversion-editor-toolbar{margin-top:18px;display:flex;flex-wrap:wrap;background:var(--cv-inset);border-color:var(--cv-line);padding:10px;gap:10px}.conversion-studio .conversion-editor-sliders{flex:1;min-width:150px}.conversion-studio .conversion-editor-stage canvas{max-width:100%;height:auto}.cv-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--cv-muted);font-size:10px;padding:0 4px}.cv-footer>span{display:flex;align-items:center;gap:7px}.cv-footer svg{width:12px;height:12px}.cv-footer b{font-weight:400;opacity:.5}
@keyframes cv-spin{to{transform:rotate(360deg)}}@keyframes cv-pulse{to{opacity:.35}}
@media(max-width:1050px){.conversion-studio .cv-tools button{padding:17px 13px;gap:10px}.cv-tool-number{display:none}.cv-tool-copy small{font-size:10px}.cv-source,.cv-settings{padding:20px}.conversion-studio .cv-workspace{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}}
@media(max-width:760px){.conversion-studio{gap:18px}.cv-heading{align-items:flex-start;flex-direction:column;gap:15px}.cv-service{padding:7px 10px}.conversion-studio .cv-tools{gap:7px;grid-template-columns:repeat(3,minmax(0,1fr))}.conversion-studio .cv-tools button{flex-direction:column;justify-content:center;gap:8px;border-radius:10px;text-align:center}.cv-tool-icon{border:0}.cv-tool-copy small{display:none}.conversion-studio .cv-workspace{grid-template-columns:1fr}.cv-settings{border-left:0;border-top:1px solid var(--cv-line)}.cv-drop{min-height:285px}.cv-drop-content{padding:28px 10px}.cv-label{font-size:9px}.cv-section-head h3{font-size:12px}.cv-footer{flex-direction:column;align-items:flex-start;gap:8px}.cv-recipe{margin-top:0}.cv-result-actions{gap:12px}.cv-source-preview{height:210px}.cv-source-preview img,.cv-source-preview video{max-height:210px}}
@media(prefers-reduced-motion:reduce){.conversion-studio *{animation:none!important;transition:none!important}}
/* Override legacy dark-theme rules without affecting other tools. */
body.theme-dark .conversion-studio .cv-tools{background:none;border:0;box-shadow:none}
body.theme-dark .conversion-studio .cv-result{background:none;border:0;border-top:1px solid var(--cv-line);box-shadow:none;color:var(--cv-text)}
body.theme-dark .conversion-studio select{background:var(--cv-panel);border-color:var(--cv-line);color:var(--cv-text)}
body.theme-dark .conversion-studio .cv-result .cv-result-icon{letter-spacing:normal;text-transform:none}

/* MNP Pro: navy surfaces, lime actions and outlined pictograms. */
.conversion-studio { gap: 24px; }
.conversion-studio .cv-eyebrow { display: flex; color: var(--cv-accent); }
.conversion-studio h2 { font-weight: 800; letter-spacing: -.04em; }
.conversion-studio .cv-tools button { border-radius: 16px; min-height: 108px; }
.conversion-studio .cv-tools button.is-active { box-shadow: inset 0 3px 0 var(--cv-accent); border-color: var(--cv-accent); }
.cv-tool-icon { width: 48px; height: 48px; border-radius: 14px; color: var(--cv-accent); background: var(--cv-wash); }
.cv-tool-icon svg { width: 25px; height: 25px; }
.is-active .cv-tool-icon { background: var(--cv-accent); color: var(--cv-bg); }
.cv-tool-copy strong { font-size: 16px; font-weight: 750; }
.conversion-studio .cv-workspace { border-radius: 20px; box-shadow: 0 16px 45px #00000012; }
.cv-section-head h3 span { width: 34px; height: 34px; border: 0; border-radius: 10px; color: var(--cv-accent); background: var(--cv-wash); }
.cv-section-head h3 span svg { width: 18px; height: 18px; }
.cv-section-head h3 { font-size: 14px; font-weight: 750; }
.cv-drop { border: 1px dashed var(--cv-line); border-radius: 16px; background: radial-gradient(ellipse at 50% 20%,var(--cv-wash),transparent 65%),var(--cv-inset); }
.cv-art-front { border-color: var(--cv-accent); background: var(--cv-wash); }
.cv-art-front svg { width: 28px; height: 28px; }
.cv-browse { border-color: var(--cv-accent); color: var(--cv-accent); background: var(--cv-wash); border-radius: 10px; }
.cv-format-option span { border-radius: 9px; font-weight: 700; }
.cv-format-option input:checked+span { box-shadow: inset 0 -2px 0 var(--cv-accent); }
.conversion-studio .cv-submit { min-height: 50px; border-radius: 12px; font-weight: 800; font-size: 13px; box-shadow: 0 5px 20px var(--cv-wash); }
body.theme-dark .conversion-studio .cv-submit, body.theme-dark .conversion-studio .cv-download { color: #142008; }
.cv-tip { border: 1px solid var(--cv-line); background: var(--cv-wash); border-radius: 12px; padding: 15px; }
.cv-tip>span { color: var(--cv-accent); }
.conversion-studio .cv-result .cv-result-icon { border-radius: 10px; width: 38px; height: 38px; color: var(--cv-accent); background: var(--cv-wash); }
@media(max-width:760px) { .conversion-studio .cv-tools button { min-height: 96px; padding: 12px 6px; } .cv-tool-icon { width: 36px; height: 36px; border-radius: 10px; } .cv-tool-icon svg { width: 20px; height: 20px; } .cv-tool-copy strong { font-size: 12px; } }

/* SOURCE: css/57-hygiene-pms.css */
.pms-app {
  --pms-accent: rgb(var(--mnp-vert-b7e45b, 183, 228, 91));
  --pms-line: rgba(151, 170, 191, 0.17);
  --pms-surface: rgba(20, 29, 43, 0.7);
  color: inherit;
  max-width: 1600px;
  margin: 0 auto;
  min-width: 0;
  padding: 12px 0 36px;
}
.pms-app *,
.pms-dialog * {
  box-sizing: border-box;
}
.pms-app svg,
.pms-dialog .btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.pms-app .btn,
.pms-dialog .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  font-size: 13px;
}
.pms-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 0 30px;
}
.pms-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--pms-accent, rgb(183, 228, 91));
}
.pms-hero h2 {
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 10px 0 12px;
}
.pms-hero h2 span {
  font-weight: 500;
  opacity: 0.6;
}
.pms-hero p,
.pms-panel p,
.pms-card p,
.pms-hint {
  line-height: 1.65;
  font-size: 13px;
  opacity: 0.76;
  margin: 6px 0 14px;
}
.pms-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pms-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 14px;
}
.pms-location form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.pms-location label,
.pms-filters label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
}
.pms-app input,
.pms-app select,
.pms-dialog input:not([type="checkbox"]),
.pms-dialog select,
.pms-dialog textarea {
  min-height: 42px;
  border: 1px solid var(--pms-line, rgba(151, 170, 191, 0.25));
  border-radius: 9px;
  background: rgba(7, 14, 23, 0.45);
  color: inherit;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  max-width: 100%;
}
.pms-app option,
.pms-dialog option {
  color: #edf1f5;
  background: #151f2d;
}
.pms-nav {
  display: flex;
  gap: 6px;
  overflow: auto;
  margin-bottom: 3px;
}
.pms-nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: inherit;
  opacity: 0.65;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}
.pms-nav button.active {
  background: rgba(183, 228, 91, 0.1);
  color: var(--pms-accent);
  border-color: rgba(183, 228, 91, 0.24);
  opacity: 1;
}
.pms-app button:focus-visible,
.pms-app a:focus-visible,
.pms-dialog input:focus-visible,
.pms-dialog select:focus-visible {
  outline: 2px solid var(--pms-accent, rgb(183, 228, 91));
  outline-offset: 3px;
}
.pms-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.pms-stats article {
  border: 1px solid var(--pms-line);
  background: var(--pms-surface);
  border-radius: 14px;
  padding: 19px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.pms-stats article svg {
  grid-column: 2;
  grid-row: 1;
  color: var(--pms-accent);
}
.pms-stats strong {
  font-size: 30px;
  grid-column: 1;
  grid-row: 1;
  line-height: 1;
}
.pms-stats span {
  grid-column: 1/-1;
  font-size: 12px;
  opacity: 0.7;
}
.pms-stats .danger {
  border-color: rgba(241, 140, 112, 0.4);
}
.pms-stats .danger strong {
  color: #f4a48d;
}
.pms-two {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.pms-panel {
  padding: 24px;
  border: 1px solid var(--pms-line);
  border-radius: 16px;
  background: var(--pms-surface);
  margin-bottom: 22px;
  min-width: 0;
}
.pms-two .pms-panel {
  margin-bottom: 0;
}
.pms-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
}
.pms-section-title > span {
  opacity: 0.55;
  font-size: 12px;
}
.pms-app h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.pms-section-title h3 {
  margin: 0;
}
.pms-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}
.pms-guide {
  background: linear-gradient(
    135deg,
    rgba(183, 228, 91, 0.09),
    rgba(20, 29, 43, 0.4)
  );
}
.pms-guide h3 {
  font-size: 25px;
  line-height: 1.3;
  margin: 14px 0;
}
.pms-guide small {
  display: block;
  margin-top: 18px;
  opacity: 0.55;
  font-size: 11px;
  line-height: 1.6;
}
.pms-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 28px;
}
.pms-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
  background: var(--pms-surface);
  color: inherit;
  border: 1px solid var(--pms-line);
  border-radius: 14px;
  padding: 22px;
  min-width: 0;
  font: inherit;
  transition:
    background 0.16s,
    border-color 0.16s;
}
.pms-card:is(button) {
  cursor: pointer;
}
.pms-card:is(button):hover {
  border-color: rgba(183, 228, 91, 0.5);
  background: rgba(183, 228, 91, 0.06);
}
.pms-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--pms-accent);
  background: rgba(183, 228, 91, 0.09);
  border-radius: 11px;
  margin-bottom: 18px;
}
.pms-card strong {
  font-size: 17px;
}
.pms-card p {
  margin-top: 10px;
  flex: 1;
}
.pms-card-count {
  position: absolute;
  right: 18px;
  top: 28px;
  font-size: 10px;
  opacity: 0.55;
}
.pms-card-link {
  color: var(--pms-accent);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 13px;
  font-weight: 700;
}
.pms-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pms-line);
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 10px;
  white-space: nowrap;
}
.pms-badge.danger {
  color: #f5a78f;
  background: rgba(220, 90, 55, 0.12);
  border-color: rgba(220, 90, 55, 0.3);
}
.pms-badge.good {
  color: var(--pms-accent);
  background: rgba(183, 228, 91, 0.08);
}
.pms-badge.warn {
  color: #eac680;
}
.pms-badge.muted {
  opacity: 0.5;
}
.pms-table-scroll {
  overflow: auto;
  max-width: 100%;
}
.pms-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 610px;
  font-size: 12px;
}
.pms-table th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.55;
  padding: 14px 12px;
  border-bottom: 1px solid var(--pms-line);
}
.pms-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--pms-line);
  vertical-align: middle;
}
.pms-table td strong {
  font-size: 12px;
  display: block;
}
.pms-table td small {
  font-size: 10px;
  opacity: 0.55;
  display: block;
  margin-top: 6px;
}
.pms-table .btn {
  font-size: 11px;
  min-height: 34px;
}
.pms-table .btn svg {
  width: 14px;
  height: 14px;
}
.pms-empty {
  padding: 36px 16px;
  text-align: center;
  opacity: 0.7;
}
.pms-empty svg {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
}
.pms-empty p {
  font-size: 12px;
  max-width: 440px;
  margin: 0 auto;
}
.pms-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
}
.pms-filters label:first-child {
  flex: 1;
  min-width: 170px;
}
.pms-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 18px 0;
}
.pms-links a {
  font-size: 12px;
  color: var(--pms-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pms-task-list {
  list-style: none;
  margin: 15px 0 0;
  padding: 0;
}
.pms-task-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--pms-line);
}
.pms-task-list small {
  display: block;
  font-size: 10px;
  opacity: 0.6;
  margin-top: 5px;
}
.pms-task-list strong {
  font-size: 12px;
}
.pms-notice {
  border: 1px solid rgba(183, 228, 91, 0.3);
  border-radius: 10px;
  padding: 14px;
  font-size: 12px;
}
.pms-footer {
  font-size: 10px;
  opacity: 0.45;
  line-height: 1.7;
  padding: 16px 0;
}
.pms-dialog {
  width: min(820px, 94vw) !important;
  max-height: 92vh;
  overflow: auto;
  --pms-line: rgba(151, 170, 191, 0.25);
}
.pms-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0;
}
.pms-form-grid .field {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pms-form-grid .field > label {
  font-size: 12px;
}
.pms-wide {
  grid-column: 1/-1;
}
.pms-allergens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  font-size: 12px;
}
.pms-allergens label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pms-allergens input {
  accent-color: rgb(183, 228, 91);
}
.pms-form-error {
  color: #f5a78f;
  font-size: 13px;
}
.pms-details {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  margin: 18px 0;
  font-size: 13px;
}
.pms-details dt,
.pms-details dd {
  padding: 12px 8px;
  margin: 0;
  border-bottom: 1px solid var(--pms-line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pms-details dt {
  opacity: 0.6;
}
.theme-light .pms-app {
  --pms-surface: #fff;
  --pms-line: #dde3d9;
  --pms-accent: #406722;
}
.theme-light .pms-app input,
.theme-light .pms-app select,
.theme-light .pms-dialog input,
.theme-light .pms-dialog select,
.theme-light .pms-dialog textarea {
  background: #f5f7f3;
  color: #1f2922;
}
.theme-light .pms-app option,
.theme-light .pms-dialog option {
  background: #fff;
  color: #1f2922;
}
.theme-light .pms-badge.danger,
.theme-light .pms-form-error {
  color: #a43723;
}
.theme-light .pms-guide {
  background: #eff5e8;
}
@media (max-width: 1100px) {
  .pms-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .pms-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pms-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .pms-app {
    padding-top: 0;
  }
  .pms-hero {
    padding: 12px 0 20px;
    gap: 12px;
  }
  .pms-stats {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .pms-stats article {
    padding: 14px;
  }
  .pms-cards {
    grid-template-columns: 1fr;
  }
  .pms-location {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }
  .pms-location form {
    width: 100%;
    flex-wrap: wrap;
  }
  .pms-location label {
    min-width: 0;
    flex: 1;
  }
  .pms-location select {
    width: 100%;
  }
  .pms-location > .pms-badge {
    display: none;
  }
  .pms-panel {
    padding: 16px;
  }
  .pms-form-grid,
  .pms-allergens {
    grid-template-columns: 1fr;
  }
  .pms-details {
    grid-template-columns: 1fr;
  }
  .pms-details dt {
    padding-bottom: 0;
    border: 0;
  }
  .pms-section-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .pms-filters {
    gap: 8px;
  }
  .pms-filters input {
    width: 100%;
  }
  .pms-filters label {
    min-width: 0;
    max-width: 100%;
  }
  .pms-nav button {
    padding: 10px;
  }
  .pms-header-actions .btn {
    font-size: 11px;
    padding: 9px;
  }
  .pms-header-actions svg {
    width: 16px;
  }
}
@media print {
  body * {
    visibility: hidden;
  }
  .pms-app,
  .pms-app * {
    visibility: visible;
  }
  .pms-app {
    position: absolute;
    inset: 0;
    background: white;
    color: black;
    max-width: none;
    --pms-line: #bbb;
    --pms-surface: white;
  }
  .pms-app button,
  .pms-app nav,
  .pms-app form,
  .pms-header-actions,
  .pms-notice {
    display: none !important;
  }
  .pms-table-scroll {
    overflow: visible;
  }
  .pms-table {
    min-width: 0;
  }
  .pms-panel {
    break-inside: avoid;
  }
  .pms-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .pms-footer {
    opacity: 1;
  }
  .pms-table td {
    overflow-wrap: anywhere;
  }
}
/* Accès employés : trois gestes visibles, gestion dans les onglets secondaires. */
.pms-app [hidden],
.pms-dialog [hidden] {
  display: none !important;
}
.pms-service-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
}
.pms-service-title h3 {
  font-size: 26px;
  margin: 9px 0;
  letter-spacing: -0.035em;
}
.pms-service-count {
  font-size: 12px;
  opacity: 0.6;
}
.pms-fast-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 30px;
}
.pms-fast-card {
  position: relative;
  min-height: 148px;
  border: 1px solid var(--pms-line);
  border-radius: 22px;
  background: var(--pms-surface);
  padding: 22px;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.pms-fast-card.is-hero {
  grid-column: span 3;
  min-height: 220px;
  padding: 28px;
}
.pms-fast-card.is-tool {
  grid-column: span 2;
  min-height: 156px;
}
.pms-fast-card.is-split {
  cursor: default;
  gap: 14px;
}
.pms-fast-card.is-split:hover {
  border-color: var(--pms-line);
  background: var(--pms-surface);
  box-shadow: none;
}
.pms-fast-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.pms-fast-list-wrap {
  position: relative;
  display: grid;
  min-width: 0;
}
.pms-fast-list-wrap > button[data-tab='trace'] {
  width: 100%;
  padding-right: 78px;
}
.pms-fast-archive-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(183, 228, 91, 0.28);
  border-radius: 999px;
  background: rgba(14, 22, 34, 0.88);
  color: inherit;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.pms-fast-archive-btn svg {
  width: 12px;
  height: 12px;
  color: var(--pms-accent);
}
.pms-fast-archive-btn b {
  font-size: 10px;
  color: var(--pms-accent);
}
.pms-fast-archive-btn:hover {
  border-color: rgba(183, 228, 91, 0.5);
  background: rgba(183, 228, 91, 0.16);
}
.theme-light .pms-fast-archive-btn {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(113, 171, 43, 0.28);
  color: #15231a;
}
.pms-trace-panel > .pms-section-title {
  align-items: flex-start;
  flex-wrap: wrap;
}
.pms-trace-panel > .pms-section-title > div:first-child {
  flex: 1 1 220px;
  min-width: 0;
}
.pms-trace-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.pms-fast-split button {
  min-height: 42px;
  border: 1px solid rgba(183, 228, 91, 0.28);
  border-radius: 12px;
  background: rgba(183, 228, 91, 0.1);
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pms-fast-split button:hover {
  background: rgba(183, 228, 91, 0.18);
  border-color: rgba(183, 228, 91, 0.45);
}
.pms-fast-split button:focus-visible {
  outline: 3px solid rgb(183, 228, 91);
  outline-offset: 2px;
}
.pms-fast-split button[data-tab="trace"] {
  background: transparent;
  border-color: var(--pms-line);
}
.pms-fast-split button[data-tab="trace"]:hover {
  background: rgba(183, 228, 91, 0.08);
  border-color: rgba(183, 228, 91, 0.34);
}
.theme-light .pms-fast-split button {
  background: rgba(113, 171, 43, 0.1);
  border-color: rgba(113, 171, 43, 0.28);
  color: #15231a;
}
.theme-light .pms-fast-split button[data-tab="trace"] {
  background: rgba(255, 255, 255, 0.7);
}
.pms-fast-card.is-done {
  opacity: 0.9;
}
.pms-fast-card.is-day {
  border-color: rgba(245, 196, 78, 0.34);
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 196, 78, 0.18), transparent 42%),
    var(--pms-surface);
}
.pms-fast-card.is-night {
  border-color: rgba(120, 164, 255, 0.34);
  background:
    radial-gradient(circle at 12% 8%, rgba(120, 164, 255, 0.16), transparent 42%),
    var(--pms-surface);
}
.pms-fast-card:hover {
  transform: none;
  border-color: rgba(183, 228, 91, 0.34);
  background:
    radial-gradient(circle at 18% 0%, rgba(183, 228, 91, 0.1), transparent 42%),
    rgba(183, 228, 91, 0.035);
  box-shadow: inset 0 0 0 1px rgba(183, 228, 91, 0.05);
}
.pms-fast-card.is-day:hover {
  border-color: rgba(245, 196, 78, 0.5);
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 196, 78, 0.24), transparent 44%),
    rgba(245, 196, 78, 0.05);
}
.pms-fast-card.is-night:hover {
  border-color: rgba(120, 164, 255, 0.5);
  background:
    radial-gradient(circle at 12% 8%, rgba(120, 164, 255, 0.22), transparent 44%),
    rgba(120, 164, 255, 0.05);
}
.pms-fast-card.is-done:hover {
  border-color: var(--pms-line);
  background: var(--pms-surface);
  box-shadow: none;
}
.pms-fast-card.is-day.is-done {
  border-color: rgba(245, 196, 78, 0.22);
}
.pms-fast-card.is-night.is-done {
  border-color: rgba(120, 164, 255, 0.22);
}
.pms-fast-icon {
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(183, 228, 91, 0.09);
  color: var(--pms-accent);
  transition: background 0.2s ease;
}
.pms-fast-card.is-hero .pms-fast-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}
.pms-fast-card.is-day .pms-fast-icon {
  background: rgba(245, 196, 78, 0.16);
  color: #f5c44e;
}
.pms-fast-card.is-night .pms-fast-icon {
  background: rgba(120, 164, 255, 0.16);
  color: #78a4ff;
}
.pms-fast-icon svg {
  width: 27px;
  height: 27px;
}
.pms-fast-card.is-hero .pms-fast-icon svg {
  width: 32px;
  height: 32px;
}
.pms-fast-card:hover .pms-fast-icon {
  background: rgba(183, 228, 91, 0.16);
  color: var(--pms-accent);
}
.pms-fast-card.is-day:hover .pms-fast-icon {
  background: rgba(245, 196, 78, 0.22);
  color: #f5c44e;
}
.pms-fast-card.is-night:hover .pms-fast-icon {
  background: rgba(120, 164, 255, 0.22);
  color: #78a4ff;
}
.pms-fast-copy strong {
  display: block;
  font-size: 21px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.pms-fast-card.is-hero .pms-fast-copy strong {
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.04em;
}
.pms-fast-copy small {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  opacity: 0.7;
}
.pms-fast-status {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(183, 228, 91, 0.12);
  color: var(--pms-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pms-fast-card.is-done .pms-fast-status {
  background: rgba(183, 228, 91, 0.18);
}
.pms-fast-card.is-day .pms-fast-status {
  background: rgba(245, 196, 78, 0.14);
  color: #f5c44e;
}
.pms-fast-card.is-night .pms-fast-status {
  background: rgba(120, 164, 255, 0.14);
  color: #78a4ff;
}
.pms-fast-arrow {
  position: absolute;
  right: 22px;
  top: 22px;
  font-size: 22px;
  opacity: 0.4;
  color: var(--pms-accent);
  transition: opacity 0.2s ease;
}
.pms-fast-card.is-day .pms-fast-arrow {
  color: #f5c44e;
}
.pms-fast-card.is-night .pms-fast-arrow {
  color: #78a4ff;
}
.pms-fast-card:hover .pms-fast-arrow {
  opacity: 0.85;
}
.pms-service-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pms-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--pms-line);
  font-size: 13px;
}
.pms-service-row small {
  display: block;
  font-size: 11px;
  opacity: 0.6;
  margin-top: 5px;
}
.pms-service-row strong {
  font-size: 13px;
}
.pms-activity {
  width: 100%;
  text-align: left;
  background: none;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.pms-activity > span:nth-child(2) {
  flex: 1;
}
.pms-small-icon {
  display: grid;
  place-items: center;
  border-radius: 9px;
  width: 33px;
  height: 33px;
  color: var(--pms-accent);
  background: rgba(183, 228, 91, 0.07);
}
.pms-more-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pms-app .btn.secondary,
.pms-dialog .btn.secondary {
  background: rgba(140, 159, 180, 0.07);
  color: inherit;
  border: 1px solid var(--pms-line);
  box-shadow: none;
}
.pms-app .pms-hero {
  padding: 16px 0 20px;
}
.pms-location {
  background: transparent;
  border: 0;
  padding: 0;
}
.pms-location > .pms-badge {
  display: none;
}
.pms-nav {
  border-bottom: 1px solid var(--pms-line);
  margin: 16px 0 22px;
  padding: 0 0 14px;
}
.pms-recent-products {
  margin: 0 0 28px;
}
.pms-recent-products h3 {
  font-size: 15px;
  margin-bottom: 5px;
}
.pms-recent-products > p {
  font-size: 12px;
  opacity: 0.6;
}
.pms-recent-products > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.pms-recent-products button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid var(--pms-line);
  background: var(--pms-surface);
  border-radius: 12px;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.pms-recent-products button svg,
.pms-recent-products button b {
  color: var(--pms-accent);
}
.pms-recent-products small {
  display: block;
  opacity: 0.6;
  font-size: 10px;
  text-align: left;
}
.pms-attention {
  border: 1px solid rgba(241, 160, 110, 0.35);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  background: rgba(241, 160, 110, 0.04);
}
.pms-attention > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #f1b287;
  font-size: 14px;
}
.pms-plan-picker {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.pms-plan-picker button {
  justify-content: flex-start !important;
  padding: 17px;
}
.pms-wizard-progress {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 22px 0 28px;
}
.pms-wizard-progress span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.4;
}
.pms-wizard-progress b {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.pms-wizard-progress .active {
  opacity: 1;
  color: rgb(183, 228, 91);
}
.pms-wizard-step {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pms-wizard-step legend {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.pms-wizard-context {
  padding: 12px 0;
  border-bottom: 1px solid var(--pms-line);
  font-size: 12px;
}
.pms-wizard-context summary {
  cursor: pointer;
  opacity: 0.65;
}
.pms-wizard-context .field {
  margin-top: 12px;
}
.theme-light .pms-fast-card.is-day {
  background:
    radial-gradient(circle at 12% 8%, rgba(214, 160, 32, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.84);
  border-color: rgba(214, 160, 32, 0.28);
}
.theme-light .pms-fast-card.is-night {
  background:
    radial-gradient(circle at 12% 8%, rgba(74, 118, 214, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.84);
  border-color: rgba(74, 118, 214, 0.28);
}
.theme-light .pms-fast-card:hover {
  background:
    radial-gradient(circle at 14% 8%, rgba(113, 171, 43, 0.12), transparent 42%),
    rgba(183, 228, 91, 0.08);
  border-color: rgba(113, 171, 43, 0.36);
}
.theme-light .pms-fast-card.is-day .pms-fast-icon,
.theme-light .pms-fast-card.is-day .pms-fast-status,
.theme-light .pms-fast-card.is-day .pms-fast-arrow {
  color: #9a6f10;
}
.theme-light .pms-fast-card.is-night .pms-fast-icon,
.theme-light .pms-fast-card.is-night .pms-fast-status,
.theme-light .pms-fast-card.is-night .pms-fast-arrow {
  color: #3b5fb0;
}
.theme-light .pms-wizard-progress .active {
  color: #406722;
}
@media (max-width: 1000px) {
  .pms-fast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pms-fast-card.is-hero,
  .pms-fast-card.is-tool {
    grid-column: span 1;
  }
  .pms-fast-card.is-hero {
    min-height: 180px;
  }
  .pms-fast-card.is-tool {
    min-height: 140px;
  }
  .pms-fast-card.is-tool:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .pms-service-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .pms-service-title h3 {
    font-size: 23px;
  }
  .pms-fast-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px 0 25px;
  }
  .pms-fast-card,
  .pms-fast-card.is-hero,
  .pms-fast-card.is-tool {
    grid-column: 1;
    min-height: 112px;
    flex-direction: row;
    align-items: center;
    gap: 17px;
    padding: 20px;
    border-radius: 17px;
  }
  .pms-fast-card.is-hero .pms-fast-copy strong {
    font-size: 22px;
  }
  .pms-fast-status {
    right: 44px;
    bottom: auto;
    top: 16px;
  }
  .pms-fast-copy {
    flex: 1;
    padding-right: 12px;
  }
  .pms-fast-copy strong {
    font-size: 17px;
  }
  .pms-fast-copy small {
    font-size: 11px;
    line-height: 1.5;
  }
  .pms-fast-arrow {
    font-size: 18px;
    right: 13px;
    top: 12px;
  }
  .pms-fast-icon,
  .pms-fast-card.is-hero .pms-fast-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }
  .pms-service-bottom {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pms-wizard-step {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pms-wizard-progress {
    gap: 8px;
  }
  .pms-wizard-progress span {
    font-size: 10px;
    gap: 5px;
  }
  .pms-wizard-progress b {
    width: 23px;
    height: 23px;
  }
  .pms-dialog .actions {
    position: sticky;
    bottom: 0;
    padding: 12px 0;
    background: inherit;
  }
  .pms-more-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .pms-service-count {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pms-fast-card,
  .menage-slot,
  .menage-quick,
  .menage-task-card,
  .menage-site-card {
    transition: none;
  }
}
.pms-app :is(.pms-fast-card, .menage-quick, .menage-slot, .menage-task-card):not(:disabled):hover {
  transform: none;
}

/* ---------- Traçabilité rapide : produit → photo → vérif ---------- */
.trace-fast-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pms-accent, rgb(183, 228, 91));
}
.trace-fast-lead {
  margin: 0 0 14px;
  font-size: 13px;
  opacity: 0.72;
  line-height: 1.45;
}
.trace-fast .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.trace-fast-search {
  display: block;
  margin-bottom: 14px;
}
.trace-fast-search input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--pms-line, rgba(151, 170, 191, 0.25));
  border-radius: 14px;
  background: rgba(7, 14, 23, 0.45);
  color: inherit;
  padding: 12px 16px;
  font: inherit;
  font-size: 16px;
}
.trace-fast-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 2px;
}
.trace-fast-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid var(--pms-line, rgba(151, 170, 191, 0.22));
  border-radius: 16px;
  background: rgba(7, 14, 23, 0.35);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.trace-fast-product:hover,
.trace-fast-product:focus-visible {
  border-color: rgba(183, 228, 91, 0.4);
  background: rgba(183, 228, 91, 0.06);
  outline: none;
  transform: none;
}
.trace-fast-thumb {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.55);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  background-size: cover;
  background-position: center;
}
.trace-fast-thumb.small {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.trace-fast-thumb.has-image {
  color: transparent;
}
.trace-fast-product-copy {
  min-width: 0;
}
.trace-fast-product-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trace-fast-product-copy small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.65;
}
.trace-fast-empty {
  grid-column: 1 / -1;
  padding: 28px 16px;
  text-align: center;
  opacity: 0.7;
  font-size: 13px;
}
.trace-fast-product-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--pms-line, rgba(151, 170, 191, 0.22));
  border-radius: 14px;
  background: rgba(7, 14, 23, 0.28);
}
.trace-fast-product-chip strong {
  display: block;
  font-size: 14px;
}
.trace-fast-product-chip small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.65;
}
.trace-fast-product-chip .btn {
  margin-left: auto;
}
.trace-fast-camera {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #05080f;
  aspect-ratio: 3 / 4;
  max-height: min(58vh, 520px);
}
.trace-fast-camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.trace-fast-camera-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: #0b1220;
}
.trace-fast-camera-fallback[hidden] {
  display: none !important;
}
.trace-fast-file-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.trace-fast-file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.trace-delivery-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line, rgba(148, 163, 184, 0.28));
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.trace-delivery-banner span,
.trace-delivery-banner small {
  color: var(--muted, #94a3b8);
  font-size: 12px;
}
.trace-delivery-banner strong {
  flex: 1;
}
.trace-delivery-list {
  display: grid;
  gap: 8px;
}
.trace-delivery-choice {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line, rgba(148, 163, 184, 0.28));
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.trace-delivery-choice small {
  color: var(--muted, #94a3b8);
}
.trace-fast-actions {
  display: flex;
  gap: 10px;
  justify-content: stretch;
  margin-top: 16px;
}
.trace-fast-actions .btn {
  flex: 1;
  min-height: 52px;
}
.trace-fast-shutter {
  font-size: 15px;
  font-weight: 800;
}
.trace-fast-review {
  display: grid;
  gap: 12px;
}
.trace-fast-review img {
  width: 100%;
  max-height: min(52vh, 460px);
  object-fit: contain;
  border-radius: 16px;
  background: #05080f;
}
.trace-fast-blur {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--pms-line);
  background: rgba(7, 14, 23, 0.35);
}
.trace-fast-blur strong {
  font-size: 15px;
}
.trace-fast-blur span {
  font-size: 12px;
  opacity: 0.75;
}
.trace-fast-blur.good {
  border-color: rgba(183, 228, 91, 0.35);
  background: rgba(183, 228, 91, 0.08);
  color: rgb(183, 228, 91);
}
.trace-fast-blur.warn {
  border-color: rgba(241, 191, 110, 0.4);
  background: rgba(241, 191, 110, 0.08);
  color: #f1bf6e;
}
.trace-fast-blur.danger {
  border-color: rgba(241, 140, 112, 0.4);
  background: rgba(241, 140, 112, 0.08);
  color: #f4a48d;
}
.trace-fast-done {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 12px 0 4px;
}
.trace-fast-done-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(183, 228, 91, 0.14);
  color: rgb(183, 228, 91);
}
.trace-fast-done-icon svg {
  width: 28px;
  height: 28px;
}
.trace-fast-done img {
  width: min(100%, 280px);
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 8px;
}
.theme-light .trace-fast-search input,
.theme-light .trace-fast-product,
.theme-light .trace-fast-product-chip {
  background: rgba(255, 255, 255, 0.86);
  color: #15231a;
}
@media (max-width: 700px) {
  .trace-fast-products {
    grid-template-columns: 1fr;
    max-height: min(48vh, 360px);
  }
  .trace-fast-camera {
    aspect-ratio: 3 / 4;
    max-height: min(50vh, 420px);
  }
  .trace-fast-actions {
    flex-direction: column-reverse;
  }
}

/* ---------- Ménage : accès rapide gérant / employé ---------- */
.menage-app :is(button, .btn):not(:disabled):hover {
  transform: none;
}
.menage-app {
  display: grid;
  gap: 22px;
  animation: menage-in 0.38s ease both;
}
@keyframes menage-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.menage-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 4px;
}
.menage-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--pms-accent, rgb(183, 228, 91));
}
.menage-hero h3 {
  margin: 10px 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.menage-hero h3 span {
  font-weight: 500;
  opacity: 0.55;
}
.menage-hero p,
.menage-panel p,
.menage-hint,
.menage-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.72;
}
.menage-progress {
  min-width: 168px;
  padding: 18px 20px;
  border: 1px solid var(--pms-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 0%, rgba(183, 228, 91, 0.16), transparent 46%),
    var(--pms-surface);
  text-align: left;
}
.menage-progress strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.menage-progress strong span {
  font-size: 18px;
  opacity: 0.45;
  font-weight: 650;
}
.menage-progress small {
  display: block;
  margin: 8px 0 14px;
  font-size: 11px;
  opacity: 0.62;
}
.menage-progress-bar {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.16);
}
.menage-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(var(--mnp-vert-71ab2b, 113, 171, 43)), rgb(var(--mnp-vert-b7e45b, 183, 228, 91)));
  box-shadow: 0 0 16px rgba(183, 228, 91, 0.35);
  transition: width 0.45s ease;
}
.menage-quick-strip {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
}
.menage-quick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid var(--pms-line);
  border-radius: 18px;
  background: var(--pms-surface);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.menage-quick:hover {
  border-color: rgba(183, 228, 91, 0.28);
  background: rgba(183, 228, 91, 0.045);
  box-shadow: none;
  transform: none;
}
.menage-quick.featured {
  color: inherit;
  border-color: rgba(183, 228, 91, 0.28);
  background:
    radial-gradient(circle at 12% 20%, rgba(183, 228, 91, 0.14), transparent 44%),
    var(--pms-surface);
}
.menage-quick.featured:hover {
  border-color: rgba(183, 228, 91, 0.4);
  background:
    radial-gradient(circle at 12% 20%, rgba(183, 228, 91, 0.18), transparent 46%),
    rgba(183, 228, 91, 0.05);
  box-shadow: none;
  transform: none;
}
.menage-quick-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(183, 228, 91, 0.1);
  color: var(--pms-accent);
  flex: none;
}
.menage-quick.featured .menage-quick-icon {
  background: rgba(183, 228, 91, 0.16);
  color: var(--pms-accent);
}
.menage-quick strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.menage-quick small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.68;
}
.menage-quick-arrow {
  margin-left: auto;
  font-size: 20px;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
.menage-quick:hover .menage-quick-arrow {
  opacity: 0.85;
}
.menage-panel {
  padding: 22px;
  border: 1px solid var(--pms-line);
  border-radius: 20px;
  background: var(--pms-surface);
}
.menage-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.menage-panel-head h3 {
  margin: 6px 0 6px;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.menage-count {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(183, 228, 91, 0.12);
  color: var(--pms-accent);
  font-weight: 800;
  font-size: 14px;
}
.menage-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.menage-slot {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: space-between;
  min-height: 198px;
  padding: 22px;
  border: 1px solid var(--pms-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(183, 228, 91, 0.12), transparent 42%),
    rgba(10, 18, 30, 0.35);
  color: inherit;
  text-align: left;
  font: inherit;
  overflow: hidden;
  cursor: default;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
button.menage-slot {
  cursor: pointer;
}
.menage-slot-glow {
  display: none;
}
.menage-slot.is-todo:hover {
  border-color: rgba(183, 228, 91, 0.3);
  box-shadow: inset 0 0 0 1px rgba(183, 228, 91, 0.05);
  transform: none;
}
.menage-slot.is-todo:active {
  border-color: rgba(183, 228, 91, 0.38);
  transform: none;
}
.menage-slot.sun.is-todo {
  background:
    radial-gradient(circle at 88% 12%, rgba(251, 191, 36, 0.14), transparent 40%),
    rgba(10, 18, 30, 0.35);
}
.menage-slot.sun.is-todo:hover {
  border-color: rgba(251, 191, 36, 0.34);
  background:
    radial-gradient(circle at 88% 12%, rgba(251, 191, 36, 0.2), transparent 42%),
    rgba(251, 191, 36, 0.04);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.06);
}
.menage-slot.moon.is-todo {
  background:
    radial-gradient(circle at 88% 12%, rgba(125, 211, 252, 0.12), transparent 40%),
    rgba(10, 18, 30, 0.35);
}
.menage-slot.moon.is-todo:hover {
  border-color: rgba(125, 211, 252, 0.32);
  background:
    radial-gradient(circle at 88% 12%, rgba(125, 211, 252, 0.18), transparent 42%),
    rgba(125, 211, 252, 0.04);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.06);
}
.menage-slot.is-done {
  border-color: rgba(183, 228, 91, 0.28);
  background:
    linear-gradient(145deg, rgba(183, 228, 91, 0.14), rgba(20, 29, 43, 0.2)),
    rgba(12, 22, 34, 0.55);
}
.menage-slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.menage-slot-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(183, 228, 91, 0.12);
  color: var(--pms-accent);
}
.menage-slot.sun .menage-slot-icon {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
}
.menage-slot.moon .menage-slot-icon {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.12);
}
.menage-slot.is-done .menage-slot-icon {
  color: var(--pms-accent);
  background: rgba(183, 228, 91, 0.18);
}
.menage-slot-status {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(241, 160, 110, 0.12);
  color: #f1b287;
}
.menage-slot.is-done .menage-slot-status {
  background: rgba(183, 228, 91, 0.16);
  color: var(--pms-accent);
}
.menage-slot-copy strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.menage-slot-copy small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.68;
}
.menage-slot-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(183, 228, 91, 0.12);
  color: var(--pms-accent);
  transition: background 0.2s ease, opacity 0.2s ease;
}
.menage-slot.is-todo:hover .menage-slot-cta {
  background: rgba(183, 228, 91, 0.22);
}
.menage-slot.is-done .menage-slot-cta {
  background: rgba(183, 228, 91, 0.14);
  opacity: 0.85;
}
.menage-slot-cta svg {
  width: 18px;
  height: 18px;
}
.menage-site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.menage-site-card {
  padding: 18px;
  border: 1px solid var(--pms-line);
  border-radius: 20px;
  background: rgba(7, 14, 23, 0.28);
  transition: border-color 0.2s ease;
}
.menage-site-card:hover {
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: none;
  transform: none;
}
.menage-site-card.is-complete {
  border-color: rgba(183, 228, 91, 0.24);
}
.menage-site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.menage-site-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pms-accent);
}
.menage-site-head strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.menage-site-score {
  min-width: 46px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  font-size: 12px;
  font-weight: 800;
}
.menage-site-card.is-complete .menage-site-score {
  background: rgba(183, 228, 91, 0.16);
  color: var(--pms-accent);
}
.menage-site-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.menage-site-slots .menage-slot {
  min-height: 168px;
  padding: 16px;
  border-radius: 16px;
}
.menage-site-slots .menage-slot-copy strong {
  font-size: 18px;
}
.menage-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.menage-task-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid var(--pms-line);
  border-radius: 16px;
  background: rgba(7, 14, 23, 0.28);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.menage-task-card:hover {
  border-color: rgba(183, 228, 91, 0.26);
  background: rgba(183, 228, 91, 0.04);
  box-shadow: none;
  transform: none;
}
.menage-task-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(183, 228, 91, 0.12);
  color: var(--pms-accent);
  flex: none;
}
.menage-task-copy {
  flex: 1;
  min-width: 0;
}
.menage-task-copy strong {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menage-task-copy small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.62;
}
.menage-task-go {
  font-size: 12px;
  font-weight: 800;
  color: var(--pms-accent);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.menage-task-card:hover .menage-task-go {
  opacity: 1;
}
.menage-timeline {
  display: grid;
  gap: 0;
}
.menage-timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--pms-line);
}
.menage-timeline-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.menage-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pms-accent);
  box-shadow: 0 0 0 4px rgba(183, 228, 91, 0.12);
}
.menage-timeline-row strong {
  display: block;
  font-size: 13px;
}
.menage-timeline-row small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  opacity: 0.6;
}
.menage-timeline-row time {
  font-size: 11px;
  opacity: 0.55;
  white-space: nowrap;
}
.menage-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(183, 228, 91, 0.05);
  border: 1px dashed rgba(183, 228, 91, 0.22);
}
.menage-empty svg {
  width: 28px;
  height: 28px;
  color: var(--pms-accent);
  flex: none;
}
.menage-empty strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.menage-hint {
  margin: 0;
}
.theme-light .menage-slot,
.theme-light .menage-site-card,
.theme-light .menage-task-card,
.theme-light .menage-progress,
.theme-light .menage-quick:not(.featured) {
  background: rgba(255, 255, 255, 0.72);
}
.theme-light .menage-slot.is-done {
  background: linear-gradient(145deg, rgba(183, 228, 91, 0.18), rgba(255, 255, 255, 0.8));
}
.theme-light .menage-quick.featured {
  color: inherit;
  background:
    radial-gradient(circle at 12% 20%, rgba(113, 171, 43, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.78);
  border-color: rgba(113, 171, 43, 0.28);
}
@media (max-width: 980px) {
  .menage-quick-strip,
  .menage-slot-grid,
  .menage-site-grid,
  .menage-task-grid {
    grid-template-columns: 1fr;
  }
  .menage-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .menage-progress {
    width: 100%;
  }
}
@media (max-width: 720px) {
  .menage-site-slots {
    grid-template-columns: 1fr;
  }
  .menage-panel {
    padding: 16px;
  }
  .menage-slot {
    min-height: 160px;
  }
  .menage-timeline-row {
    grid-template-columns: 14px minmax(0, 1fr);
  }
  .menage-timeline-row time {
    grid-column: 2;
  }
}

.menage-service {
  display: grid;
  gap: 18px;
  animation: menage-in 0.38s ease both;
}
.menage-service-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.menage-service-date {
  font-size: 13px;
  opacity: 0.65;
}
.menage-service-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--pms-line);
  border-radius: 22px;
  background: var(--pms-surface);
}
.menage-service.is-day .menage-service-hero {
  border-color: rgba(245, 196, 78, 0.34);
  background:
    radial-gradient(circle at 8% 20%, rgba(245, 196, 78, 0.16), transparent 46%),
    var(--pms-surface);
}
.menage-service.is-night .menage-service-hero {
  border-color: rgba(120, 164, 255, 0.34);
  background:
    radial-gradient(circle at 8% 20%, rgba(120, 164, 255, 0.14), transparent 46%),
    var(--pms-surface);
}
.menage-service-icon {
  width: 64px;
  height: 64px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(183, 228, 91, 0.12);
  color: var(--pms-accent);
}
.menage-service.is-day .menage-service-icon {
  background: rgba(245, 196, 78, 0.16);
  color: #f5c44e;
}
.menage-service.is-night .menage-service-icon {
  background: rgba(120, 164, 255, 0.16);
  color: #78a4ff;
}
.menage-service-icon svg {
  width: 30px;
  height: 30px;
}
.menage-service-hero h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.menage-service-hero h3 span {
  color: var(--pms-accent);
}
.menage-service-hero > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.menage-service-score {
  flex: none;
  text-align: right;
}
.menage-service-score strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.menage-service-score strong span {
  font-size: 16px;
  opacity: 0.55;
  font-weight: 600;
}
.menage-service-score small {
  font-size: 11px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.menage-service-empty {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px dashed var(--pms-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}
.menage-service-empty svg {
  width: 28px;
  height: 28px;
  flex: none;
  opacity: 0.55;
  color: var(--pms-accent);
}
.menage-service-empty strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.menage-service-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.7;
}
.theme-light .menage-service.is-day .menage-service-hero {
  background:
    radial-gradient(circle at 8% 20%, rgba(214, 160, 32, 0.14), transparent 46%),
    rgba(255, 255, 255, 0.84);
}
.theme-light .menage-service.is-night .menage-service-hero {
  background:
    radial-gradient(circle at 8% 20%, rgba(74, 118, 214, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.84);
}
.theme-light .menage-service.is-day .menage-service-icon {
  color: #9a6f10;
}
.theme-light .menage-service.is-night .menage-service-icon {
  color: #3b5fb0;
}
@media (max-width: 720px) {
  .menage-service-hero {
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px;
  }
  .menage-service-score {
    width: 100%;
    text-align: left;
  }
}

.pms-trace-sections {
  display: grid;
  gap: 22px;
  margin-top: 6px;
}
.pms-trace-day {
  display: grid;
  gap: 12px;
}
.pms-trace-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.pms-trace-day-head h4 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.pms-trace-day-head span {
  font-size: 12px;
  opacity: 0.6;
}
.pms-empty.is-compact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 18px;
  border: 1px dashed var(--pms-line);
  border-radius: 16px;
}
.pms-empty.is-compact svg {
  width: 22px;
  height: 22px;
  flex: none;
  opacity: 0.55;
}
.pms-empty.is-compact strong {
  display: block;
  margin-bottom: 4px;
}
.pms-empty.is-compact p {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
}
.pms-trace-scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 16px;
}
.pms-trace-scope button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--pms-line);
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pms-trace-scope button svg {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.7;
  color: var(--pms-accent);
}
.pms-trace-scope button span {
  flex: 1;
  text-align: left;
}
.pms-trace-scope button b {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.55;
}
.pms-trace-scope button.active,
.pms-trace-scope button[aria-selected='true'] {
  border-color: rgba(183, 228, 91, 0.42);
  background: rgba(183, 228, 91, 0.12);
}
.pms-trace-scope button.active b,
.pms-trace-scope button[aria-selected='true'] b {
  opacity: 0.9;
  color: var(--pms-accent);
}
.pms-trace-scope button:hover {
  border-color: rgba(183, 228, 91, 0.34);
  background: rgba(183, 228, 91, 0.08);
}
.theme-light .pms-trace-scope button.active,
.theme-light .pms-trace-scope button[aria-selected='true'] {
  background: rgba(113, 171, 43, 0.12);
  border-color: rgba(113, 171, 43, 0.34);
}

.pms-trace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.pms-trace-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--pms-line);
  border-radius: 18px;
  background: var(--pms-surface);
  color: inherit;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pms-trace-card:hover {
  border-color: rgba(183, 228, 91, 0.4);
  box-shadow: inset 0 0 0 1px rgba(183, 228, 91, 0.06);
}
.pms-trace-media,
.pms-trace-detail-photo {
  position: relative;
}
.pms-trace-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.04) center / cover no-repeat;
  color: inherit;
  font: inherit;
  font-size: 12px;
  opacity: 0.55;
  cursor: pointer;
}
.pms-trace-thumb.has-image {
  opacity: 1;
  font-size: 0;
}
.pms-trace-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(18, 24, 34, 0.78);
  color: #ffb4b4;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pms-trace-delete svg {
  width: 16px;
  height: 16px;
}
.pms-trace-delete:hover {
  background: rgba(140, 36, 36, 0.92);
  border-color: rgba(255, 180, 180, 0.45);
  color: #fff;
}
.pms-trace-delete:focus-visible {
  outline: 3px solid rgb(183, 228, 91);
  outline-offset: 2px;
}
.pms-trace-card-copy {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.pms-trace-card-copy strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.pms-trace-card-copy small {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.65;
}
.pms-trace-detail-photo {
  margin: 8px 0 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--pms-line);
  background: rgba(0, 0, 0, 0.25);
}
.pms-trace-detail-photo img {
  display: block;
  width: 100%;
  max-height: min(70vh, 560px);
  object-fit: contain;
  background: #0b121a;
}
.pms-trace-detail-photo .pms-trace-delete {
  top: 12px;
  right: 12px;
}
.theme-light .pms-trace-thumb {
  background-color: rgba(20, 40, 24, 0.04);
}
.theme-light .pms-trace-delete {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(20, 40, 24, 0.12);
  color: #9a2f2f;
}
.theme-light .pms-trace-delete:hover {
  background: #9a2f2f;
  border-color: #9a2f2f;
  color: #fff;
}
.theme-light .pms-trace-detail-photo img {
  background: #f3f6f1;
}
@media (max-width: 600px) {
  .pms-trace-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .pms-trace-delete {
    width: 32px;
    height: 32px;
    top: 8px;
    right: 8px;
  }
}

.temp-page-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.temp-day {
  display: grid;
  gap: 4px;
}
.temp-day + .temp-day {
  margin-top: 18px;
}
.temp-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.temp-day-head h4 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.temp-day-head span {
  font-size: 12px;
  opacity: 0.6;
}
.temp-list {
  display: grid;
  gap: 12px;
}
.temp-unit {
  display: grid;
  gap: 16px;
  padding: 16px 18px 18px;
  border: 1px solid var(--pms-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}
.temp-unit.is-done {
  border-color: rgba(183, 228, 91, 0.28);
}
.temp-unit.is-alert {
  border-color: rgba(255, 120, 120, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 90, 90, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.02);
}
.temp-unit-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.temp-unit-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  background: rgba(183, 228, 91, 0.12);
  color: var(--pms-accent);
}
.temp-unit.is-alert .temp-unit-icon {
  background: rgba(255, 120, 120, 0.14);
  color: #ff8f8f;
}
.temp-unit-icon svg {
  width: 18px;
  height: 18px;
}
.temp-unit-title {
  flex: 1 1 140px;
  min-width: 0;
}
.temp-unit-title strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.temp-unit-title small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.62;
}
.temp-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--pms-line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.8;
}
.temp-pill.is-limit {
  opacity: 0.95;
  color: var(--pms-accent);
  border-color: rgba(183, 228, 91, 0.28);
  background: rgba(183, 228, 91, 0.08);
}
.temp-pill.is-ok {
  color: var(--pms-accent);
  border-color: rgba(183, 228, 91, 0.34);
}
.temp-pill.is-alert {
  color: #ffb4b4;
  border-color: rgba(255, 140, 140, 0.4);
  background: rgba(255, 80, 80, 0.12);
  opacity: 1;
}
.temp-unit-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}
.temp-reads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.temp-reads > div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--pms-line);
}
.temp-reads span,
.temp-reads small {
  display: block;
  font-size: 11px;
  opacity: 0.62;
}
.temp-reads b {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.temp-reads .is-hot {
  border-color: rgba(255, 120, 120, 0.45);
  background: rgba(255, 70, 70, 0.1);
}
.temp-reads .is-hot b {
  color: #ff8f8f;
}
.temp-reads small {
  grid-column: 1 / -1;
  margin-top: 2px;
}
.temp-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.temp-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
}
.temp-field {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--pms-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}
.temp-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  opacity: 1;
}
.temp-field input:focus {
  outline: none;
}
.temp-field:focus-within {
  border-color: rgba(183, 228, 91, 0.5);
  box-shadow: 0 0 0 3px rgba(183, 228, 91, 0.12);
}
.temp-field em {
  flex: none;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.5;
}
.hygiene-fryer-backdrop {
  display: block;
  padding: 0;
  background: transparent;
}
.hygiene-fryer-dialog {
  position: fixed;
  width: min(360px, calc(100vw - 24px));
  margin: 0;
  padding: 18px 18px 16px;
  display: grid;
  gap: 12px;
}
.hygiene-fryer-dialog .dialog-title-row {
  margin: 0;
  gap: 10px;
}
.hygiene-fryer-dialog h2 {
  font-size: 20px;
}
.hygiene-fryer-dialog .dialog-title-row p {
  font-size: 12px;
}
.hygiene-fryer-fields {
  display: grid;
  gap: 10px;
}
.hygiene-fryer-fields .field,
.hygiene-fryer-row .field {
  margin: 0;
}
.hygiene-fryer-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
}
.hygiene-fryer-dialog .actions {
  margin: 0;
  gap: 8px;
}
.oil-change-form {
  grid-template-columns: minmax(160px, 220px) auto;
  justify-content: end;
}
.temp-form .btn {
  align-self: end;
  min-height: 44px;
  padding: 0 16px;
  box-shadow: none;
  white-space: nowrap;
}
.temp-form .btn svg {
  width: 16px;
  height: 16px;
}
.temp-log-list {
  display: grid;
}
.temp-log {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--pms-line);
}
.temp-log strong {
  display: block;
  font-size: 14px;
}
.temp-log small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.62;
}
.temp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pms-line);
  font-size: 12px;
  font-weight: 800;
}
.temp-chip.is-hot {
  color: #ffb4b4;
  border-color: rgba(255, 140, 140, 0.4);
  background: rgba(255, 80, 80, 0.1);
}
.theme-light .temp-unit,
.theme-light .temp-reads > div,
.theme-light .temp-field {
  background: rgba(255, 255, 255, 0.78);
}
.theme-light .temp-pill.is-alert,
.theme-light .temp-chip.is-hot,
.theme-light .temp-reads .is-hot b {
  color: #9a2f2f;
}
@media (max-width: 860px) {
  .temp-unit-body,
  .temp-form,
  .oil-change-form {
    grid-template-columns: 1fr;
  }
  .temp-form .btn {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .temp-log {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* SOURCE: css/58-today-widgets.css */
/* Onglet Aujourd'hui : grille libre 12 colonnes, édition à la souris. */

.today-board{display:grid;gap:16px}
.today-widgets{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  grid-auto-rows:72px;
  grid-auto-flow:dense;
  gap:12px;
  align-items:stretch;
  min-height:calc(var(--today-rows, 8) * 72px);
}
.today-widget{
  position:relative;
  min-width:0;
  min-height:0;
  overflow:hidden;
  border-radius:20px;
}
.today-widget>.mnp-dashboard-kpi,
.today-widget>.dashboard-action-card,
.today-widget>.dashboard-panel,
.today-widget>.today-trace-cta,
.today-widget>.today-shortcut,
.today-widget>.xp-quick,
.today-widget>.team-card,
.today-widget>.xp-tool-grid,
.today-widget>.mnp-dashboard-head,
.today-widget-body>.mnp-dashboard-kpi,
.today-widget-body>.dashboard-action-card,
.today-widget-body>.dashboard-panel,
.today-widget-body>.today-trace-cta,
.today-widget-body>.today-shortcut,
.today-widget-body>.xp-quick,
.today-widget-body>.team-card,
.today-widget-body>.xp-tool-grid,
.today-widget-body>.mnp-dashboard-head{width:100%;height:100%;margin:0;max-height:100%;overflow:auto}
.today-widget>.xp-tool-grid,.today-widget-body>.xp-tool-grid{margin:0}
.today-head-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end}
.today-shortcut{display:flex;align-items:center;gap:14px;min-height:100%;padding:18px 20px;text-align:left;text-decoration:none;color:inherit;border:1px solid rgba(169,183,205,.2);border-radius:20px;background:linear-gradient(120deg,rgba(var(--mnp-vert-9cf13d),.08),rgba(169,183,205,.04))}
.today-shortcut strong{display:block;font-size:17px}
.today-shortcut small{display:block;margin-top:4px;color:var(--muted,#a1adbd);font-size:13px;line-height:1.4}
.today-shortcut em{margin-left:auto;font-style:normal;color:rgb(var(--mnp-vert-9cf13d));font-size:22px}
.today-widgets-empty{padding:28px;border:1px dashed rgba(169,183,205,.35);border-radius:22px}
.today-widgets-empty h2{margin:0 0 8px}

.today-edit-bar{
  display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;
  padding:16px 18px;border:1px solid rgba(var(--mnp-vert-9cf13d),.28);border-radius:18px;
  background:linear-gradient(120deg,rgba(var(--mnp-vert-9cf13d),.12),rgba(8,18,31,.55));
  position:sticky;top:8px;z-index:6;
}
.today-edit-bar strong{display:block;font-size:16px}
.today-edit-bar small{display:block;margin-top:4px;color:var(--muted,#a1adbd);font-size:13px;max-width:52ch}
.today-edit-bar-actions{display:flex;flex-wrap:wrap;gap:8px}

.today-palette{
  padding:14px 16px;border:1px dashed rgba(169,183,205,.3);border-radius:18px;background:rgba(255,255,255,.03);
}
.today-palette-head{margin-bottom:10px}
.today-palette-head strong{display:block}
.today-palette-head small{display:block;margin-top:4px;color:var(--muted,#a1adbd);font-size:12px}
.today-palette-list{display:flex;flex-wrap:wrap;gap:8px}
.today-palette-list button{border-radius:999px;padding:8px 12px;font-size:13px}
.today-palette-empty{color:var(--muted,#a1adbd);font-size:13px;align-self:center}

.today-board.is-editing .today-widgets{
  outline:1px dashed rgba(var(--mnp-vert-9cf13d),.22);
  outline-offset:6px;
  border-radius:16px;
  padding:4px;
  background:
    linear-gradient(to right, rgba(169,183,205,.08) 1px, transparent 1px) 0 0 / calc((100% - 11 * 12px) / 12 + 12px) 100%,
    rgba(0,0,0,.08);
}
.today-widget.is-editing{
  display:flex;flex-direction:column;
  border:1px solid rgba(var(--mnp-vert-9cf13d),.45);
  background:rgba(8,18,31,.55);
  box-shadow:0 12px 30px rgba(0,0,0,.18);
  touch-action:none;
}
.today-widget.is-editing.is-dragging,
.today-widget.is-editing.is-resizing{opacity:.9;z-index:4;box-shadow:0 0 0 2px rgb(var(--mnp-vert-9cf13d)),0 18px 40px rgba(0,0,0,.28)}
.today-widget-chrome{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 10px;
  background:rgba(8,18,31,.82);border-bottom:1px solid rgba(169,183,205,.14);cursor:grab;user-select:none;
}
.today-widget.is-dragging .today-widget-chrome{cursor:grabbing}
.today-widget-grip{opacity:.7}
.today-widget-label{flex:1;min-width:70px;font-size:13px;font-weight:800}
.today-widget-dims{font-size:11px;font-weight:800;color:rgb(var(--mnp-vert-9cf13d));opacity:.9}
.today-widget-chrome button{min-width:32px;height:32px;padding:0 8px;border-radius:9px;font-size:12px;font-weight:800}
.today-widget-body{pointer-events:none;flex:1;min-height:0;overflow:hidden}
.today-widget-placeholder{display:grid;place-items:center;height:100%;min-height:48px;padding:12px;color:var(--muted,#a1adbd);font-size:12px;text-align:center}
.today-resize{
  position:absolute;right:4px;bottom:4px;width:18px;height:18px;padding:0;border:0;border-radius:6px 0 14px 0;
  background:
    linear-gradient(135deg, transparent 45%, rgba(var(--mnp-vert-9cf13d),.95) 46%, rgba(var(--mnp-vert-9cf13d),.95) 54%, transparent 55%),
    linear-gradient(135deg, transparent 62%, rgba(var(--mnp-vert-9cf13d),.7) 63%, rgba(var(--mnp-vert-9cf13d),.7) 71%, transparent 72%);
  cursor:nwse-resize;z-index:3;
}

.today-shortcut-dialog{width:min(520px,100%)}
.today-shortcut-dialog h3{margin:0 0 8px}
.today-shortcut-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}
.mnp-settings-tabs{flex-wrap:wrap}

@media(max-width:640px){
  .today-widgets{grid-auto-rows:64px;gap:8px}
  .today-edit-bar{position:static}
}
@media(prefers-reduced-motion:reduce){
  .today-widget{transition:none}
}

/* SOURCE: css/59-responsive-shell.css */
/* Coque Pro (gérant + employé) : éviter le chevauchement sidebar / contenu sur petit écran. */

@media (max-width: 1180px) {
  body.theme-dark .mnp-main-page .admin-shell,
  body.theme-dark .mnp-main-page.is-employee-workspace .admin-shell,
  body.theme-dark .mnp-main-page.is-employee-workspace .workspace-shell {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.theme-dark .mnp-main-page .mnp-app-sidebar,
  body.theme-dark .mnp-main-page .admin-sidebar,
  body.theme-dark .mnp-main-page.is-employee-workspace .workspace-sidebar,
  body.theme-dark .mnp-main-page.is-employee-workspace .mnp-app-sidebar {
    position: static;
    top: auto;
    align-self: stretch;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: none;
    background: rgba(6, 13, 24, 0.96);
  }

  body.theme-dark .mnp-main-page.is-employee-workspace::before {
    display: none;
  }

  body.theme-dark .mnp-main-page.is-employee-workspace {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.theme-dark .mnp-main-page .admin-nav,
  body.theme-dark .mnp-main-page.is-employee-workspace .admin-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 14px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  body.theme-dark .mnp-main-page .admin-nav .tab-button,
  body.theme-dark .mnp-main-page.is-employee-workspace .admin-nav .tab-button {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    white-space: nowrap;
  }

  body.theme-dark .mnp-main-page .employee-sidebar-settings,
  body.theme-dark .mnp-main-page .manager-sidebar-footer,
  body.theme-dark .mnp-main-page .mnp-sidebar-section {
    display: contents;
  }

  body.theme-dark .mnp-main-page .employee-sidebar-settings > span {
    display: none;
  }

  body.theme-dark .mnp-main-page .workspace-context,
  body.theme-dark .mnp-main-page .mnp-company-card {
    margin: 12px 14px 8px;
    width: auto;
  }

  body.theme-dark .mnp-main-page .admin-content,
  body.theme-dark .mnp-main-page.is-employee-workspace .admin-content,
  body.theme-dark .mnp-main-page.is-employee-hygiene .admin-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 20px 16px 80px;
    overflow: visible;
  }

  body.theme-dark .mnp-main-page .admin-content > .view-head,
  body.theme-dark .mnp-main-page.is-employee-workspace .admin-content > .view-head {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-start;
    margin: 0 0 24px;
    padding: 8px 0 0;
  }

  body.theme-dark .mnp-main-page.is-employee-workspace .admin-content > .view-head h1 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .hygiene-home-shell,
  .mnp-main-page.is-employee-hygiene .hygiene-home-shell,
  .mnp-main-page.is-employee-hygiene .hygiene-sorted-board {
    width: 100%;
    max-width: 100%;
  }

  .mnp-main-page.is-employee-hygiene .hygiene-sorted-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  body.theme-dark .mnp-main-page .admin-content > .view-head,
  body.theme-dark .mnp-main-page.is-employee-workspace .admin-content > .view-head {
    flex-direction: column;
  }

  body.theme-dark .mnp-main-page .admin-content > .view-head .view-actions,
  body.theme-dark .mnp-main-page [data-manager-domains-button] {
    width: 100%;
  }

  .mnp-main-page.is-employee-hygiene .hygiene-sorted-board,
  .mnp-main-page.is-employee-hygiene .hygiene-home-menu-grid {
    grid-template-columns: 1fr;
  }

  .pms-service-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .today-widgets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 64px;
  }

  .today-board.is-editing .today-widgets {
    background: rgba(0, 0, 0, 0.08);
  }

  .today-edit-bar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .today-edit-bar-actions {
    width: 100%;
  }

  .today-edit-bar-actions .btn {
    flex: 1 1 auto;
  }
}

/* En mode lecture sur mobile : chaque widget prend toute la largeur pour rester lisible. */
@media (max-width: 720px) {
  .today-board:not(.is-editing) .today-widget {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    min-height: 0;
  }

  .today-board:not(.is-editing) .today-widgets {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    min-height: 0;
  }
}

/* SOURCE: css/60-tracabilite-stock.css */
/* Traçabilité en page plein écran, facture des Courses -> stock, contenance des colis du stock. */

html.trace-page-open,
html.trace-page-open body {
  overflow: hidden;
}

.trace-page {
  position: fixed;
  inset: 0;
  z-index: 1200;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg, #0f172a);
  color: var(--ink, #f1f5f9);
  /* Thème clair par défaut : vert foncé lisible sur blanc ; le vert citron est réservé au thème sombre. */
  --pms-accent: #406722;
  --pms-line: rgba(100, 116, 139, 0.28);
}
.theme-dark .trace-page {
  --pms-accent: rgb(var(--mnp-vert-b7e45b, 183, 228, 91));
  --pms-line: rgba(151, 170, 191, 0.25);
}
.trace-page .trace-delivery-banner {
  background: var(--surface, rgba(148, 163, 184, 0.12));
  color: inherit;
  border: 1px solid var(--pms-line);
}
.trace-page * {
  box-sizing: border-box;
}
.trace-page-shell {
  width: min(1180px, 100%);
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 24px 24px;
}
.trace-page-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0 16px;
  background: var(--bg, #0f172a);
  border-bottom: 1px solid var(--pms-line);
}
.trace-page-back {
  flex: none;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--pms-line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.trace-page-back:hover,
.trace-page-back:focus-visible {
  border-color: var(--pms-accent);
  transform: none;
}
.trace-page-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
}
.trace-page .trace-fast-kicker {
  font-size: 12px;
}
.trace-page-body {
  flex: 1;
  padding: 22px 0;
}
.trace-page-foot {
  position: sticky;
  bottom: 0;
  padding: 16px 0 calc(8px + env(safe-area-inset-bottom));
  background: var(--bg, #0f172a);
  border-top: 1px solid var(--pms-line);
}
.trace-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 26px;
  font-size: 18px;
  border-radius: 16px;
}
.trace-page .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.trace-page .trace-fast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin: 0;
}
.trace-page .trace-fast-lead {
  font-size: 16px;
  margin-bottom: 18px;
}
.trace-page .trace-fast-search input {
  min-height: 60px;
  font-size: 19px;
  border-radius: 16px;
}
.trace-page .trace-delivery-banner {
  font-size: 15px;
  padding: 14px 18px;
}

/* Choix du produit : grandes tuiles */
.trace-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 6px;
}
.trace-page-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--pms-line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.trace-page-tabs button b {
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  font-size: 13px;
}
.trace-page-tabs button.is-active {
  border-color: var(--pms-accent);
  background: rgba(183, 228, 91, 0.14);
  color: var(--pms-accent);
}
.trace-page .trace-fast-products {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  max-height: none;
  overflow: visible;
  margin-top: 14px;
}
.trace-page .trace-fast-product {
  min-height: 112px;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 20px;
}
.trace-page .trace-fast-product,
.trace-page .trace-fast-product-chip,
.trace-page .trace-fast-search input {
  background: var(--surface, rgba(148, 163, 184, 0.12));
  color: inherit;
}
.trace-page .trace-fast-product.is-empty {
  border-color: rgba(245, 167, 143, 0.45);
}
.trace-page .trace-fast-thumb {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  font-size: 12px;
}
.trace-page .trace-fast-thumb.small {
  width: 64px;
  height: 64px;
}
.trace-page .trace-fast-thumb.large {
  width: min(260px, 60vw);
  height: min(260px, 60vw);
  border-radius: 24px;
  font-size: 15px;
}
.trace-page .trace-fast-product-copy strong {
  font-size: 19px;
}
.trace-page .trace-fast-product-copy small {
  font-size: 14px;
}
.trace-stock-left {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  color: var(--pms-accent);
}
.trace-fast-product.is-empty .trace-stock-left {
  color: #f5a78f;
}
.trace-page .trace-fast-product-chip {
  padding: 14px 16px;
  border-radius: 18px;
}
.trace-page .trace-fast-product-chip strong {
  font-size: 19px;
}

/* Caméra et vérification en grand */
.trace-page .trace-fast-camera {
  aspect-ratio: 4 / 3;
  max-height: min(64vh, 720px);
  margin-top: 16px;
  border-radius: 22px;
}
.trace-page .trace-fast-review img {
  max-height: min(62vh, 720px);
  border-radius: 22px;
}
.trace-page .trace-fast-blur {
  font-size: 16px;
}
.trace-page .trace-fast-done {
  padding-top: 28px;
  gap: 14px;
}
.trace-page .trace-fast-done strong {
  font-size: 26px;
}
.trace-page .trace-fast-done p {
  margin: 0;
  font-size: 17px;
}
.trace-page .trace-fast-done-icon {
  width: 84px;
  height: 84px;
  font-size: 38px;
}
.trace-page .trace-fast-done-icon svg {
  width: 40px;
  height: 40px;
}
.trace-page .trace-fast-done img {
  width: min(100%, 520px);
  max-height: 46vh;
  border-radius: 20px;
}

/* Emballage / consommable : ouvrir une unité sans photo */
.trace-open-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 0;
  text-align: center;
}
.trace-open-card > strong {
  font-size: 28px;
}
.trace-open-card > small {
  font-size: 16px;
  opacity: 0.7;
}
.trace-open-stock {
  margin: 6px 0 0;
  font-size: 19px;
}
.trace-open-stock b {
  color: var(--pms-accent);
}
.trace-open-warning,
.stock-invoice-error {
  margin: 8px 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(245, 167, 143, 0.12);
  color: #f5a78f;
  font-size: 15px;
}

/* Facture des Courses */
.stock-invoice-domain,
.stock-invoice-supplier {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
}
.stock-invoice-domain-name {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
}
.trace-page select,
.trace-page input:not([type="file"]):not([type="checkbox"]) {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--pms-line);
  border-radius: 14px;
  background: var(--surface, rgba(148, 163, 184, 0.12));
  color: inherit;
  font: inherit;
  font-size: 16px;
}
.stock-invoice-capture {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.stock-invoice-shot {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.stock-invoice-shot input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.stock-invoice-reading {
  display: grid;
  justify-items: center;
  gap: 14px;
  font-size: 17px;
}
.stock-invoice-reading img {
  max-width: min(100%, 520px);
  max-height: 56vh;
  border-radius: 18px;
  opacity: 0.75;
}
.stock-invoice-lines {
  display: grid;
  gap: 10px;
}
.stock-invoice-line {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 96px 110px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--pms-line);
  border-radius: 16px;
  font-size: 16px;
}
.stock-invoice-line.is-head {
  border: 0;
  padding-block: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
}
.stock-invoice-line.is-skipped {
  opacity: 0.6;
}
.stock-invoice-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}
/* Intitulé des cases chiffrées : caché sur ordinateur (ligne d'en-tête), visible sur téléphone. */
.stock-invoice-num {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.stock-invoice-num span {
  display: none;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.7;
}
.stock-invoice-num input {
  width: 100%;
}
.stock-invoice-gain {
  font-weight: 700;
  color: var(--pms-accent);
}
.stock-invoice-line.is-skipped .stock-invoice-gain {
  color: inherit;
  font-weight: 400;
}
.stock-invoice-add {
  margin-top: 14px;
}
.stock-invoice-summary {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin: 20px auto 0;
  padding: 0;
  list-style: none;
}
.stock-invoice-summary li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px 16px;
  border: 1px solid var(--pms-line);
  border-radius: 16px;
  font-size: 16px;
}
.stock-invoice-summary span {
  font-weight: 800;
  color: var(--pms-accent);
}
.stock-invoice-summary small {
  grid-column: 1 / -1;
  opacity: 0.7;
}

/* Fiche produit du stock : 1 carton = 12 sachets */
.stock-pack-field {
  grid-column: 1 / -1;
}
.stock-pack-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stock-pack-inline input[name="packLabel"] {
  flex: 1;
  min-width: 0;
}
.stock-pack-inline input[name="packSize"] {
  width: 96px;
}
.stock-pack-field small {
  display: block;
  margin-top: 6px;
  opacity: 0.7;
  line-height: 1.4;
}

/* Thème clair */
.theme-light .trace-page {
  --pms-accent: #406722;
  --pms-line: #dde3d9;
}
.theme-light .trace-page select,
.theme-light .trace-page input:not([type="file"]):not([type="checkbox"]) {
  background: #f5f7f3;
  color: #1f2922;
}
.theme-light .trace-page-tabs button.is-active {
  background: #eff5e8;
}
.theme-light .trace-page .trace-fast-product.is-empty .trace-stock-left,
.theme-light .trace-open-warning,
.theme-light .stock-invoice-error {
  color: #a43723;
}

@media (max-width: 700px) {
  .trace-page-shell {
    padding: 0 16px 16px;
  }
  .trace-page-bar {
    gap: 12px;
    padding: 12px 0;
  }
  .trace-page-back {
    min-height: 46px;
    padding: 0 14px;
    font-size: 15px;
  }
  /* Onglets sur une seule ligne qui défile, au lieu de trois lignes. */
  .trace-page-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 0 16px 4px;
    scrollbar-width: none;
  }
  .trace-page-tabs button {
    flex: none;
    min-height: 44px;
    padding: 0 16px;
    font-size: 15px;
  }
  .trace-page .trace-fast-products {
    grid-template-columns: 1fr;
  }
  .trace-page .trace-fast-camera {
    aspect-ratio: 3 / 4;
    max-height: 62vh;
  }
  .trace-page .trace-fast-actions {
    flex-direction: column-reverse;
  }
  .trace-page .trace-fast-actions .btn {
    width: 100%;
  }
  /* Téléphone : nom, produit, puis « colis » et « unités / colis » côte à côte avec leur intitulé. */
  .stock-invoice-line {
    grid-template-columns: 1fr 1fr;
  }
  .stock-invoice-line.is-head {
    display: none;
  }
  .stock-invoice-name,
  .stock-invoice-line select,
  .stock-invoice-gain {
    grid-column: 1 / -1;
  }
  .stock-invoice-num span {
    display: block;
  }
}

/* SOURCE: css/61-admin-maintenance.css */
/* Administration → Maintenance : bilan de sécurité, sauvegardes, accès téléphone (js/admin/maintenance.js). */

.mnt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 18px;
  align-items: start;
}
.mnt-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 18px;
  background: var(--surface, #fff);
  color: var(--ink, inherit);
}
.mnt-card > header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.mnt-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.mnt-card header p,
.mnt-note,
.mnt-empty {
  margin: 0;
  color: var(--muted, #64748b);
  font-size: 14px;
  line-height: 1.45;
}
.mnt-card code {
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.mnt-note {
  margin: 8px 0 12px;
}
.mnt-note.is-warn {
  color: #a43723;
}
.mnt-banner {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(var(--mnp-vert-176b3c, 23, 107, 60), 0.1);
  font-weight: 600;
}
.mnt-banner.is-error {
  background: rgba(164, 55, 35, 0.1);
  color: #a43723;
}

/* Bilan de sécurité */
.mnt-checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mnt-check {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(100, 116, 139, 0.07);
}
.mnt-check-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: rgb(var(--mnp-vert-176b3c, 23, 107, 60));
}
.mnt-check.is-todo .mnt-check-icon {
  background: #c2410c;
}
.mnt-check strong {
  display: block;
  font-size: 15px;
}
.mnt-check p {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--muted, #64748b);
}
.mnt-check .mnt-fix {
  margin-top: 6px;
  color: inherit;
  font-weight: 600;
}

/* Sauvegardes */
.mnt-backups {
  display: grid;
  gap: 8px;
  max-height: 360px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}
.mnt-backups li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(100, 116, 139, 0.07);
}
.mnt-backups span {
  display: grid;
  min-width: 0;
}
.mnt-backups small {
  color: var(--muted, #64748b);
  overflow-wrap: anywhere;
}
.mnt-backups .btn {
  flex: none;
}

/* Accès téléphone */
.mnt-phone {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.mnt-qr {
  width: 200px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}
.mnt-qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.mnt-steps {
  margin: 0 0 10px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.mnt-details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.mnt-addresses {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.mnt-addresses li {
  display: grid;
}
.mnt-addresses small {
  color: var(--muted, #64748b);
}

@media (max-width: 640px) {
  .mnt-phone {
    grid-template-columns: 1fr;
  }
  .mnt-qr {
    width: min(220px, 70vw);
    margin: 0 auto;
  }
  .mnt-backups li {
    flex-direction: column;
    align-items: stretch;
  }
}

/* SOURCE: css/62-double-authentification.css */
/* Double authentification : état dans les paramètres et assistant d'activation (js/views/two-factor-setup.js). */

.tfa-status {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.08);
}

.tfa-status.is-on {
  border-color: rgba(var(--mnp-vert-176b3c), 0.4);
  background: rgba(var(--mnp-vert-176b3c), 0.1);
}

.tfa-status-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #d97706;
  font-weight: 900;
  font-size: 18px;
}

.tfa-status.is-on .tfa-status-icon {
  background: var(--brand);
}

.tfa-status strong {
  display: block;
}

.tfa-status small {
  display: block;
  margin-top: 3px;
  opacity: 0.8;
  line-height: 1.4;
}

.tfa-howto {
  margin: 0 0 12px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  line-height: 1.45;
}

.tfa-dialog {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
}

.tfa-dialog p {
  margin: 0;
  line-height: 1.5;
}

.tfa-head span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.tfa-head h2 {
  margin: 4px 0 0;
}

.tfa-head.is-done {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tfa-head.is-done h2 {
  margin: 0;
}

.tfa-done-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff !important;
  background: var(--brand);
  font-size: 22px !important;
}

.tfa-muted,
.tfa-loading {
  opacity: 0.75;
  font-size: 14px;
}

.tfa-apps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.tfa-qr {
  justify-self: center;
  width: 220px;
  height: 220px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}

.tfa-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tfa-key summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
}

.tfa-key[open] {
  display: grid;
  gap: 10px;
}

.tfa-key[open] summary {
  margin-bottom: 2px;
}

.tfa-key-value {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.14);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  word-break: break-all;
  user-select: all;
}

.tfa-backup {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.tfa-open-app {
  width: 100%;
  text-decoration: none;
}

.tfa-confirm {
  display: grid;
  gap: 14px;
}

.tfa-field {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.tfa-field input {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
}

.tfa-code-input {
  font-size: 26px !important;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
}

.tfa-actions {
  justify-content: flex-end;
}

.tfa-actions .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.theme-dark .tfa-field input {
  color: var(--ink);
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.24);
}

@media (max-width: 640px) {
  .tfa-status {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .tfa-status .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .tfa-actions .btn {
    flex: 1;
  }
}
