MIF_E31232103/public/assets/css/admin-rental-bookings.css

593 lines
10 KiB
CSS

.bookings-page {
color: #1f2937;
}
.bookings-breadcrumb {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.85rem;
color: #6b7280;
margin-bottom: 12px;
}
.bookings-breadcrumb strong {
color: #1f2937;
font-weight: 600;
}
.bookings-header-card,
.bookings-toolbar-card,
.bookings-table-card,
.bookings-empty-state {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 14px;
}
.bookings-header-card {
padding: 18px 20px;
margin-bottom: 14px;
}
.bookings-header-card h2 {
margin: 0;
font-family: "Montserrat", sans-serif;
font-weight: 700;
color: #1f2937;
}
.bookings-header-card p {
margin: 8px 0 0;
color: #6b7280;
}
.bookings-header-card small {
display: inline-block;
margin-top: 8px;
color: #6b7280;
font-weight: 500;
}
.bookings-toolbar-card {
padding: 14px;
margin-bottom: 14px;
background: #eef4ff;
}
.bookings-toolbar-form {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
gap: 10px;
align-items: center;
}
.bookings-input-group {
display: flex;
align-items: center;
gap: 8px;
min-height: 42px;
border: 1px solid #e5e7eb;
border-radius: 10px;
background: #ffffff;
padding: 0 12px;
}
.bookings-input-group i {
color: #6b7280;
}
.bookings-input-group input,
.bookings-input-group select {
width: 100%;
border: 0;
outline: 0;
background: transparent;
font-family: "Poppins", sans-serif;
color: #1f2937;
}
.bookings-filter-btn,
.bookings-reset-btn {
min-height: 42px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
border-radius: 10px;
padding: 0 14px;
font-weight: 600;
text-decoration: none;
border: 1px solid transparent;
}
.bookings-filter-btn {
background: #6c8cf5;
color: #ffffff;
cursor: pointer;
}
.bookings-filter-btn:hover {
background: #5a79e6;
}
.bookings-reset-btn {
background: #ffffff;
color: #1f2937;
border-color: #d1d5db;
}
.bookings-reset-btn:hover {
background: #f9fafb;
}
.bookings-table-wrapper {
overflow-x: auto;
}
.bookings-table {
width: 100%;
min-width: 1600px;
border-collapse: collapse;
}
.bookings-table th {
text-align: left;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.04em;
color: #6b7280;
background: #f8fafc;
border-bottom: 1px solid #e5e7eb;
padding: 12px;
white-space: nowrap;
}
.bookings-table td {
border-bottom: 1px solid #eef2f7;
padding: 12px;
vertical-align: middle;
font-size: 0.91rem;
color: #1f2937;
}
.bookings-table tr:hover td {
background: #f9fbff;
}
.bookings-code {
font-weight: 600;
font-family: "Montserrat", sans-serif;
}
.bookings-separator {
margin: 0 6px;
color: #6b7280;
font-size: 0.85rem;
}
.bookings-price {
font-weight: 600;
}
.bookings-status {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 96px;
padding: 5px 10px;
border-radius: 999px;
font-size: 0.78rem;
font-weight: 600;
}
.bookings-status.booking.is-waiting-payment {
background: #f3f4f6;
color: #4b5563;
}
.bookings-status.booking.is-waiting-verification {
background: #dbeafe;
color: #1d4ed8;
}
.bookings-status.booking.is-confirmed {
background: #e9d5ff;
color: #6b21a8;
}
.bookings-status.booking.is-ongoing {
background: #ffedd5;
color: #9a3412;
}
.bookings-status.booking.is-completed {
background: #dcfce7;
color: #166534;
}
.bookings-status.booking.is-cancelled {
background: #fee2e2;
color: #b91c1c;
}
.bookings-status.booking.is-default {
background: #f3f4f6;
color: #4b5563;
}
.bookings-status.payment.is-unpaid {
background: #f3f4f6;
color: #4b5563;
}
.bookings-status.payment.is-uploaded {
background: #dbeafe;
color: #1d4ed8;
}
.bookings-status.payment.is-verified {
background: #dcfce7;
color: #166534;
}
.bookings-status.payment.is-rejected {
background: #fef2f2;
color: #991b1b;
}
.bookings-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.bookings-actions form {
margin: 0;
}
.bookings-action-btn {
border: 1px solid #dbe1eb;
background: #ffffff;
color: #1f2937;
border-radius: 8px;
padding: 7px 10px;
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.8rem;
font-weight: 600;
text-decoration: none;
cursor: pointer;
}
.bookings-action-btn.is-detail:hover {
background: #eef4ff;
border-color: #a8c5ff;
color: #2c4ab8;
}
.bookings-action-btn.is-ongoing:hover {
background: #fff7ed;
border-color: #fdba74;
color: #9a3412;
}
.bookings-action-btn.is-completed:hover {
background: #ecfdf5;
border-color: #a7f3d0;
color: #065f46;
}
.bookings-action-btn.is-cancel:hover {
background: #fef2f2;
border-color: #fecaca;
color: #991b1b;
}
.bookings-action-btn.is-disabled {
cursor: not-allowed;
opacity: 0.65;
}
.bookings-pagination-wrap {
margin-top: 14px;
}
.bookings-empty-state {
padding: 46px 24px;
text-align: center;
}
.bookings-empty-icon {
width: 70px;
height: 70px;
border-radius: 50%;
margin: 0 auto 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.75rem;
background: #eef4ff;
color: #6c8cf5;
}
.bookings-empty-state h3 {
margin: 0;
font-family: "Montserrat", sans-serif;
}
.bookings-empty-state p {
margin: 10px 0 0;
color: #6b7280;
}
/* Detail booking page */
.bookings-detail-page {
display: grid;
gap: 14px;
}
.bookings-detail-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 18px;
}
.bookings-detail-header h2 {
margin: 0;
}
.bookings-detail-header p {
max-width: 720px;
}
.bookings-detail-badges {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.bookings-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 36px;
padding: 0 12px;
border-radius: 999px;
background: #eef4ff;
color: #2c4ab8;
font-size: 0.82rem;
font-weight: 700;
}
.bookings-badge.is-soft {
background: #f8fafc;
color: #334155;
}
.bookings-detail-grid {
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 14px;
}
.bookings-detail-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 14px;
padding: 18px;
}
.bookings-detail-card h3,
.bookings-detail-card h4 {
margin: 0;
font-family: "Montserrat", sans-serif;
}
.bookings-detail-list {
display: grid;
gap: 12px;
margin: 14px 0 0;
}
.bookings-detail-list div {
display: grid;
grid-template-columns: 140px 1fr;
gap: 12px;
padding-bottom: 12px;
border-bottom: 1px dashed #e5e7eb;
}
.bookings-detail-list div:last-child {
padding-bottom: 0;
border-bottom: 0;
}
.bookings-detail-list dt {
color: #6b7280;
font-weight: 600;
}
.bookings-detail-list dd {
margin: 0;
color: #1f2937;
font-weight: 500;
}
.bookings-detail-list dd span {
color: #6b7280;
font-size: 0.85rem;
font-weight: 400;
}
.bookings-section-divider {
height: 1px;
background: #e5e7eb;
margin: 16px 0;
}
.bookings-timeline {
display: grid;
gap: 8px;
margin-top: 14px;
}
.bookings-timeline-item {
padding: 10px 12px;
border-radius: 10px;
background: #f8fafc;
color: #64748b;
font-size: 0.9rem;
font-weight: 500;
}
.bookings-timeline-item.is-active {
background: #ecfdf5;
color: #166534;
}
.bookings-proof-card {
margin-top: 16px;
padding: 14px;
border-radius: 12px;
border: 1px solid #e5e7eb;
background: #f8fafc;
}
.bookings-proof-label {
margin: 0 0 10px;
color: #6b7280;
font-weight: 600;
}
.bookings-proof-card img {
width: 100%;
max-height: 420px;
object-fit: contain;
border-radius: 10px;
border: 1px solid #e5e7eb;
background: #ffffff;
}
.bookings-proof-link {
display: inline-flex;
align-items: center;
min-height: 42px;
padding: 0 14px;
border-radius: 10px;
background: #eef4ff;
color: #2c4ab8;
text-decoration: none;
font-weight: 600;
}
.bookings-action-stack,
.bookings-inline-form {
display: grid;
gap: 10px;
margin-top: 14px;
}
.bookings-primary-action,
.bookings-secondary-action {
width: 100%;
min-height: 44px;
border: 0;
border-radius: 10px;
padding: 0 14px;
font-family: "Montserrat", sans-serif;
font-weight: 700;
cursor: pointer;
}
.bookings-primary-action {
background: #6c8cf5;
color: #ffffff;
}
.bookings-primary-action:hover {
background: #5a79e6;
}
.bookings-primary-action.is-ongoing {
background: #f59e0b;
}
.bookings-primary-action.is-completed {
background: #16a34a;
}
.bookings-secondary-action {
background: #ffffff;
border: 1px solid #dbe1eb;
color: #1f2937;
}
.bookings-secondary-action.is-cancel {
color: #b91c1c;
border-color: #fecaca;
}
.bookings-cancel-form {
display: grid;
gap: 8px;
margin-top: 14px;
}
.bookings-cancel-form label {
font-weight: 600;
color: #374151;
}
.bookings-cancel-form textarea {
width: 100%;
resize: vertical;
min-height: 92px;
border: 1px solid #dbe1eb;
border-radius: 10px;
padding: 10px 12px;
font-family: "Poppins", sans-serif;
}
.bookings-cancel-form small {
color: #dc2626;
}
.bookings-success-note {
margin-top: 14px;
padding: 12px 14px;
border-radius: 10px;
background: #ecfeff;
color: #155e75;
}
@media (max-width: 980px) {
.bookings-detail-header,
.bookings-detail-grid {
grid-template-columns: 1fr;
}
.bookings-detail-header {
flex-direction: column;
}
.bookings-detail-list div {
grid-template-columns: 1fr;
gap: 4px;
}
}
@media (max-width: 720px) {
.bookings-header-card,
.bookings-toolbar-card,
.bookings-table-card,
.bookings-empty-state,
.bookings-detail-card {
border-radius: 12px;
}
}