/*
Theme Name: Custom Theme
Theme URI: https://fiatinsight.com/kadence-child/
Template: kadence
Author: Fiat Insight
Author URI: https://fiatinsight.com/
Description: A custom theme built to leverage Kadence WP.
Version: 1.0.0
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

.has-gold-color {
    color: #fcd733;
}

.has-blue-color {
    color: #016fac;
}

.has-gray-light-background-color {
    background-color: #e9e9e9;
}

.has-blue-background-color {
    background-color: #016fac;
}

.btn.has-blue-background-color:hover {
    background-color: #ffc008;
    color: #000 !important;
}

body.user_is_partner .visible-partner,
body.user_is_admin .visible-admin {
    display: block !important;
}

.font-size-14 {
    font-size: 14px;
}

.font-size-20 {
    font-size: 20px;
}

.font-bold {
    font-weight: bold;
}

.gform_wrapper .gf-readonly input[type="text"] {
    background: #f5f5f5;
    pointer-events: none;
    color: #888;
}

#primary-menu li,
#secondary-menu li {
	border-right: 1px solid #eee;
}

#primary-menu li:last-of-type,
#secondary-menu li:last-of-type {
	border-right: none;
}

.gfield_required_text {
	display: none !important;
}

.tabletop {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
}

.tablefoot {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
}

.has-red-color {
	color: #ef1720;
}

.has-green-color {
	color: #139a43
}

.btn-secondary {
	background: #149e81;
	border: none; 
}

.btn-primary {
	background: #016fac;
	border-color: #016fac;
}

.active>.page-link, .page-link.active {
	background: #149e81; 
	border-color: #149e81;
}

.currency-table div.dt-column-header {
	flex-direction: row !important;
}

.currency-table th {
	text-align: left !important;
}

.tariff-table div.dt-column-header {
	flex-direction: row !important;
}

.tariff-table th {
	text-align: left !important;
}

.tariff-table {
	table-layout: fixed;
	width: 100% !important;
}

.tariff-table td {
	word-wrap: break-word;
	text-align: left !important;
}

body.single-company .acf-label .description {
	font-size: 12px;
}

body.single-company .acf-input input:not(.acf-field-true-false input) {
	width: 600px; 
	margin-bottom: 20px;
    max-width: 100%;
}

body.single-company .acf-field-true-false {
	margin-bottom: 20px;
}

body.single-company .acf-field-true-false .acf-label {
	display: inline-block; 
	min-width: 250px;
}

body.single-company .acf-field-true-false .acf-input {
	display: inline-block; 
}

#user_switching_switch_on {
	display: none !important;
}

.modal-button {
	display: block;
	margin-left: auto;
}

#createFormModal .gform_title {
	font-size: 25px;
	margin-bottom: 25px
}

.modal-button:hover {
	background-color: #ffc008;
	color: #000;
	border:1px solid #ffc008;
}

#createFormModal input {
	cursor: text !important;
}

#createFormModal .gform_button {
	cursor: pointer !important;
}

.page-id-129011 .modal-button {
	margin-bottom: 25px;
}


/* --- Styles for Two-Column ACF Forms --- */

/* Create a responsive 2-column grid for the fields */
.acf-form-two-column .acf-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 0 2rem; /* 0 vertical gap, 2rem horizontal gap */
}

/* Ensure the submit button and post title/content span the full width */
.acf-form-two-column .acf-field[data-name="post_title"],
.acf-form-two-column .acf-field[data-name="post_content"],
.acf-form-two-column .acf-form-submit {
    grid-column: 1 / -1;
}

/* Tweak ACF field default spacing for better grid alignment */
.acf-form-two-column .acf-field {
    margin-top: 0;
    margin-bottom: 20px;
    padding-top: 0;
}

.visible-board-only {
    display: none;
}

body.user_is_board_member .visible-board-only {
    display: block;
}

.acf-form-two-column .select2-selection {
    height: 40px !important;
    padding-top: 4px;
}

.acf-form-two-column .acf-field .acf-label label {
    font-weight: 600;
}

/* Search Partners and Search Agents */
body.page-id-129163 div.dt-container div.dt-search input,
body.page-id-129164 div.dt-container div.dt-search input {
    width: 600px;
    height: 50px;
    font-size: 16px;
    margin-bottom: 10px;
    max-width: 100%;
}