Files
WooBC/woo-business-central/admin/css/wbc-admin.css
Malin b64397dcd3 feat: WooCommerce Business Central integration plugin
Native PHP plugin (no Composer) that syncs:
- Product stock and pricing from BC to WooCommerce (scheduled cron)
- Orders from WooCommerce to BC (on payment received)
- Auto-creates customers in BC from WooCommerce billing data

Product matching: WooCommerce SKU → BC Item Number, fallback to GTIN (EAN).
OAuth2 client credentials auth with encrypted secret storage.
Admin settings page with connection test, manual sync, and log viewer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:59:53 +01:00

234 lines
3.6 KiB
CSS

/**
* WooCommerce Business Central - Admin Styles
*/
/* General Layout */
.wbc-admin-wrap {
max-width: 1200px;
}
.wbc-nav-tabs {
margin-bottom: 0;
}
/* Cards */
.wbc-card {
background: #fff;
border: 1px solid #c3c4c7;
border-radius: 4px;
padding: 20px;
margin-top: 20px;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
.wbc-card h2 {
margin-top: 0;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
font-size: 1.3em;
}
.wbc-card h2:first-child {
margin-top: 0;
}
/* Status Messages */
.wbc-status {
display: inline-block;
margin-left: 10px;
font-weight: 500;
}
.wbc-status.success {
color: #00a32a;
}
.wbc-status.error {
color: #d63638;
}
.wbc-status.loading {
color: #2271b1;
}
/* Status Table */
.wbc-status-table {
margin-bottom: 15px;
}
.wbc-status-table th {
text-align: left;
padding: 8px 20px 8px 0;
font-weight: 600;
}
.wbc-status-table td {
padding: 8px 0;
}
/* Logs Table */
.wbc-logs-table {
margin-top: 15px;
}
.wbc-logs-table .column-timestamp {
width: 160px;
}
.wbc-logs-table .column-level {
width: 90px;
}
.wbc-logs-table .column-context {
width: 130px;
}
.wbc-logs-table .column-message {
min-width: 300px;
}
/* Log Level Badges */
.wbc-log-badge {
display: inline-block;
padding: 3px 8px;
border-radius: 3px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
}
.wbc-log-badge-debug {
background: #f0f0f1;
color: #50575e;
}
.wbc-log-badge-info {
background: #d1e4f6;
color: #0a4b78;
}
.wbc-log-badge-warning {
background: #fcf9e8;
color: #bd8600;
}
.wbc-log-badge-error {
background: #facfd2;
color: #8a1f1f;
}
/* Log Row Colors */
.wbc-log-level-error {
background-color: #fff5f5 !important;
}
.wbc-log-level-warning {
background-color: #fffbe8 !important;
}
/* Log Data Display */
.wbc-log-data {
background: #f6f7f7;
padding: 10px;
margin-top: 10px;
font-size: 12px;
max-height: 200px;
overflow: auto;
border: 1px solid #ddd;
border-radius: 3px;
white-space: pre-wrap;
word-break: break-word;
}
/* Log Filters */
.wbc-log-filters {
margin-bottom: 15px;
padding: 10px;
background: #f6f7f7;
border-radius: 3px;
}
.wbc-log-filters label {
font-weight: 500;
margin-right: 10px;
}
/* Toggle Data Link */
.wbc-toggle-data {
margin-left: 10px;
font-size: 12px;
}
/* Form Improvements */
.wbc-settings-form .form-table th {
padding-left: 0;
}
.wbc-settings-form .description {
color: #646970;
font-style: normal;
margin-top: 5px;
}
/* Button Spacing */
.wbc-card .button + .button,
.wbc-card .button-primary + .button {
margin-left: 10px;
}
/* Connection Status */
#wbc-connection-status {
vertical-align: middle;
}
/* Companies List */
#wbc-companies-list {
margin-top: 10px;
padding: 10px;
background: #f6f7f7;
border-radius: 3px;
}
#wbc-company-select {
min-width: 300px;
}
/* Responsive Adjustments */
@media screen and (max-width: 782px) {
.wbc-logs-table .column-timestamp,
.wbc-logs-table .column-context {
display: none;
}
.wbc-logs-table .column-level {
width: 70px;
}
#wbc-company-select {
min-width: 100%;
}
}
/* Loading State */
.wbc-loading {
opacity: 0.5;
pointer-events: none;
}
/* Pagination */
.wbc-logs-table + .tablenav {
margin-top: 15px;
}
.tablenav-pages .pagination-links {
display: flex;
align-items: center;
gap: 5px;
}
.tablenav-pages .button {
padding: 0 8px;
min-height: 28px;
line-height: 26px;
}