.smrb-form{max-width:700px;padding:20px;border:1px solid #ddd;background:#fff}
.smrb-form input,.smrb-form select,.smrb-form textarea{width:100%;padding:8px}
.smrb-form button,.smrb-filter-form button{padding:10px 18px;background:#2271b1;color:#fff;border:none;cursor:pointer}
.smrb-msg{padding:12px;border:1px solid;margin-bottom:15px}
.smrb-success{background:#e7f7ed;border-color:#7bc68b}
.smrb-error{background:#fdecec;border-color:#e09a9a}
.smrb-filter-form{margin-bottom:20px;display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.smrb-room-card{border:1px solid #ddd;margin-bottom:25px;background:#fff}
.smrb-room-header{background:#f5f5f5;padding:12px 15px;font-weight:600;font-size:16px}
.smrb-room-header span{font-weight:normal;color:#666}
.smrb-room-body{padding:15px}
.smrb-calendar-wrap{background:#fff;border:1px solid #ddd;padding:15px}
.smrb-calendar-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:12px}
.smrb-calendar-nav a{text-decoration:none}
.smrb-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.smrb-calendar-head div{background:#f5f5f5;padding:10px;font-weight:600;text-align:center}
.smrb-day{min-height:140px;border:1px solid #ddd;padding:6px;background:#fff}
.smrb-empty{background:#fafafa}
.smrb-day-number{font-weight:700;margin-bottom:6px}
.smrb-day-events{display:flex;flex-direction:column;gap:4px}
.smrb-event{padding:6px;border-radius:6px;font-size:12px;color:#fff;line-height:1.25;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.smrb-event-room{display:block;font-weight:600}
.smrb-event-time,.smrb-event-note{display:block;font-size:11px;opacity:.95}
@media (max-width:900px){.smrb-calendar-grid{grid-template-columns:repeat(2,1fr)}.smrb-calendar-head{display:none}}

.smrb-status-badge{display:inline-block;padding:4px 10px;border-radius:999px;font-weight:600;font-size:12px;line-height:1.2}
.smrb-badge-approved{background:#16a34a;color:#fff}
.smrb-badge-pending{background:#eab308;color:#111827}
.smrb-badge-rejected{background:#dc2626;color:#fff}
.smrb-badge-cancelled{background:#6b7280;color:#fff}
.smrb-badge-available{background:#2563eb;color:#fff}

.smrb-availability-legend,.smrb-calendar-room-legend{display:flex;gap:14px;flex-wrap:wrap;margin:0 0 16px}
.smrb-availability-legend span,.smrb-calendar-room-legend span{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.smrb-availability-legend i,.smrb-calendar-room-legend i{display:inline-block;width:12px;height:12px;border-radius:999px}

.smrb-uppercase{text-transform:uppercase}

.smrb-slot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.smrb-slot-card{border:1px solid #ddd;border-radius:14px;padding:14px;box-shadow:0 1px 2px rgba(0,0,0,.06);background:#fff;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.smrb-slot-card.smrb-badge-available{background:#eff6ff;border-color:#93c5fd;color:#1e3a8a}
.smrb-slot-card.smrb-badge-pending{background:#fef3c7;border-color:#fcd34d;color:#92400e}
.smrb-slot-card.smrb-badge-approved{background:#dcfce7;border-color:#86efac;color:#166534}
.smrb-slot-card.is-empty{cursor:pointer}
.smrb-slot-card.is-empty:hover,.smrb-slot-card.is-empty:focus{transform:translateY(-2px);box-shadow:0 8px 18px rgba(37,99,235,.12);outline:none}
.smrb-slot-card.smrb-picked{box-shadow:0 0 0 3px rgba(37,99,235,.25)}
.smrb-slot-time{font-weight:700;margin-bottom:10px}
.smrb-slot-status{display:inline-block;padding:5px 10px;border-radius:999px;font-weight:700;font-size:12px;background:rgba(255,255,255,.72)}


.smrb-filter-form > div{display:flex;flex-direction:column}
.smrb-filter-form label{display:block;margin-bottom:6px}
.smrb-filter-form select{
    min-width:180px;
    height:40px;
    padding:0 12px;
    border:1px solid #c3c4c7;
    border-radius:4px;
    background:#fff;
    line-height:1.2;
    box-sizing:border-box;
}
.smrb-filter-form button{
    height:40px;
    padding:0 18px;
    border-radius:4px;
    line-height:1;
    box-sizing:border-box;
}
.smrb-calendar-filter{gap:12px}
.smrb-calendar-filter br{display:none}

@media (max-width:600px){
    .smrb-filter-form{
        align-items:stretch;
    }
    .smrb-filter-form > div,
    .smrb-filter-form select,
    .smrb-filter-form button{
        width:100%;
    }
}


/* Revision 4: calendar filter UI fix */
.smrb-calendar-filter{
    display:flex;
    align-items:flex-end;
    gap:12px;
    margin-bottom:16px !important;
    flex-wrap:wrap;
}
.smrb-calendar-filter .smrb-filter-group,
.smrb-calendar-filter .smrb-filter-action{
    display:flex;
    flex-direction:column;
}
.smrb-calendar-filter .smrb-filter-group label{
    display:block;
    margin-bottom:6px;
    line-height:1.2;
}
.smrb-calendar-filter select{
    width:190px !important;
    min-width:190px;
    max-width:190px;
    height:40px !important;
    padding:0 12px !important;
    border:1px solid #c3c4c7;
    border-radius:4px;
    background:#fff;
    box-sizing:border-box;
    line-height:normal;
    vertical-align:middle;
}
.smrb-calendar-filter button{
    height:40px !important;
    min-height:40px;
    padding:0 18px !important;
    border:none;
    border-radius:4px;
    background:#2271b1;
    color:#fff;
    cursor:pointer;
    box-sizing:border-box;
    line-height:normal;
}
.smrb-calendar-filter button:hover{
    background:#135e96;
}
.smrb-calendar-filter br{
    display:none !important;
}
@media (max-width:600px){
    .smrb-calendar-filter{
        flex-direction:column;
        align-items:stretch;
    }
    .smrb-calendar-filter .smrb-filter-group,
    .smrb-calendar-filter .smrb-filter-action,
    .smrb-calendar-filter select,
    .smrb-calendar-filter button{
        width:100% !important;
        min-width:0;
        max-width:none;
    }
}
