:root {
    --CI-grey: #7B929A;  /* Replace with your actual grey */
    --CI-blue: #0C80D3;  /* Replace with your actual blue */
    --CI-black: #192D37; /* Replace with your actual black */
    --CI-BG: #f0f0f0;
}

html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--CI-BG) !important;
    font-size: 13pt;
    font-family: "Helvetica Neue", Arial, sans-serif;

}

h1{
    color:var(--CI-black);
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 20pt;
}

.row {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: space-evenly;
}

.column {
    display: flex;
    flex-direction: column;
}

.grow {
    flex-grow: 1;
}

.bottom {
    align-self: flex-end;
}

.btn {
    color: var(--CI-blue);
    background-color: white;
    border: 1px solid var(--CI-blue);
    font-weight: bold;
    transition: background-color 0.125s ease-in-out;
    border-radius: 8px;
}

.btn:hover {
    color: var(--CI-blue);
    background-color: rgb(191, 235, 255);
    border: 1px solid var(--CI-blue);
}

.btn-brand{
    font-weight: bold;
    color: var(--CI-blue);
    border: 1px solid var(--CI-blue);
}

.btn-brand:hover{
    background-color: #d3e2f8;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: rgb(59,130,246);
    color:white;
    transition: background-color 0.125s ease-in-out;
}

.btn-primary:hover{
    background-color: rgb(48, 104, 194);
    color:white;
}

.btn-delete.icon {
    background: none;
    border: none;
    color: red;
    font-size: 1.2em;
    cursor: pointer;
}

.btn-secondary{
    border:1px solid var(--CI-grey);
    color: var(--CI-grey);
}
.btn-secondary:hover{
    border:1px solid var(--CI-grey);
    background-color: var(--CI-grey);
    color:white;
}

.btn-success:hover{
    background: var(--CI-blue);
    color:white;
}

.btn-danger {
    /* background: none;
    border: none; */
    color: white;
    background-color: red;
    cursor: pointer;
    border: 1px solid red;
}

.btn-danger:hover {
    color: white;
    background-color: rgb(255, 91, 25);
    cursor: pointer;
    border: 1px solid red;
}

.btn-desk{
    border: 1px solid #c3c3c3;
    /* color:  var(--CI-blue); */
    color: var(--CI-grey);
    font-size: 10pt;
}

.btn-remote{
    border: 1px solid #c3c3c3;
    /* color:  orange; */
    color: var(--CI-grey);
    font-size: 10pt;
}

.btn-absent{
    border: 1px solid #c3c3c3;
    /* color:  red; */
    color: var(--CI-grey);
    font-size: 10pt;
}

.btn-business-travel{
    border: 1px solid #c3c3c3;
    color: var(--CI-grey);
    font-size: 10pt;
}

.modal-content{
    /* background: white; */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ── Booking modal: inline error banner ────────────────────────────── */

.booking-error-banner {
    background: rgba(220, 53, 69, 0.07);
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-left: 3px solid #dc3545;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: #9b1c1c;
}

/* ── Quick-booking page-level error (overview / rooms) ─────────────── */

.booking-page-error {
    background: rgba(220, 53, 69, 0.07);
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-left: 3px solid #dc3545;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #9b1c1c;
}

/* ── Compact booking modal (Design H) ─────────────────────────────── */

.mh-dialog { max-width: 560px; }

.mh-panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    pointer-events: auto;
}

.mh-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.mh-title { font-weight: 600; font-size: 1rem; flex: 1; }

.mh-date-label { font-size: 0.82rem; color: #666; white-space: nowrap; }

.mh-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #888;
    padding: 0 2px;
    line-height: 1;
}

.mh-loc-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.mh-loc-col label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 4px;
}

.mh-loc-col select {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.82rem;
    background: #fff;
}

.mh-desk-area {
    padding: 12px 16px;
    min-height: 80px;
}

.mh-desk-area-label {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 8px;
}

.desk-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.desk-btn {
    position: relative;
    min-width: 72px;
    min-height: 60px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: border-color 0.12s, background 0.12s;
}

.desk-btn:hover { border-color: #0d6efd; background: #e8f0fe; }

.desk-btn--selected {
    border-color: #0d6efd;
    background: #ddeeff;
    color: #0a3a6b;
    font-weight: 600;
}

.desk-heart {
    position: absolute;
    top: 3px;
    right: 5px;
    font-size: 0.72rem;
    color: #dc3545;
    line-height: 1;
}

.desk-name { font-size: 0.75rem; text-align: center; line-height: 1.2; }

.desk-icons { font-size: 0.92rem; }

.mh-desk-info {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #555;
    min-height: 20px;
}

.mh-footer {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    gap: 8px;
}

.mh-heart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #bbb;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

.mh-heart-btn.mh-heart-active { color: #dc3545; }

.mh-footer-right { margin-left: auto; display: flex; gap: 8px; }

/* ── Booking form: label weight matches design guide ───────────────── */

#bookingFormContent label {
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 4px;
}


.mobile-only{
    display: none;
}

@media only screen and (max-width: 768px) {
    .card { width: 100%; margin: 0px; }
    .table { width: 100%; }
    .mobile-hidden { display: none; }
    .mobile-only { display: block; }

    /* Prevent horizontal page overflow on all pages */
    .main { overflow-x: hidden; }

    /* Touch-friendly tap targets */
    input, select, textarea, button { min-height: 36px; }

    /* iOS: font-size 16px prevents auto-zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="date"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ── User-info popup card ─────────────────────────────────────────────── */

.uinfo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 4px 12px;
    text-align: center;
}

.uinfo-avatar-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--CI-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 4px;
}

.uinfo-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.uinfo-avatar-initials {
    color: #fff;
    font-weight: bold;
    font-size: 1.6rem;
    line-height: 1;
    user-select: none;
}

.uinfo-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--CI-black);
    line-height: 1.2;
}

.uinfo-username {
    font-size: 0.82rem;
    color: var(--CI-grey);
}

.uinfo-email {
    font-size: 0.78rem;
    color: var(--CI-grey);
    word-break: break-all;
}

.uinfo-roles {
    list-style: none;
    margin: 6px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid #eee;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.uinfo-role {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #333;
}

.uinfo-role-icon { font-size: 1.15em; line-height: 1; }
.uinfo-role-name { font-weight: 500; }

.uinfo-location {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    width: 100%;
    font-size: 0.82rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.uinfo-map-link {
    color: var(--CI-blue);
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}
.uinfo-map-link:hover { color: var(--CI-blue-dark, #0a60a0); }