/* +--------------------------------------------------------------------------+
// ? 2002-2013 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: abts.css,v 1.1.4.2 2025/10/21 06:50:02 dgoron Exp $ */

/* ---------------------------------------------------------------------------*/
/*                 Abonnements / Modèles                        			  */
/* ---------------------------------------------------------------------------*/

.abts-fieldset {
	border: 1px solid #b8b8b8;
	border-radius: 5px;
	padding: 12px 16px;
	margin-top: 8px;
}

.abts-legend {
	margin-left: 10px;
	padding-right: 3px;
	padding-left: 3px;
	font-weight: 500;
}

.abts-calendar-grid {
	display: grid;
	gap: 0.5rem;
    text-align: center;
}

.abts-calendar-grid label {
	display: block;
	font-weight: 600;
	cursor: pointer;
}

.abts-calendar-grid input[type="checkbox"] {
	display: inline-block;
	margin-top: 0.25rem;
}

.abts-days-grid,
.abts-week-month-grid {
	grid-template-columns: repeat(7, 1fr);
}

.abts-days-month-grid {
	grid-template-columns: repeat(15, 1fr);
}

.abts-week-year-grid {
	grid-template-columns: repeat(15, 1fr);
}

.abts-month-year-grid {
	grid-template-columns: repeat(6, 1fr);
}

.abts-grid-table {
    display: grid;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 0.5rem;
    margin: 0.5rem;
}

.abts-grid-table-1 {
    grid-template-columns: 1fr; /* 1 colonne */
}

/* Supprime la bordure du bas sur la dernière ligne (1 colonne = dernière cellule) */
.abts-grid-table-1 > :nth-last-child(-n + 1) {
	border-bottom: none;
}

.abts-grid-table-2 {
    grid-template-columns: 1fr 1fr; /* 2 colonnes */
}

/* Supprime la bordure du bas sur la dernière ligne (2 colonnes = 2 dernières cellules) */
.abts-grid-table-2 > :nth-last-child(-n + 2) {
	border-bottom: none;
}

.abts-grid-table-3 {
    grid-template-columns: 1fr 1fr 1fr; /* 3 colonnes */
}

/* Supprime la bordure du bas sur la dernière ligne (3 colonnes = 3 dernières cellules) */
.abts-grid-table-3 > :nth-last-child(-n + 3) {
	border-bottom: none;
}
  
.abts-grid-cell {
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc;
    padding: 0.5rem;
}

/* Supprime le dernier bord vertical a droite */
.abts-grid-table-1 > :nth-child(1n),
.abts-grid-table-2 > :nth-child(2n),
.abts-grid-table-3 > :nth-child(3n) {
    border-right: none;
}