/* 1) Cacher la scrollbar mais garder le scroll */
html,
body {
    -ms-overflow-style: none;
    /* IE/Edge legacy */
    scrollbar-width: none;
    /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Edge */
}


:root {
    --bg:#FFFFFF; /*#f2f4f7; #fbfaf6; */
    --bg-card: #F9FAFB;
    --menu-bg:#111056;
    --menu-color:#FFFFFF;
    --sidebar-bg: #F9FAFB;
    --sidebar-color: #9997B4;
    --text: #1f1f1f;
    --muted: #777;
    --bg-hover: #f3f0e4;
    --border:#ECECEF; /*#f3f0e4;*/
}


/* gestion des theme */
.site-theme[data-theme='default'] .theme-title {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-theme[data-theme='default'] .theme-menu {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-theme[data-theme='default'] .theme-text {
    font-family: 'Lora', serif;
    line-height: 1.6;
}

.site-theme[data-theme='default'] .theme-artist {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
    color: #777;
}

.site-theme[data-theme='default'] .theme-mutted {
    font-family: 'Oswald', sans-serif;
    color: #777;
}

.site-theme[data-theme='default'] .theme-copyright {
    font-family: 'Lora', serif;
    line-height: 1.6;
}

.site-theme[data-theme='default'] .theme-btn {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-theme[data-theme='default'] .theme-btn:hover,
.site-theme[data-theme='default'] .theme-btn.active,
.site-theme[data-theme='default'] .theme-btn div.active {
    color: var(--bg) !important;
    background: var(--text) !important;
}

.site-theme[data-theme='default'] .theme-lastupdate {
    font-size: 10px;
    color: #888;
}


.modal-theme[data-theme='default'] .theme-title {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* notify */
.notifyjs-corner {
    z-index: 9999 !important;
}

.menubar { position: relative; z-index: 3000; overflow: visible !important; }
.profile-menu { position: relative; margin-left: auto; }
.profile-dropdown { position: absolute; top: calc(100% + 6px); right: 6px; z-index: 10001; min-width: 190px; padding: 8px; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.profile-dropdown button { width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.profile-dropdown button:hover { background: var(--bg-hover); }
.profile-dropdown button:disabled { cursor: wait; opacity: .6; }
.profile-dropdown hr { margin: 7px 3px; border: 0; border-top: 1px solid var(--border); }
.profile-modal, .wallet-modal, .openapi-executions-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; }
.profile-modal[hidden], .wallet-modal[hidden], .openapi-executions-modal[hidden] { display: none; }
.profile-modal-backdrop, .wallet-modal-backdrop, .openapi-executions-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.profile-modal-dialog, .wallet-modal-dialog, .openapi-executions-dialog { position: relative; z-index: 1; width: min(440px, calc(100vw - 32px)); padding: 20px; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.profile-modal-header, .profile-modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-modal-header { margin-bottom: 16px; font-size: 1.2rem; }
.profile-modal-dialog label, .wallet-modal-dialog label { display: grid; gap: 5px; margin-bottom: 12px; font-weight: 700; }
.profile-modal-dialog input, .profile-modal-dialog select, .profile-modal-dialog button, .wallet-modal-dialog input, .wallet-modal-dialog button { padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px; }
.wallet-transaction-input { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 8px; }
.wallet-transaction-input input { width: 100%; min-width: 0; }
.wallet-transaction-refresh { display: inline-flex; align-items: center; justify-content: center; padding: 7px !important; color: var(--text); background: var(--bg-hover); cursor: pointer; }
.wallet-transaction-refresh:hover, .wallet-transaction-refresh:focus-visible { filter: brightness(.95); }
.wallet-transaction-refresh:disabled { cursor: wait; opacity: .55; }
.wallet-transaction-refresh .uiicon { width: 20px; height: 20px; }
.wallet-transaction-error { color: #dc2626; font-size: .75rem; font-weight: 400; }
.wallet-transaction-error[hidden] { display: none; }
.profile-modal-close, .wallet-modal-close, .openapi-executions-close { margin-left: auto; border: 0 !important; background: transparent; font-size: 1.5rem; cursor: pointer; }
.profile-modal-actions { margin-top: 18px; }
.profile-logout, .profile-save { cursor: pointer; }
.openapi-executions-dialog { width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: hidden; }
.openapi-executions-refresh { margin-left: auto; padding: 7px 12px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--bg-hover); cursor: pointer; }
.openapi-executions-refresh:disabled { cursor: wait; opacity: .6; }
.openapi-executions-refresh + .openapi-executions-close { margin-left: 0; }
.openapi-executions-monitor { display: flex; justify-content: space-between; gap: 12px; margin: -7px 0 12px; color: var(--text-muted, var(--text)); font-size: .82rem; }
.openapi-executions-workflow { font-weight: 700; }
.openapi-executions-next-refresh { margin-left: auto; white-space: nowrap; }
.openapi-executions-table-wrap { overflow-x: auto; overflow-y: scroll; max-height: calc(100vh - 130px); scrollbar-gutter: stable; }
.openapi-executions-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.openapi-executions-table th, .openapi-executions-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.openapi-executions-table .openapi-executions-error { min-width: 280px; max-width: 520px; white-space: normal; overflow-wrap: anywhere; }
.openapi-executions-table th { position: sticky; top: 0; background: var(--bg-card); }
.openapi-executions-status { display: inline-block; padding: 3px 8px; border-radius: 999px; font-weight: 700; }
.openapi-executions-status.success { color: #166534; background: #dcfce7; }
.openapi-executions-status.running { color: #92400e; background: #fef3c7; }
.openapi-executions-status.error { color: #991b1b; background: #fee2e2; }
body.sidebar-disabled .sidebar-content, body.sidebar-disabled .menubar-item-sidebar { display: none !important; }
body.sidebar-disabled .page-container { padding-left: 0 !important; }


/* Mobile */
@media (max-width: 576px) {}


/* Tablette */
@media (max-width: 768px) {}

/* Laptop */
@media (max-width: 1360px) {}
