[data-theme="custom"], :root{
	--primary-color-hue: 216;
	--primary-color-saturation: 42%;
	--primary-color-lightness: 25%;
	--banner-background: url(https://dolibarr.caldera-info.fr/document.php?hashp=Qtw77a9Y57O8hoVDuuXZ98que1BM2HTf);
}

.login-page {
	--login-background: rgba(0, 0, 0, 0.4) url("https://dolibarr.caldera-info.fr/document.php?hashp=ejlI730I7B87ndx51Gc8TFndBEIcaH0N");
--login-logo: url("https://dolibarr.caldera-info.fr/document.php?hashp=f90DHTfHgc7aFz77JD8adh23xPSkI76H"); /* for relative path, must be relative to the css file or use full url starting by http:// */
}
/* Here, the content of the common custom CSS defined into Home - Setup - Display - CSS */
/* === PORTAIL CLIENT CALDERA-INFO === */

/* --- Variables globales --- */
[data-theme="custom"], :root {
    --nav-background-color: #27557C;
    --nav-border-color: #1a3a54;
}

/* --- Navigation --- */
.primary-top-nav {
    background: #27557C;
}
.primary-top-nav a,
.primary-top-nav .nav-item a,
.primary-top-nav .brand__name,
.primary-top-nav .logout a {
    color: #daf9f9;
}
.primary-top-nav a:hover {
    color: #ffffff;
}

/* --- Logo menu agrandi --- */
.brand__logo-img {
    max-height: 60px;
    height: 60px;
}

/* --- Banniere --- */
.hero-header,
.hero-header[data-theme="dark"],
.hero-header__title,
.hero-header__desc,
.hero-header[data-theme="dark"] .hero-header__title,
.hero-header[data-theme="dark"] .hero-header__desc {
    color: #ffffff;
}

/* --- Page accueil - Cartes --- */
.home-links-grid {
    gap: 1.5rem;
    padding: 2rem 0;
}
.home-links-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(39, 85, 124, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    padding: 2rem;
}
.home-links-card:hover {
    box-shadow: 0 6px 20px rgba(39, 85, 124, 0.2);
    transform: translateY(-2px);
    border-color: #27557C;
}
.home-links-card__link {
    color: #27557C;
    font-weight: 600;
    font-size: 1.1rem;
}
.home-links-card__icon {
    color: #2C5F8A;
}

/* --- Tableaux / Listes --- */
table[id^="webportal-"] {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(39, 85, 124, 0.08);
    background: #ffffff;
}
table[id^="webportal-"] thead tr:first-child {
    background: #27557C;
}
table[id^="webportal-"] thead tr:first-child th,
table[id^="webportal-"] thead tr:first-child td {
    color: #ffffff;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid #1a3a54;
}
table[id^="webportal-"] thead tr:first-child a {
    color: #daf9f9;
}
table[id^="webportal-"] thead tr[role="search-row"] {
    background: #EDF2F7;
}
table[id^="webportal-"] thead tr[role="search-row"] td {
    padding: 8px 12px;
    border-bottom: 1px solid #D0DBE8;
}
table[id^="webportal-"] thead tr[role="search-row"] input {
    border: 1px solid #D0DBE8;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    background: #ffffff;
}
table[id^="webportal-"] thead tr[role="search-row"] input:focus {
    border-color: #27557C;
    outline: none;
    box-shadow: 0 0 0 2px rgba(39, 85, 124, 0.15);
}
table[id^="webportal-"] tbody tr {
    transition: background 0.2s ease;
}
table[id^="webportal-"] tbody tr:nth-child(even) {
    background: #f8fafc;
}
table[id^="webportal-"] tbody tr:hover {
    background: #EDF2F7;
}
table[id^="webportal-"] tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
    font-size: 14px;
}
table[id^="webportal-"] tbody a {
    color: #27557C;
    font-weight: 500;
}
table[id^="webportal-"] tbody a:hover {
    color: #1a3a54;
    text-decoration: underline;
}

/* Pagination */
nav[id$="-pagination"] {
    background: #EDF2F7;
    border-radius: 8px;
    padding: 8px 16px;
    margin-bottom: 1rem;
}
nav[id$="-pagination"] strong {
    color: #27557C;
}

/* Boutons de filtre */
.btn-filter-icon {
    background: #27557C;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-filter-icon:hover {
    background: #1a3a54;
}

/* --- Page de login --- */
body.login-page {
    background: linear-gradient(135deg, #1a3a54 0%, #27557C 50%, #2C5F8A 100%);
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}
.login-screen__content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.login .login__input {
    border: 2px solid #D0DBE8;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: #f8fafc;
}
.login .login__input:focus {
    border-color: #27557C;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(39, 85, 124, 0.15);
}
.login .login__submit {
    background: linear-gradient(135deg, #27557C 0%, #2C5F8A 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
}
.login .login__submit:hover {
    background: linear-gradient(135deg, #1a3a54 0%, #27557C 100%);
    box-shadow: 0 4px 12px rgba(39, 85, 124, 0.4);
}

/* --- Footer --- */
body::after {
    content: "Caldera-Info SAS \2014  23B Rue Saint-Denis, 41100 Vend\00f4me \2014  +332 59 16 26 12 \2014  https://caldera-info.fr";
    display: block;
    text-align: center;
    padding: 20px;
    margin-top: 3rem;
    background: #27557C;
    color: #daf9f9;
    font-size: 12px;
    letter-spacing: 0.5px;
}
body.login-page::after {
    background: transparent;
    color: #daf9f9;
    opacity: 0.7;
    margin-top: 1rem;
}