@charset "UTF-8";
/* POSTside – habillage de la plateforme de dépôt (SFTPGo) */

/* Page de connexion : logo centré, sans le petit nom superposé */
.row:has(> .col-5 > img[alt="Logo"]) > .col-7 { display: none !important; }
.row > .col-5:has(> img[alt="Logo"]) { flex: 0 0 100% !important; max-width: 100% !important; text-align: center; }
.row > .col-5 > img[alt="Logo"] { height: auto !important; width: 280px; max-width: 100%; }

/* Page de connexion client : pas de lien vers l'administration */
#sign_in_form[action*="/web/client"] ~ hr,
#sign_in_form[action*="/web/client"] ~ .flex-stack { display: none !important; }

/* Bandeau latéral clair aux couleurs POSTside */
:root, [data-bs-theme] { --bs-app-sidebar-base-bg-color: #F4F5FA !important; --bs-app-sidebar-base-border-end: 1px solid #E3E5EC !important; }
#kt_app_sidebar { background-color: #F4F5FA !important; border-right: 1px solid #E3E5EC !important; }
.app-sidebar-logo span { display: none !important; }
.app-sidebar-logo img { background: transparent; padding: 0; height: 46px !important; }
.app-sidebar-navs .menu .menu-item .menu-link,
.app-sidebar-navs .menu .menu-item .menu-link .menu-title { color: #191C80 !important; }
.app-sidebar-navs .menu .menu-item .menu-link .menu-icon,
.app-sidebar-navs .menu .menu-item .menu-link .menu-icon i { color: #6B6F85 !important; }
.app-sidebar-navs .menu .menu-item .menu-link:hover,
.app-sidebar-navs .menu .menu-item .menu-link.active,
.app-sidebar-navs .menu .menu-item.here > .menu-link { background-color: #E6E8F7 !important; }
.app-sidebar-navs .menu .menu-item .menu-link:hover .menu-title,
.app-sidebar-navs .menu .menu-item .menu-link.active .menu-title,
.app-sidebar-navs .menu .menu-item.here > .menu-link .menu-title,
.app-sidebar-navs .menu .menu-item .menu-link:hover .menu-icon i,
.app-sidebar-navs .menu .menu-item .menu-link.active .menu-icon i { color: #191C80 !important; }

/* Pied de page : version de SFTPGo masquée */
#kt_app_footer { display: none !important; }

/* Liste des fichiers : lignes plus lisibles */
#file_manager_list tbody td { color: #1E2140; }
#file_manager_list tbody tr:hover > td { background-color: #F4F5FA; }
#file_manager_list tbody td a { color: #191C80; font-weight: 600; }

/* Cases à cocher bien visibles */
#file_manager_list .form-check-input {
  width: 20px !important; height: 20px !important; cursor: pointer;
  background-color: #FFFFFF !important; border: 2px solid #8A8FA8 !important; border-radius: 5px !important;
}
#file_manager_list .form-check-input:hover { border-color: #191C80 !important; }
#file_manager_list .form-check-input:checked { background-color: #191C80 !important; border-color: #191C80 !important; }

/* Bouton « Visualiser » : contour bleu POSTside, plein au survol */
#file_manager_list [data-kt-filemanger-table="view_item"] a.btn-icon {
  width: auto !important; height: 34px !important; padding: 0 14px !important;
  font-size: 13px; font-weight: 600; color: #191C80 !important;
  background: #FFFFFF !important; border: 1.5px solid #191C80 !important; border-radius: 8px;
}
#file_manager_list [data-kt-filemanger-table="view_item"] a.btn-icon:hover { background: #191C80 !important; color: #FFFFFF !important; }
#file_manager_list [data-kt-filemanger-table="view_item"] a.btn-icon i { display: none !important; }
#file_manager_list [data-kt-filemanger-table="view_item"] a.btn-icon::after { content: "Visualiser"; }

/* Bouton des fonctions (renommer, déplacer, supprimer…) : « Actions ▾ » bien visible */
#file_manager_list button.btn-icon[data-kt-menu-trigger] {
  white-space: nowrap;
  width: auto !important; height: 34px !important; padding: 0 14px !important;
  font-size: 13px; font-weight: 600; color: #3A3F5C !important;
  background: #EEF0F6 !important; border: 1.5px solid #C9CCDA !important; border-radius: 8px;
}
#file_manager_list button.btn-icon[data-kt-menu-trigger]:hover,
#file_manager_list button.btn-icon[data-kt-menu-trigger].show { background: #E6E8F7 !important; border-color: #191C80 !important; color: #191C80 !important; }
#file_manager_list button.btn-icon[data-kt-menu-trigger] i { display: none !important; }
#file_manager_list button.btn-icon[data-kt-menu-trigger]::after { content: "Actions \25BE"; }

/* Menu des actions : entrées plus grandes */
#file_manager_list .menu-sub-dropdown { min-width: 220px; }
#file_manager_list .menu-sub-dropdown .menu-link { font-size: 15px; padding: 10px 14px !important; }


/* ===== Envoi de fichiers : plus clair pour les néophytes ===== */

/* Bouton « Téléverser des fichiers » -> « Envoyer des fichiers » */
button[data-bs-target="#modal_upload"] > span { display: none !important; }
button[data-bs-target="#modal_upload"]::after { content: "Envoyer des fichiers ici"; }
button[data-bs-target="#modal_upload"] {
  background: #191C80 !important; color: #FFFFFF !important; font-size: 16px !important; font-weight: 700 !important;
  padding: 14px 26px !important; border-radius: 10px !important; box-shadow: 0 4px 12px rgba(25, 28, 128, .25);
}
button[data-bs-target="#modal_upload"]:hover { background: #2A2EA8 !important; }
button[data-bs-target="#modal_upload"] i, button[data-bs-target="#modal_upload"] i span { color: #FFFFFF !important; }

/* Fil d'Ariane : « Vous êtes dans : Accueil › dossier » bien visible */
[data-kt-filemanager-table-nav-bar="base"] {
  display: inline-flex !important; align-items: center; font-size: 15px !important;
  padding: 10px 16px !important; background: #E6E8F7 !important; color: #191C80 !important; border-radius: 8px;
}
[data-kt-filemanager-table-nav-bar="base"]::before { content: "Vous êtes dans :"; font-weight: 500; color: #4B5675; margin-right: 12px; }
[data-kt-filemanager-table-nav-bar="base"] a,
[data-kt-filemanager-table-nav-bar="base"] span,
[data-kt-filemanager-table-nav-bar="base"] i { color: #191C80 !important; }

/* Fenêtre d'envoi : titre explicite */
#modal_upload .modal-title { font-size: 0 !important; }
#modal_upload .modal-title::after { content: "Envoyer des fichiers dans le dossier ouvert"; font-size: 20px; color: #191C80; }

/* Étape 1 : zone de dépôt */
#upload_files .dz-message h3,
#upload_files_empty .dz-message h3 { font-size: 0 !important; }
#upload_files .dz-message h3::after { content: "① Glissez vos fichiers ici, ou cliquez pour les choisir"; font-size: 16px; }
#upload_files_empty .dz-message h3::after { content: "Ce dossier est vide. ① Glissez vos fichiers ici, ou cliquez pour les choisir"; font-size: 16px; }
#upload_files, #upload_files_empty { border: 2px dashed #191C80 !important; background: #F4F5FA !important; }

/* Étape 2 : consigne + bouton « Lancer l'envoi » */
#modal_upload .modal-footer { flex-wrap: wrap; }
#modal_upload .modal-footer::before,
#upload_files_empty_container > .justify-content-end::before {
  content: "② Cliquez sur « Lancer l’envoi » et gardez cette page ouverte jusqu’à la fin de l’envoi.";
  flex: 1 1 100%; margin-bottom: 14px; font-size: 15px; font-weight: 600; color: #191C80;
  background: #FFF6E5; border-left: 4px solid #C0392B; padding: 10px 14px; border-radius: 6px;
}
#upload_files_empty_container > .justify-content-end { flex-wrap: wrap; }
#upload_files_button, #upload_files_empty_button {
  font-size: 0 !important; padding: 12px 26px !important; background: #191C80 !important; border-radius: 8px !important;
}
#upload_files_button::after, #upload_files_empty_button::after { content: "Lancer l’envoi"; font-size: 16px; font-weight: 700; color: #FFFFFF; }

/* ===== Lecteur vidéo POSTside (postside.js) ===== */
html.ps-noscroll, html.ps-noscroll body { overflow: hidden !important; }
.ps-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 12, 40, .78); display: none; align-items: center; justify-content: center; padding: 24px; }
.ps-overlay.ps-open { display: flex; }
.ps-box { background: #0E1030; color: #E9EAF5; border-radius: 12px; width: min(1280px, 100%); max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.5); outline: none; }
.ps-box:fullscreen { width: 100%; height: 100%; border-radius: 0; }
.ps-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #23265A; }
.ps-title { flex: 1; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-stage { position: relative; background: #000; display: flex; align-items: center; justify-content: center; min-height: 240px; flex: 1; }
.ps-video { display: block; width: 100%; max-height: calc(100vh - 230px); background: #000; cursor: pointer; }
.ps-box:fullscreen .ps-video { max-height: calc(100vh - 120px); }
.ps-msg { padding: 40px 30px; text-align: center; font-size: 15px; line-height: 1.6; color: #E9EAF5; max-width: 620px; }
.ps-help { position: absolute; top: 12px; right: 12px; background: rgba(14,16,48,.95); border: 1px solid #3A3E80; border-radius: 10px; padding: 12px 16px; font-size: 13px; }
.ps-help table { margin-top: 6px; } .ps-help td { padding: 2px 10px 2px 0; } .ps-help td:first-child { color: #9EA3FF; font-weight: 700; white-space: nowrap; }
.ps-bar { width: 100%; margin: 0; accent-color: #C8483A; height: 18px; cursor: pointer; background: transparent; }
.ps-ctrl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 14px 12px; }
.ps-btn { background: #1E2160; color: #FFFFFF; border: 0; border-radius: 7px; min-width: 38px; height: 34px; padding: 0 10px; font-size: 15px; cursor: pointer; }
.ps-btn:hover { background: #2E3290; }
.ps-play { background: #C8483A; min-width: 48px; } .ps-play:hover { background: #A93A2E; }
.ps-small { min-width: 30px; height: 28px; font-size: 13px; }
.ps-tc { font-family: Menlo, Consolas, "SF Mono", monospace; font-size: 24px; font-weight: 700; letter-spacing: 1px; color: #FFFFFF; background: #000; border-radius: 7px; padding: 2px 12px; margin: 0 8px; cursor: copy; }
.ps-tc.ps-copied { color: #7CE38B; }
.ps-tc-off .ps-tc { display: none; }
.ps-tcbtn { font-size: 13px; font-weight: 700; background: transparent; border: 1.5px solid #3A3E80; color: #A9ACCF; }
.ps-tcbtn.ps-active { background: #1E2160; border-color: #9EA3FF; color: #FFFFFF; }
.ps-meta { flex: 1; font-size: 12px; color: #A9ACCF; min-width: 160px; }
.ps-speed { background: #1E2160; color: #FFF; border: 0; border-radius: 7px; height: 34px; padding: 0 8px; }

/* ===== Glisser-déposer (postside.js) ===== */
.ps-drop-banner { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -20px); z-index: 1900; background: #191C80; color: #FFF; padding: 14px 26px; border-radius: 12px; font-size: 16px; font-weight: 700; box-shadow: 0 10px 30px rgba(25,28,128,.35); opacity: 0; pointer-events: none; transition: all .15s; }
.ps-drop-banner.ps-on { opacity: 1; transform: translate(-50%, 0); }
html.ps-dragging #file_manager_list { outline: 3px dashed #191C80; outline-offset: 6px; border-radius: 6px; }
#file_manager_list tbody tr.ps-drop-row > td { background: #DDE0FA !important; }
#file_manager_list tbody tr.ps-drop-row { outline: 2px solid #191C80; }
.ps-up { position: fixed; right: 20px; bottom: 20px; z-index: 1950; width: 440px; max-width: calc(100vw - 40px); background: #FFF; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.2); border: 1px solid #E3E5EC; display: none; }
.ps-up.ps-on { display: block; }
.ps-up-title { padding: 12px 16px; font-weight: 700; color: #191C80; border-bottom: 1px solid #E3E5EC; font-size: 14px; }
.ps-up-list { max-height: 260px; overflow: auto; padding: 6px 16px; }
.ps-up-row { padding: 6px 0; font-size: 13px; color: #1E2140; border-bottom: 1px dashed #EEF0F6; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ps-up-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-up-pct { font-size: 12px; color: #6B6F85; }
.ps-up-track { flex-basis: 100%; height: 5px; background: #EEF0F6; border-radius: 3px; overflow: hidden; }
.ps-up-bar { height: 100%; width: 0; background: #191C80; transition: width .2s; }
.ps-up-ok .ps-up-bar { background: #2E9E5B; } .ps-up-ok .ps-up-pct { color: #2E9E5B; }
.ps-up-ko .ps-up-bar { background: #C8483A; } .ps-up-ko .ps-up-pct { color: #C8483A; font-weight: 700; }
.ps-up-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; }
.ps-up-foot:empty { display: none; }
.ps-up-btn { border: 0; border-radius: 8px; padding: 8px 16px; font-weight: 600; background: #EEF0F6; color: #3A3F5C; cursor: pointer; }
.ps-up-danger { background: #C8483A; color: #FFF; }

