/* Holds management tab styles */

.holds-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.holds-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #64748b;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease;
}

.holds-tab:hover {
    color: #475569;
}

.holds-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

.holds-tab-pane {
    display: none;
}

.holds-tab-pane.active {
    display: block;
}

.holds-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 16px;
}

.holds-table th,
.holds-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 0.9rem;
}

.holds-table th {
    background: #f5f7fa;
    font-weight: 600;
}

.holds-table tr.expired {
    opacity: 0.5;
}

.holds-table tr.converted {
    background: #f0fdf4;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: #dbeafe;
    color: #1e40af;
}

.status-converted {
    background: #d1fae5;
    color: #065f46;
}

.status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.status-released {
    background: #f3f4f6;
    color: #4b5563;
}

.status-waiting {
    background: #fef3c7;
    color: #92400e;
}

.status-notified {
    background: #dbeafe;
    color: #1e40af;
}

.status-cancelled {
    background: #f3f4f6;
    color: #4b5563;
}

.status-booked {
    background: #d1fae5;
    color: #065f46;
}

.hold-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* AD-UI-001 #3: a checkbox/radio must not inherit width:100% (which stretches
   the box and shoves its label far to the right). Keep it natural size, sitting
   right next to its text — e.g. the "Enabled" toggle in the New Rule modal. */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    padding: 0;
    margin: 0 6px 0 0;
    vertical-align: middle;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 12px;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.page-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.page-header > div {
    display: flex;
    gap: 10px;
    align-items: center;
}

#holdsSessionFilter {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}
