/* ── Calendar Container ─────────────────────────────── */
.calendars {
    width: 100% !important;
    background-color: #fff;
    color: #444;
    /*border: 3px solid #035B9B;*/
    border-radius: 8px;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 90%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.30);
}
.calendars-rtl { direction: rtl; }
.calendars-popup { z-index: 1000; }
.calendars-disable {
    position: absolute;
    z-index: 100;
    background-color: white;
    opacity: 0.5;
    filter: alpha(opacity=50);
}

/* ── Links & Buttons ────────────────────────────────── */
.calendars a {
    color: white;
    text-decoration: none;
}
.calendars a.calendars-disabled {
    color: #bbb;
    cursor: not-allowed;
}
.calendars button {
    margin: 0.25em;
    padding: 0.125em 0em;
    background-color: #e8f0fe;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* ── Nav & Control Bar ──────────────────────────────── */
.calendars-nav,
.calendars-ctrl {
    float: left;
    width: 100%;
    color: #fff;
    font-size: 80%;
    font-weight: bold;
    z-index: 99999;
    display: inline-block;
    position: relative;
}
.calendars-ctrl {
    background-color: #024a80;
}
.calendars-cmd { width: 30%; }
.calendars-cmd:hover { }
.calendars-ctrl .calendars-cmd:hover { background-color: #0472c0; }
.calendars-cmd-prevJump,
.calendars-cmd-nextJump { width: 8%; }
a.calendars-cmd { height: 1.5em; }
button.calendars-cmd { text-align: center; }

/* ── Command Positioning ────────────────────────────── */
.calendars-cmd-prev,
.calendars-cmd-prevJump,
.calendars-cmd-clear { float: left; padding-left: 2%; }
.calendars-cmd-current,
.calendars-cmd-today { float: left; width: 35%; text-align: center; }
.calendars-cmd-next,
.calendars-cmd-nextJump,
.calendars-cmd-close { float: right; padding-right: 2%; text-align: right; }

/* RTL — unchanged */
.calendars-rtl .calendars-cmd-prev,
.calendars-rtl .calendars-cmd-prevJump,
.calendars-rtl .calendars-cmd-clear { float: right; padding-left: 0%; padding-right: 2%; text-align: right; }
.calendars-rtl .calendars-cmd-current,
.calendars-rtl .calendars-cmd-today { float: right; }
.calendars-rtl .calendars-cmd-next,
.calendars-rtl .calendars-cmd-nextJump,
.calendars-rtl .calendars-cmd-close { float: left; padding-left: 2%; padding-right: 0%; text-align: left; }

/* ── Month Nav ──────────────────────────────────────── */
.calendars-month-nav {
    float: left;
    background-color: #f5f7fa;
    text-align: center;
}
.calendars-month-nav div { float: left; width: 12.5%; margin: 1%; padding: 1%; }
.calendars-month-nav span { color: #888; }

/* ── Month Layout ───────────────────────────────────── */
.calendars-month-row { clear: left; }
.calendars-month {
    float: left;
    width: 100%;
    text-align: center;
}

/* ── Month Header ───────────────────────────────────── */
.calendars-month-header,
.calendars-month-header select,
.calendars-month-header input {
    height: 2em;
    background-color: #035B9B;
border-radius: 4px;
    color: yellow;
    font-weight: bold;
    margin-top: -0.95em;
    letter-spacing: 0.04em;
    font-size: 18px;
text-transform:uppercase;
text-align:center;
}

/* Hide year dropdown — preserve original behaviour */
.calendars-month-header select:nth-child(2) { display: none; }
.calendars-nav a:nth-child(2) { display: none; }

.calendars-month-header select,
.calendars-month-header input {
    height: 2em;
    border: none;
    margin-top: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    -ms-appearance: none;
    appearance: none;
}
.calendars-month-header input {
    position: absolute;
    display: none;
}

/* ── Month Table ────────────────────────────────────── */
.calendars-month table {
    width: 100%;
    border-collapse: collapse;
}
.calendars-month thead {
    border-bottom: 2px solid #dde3ed;
}
.calendars-month th,
.calendars-month td {
    margin: 0;
    padding: 0;
    font-weight: normal;
    text-align: center;
}

/* ── Day Headers (Su Mo Tu etc) ─────────────────────── */
.calendars-month th {
    border: 1px solid #e8ecf4;
    padding: 4px 0;
}
.calendars-month th,
.calendars-month th a {
    background-color: #f0f4ff;
    color: #035B9B;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.03em;
}

/* ── Day Cells ──────────────────────────────────────── */
.calendars-month td {
    background-color: #e6e8e6;
    /*border: 3px solid #abb0ac;*/
    padding: 3px;
}
.calendars-month td.calendars-week {
    /*border: 2px solid #333;*/
}
.calendars-month td.calendars-week * {
    background-color: #f0f4ff;
    color: #035B9B;
    border: none;
}

/* ── Selectable Day Links ───────────────────────────── */
.calendars-month a {
    display: block;
    width: 100%;
    font-weight: bold;
    padding: 0.2em 0;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.calendars-month a:hover {
    background-color: #e8f0fe;
    color: #035B9B;
}

/* ── Non-selectable Day Spans ───────────────────────── */
.calendars-month span {
    display: block;
    width: 100%;
    padding: 0.125em 0;
}
.calendars-month td span { color: #bbb; }

/* ── Special Day States ─────────────────────────────── */
.calendars-month td .calendars-other-month {
    background-color: #e6e8e6;
}
.calendars-month td .calendars-weekend {
    /* background-color: #ddd; — preserved as commented out */
}
.calendars-month td .calendars-selected {
    background-color: #035B9B;
    color: #fff;
    border-radius: 4px;
}
.calendars-month th.calendars-week {
    background-color: #f0f4ff;
    color: #035B9B;
}

/* ── Highlight state ────────────────────────────────── */
/* .calendars-month td .calendars-highlight {
    background-color: #5191D1;
} — preserved as commented out */

/* ── Status Bar ─────────────────────────────────────── */
.calendars-status {
    clear: both;
    background-color: #f5f7fa;
    text-align: center;
    padding: 4px;
    font-size: 11px;
    color: #888;
    border-top: 1px solid #eef0f5;
    border-radius: 0 0 6px 6px;
}

/* ── Utilities ──────────────────────────────────────── */
.calendars-clear-fix { clear: both; }