/* =========================================================
   GIRLGUIDING
   Girls • Girl Selector • Registration • History
========================================================= */
.session-header {
    margin-bottom: 10px;
    color: #1c2674;
}

/* =========================================================
   GIRL SWITCHER
========================================================= */

.girl-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 15px 0 25px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7ef;
}

.girl-switcher-centre {
    text-align: center;
}

.girl-switcher-side {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.girl-switcher-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1c2674;
    padding-bottom: 8px;
}

.girl-switcher-dob {
    font-size: 0.95rem;
    font-weight: 400;
    color: #1c2674;
    padding-bottom: 5px;
}

.girl-switcher-unit {
    font-size: 0.85rem;
    color: #777;
}

.girl-switcher-attendance {
    margin-top: 6px;
    font-size: 14px;
    color: #666;
}


/* =========================================================
   GIRL NAVIGATION ARROWS
========================================================= */

.girl-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef1f7;
    color: #1c2674;
    font-size: 20px;
    text-decoration: none;
    transition: 0.2s ease;
}

.girl-arrow:hover {
    background: #e3e8f3;
}

.girl-arrow-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f5f5f5;
    color: #bbb;
    font-size: 20px;
}


/* =========================================================
   GIRL SELECTOR
========================================================= */

.girl-selector {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    align-items: center;
    margin: 15px 0;
}

.girl-nav-arrows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.girl-nav-arrows a {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    background: #eef1f7;
    font-size: 13px;
    transition: 0.2s ease;
}

.girl-nav-arrows a:hover {
    background: #e3e8f3;
}

.girl-dropdown select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d7dbe7;
    font-size: 14px;
    background: #fff;
    transition: 0.2s ease;
}

.girl-dropdown select:hover {
    border-color: #1c2674;
}


/* =========================================================
   GIRL LISTS
========================================================= */

.girls-list {
    display: flex;
    gap: 30px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.girls-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}


/* =========================================================
   PEOPLE
========================================================= */

.person {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.15s ease;
    cursor: pointer;
}

.person:hover {
    background: #f7f8fc;
}

.person div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.person input[type="checkbox"] {
    transform: scale(1.2);
}

.person input:checked + span {
    color: #2e7d32;
    font-weight: 600;
}


/* =========================================================
   GIRL GRID
========================================================= */

.girl-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 20px;
    margin: 15px 0;
}

.girl-list-grid .person {
    display: flex;
    align-items: center;
    padding: 8px;
}

.girls-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(6, auto);
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 20px;
}

.girl-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    font-size: 14px;
    margin: 0 0 10px;
}

.girl-item input {
    margin: 0;
    transform: scale(0.95);
}


/* =========================================================
   GIRL FORM / REGISTRATION
========================================================= */

.register-grid {
    width: 100%;
    display: grid;
    gap: 16px;
    align-items: stretch;
    font-size: 0.85rem;
}

.register-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.register-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.group-card {
    background: #ffffff;
    border: 1px solid #e7eaf3;
    border-radius: 12px;
    padding: 14px;
}

.group-card h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #1c2674;
}

.group-card:last-child {
    margin-bottom: 0;
}

.helper-role {
    font-size: 11px;
    color: #777;
}

.notes-box {
    resize: none;
    min-height: 90px;
    max-height: 90px;
    overflow-y: auto;
    width: 100%;
}


/* =========================================================
   GUIDES REGISTER
========================================================= */

.guides-register-group {
    width: 100%;
    margin-bottom: 30px;
}

.guides-register-title {
    margin: 15px 0;
}

.guide-group-letter {
    font-size: 0.8em;
    font-weight: 600;
    color: #777;
    margin-left: 3px;
}


/* =========================================================
   ROLE / PERMISSION INFORMATION
========================================================= */

.role-badge {
    font-size: 0.75rem;
    color: #161b4e;
    margin-left: 4px;
    font-weight: 600;
}

.permissions {
    font-size: .8rem;
    font-weight: 400;
    margin-bottom: 0;
    margin-top: 5px;
}

.permissions-icon {
    font-size: 1.2rem;
}


/* =========================================================
   PROMISE INFORMATION
========================================================= */

.promise-date {
    font-weight: 600;
    color: #1c2674;
}


/* =========================================================
   BIRTHDAY BADGES
========================================================= */

.birthday-card {
    margin-top: 15px;
    padding: 12px 15px;
}

.birthday-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.birthday-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.birthday-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    font-size: 12px;
    line-height: 1.2;
    border-bottom: 1px solid #eee;
}

.birthday-item:last-child {
    border-bottom: none;
}

.birthday-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.birthday-info strong {
    font-size: 12px;
    font-weight: 600;
}

.birthday-info span {
    font-size: 11px;
    color: #777;
}

.birthday-award {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 11px;
    cursor: pointer;
}

.birthday-award input {
    width: 13px;
    height: 13px;
    margin: 0;
}


/* =========================================================
   PREVIOUS GIRLGUIDING JOURNEY
========================================================= */

.history-card {
    margin-bottom: 50px;
    padding-bottom: 35px;
    border-bottom: 2px solid #f0f0f0;
}

.history-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.history-date {
    background: #e5007d;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
}

.history-box {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.history-box h4 {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5007d;
    color: #1d2951;
    font-size: 1rem;
}

.history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.history-list li {
    padding: 8px 0;
}

.history-list li + li {
    border-top: 1px solid #ececec;
}

.history-tick {
    display: inline-block;
    width: 20px;
    color: #e5007d;
    font-weight: bold;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 15px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .register-grid.cols-3,
    .register-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .girl-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .girls-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .girl-selector {
        grid-template-columns: 1fr;
    }

    .girl-nav-arrows {
        flex-direction: row;
        justify-content: space-between;
    }

    .register-grid.cols-3,
    .register-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .girl-list-grid {
        grid-template-columns: 1fr;
    }

    .girls-grid {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-template-rows: none;
    }

    .girl-switcher {
        gap: 8px;
    }

    .history-header {
        flex-direction: column;
    }
}

/* ==========================================================
   GIRL OVERVIEW FILTER
========================================================== */

#overview-filter {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.overview-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.overview-filter-form > div {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.overview-filter-form label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.overview-filter-form select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d7dbe7;
    font-size: 0.85rem;
    background: #fff;
    cursor: pointer;
}

.overview-filter-form select:hover {
    border-color: #1c2674;
}

/* =====================================================
   ADDITIONAL GIRLGUIDING ROLES
===================================================== */

.additional-roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.additional-role-card {
    padding: 18px;
    background: #f7f7fa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.additional-role-card .checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.additional-role-card input[type="checkbox"] {
    margin: 0;
}

.additional-role-card small {
    display: block;
    margin-top: 8px;
    color: #666;
}

.young-leader-units {
    display: none;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.young-leader-units strong {
    display: block;
    margin-bottom: 8px;
}

.young-leader-units .checkbox-inline {
    margin-bottom: 8px;
}

/* Tablet */
@media (max-width: 900px) {
    .additional-roles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .additional-roles-grid {
        grid-template-columns: 1fr;
    }
}