Files
wp-bnb/assets/css/admin.css
magdev 0bf7f19ac5
All checks were successful
Create Release Package / build-release (push) Successful in 1m1s
Improve calendar room column with building name display (v0.11.2)
- Widen room column to 200px with proper left alignment
- Display building name as second row under room name
- Change table-layout from fixed to auto for flexible columns

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 23:31:45 +01:00

2096 lines
33 KiB
CSS

/**
* WP BnB Admin Styles
*
* @package Magdev\WpBnb
*/
/* ============================================
Dashboard
============================================ */
.wp-bnb-dashboard-grid {
margin-top: 20px;
}
.wp-bnb-dashboard-row {
display: grid;
gap: 20px;
margin-bottom: 20px;
}
/* Stats Row - 4 columns */
.wp-bnb-stats-row {
grid-template-columns: repeat(4, 1fr);
}
/* Charts Row - 2 columns */
.wp-bnb-charts-row {
grid-template-columns: repeat(2, 1fr);
}
/* Activity Row - 3 columns */
.wp-bnb-activity-row {
grid-template-columns: 1fr 1.5fr 1fr;
}
/* Responsive adjustments */
@media screen and (max-width: 1400px) {
.wp-bnb-stats-row {
grid-template-columns: repeat(2, 1fr);
}
.wp-bnb-activity-row {
grid-template-columns: 1fr 1fr;
}
.wp-bnb-activity-row .wp-bnb-quick-actions {
grid-column: span 2;
}
}
@media screen and (max-width: 782px) {
.wp-bnb-stats-row,
.wp-bnb-charts-row,
.wp-bnb-activity-row {
grid-template-columns: 1fr;
}
.wp-bnb-activity-row .wp-bnb-quick-actions {
grid-column: span 1;
}
}
/* Stat Cards */
.wp-bnb-stat-card {
background: #fff;
border: 1px solid #c3c4c7;
border-radius: 8px;
padding: 20px;
display: flex;
align-items: flex-start;
gap: 15px;
transition: box-shadow 0.2s ease;
}
.wp-bnb-stat-card:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.wp-bnb-stat-icon {
width: 48px;
height: 48px;
border-radius: 12px;
background: linear-gradient(135deg, #2271b1, #135e96);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.wp-bnb-stat-icon.revenue {
background: linear-gradient(135deg, #00a32a, #007017);
}
.wp-bnb-stat-icon.bookings {
background: linear-gradient(135deg, #9b59b6, #8e44ad);
}
.wp-bnb-stat-icon.guests {
background: linear-gradient(135deg, #e67e22, #d35400);
}
.wp-bnb-stat-icon .dashicons {
color: #fff;
font-size: 24px;
width: 24px;
height: 24px;
}
.wp-bnb-stat-content {
flex: 1;
min-width: 0;
}
.wp-bnb-stat-label {
font-size: 13px;
color: #50575e;
margin-bottom: 4px;
}
.wp-bnb-stat-value {
font-size: 28px;
font-weight: 600;
color: #1d2327;
line-height: 1.2;
margin-bottom: 4px;
}
.wp-bnb-stat-meta {
font-size: 12px;
color: #787c82;
}
.wp-bnb-stat-change {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 12px;
margin-top: 8px;
padding: 2px 8px;
border-radius: 4px;
}
.wp-bnb-stat-change.positive {
background: #d4edda;
color: #00a32a;
}
.wp-bnb-stat-change.negative {
background: #f8d7da;
color: #d63638;
}
.wp-bnb-stat-change .dashicons {
font-size: 14px;
width: 14px;
height: 14px;
}
/* Widgets */
.wp-bnb-widget {
background: #fff;
border: 1px solid #c3c4c7;
border-radius: 8px;
overflow: hidden;
}
.wp-bnb-widget-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px 20px;
background: #f6f7f7;
border-bottom: 1px solid #c3c4c7;
}
.wp-bnb-widget-header h3 {
margin: 0;
font-size: 14px;
font-weight: 600;
color: #1d2327;
}
.wp-bnb-widget-header .wp-bnb-widget-date {
font-size: 12px;
color: #787c82;
}
.wp-bnb-widget-header .wp-bnb-view-all {
font-size: 12px;
text-decoration: none;
}
.wp-bnb-widget-content {
padding: 20px;
}
/* Chart Widgets */
.wp-bnb-chart-widget .wp-bnb-widget-content {
padding: 15px;
}
/* Empty State */
.wp-bnb-empty-state {
text-align: center;
padding: 30px 20px;
color: #787c82;
}
.wp-bnb-empty-state .dashicons {
font-size: 48px;
width: 48px;
height: 48px;
color: #c3c4c7;
margin-bottom: 10px;
}
.wp-bnb-empty-state p {
margin: 0;
font-size: 13px;
}
/* Activity Section */
.wp-bnb-activity-section {
margin-bottom: 20px;
}
.wp-bnb-activity-section:last-child {
margin-bottom: 0;
}
.wp-bnb-activity-section h4 {
display: flex;
align-items: center;
gap: 8px;
margin: 0 0 12px;
padding-bottom: 8px;
border-bottom: 1px solid #f0f0f1;
font-size: 13px;
font-weight: 600;
color: #1d2327;
}
.wp-bnb-activity-section h4 .dashicons {
font-size: 16px;
width: 16px;
height: 16px;
color: #2271b1;
}
.wp-bnb-activity-section h4 .count {
background: #2271b1;
color: #fff;
font-size: 11px;
font-weight: 600;
padding: 2px 6px;
border-radius: 10px;
margin-left: auto;
}
.wp-bnb-activity-list {
list-style: none;
margin: 0;
padding: 0;
}
.wp-bnb-activity-list li {
margin-bottom: 8px;
}
.wp-bnb-activity-list li:last-child {
margin-bottom: 0;
}
.wp-bnb-activity-list a {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
background: #f6f7f7;
border-radius: 4px;
text-decoration: none;
transition: background 0.15s ease;
}
.wp-bnb-activity-list a:hover {
background: #dcdcde;
}
.wp-bnb-activity-list strong {
color: #1d2327;
font-weight: 600;
}
.wp-bnb-activity-list .room {
font-size: 12px;
color: #787c82;
}
/* Upcoming Bookings Table */
.wp-bnb-upcoming-table {
width: 100%;
border-collapse: collapse;
}
.wp-bnb-upcoming-table th {
text-align: left;
padding: 8px 12px;
font-size: 12px;
font-weight: 600;
color: #50575e;
background: #f6f7f7;
border-bottom: 1px solid #c3c4c7;
}
.wp-bnb-upcoming-table td {
padding: 10px 12px;
font-size: 13px;
border-bottom: 1px solid #f0f0f1;
vertical-align: middle;
}
.wp-bnb-upcoming-table tr:last-child td {
border-bottom: none;
}
.wp-bnb-upcoming-table a {
color: #2271b1;
text-decoration: none;
font-weight: 500;
}
.wp-bnb-upcoming-table a:hover {
color: #135e96;
text-decoration: underline;
}
.wp-bnb-upcoming-table .wp-bnb-status-badge {
font-size: 10px;
padding: 3px 8px;
}
/* Quick Actions */
.wp-bnb-quick-actions .wp-bnb-widget-content {
padding: 15px;
}
.wp-bnb-actions-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
.wp-bnb-action-btn {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
padding: 20px 10px;
background: #f6f7f7;
border: 1px solid #c3c4c7;
border-radius: 6px;
text-decoration: none;
color: #1d2327;
transition: all 0.2s ease;
}
.wp-bnb-action-btn:hover {
background: #2271b1;
border-color: #2271b1;
color: #fff;
}
.wp-bnb-action-btn .dashicons {
font-size: 24px;
width: 24px;
height: 24px;
}
.wp-bnb-action-btn span:last-child {
font-size: 12px;
font-weight: 500;
text-align: center;
}
/* Legacy Dashboard (backward compatibility) */
.wp-bnb-dashboard {
background: #fff;
border: 1px solid #c3c4c7;
border-radius: 4px;
padding: 20px;
margin-top: 20px;
}
/* License Status Badge */
.wp-bnb-license-status {
display: inline-flex;
align-items: center;
gap: 5px;
font-weight: 600;
}
.wp-bnb-license-status .dashicons {
font-size: 18px;
width: 18px;
height: 18px;
}
/* License Message */
#wp-bnb-license-message {
margin: 15px 0;
padding: 12px 15px;
border-radius: 4px;
}
#wp-bnb-license-message.success {
background: #d4edda;
border: 1px solid #c3e6cb;
color: #155724;
}
#wp-bnb-license-message.error {
background: #f8d7da;
border: 1px solid #f5c6cb;
color: #721c24;
}
/* Spinner */
#wp-bnb-license-spinner {
float: none;
margin-left: 10px;
}
/* Settings Tabs */
.nav-tab-wrapper {
margin-bottom: 0;
border-bottom: 1px solid #c3c4c7;
}
.tab-content {
background: #fff;
border: 1px solid #c3c4c7;
border-top: none;
padding: 20px;
}
/* Settings Subtabs */
.wp-bnb-subtabs {
display: flex;
gap: 0;
margin-bottom: 20px;
border-bottom: 1px solid #c3c4c7;
}
.wp-bnb-subtab {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 10px 16px;
text-decoration: none;
color: #50575e;
background: #f6f7f7;
border: 1px solid #c3c4c7;
border-bottom: none;
margin-bottom: -1px;
margin-right: -1px;
font-size: 13px;
transition: background 0.15s ease, color 0.15s ease;
}
.wp-bnb-subtab:first-child {
border-top-left-radius: 4px;
}
.wp-bnb-subtab:last-child {
border-top-right-radius: 4px;
margin-right: 0;
}
.wp-bnb-subtab:hover {
background: #fff;
color: #135e96;
}
.wp-bnb-subtab.active {
background: #fff;
color: #1d2327;
font-weight: 600;
border-bottom-color: #fff;
}
.wp-bnb-subtab .dashicons {
font-size: 16px;
width: 16px;
height: 16px;
}
/* API Method Badges */
.wp-bnb-method {
display: inline-block;
padding: 2px 8px;
border-radius: 3px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.wp-bnb-method.get {
background: #e7f5e7;
color: #1e7e1e;
}
.wp-bnb-method.post {
background: #e7f0f5;
color: #1e5f7e;
}
.wp-bnb-method.patch {
background: #f5f0e7;
color: #7e5f1e;
}
.wp-bnb-method.delete {
background: #f5e7e7;
color: #7e1e1e;
}
/* Form Tables */
.form-table th {
width: 200px;
}
/* Submit Buttons */
.submit {
display: flex;
align-items: center;
gap: 10px;
}
.submit .button {
margin: 0;
}
/* Room Gallery */
.bnb-gallery-container {
padding: 10px 0;
}
.bnb-gallery-images {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 15px;
}
.bnb-gallery-image {
position: relative;
width: 100px;
height: 100px;
border: 1px solid #c3c4c7;
border-radius: 4px;
overflow: hidden;
cursor: move;
}
.bnb-gallery-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.bnb-gallery-image .bnb-remove-image {
position: absolute;
top: 2px;
right: 2px;
width: 20px;
height: 20px;
padding: 0;
border: none;
border-radius: 50%;
background: rgba(0, 0, 0, 0.7);
color: #fff;
font-size: 14px;
line-height: 18px;
text-align: center;
cursor: pointer;
opacity: 0;
transition: opacity 0.2s;
}
.bnb-gallery-image:hover .bnb-remove-image {
opacity: 1;
}
.bnb-gallery-image .bnb-remove-image:hover {
background: #d63638;
}
/* Status Badge */
.bnb-status-badge {
display: inline-block;
padding: 3px 8px;
border-radius: 3px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
}
.bnb-status-pending {
background: #fff8e5;
color: #9d6a00;
}
.bnb-status-confirmed {
background: #e6f4ea;
color: #0a6e31;
}
.bnb-status-checked_in {
background: #e3f2fd;
color: #1565c0;
}
.bnb-status-checked_out {
background: #f5f5f5;
color: #616161;
}
.bnb-status-cancelled {
background: #ffeaea;
color: #d63638;
}
/* Room Details Meta Box */
#bnb_room_details .form-table td label {
display: inline-block;
min-width: 100px;
}
/* Building Details Meta Box */
#bnb_building_details p {
margin: 10px 0;
}
#bnb_building_details label {
display: block;
margin-bottom: 5px;
font-weight: 600;
}
#bnb_building_details input {
width: 100%;
}
/* Admin Columns */
.column-city,
.column-country,
.column-room_number,
.column-capacity,
.column-status {
width: 100px;
}
.column-building {
width: 150px;
}
.column-rooms {
width: 80px;
}
/* Dashicons in columns */
.column-capacity .dashicons {
color: #646970;
font-size: 16px;
vertical-align: middle;
margin-right: 3px;
}
/* Price column */
.column-price {
width: 120px;
}
.bnb-no-price {
color: #646970;
font-style: italic;
}
/* Pricing Meta Box */
.bnb-pricing-table h4 {
margin: 0 0 10px 0;
padding: 0;
font-size: 13px;
font-weight: 600;
color: #1d2327;
}
.bnb-pricing-table tr:first-child th,
.bnb-pricing-table tr:first-child td {
padding-top: 0;
}
.bnb-price-input-wrapper {
display: flex;
align-items: center;
gap: 8px;
}
.bnb-price-input-wrapper input {
width: 100px !important;
}
.bnb-price-unit {
color: #646970;
font-size: 13px;
}
/* Seasons Page */
.bnb-seasons-description {
background: #fff;
border: 1px solid #c3c4c7;
border-left: 4px solid #72aee6;
padding: 12px 15px;
margin: 20px 0;
}
.bnb-seasons-description p {
margin: 5px 0;
}
.bnb-no-seasons {
background: #fff;
border: 1px solid #c3c4c7;
border-radius: 4px;
padding: 40px;
text-align: center;
}
.bnb-no-seasons p {
margin: 15px 0;
}
.bnb-no-seasons .button {
margin: 0 5px;
}
/* Season List Columns */
.column-name {
width: 25%;
}
.column-dates {
width: 20%;
}
.column-modifier {
width: 20%;
}
.column-priority {
width: 10%;
}
.column-status {
width: 10%;
}
.bnb-modifier-visual {
font-size: 12px;
margin-left: 5px;
}
.bnb-status-active {
display: inline-flex;
align-items: center;
color: #00a32a;
font-weight: 600;
}
.bnb-status-active::before {
content: "\f147";
font-family: dashicons;
margin-right: 3px;
}
.bnb-status-inactive {
display: inline-flex;
align-items: center;
color: #646970;
}
.bnb-status-inactive::before {
content: "\f460";
font-family: dashicons;
margin-right: 3px;
}
/* Season Form */
.bnb-season-form {
max-width: 800px;
}
.bnb-season-form .form-table th {
width: 180px;
}
.bnb-season-form input[type="text"].small-text {
width: 80px;
}
/* ==========================================================================
Booking System Styles
========================================================================== */
/* Booking Info Display */
.bnb-booking-info {
padding: 8px 12px;
background: #f6f7f7;
border: 1px solid #c3c4c7;
border-radius: 4px;
font-size: 13px;
}
.bnb-booking-info.bnb-checking {
color: #646970;
font-style: italic;
}
.bnb-booking-info.bnb-available {
background: #d4edda;
border-color: #c3e6cb;
color: #155724;
}
.bnb-booking-info.bnb-not-available {
background: #f8d7da;
border-color: #f5c6cb;
color: #721c24;
}
.bnb-booking-info .dashicons {
font-size: 16px;
width: 16px;
height: 16px;
vertical-align: text-bottom;
margin-right: 3px;
}
/* Booking Price Display */
.bnb-booking-price {
padding: 12px 15px;
background: #f0f6fc;
border: 1px solid #c3c4c7;
border-radius: 4px;
margin-bottom: 10px;
}
.bnb-booking-price strong {
font-size: 18px;
color: #135e96;
}
/* Price Breakdown */
.bnb-booking-breakdown,
.bnb-breakdown-list {
margin: 0;
padding: 0;
list-style: none;
}
.bnb-breakdown-list li {
padding: 5px 0;
border-bottom: 1px dotted #c3c4c7;
}
.bnb-breakdown-list li:last-child {
border-bottom: none;
font-weight: 600;
}
/* Price Override Indicator */
.bnb-price-override {
color: #dba617;
font-weight: bold;
cursor: help;
}
/* Status Preview */
.bnb-status-preview {
margin-top: 10px;
}
.bnb-status-timestamp {
font-size: 11px;
color: #646970;
margin-top: 5px;
}
/* Required Field Indicator */
.required {
color: #d63638;
}
/* Booking Admin Columns */
.column-room,
.column-guest,
.column-dates,
.column-nights,
.column-price {
width: 120px;
}
.column-room small,
.column-guest small,
.column-dates small {
display: block;
color: #646970;
font-size: 11px;
}
/* ==========================================================================
Calendar Page Styles
========================================================================== */
/* Calendar Container */
.bnb-calendar-container {
background: #fff;
border: 1px solid #c3c4c7;
border-radius: 4px;
margin-top: 20px;
}
/* Calendar Header */
.bnb-calendar-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background: #f6f7f7;
border-bottom: 1px solid #c3c4c7;
}
.bnb-calendar-header h2 {
margin: 0;
font-size: 18px;
}
.bnb-calendar-nav {
display: flex;
gap: 5px;
}
/* Calendar Filters */
.bnb-calendar-filters {
display: flex;
gap: 15px;
padding: 15px 20px;
border-bottom: 1px solid #c3c4c7;
background: #f9f9f9;
}
.bnb-calendar-filters label {
display: flex;
align-items: center;
gap: 8px;
}
.bnb-calendar-filters select {
min-width: 200px;
}
/* Calendar Grid */
.bnb-calendar-grid {
padding: 20px;
overflow-x: auto;
}
.bnb-calendar-table {
width: 100%;
border-collapse: collapse;
table-layout: auto;
}
.bnb-calendar-table th,
.bnb-calendar-table td {
border: 1px solid #c3c4c7;
text-align: center;
padding: 0;
min-width: 35px;
}
.bnb-calendar-table th {
background: #f6f7f7;
font-weight: 600;
padding: 8px 4px;
font-size: 11px;
}
.bnb-calendar-table th.room-header {
text-align: left;
padding-left: 10px;
width: 200px;
min-width: 200px;
}
/* Calendar Day Cell */
.bnb-calendar-day {
height: 35px;
vertical-align: middle;
position: relative;
cursor: default;
}
.bnb-calendar-day.past {
background: #f0f0f1;
color: #a7aaad;
}
.bnb-calendar-day.today {
background: #f0f6fc;
font-weight: 600;
}
.bnb-calendar-day.today::after {
content: "";
position: absolute;
bottom: 2px;
left: 50%;
transform: translateX(-50%);
width: 4px;
height: 4px;
background: #2271b1;
border-radius: 50%;
}
.bnb-calendar-day.available {
background: #d4edda;
}
.bnb-calendar-day.booked {
background: #d63638;
color: #fff;
cursor: pointer;
}
.bnb-calendar-day.booked.booking-hover {
background: #a02424;
}
.bnb-calendar-day.booked-start {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.bnb-calendar-day.booked-end {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
/* Booking Status Colors in Calendar */
.bnb-calendar-day.status-pending {
background: #dba617;
}
.bnb-calendar-day.status-confirmed {
background: #00a32a;
}
.bnb-calendar-day.status-checked_in {
background: #72aee6;
}
/* Room Row in Multi-Room Calendar */
.bnb-calendar-table .bnb-calendar-room {
font-weight: 600;
text-align: left;
padding: 8px 10px;
background: #f6f7f7;
min-width: 200px;
white-space: nowrap;
}
.bnb-calendar-room a {
display: block;
}
.bnb-calendar-room .room-number {
font-weight: normal;
color: #646970;
margin-left: 5px;
}
.bnb-calendar-room .building-name {
display: block;
font-weight: normal;
font-size: 12px;
color: #646970;
margin-top: 2px;
}
/* Calendar Legend */
.bnb-calendar-legend {
display: flex;
gap: 20px;
padding: 15px 20px;
border-top: 1px solid #c3c4c7;
background: #f6f7f7;
}
.bnb-calendar-legend-item {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
}
.bnb-calendar-legend-color {
width: 16px;
height: 16px;
border-radius: 3px;
border: 1px solid rgba(0, 0, 0, 0.1);
}
.bnb-calendar-legend-color.available {
background: #d4edda;
}
.bnb-calendar-legend-color.booked {
background: #d63638;
}
.bnb-calendar-legend-color.pending {
background: #dba617;
}
.bnb-calendar-legend-color.confirmed {
background: #00a32a;
}
.bnb-calendar-legend-color.checked-in {
background: #72aee6;
}
/* Tooltip for booking details */
.bnb-calendar-day[title] {
cursor: help;
}
/* No Rooms Message */
.bnb-no-rooms {
padding: 40px;
text-align: center;
color: #646970;
}
.bnb-no-rooms .dashicons {
font-size: 48px;
width: 48px;
height: 48px;
margin-bottom: 15px;
}
/* Calendar Single Room View */
.bnb-calendar-single-room .bnb-calendar-day {
font-size: 12px;
}
.bnb-calendar-single-room .bnb-calendar-day.booked .guest-name {
font-size: 10px;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Responsive */
@media screen and (max-width: 782px) {
.bnb-calendar-filters {
flex-direction: column;
}
.bnb-calendar-filters select {
width: 100%;
}
.bnb-calendar-header {
flex-direction: column;
gap: 10px;
}
}
/* ==========================================================================
Guest Management Styles
========================================================================== */
/* Guest Search Container */
.bnb-guest-search-container {
margin-bottom: 15px;
padding: 12px;
background: #f6f7f7;
border: 1px solid #c3c4c7;
border-radius: 4px;
}
.bnb-guest-search-container label {
display: block;
margin-bottom: 8px;
font-weight: 600;
}
.bnb-guest-search-container input[type="text"] {
width: 100%;
max-width: 300px;
}
/* Guest Search Results */
.bnb-guest-results {
margin-top: 10px;
max-height: 200px;
overflow-y: auto;
border: 1px solid #c3c4c7;
border-radius: 4px;
background: #fff;
}
.bnb-guest-result {
padding: 10px 12px;
border-bottom: 1px solid #f0f0f1;
cursor: pointer;
transition: background 0.15s ease;
}
.bnb-guest-result:last-child {
border-bottom: none;
}
.bnb-guest-result:hover {
background: #f0f6fc;
}
.bnb-guest-result-name {
font-weight: 600;
color: #1d2327;
}
.bnb-guest-result-email {
font-size: 12px;
color: #646970;
margin-top: 2px;
}
.bnb-guest-result-meta {
font-size: 11px;
color: #a7aaad;
margin-top: 4px;
}
.bnb-guest-no-results {
padding: 15px;
text-align: center;
color: #646970;
font-style: italic;
}
.bnb-guest-create-new {
padding: 10px 12px;
background: #f0f6fc;
border-top: 1px solid #c3c4c7;
cursor: pointer;
}
.bnb-guest-create-new:hover {
background: #d4e4f7;
}
.bnb-guest-create-new .dashicons {
color: #2271b1;
margin-right: 5px;
vertical-align: text-bottom;
}
/* Guest Linked Display */
.bnb-guest-linked {
padding: 12px 15px;
background: #d4edda;
border: 1px solid #c3e6cb;
border-radius: 4px;
margin-bottom: 15px;
}
.bnb-guest-linked-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 8px;
}
.bnb-guest-linked-name {
font-size: 14px;
font-weight: 600;
color: #155724;
}
.bnb-guest-linked-name .dashicons {
font-size: 16px;
width: 16px;
height: 16px;
margin-right: 5px;
vertical-align: text-bottom;
}
.bnb-guest-linked-details {
font-size: 13px;
color: #155724;
}
.bnb-guest-linked-details div {
margin-top: 4px;
}
.bnb-guest-linked-actions {
display: flex;
gap: 8px;
margin-top: 10px;
}
/* Guest Admin Columns */
.column-email,
.column-phone,
.column-country,
.column-bookings {
width: 120px;
}
.column-bookings a {
text-decoration: none;
}
/* Guest Status Badges */
.bnb-guest-status {
display: inline-block;
padding: 3px 8px;
border-radius: 3px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
}
.bnb-guest-status-active {
background: #d4edda;
color: #155724;
}
.bnb-guest-status-inactive {
background: #f6f7f7;
color: #646970;
}
.bnb-guest-status-blocked {
background: #f8d7da;
color: #721c24;
}
/* Booking History Table in Guest */
.bnb-booking-history {
width: 100%;
border-collapse: collapse;
font-size: 12px;
}
.bnb-booking-history th,
.bnb-booking-history td {
padding: 8px 10px;
text-align: left;
border-bottom: 1px solid #f0f0f1;
}
.bnb-booking-history th {
background: #f6f7f7;
font-weight: 600;
color: #1d2327;
}
.bnb-booking-history tr:hover td {
background: #f9f9f9;
}
.bnb-booking-history-empty {
padding: 20px;
text-align: center;
color: #646970;
font-style: italic;
}
.bnb-booking-stats {
display: flex;
gap: 20px;
padding: 12px 0;
border-bottom: 1px solid #c3c4c7;
margin-bottom: 15px;
}
.bnb-booking-stat {
text-align: center;
}
.bnb-booking-stat-value {
font-size: 20px;
font-weight: 600;
color: #135e96;
}
.bnb-booking-stat-label {
font-size: 11px;
color: #646970;
text-transform: uppercase;
}
/* ==========================================================================
GDPR / Privacy Styles
========================================================================== */
/* Consent Status */
.bnb-consent-status {
display: flex;
flex-direction: column;
gap: 8px;
}
.bnb-consent-item {
display: flex;
align-items: center;
gap: 8px;
}
.bnb-consent-item .dashicons {
font-size: 16px;
width: 16px;
height: 16px;
}
.bnb-consent-granted {
color: #00a32a;
}
.bnb-consent-not-granted {
color: #646970;
}
.bnb-consent-date {
font-size: 11px;
color: #646970;
margin-left: 24px;
}
/* Consent Checkboxes in Guest Form */
.bnb-consent-checkbox {
display: flex;
align-items: flex-start;
gap: 8px;
margin: 10px 0;
}
.bnb-consent-checkbox input[type="checkbox"] {
margin-top: 3px;
}
.bnb-consent-checkbox label {
font-weight: normal;
cursor: pointer;
}
.bnb-consent-checkbox-description {
font-size: 12px;
color: #646970;
margin-left: 24px;
margin-top: 2px;
}
/* Privacy Settings Section */
.bnb-privacy-settings {
margin-top: 20px;
}
.bnb-privacy-section {
background: #fff;
border: 1px solid #c3c4c7;
border-radius: 4px;
margin-bottom: 20px;
}
.bnb-privacy-section-header {
padding: 12px 15px;
background: #f6f7f7;
border-bottom: 1px solid #c3c4c7;
font-weight: 600;
}
.bnb-privacy-section-content {
padding: 15px;
}
.bnb-privacy-notice {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 12px 15px;
background: #f0f6fc;
border-left: 4px solid #72aee6;
margin-bottom: 15px;
}
.bnb-privacy-notice .dashicons {
color: #72aee6;
flex-shrink: 0;
}
.bnb-privacy-notice p {
margin: 0;
}
/* Privacy Actions in Guest Profile */
.bnb-privacy-actions {
margin-top: 20px;
padding-top: 15px;
border-top: 1px solid #f0f0f1;
}
.bnb-privacy-actions h4 {
margin: 0 0 10px 0;
font-size: 13px;
}
.bnb-privacy-actions-buttons {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.bnb-privacy-action-button {
display: inline-flex;
align-items: center;
gap: 5px;
}
.bnb-privacy-action-button .dashicons {
font-size: 16px;
width: 16px;
height: 16px;
}
/* Anonymized Data Display */
.bnb-anonymized {
font-style: italic;
color: #a7aaad;
}
.bnb-anonymized-badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 2px 8px;
background: #f0f0f1;
border-radius: 3px;
font-size: 11px;
color: #646970;
}
.bnb-anonymized-badge .dashicons {
font-size: 14px;
width: 14px;
height: 14px;
}
/* Data Retention Settings */
.bnb-retention-settings {
display: flex;
align-items: center;
gap: 10px;
}
.bnb-retention-settings input[type="number"] {
width: 80px;
}
.bnb-retention-description {
font-size: 12px;
color: #646970;
margin-top: 5px;
}
/* ==========================================================================
Services Styles
========================================================================== */
/* Services List in Admin */
.column-pricing_type,
.column-service_status {
width: 120px;
}
/* Service Status Badges */
.bnb-service-status {
display: inline-block;
padding: 3px 8px;
border-radius: 3px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
}
.bnb-service-status-active {
background: #d4edda;
color: #155724;
}
.bnb-service-status-inactive {
background: #f6f7f7;
color: #646970;
}
.bnb-service-included {
color: #00a32a;
font-weight: 600;
}
/* Service Pricing Meta Box */
.bnb-service-pricing-type fieldset label {
display: block;
margin-bottom: 15px;
}
.bnb-service-pricing-type fieldset label input {
margin-right: 8px;
}
.bnb-service-pricing-type fieldset p.description {
margin-left: 24px;
margin-top: 4px;
}
/* ==========================================================================
Booking Services Selector
========================================================================== */
.bnb-services-selector {
padding: 10px 0;
}
.bnb-services-list {
margin: 15px 0;
}
.bnb-service-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 15px;
background: #f6f7f7;
border: 1px solid #c3c4c7;
border-radius: 4px;
margin-bottom: 8px;
transition: background 0.15s ease, border-color 0.15s ease;
}
.bnb-service-item:hover {
background: #f0f6fc;
}
.bnb-service-item.selected {
background: #d4edda;
border-color: #c3e6cb;
}
.bnb-service-checkbox {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
flex: 1;
}
.bnb-service-checkbox input[type="checkbox"] {
margin: 0;
}
.bnb-service-name {
font-weight: 600;
color: #1d2327;
}
.bnb-service-details {
display: flex;
align-items: center;
gap: 15px;
flex-shrink: 0;
}
.bnb-service-price-label {
color: #135e96;
font-weight: 500;
}
.bnb-service-included-badge {
display: inline-block;
padding: 2px 8px;
background: #d4edda;
color: #155724;
border-radius: 3px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
}
.bnb-service-quantity {
display: flex;
align-items: center;
gap: 5px;
}
.bnb-service-quantity label {
display: flex;
align-items: center;
gap: 5px;
font-size: 12px;
color: #646970;
}
.bnb-service-qty-input {
width: 50px !important;
}
.bnb-service-line-total {
color: #1d2327;
}
.bnb-service-total-value {
color: #135e96;
}
/* Services Total */
.bnb-services-total {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 15px;
padding: 15px;
background: #f0f6fc;
border: 1px solid #c3c4c7;
border-radius: 4px;
margin-top: 15px;
}
.bnb-services-total strong {
color: #1d2327;
}
#bnb-services-total-amount {
font-size: 16px;
font-weight: 600;
color: #135e96;
}
/* No Services Message */
.bnb-no-services-message {
padding: 20px;
text-align: center;
color: #646970;
font-style: italic;
}
.bnb-no-services-message a {
margin-left: 5px;
}
/* Booking Pricing with Services */
.bnb-booking-services-summary {
padding: 8px 12px;
background: #d4edda;
border: 1px solid #c3e6cb;
border-radius: 4px;
color: #155724;
}
.bnb-booking-grand-total {
padding: 12px 15px;
background: #f0f6fc;
border: 1px solid #c3c4c7;
border-radius: 4px;
}
.bnb-booking-grand-total strong {
font-size: 18px;
color: #135e96;
}
/* ============================================
Reports Page
============================================ */
/* Reports Tabs */
.wp-bnb-reports-tabs .nav-tab {
display: inline-flex;
align-items: center;
gap: 6px;
}
.wp-bnb-reports-tabs .nav-tab .dashicons {
font-size: 16px;
width: 16px;
height: 16px;
}
/* Reports Content Container */
.wp-bnb-reports-content {
background: #fff;
border: 1px solid #c3c4c7;
border-top: none;
padding: 20px;
}
/* Reports Filters */
.wp-bnb-reports-filters {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 15px;
padding: 15px 20px;
background: #f6f7f7;
border: 1px solid #c3c4c7;
border-radius: 4px;
margin-bottom: 20px;
}
.wp-bnb-filter-form {
display: flex;
align-items: center;
gap: 15px;
flex-wrap: wrap;
}
.wp-bnb-filter-group {
display: flex;
align-items: center;
gap: 8px;
}
.wp-bnb-filter-group label {
font-weight: 600;
font-size: 13px;
color: #50575e;
}
.wp-bnb-period-select {
min-width: 150px;
}
.wp-bnb-custom-dates {
display: flex;
align-items: center;
gap: 8px;
}
.wp-bnb-custom-dates input[type="date"] {
width: 140px;
}
.wp-bnb-report-period {
font-size: 13px;
color: #50575e;
}
.wp-bnb-report-period strong {
color: #1d2327;
}
/* Report Body */
.wp-bnb-report-body {
margin-bottom: 20px;
}
.wp-bnb-report-section {
margin-bottom: 30px;
}
.wp-bnb-report-section h3 {
font-size: 14px;
font-weight: 600;
color: #1d2327;
margin: 25px 0 15px;
padding-bottom: 8px;
border-bottom: 1px solid #c3c4c7;
}
.wp-bnb-report-section h3:first-child {
margin-top: 0;
}
/* Summary Cards */
.wp-bnb-summary-cards {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
margin-bottom: 25px;
}
.wp-bnb-summary-cards.secondary {
grid-template-columns: repeat(3, 1fr);
margin-bottom: 30px;
}
@media screen and (max-width: 1200px) {
.wp-bnb-summary-cards {
grid-template-columns: repeat(2, 1fr);
}
.wp-bnb-summary-cards.secondary {
grid-template-columns: repeat(3, 1fr);
}
}
@media screen and (max-width: 782px) {
.wp-bnb-summary-cards,
.wp-bnb-summary-cards.secondary {
grid-template-columns: 1fr;
}
}
.wp-bnb-summary-card {
background: #f6f7f7;
border: 1px solid #c3c4c7;
border-radius: 6px;
padding: 20px;
text-align: center;
}
.wp-bnb-summary-card.primary {
background: linear-gradient(135deg, #d4edda, #c3e6cb);
border-color: #a3d4aa;
}
.wp-bnb-summary-card.small {
padding: 15px;
}
.wp-bnb-summary-value {
display: block;
font-size: 28px;
font-weight: 700;
color: #2271b1;
line-height: 1.2;
margin-bottom: 5px;
}
.wp-bnb-summary-card.primary .wp-bnb-summary-value {
color: #00a32a;
}
.wp-bnb-summary-card.small .wp-bnb-summary-value {
font-size: 20px;
}
.wp-bnb-summary-label {
display: block;
font-size: 12px;
color: #50575e;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Report Tables */
.wp-bnb-report-table {
border-collapse: collapse;
}
.wp-bnb-report-table th,
.wp-bnb-report-table td {
padding: 10px 12px;
text-align: left;
}
.wp-bnb-report-table th.num,
.wp-bnb-report-table td.num {
text-align: right;
}
.wp-bnb-report-table tfoot th {
background: #f0f6fc;
font-weight: 600;
}
.wp-bnb-report-table a {
color: #2271b1;
text-decoration: none;
}
.wp-bnb-report-table a:hover {
color: #135e96;
text-decoration: underline;
}
/* Progress Bar */
.wp-bnb-progress-bar {
position: relative;
background: #dcdcde;
border-radius: 10px;
height: 20px;
overflow: hidden;
min-width: 100px;
}
.wp-bnb-progress-fill {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: linear-gradient(90deg, #2271b1, #135e96);
border-radius: 10px;
transition: width 0.3s ease;
}
.wp-bnb-progress-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 11px;
font-weight: 600;
color: #1d2327;
text-shadow: 0 0 3px #fff;
}
/* Status Labels */
.wp-bnb-status {
display: inline-block;
padding: 3px 8px;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
}
.wp-bnb-status.high {
background: #d4edda;
color: #00a32a;
}
.wp-bnb-status.medium {
background: #fff3cd;
color: #856404;
}
.wp-bnb-status.low {
background: #f8d7da;
color: #d63638;
}
/* No Data Message */
.wp-bnb-no-data {
padding: 30px;
text-align: center;
color: #787c82;
font-style: italic;
background: #f6f7f7;
border-radius: 4px;
}
/* Export Buttons */
.wp-bnb-export-buttons {
padding: 20px;
background: #f6f7f7;
border: 1px solid #c3c4c7;
border-radius: 4px;
}
.wp-bnb-export-buttons h4 {
margin: 0 0 15px;
font-size: 14px;
font-weight: 600;
}
.wp-bnb-export-actions {
display: flex;
gap: 10px;
}
.wp-bnb-export-actions .button {
display: inline-flex;
align-items: center;
gap: 6px;
}
.wp-bnb-export-actions .button .dashicons {
font-size: 16px;
width: 16px;
height: 16px;
}