/*****************************************/
/* #region MAIN COMPONENTS */
/*****************************************/

#bpm-main {
    display: flex;
    flex-direction: row; /* default, but explicit */
	gap: 20px;
}

#bpm-sidebar {
    width: 250px; /* or whatever fixed width you want */
	border-right: 1px solid #bdbcbc;
}
#bpm-sidebar-inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 20px 0 0;
}

#bpm-content {
    flex: 1;
}

.bpm-sidebar-button-link {
	text-decoration: none;
}

.bpm-sidebar-button-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 15px;
	padding: 5px;
	border-radius: 5px;
}

.bpm-sidebar-button-text {
	color: #000;
}

.bpm-sidebar-button-wrapper.active {
	background: #2271b121;
}

.bpm-sidebar-button-wrapper.active .bpm-sidebar-button-text {
    color: #2271b1;
	font-weight: bold;
}

.bpm-sidebar-button-wrapper.active .bpm-svg-icon-wrapper {
    color: #2271b1;
}

/* #endregion */
/*****************************************/
/* #region GENRIC */
/*****************************************/

/* The Gray look for the inactive icons */
.bpm-svg-icon-wrapper {
    color: #636363;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* #endregion */
/*****************************************/
/* #region FORMS */
/*****************************************/

.bpm-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bpm-field-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

/* Width Classes */
.bpm-field-half {
    flex: 0 0 calc(50% - 10px); /* Subtract half the gap */
    min-width: 250px;
}

.bpm-field-full {
    flex: 0 0 100%;
}

/* Styling Elements */
.bpm-field-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.bpm-input-field, 
.bpm-input-select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px !important;
    font-size: 14px;
}

.bpm-form-footer {
    margin-top: 20px;
}

.bpm-submit-btn {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.bpm-submit-btn:hover {
    background-color: #005177;
}

.bpm-field-help {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* #endregion */
/*****************************************/
/* #region PAGES */
/*****************************************/

/* View Headers */
.bpm-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.bpm-view-header h2 {
    margin: 0;
}

/* Buttons */
.bpm-btn-primary, .bpm-btn-secondary {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

.bpm-btn-primary {
    background-color: #2271b1; /* WP Blue */
    color: #fff !important;
}

.bpm-btn-primary:hover {
    background-color: #135e96;
}

.bpm-btn-secondary {
    background-color: #f6f7f7;
    color: #2271b1 !important;
    border: 1px solid #2271b1;
}

.bpm-btn-secondary:hover {
    background-color: #dcdcde;
}

/* #endregion */
/*****************************************/
/* #region TABLES */
/*****************************************/

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

.bpm-table th, .bpm-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.bpm-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.bpm-table tr:hover {
    background-color: #fcfcfc;
}

/* #endregion */
/*****************************************/
/* #region MESSAGES */
/*****************************************/

.bpm-msg-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.bpm-msg-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}
