/**
 * Brokerage Portal base styles.
 * Intentionally minimal/unopinionated - the Global Logistics Child
 * theme is responsible for matching the site's visual design. These
 * rules only guarantee the forms/dashboards are usable and readable
 * everywhere.
 */

.bp-portal {
	max-width: 720px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
}

.bp-portal.bp-dashboard {
	max-width: 1100px;
}

.bp-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
	border: 1px solid transparent;
}

.bp-notice-success {
	background: #e6f4ea;
	border-color: #34a853;
	color: #1e4620;
}

.bp-notice-error {
	background: #fce8e6;
	border-color: #d93025;
	color: #5c1a13;
}

.bp-notice-box {
	padding: 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 16px;
}

.bp-form .bp-field {
	margin-bottom: 16px;
}

.bp-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.bp-form input[type="text"],
.bp-form input[type="email"],
.bp-form input[type="tel"],
.bp-form input[type="password"],
.bp-form input[type="date"],
.bp-form input[type="number"],
.bp-form select,
.bp-form textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.bp-field-checkbox label {
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 8px;
}

.req {
	color: #d93025;
}

.bp-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 4px;
	border: 1px solid transparent;
	cursor: pointer;
	font-weight: 600;
	background: #1a73e8;
	color: #fff;
}

.bp-btn:hover {
	opacity: 0.9;
}

.bp-btn-secondary {
	background: #fff;
	color: #1a73e8;
	border-color: #1a73e8;
}

.bp-btn-small {
	padding: 4px 10px;
	font-size: 13px;
}

.bp-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}

.bp-table th,
.bp-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: middle;
}

.bp-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	background: #eee;
	color: #333;
	text-transform: capitalize;
}

.bp-status-pending,
.bp-status-pending_assignment,
.bp-status-new {
	background: #fef7e0;
	color: #7a5b00;
}

.bp-status-assigned,
.bp-status-in_transit {
	background: #e8f0fe;
	color: #174ea6;
}

.bp-status-delivered,
.bp-status-pod_uploaded,
.bp-status-completed,
.bp-status-approved,
.bp-status-converted {
	background: #e6f4ea;
	color: #1e4620;
}

.bp-status-cancelled,
.bp-status-rejected {
	background: #fce8e6;
	color: #5c1a13;
}

.bp-section {
	margin-bottom: 32px;
}

.bp-welcome {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.bp-inline-form {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

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

.bp-modal[hidden] {
	display: none;
}

.bp-modal-content {
	background: #fff;
	padding: 24px;
	border-radius: 6px;
	max-width: 560px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
}

.bp-modal-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
}

.bp-history-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bp-history-list li {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.bp-history-note {
	color: #555;
	font-style: italic;
}
