/* Certify plugin base frontend CSS. This file is required for WordPress inline styles to work. */

.cf-search {
    width: 700px;
    margin: 40px auto 30px auto !important; /* Add top and bottom margin for spacing */
    background: #f7f8fd;
    border: 3px solid #eceefb;
    padding: 30px;
    border-radius: 10px;
}
.cf-search form {
    display: inline-flex;
    width: 100%;
}
.cf-field {
    display: inline-block !important;
    border: 1px solid #000 !important;
    margin-bottom: 0px !important;
    width: 90%;
    padding-left: 16px;
    height: 47px;
}
.cf-btn {
    display: inline-block;
    border: none;
    height: 47px !important;
    width: 200px;
    background: #000 !important;
    color: #fff !important;
    min-height: 47px;
    border-radius: 0 !important;
}
.success {
    color: #155724;
    background-color: #d4edda;
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
    border-radius: .25rem;
}
.danger {
    color: #721c24;
    background-color: #f8d7da;
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
    border-radius: .25rem;
}
@media screen and ( max-width: 768px ){
    .cf-search{ width: 90%; }
}
@media screen and ( max-width: 480px ){
    .cf-search form { display: initial; }
    .cf-field, .cf-btn {
        display: block !important;
        width: 100%;
    }
}
.cf-result-card {
    max-width: 500px;
    margin: 30px auto 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(67,93,125,0.10), 0 1.5px 4px rgba(67,93,125,0.08);
    padding: 32px 28px 24px 28px;
    font-family: "Varela Round", sans-serif;
    font-size: 16px;
    color: #222;
}
.cf-result-card .cf-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eceefb;
}
.cf-result-card .cf-row:last-child {
    border-bottom: none;
}
.cf-result-card .cf-label {
    flex: 0 0 180px;
    font-weight: 600;
    color: #435d7d;
    text-align: left;
    letter-spacing: 0.5px;
}
.cf-result-card .cf-value {
    flex: 1;
    color: #222;
    text-align: left;
    font-weight: 400;
    padding-left: 48px;
    word-break: break-word;
    position: relative;
    display: flex;
    align-items: center;
}
.cf-result-card .cf-tick {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-left: 10px;
    vertical-align: middle;
}
.cf-result-card .cf-tick svg {
    display: block;
    width: 100%;
    height: 100%;
}
.rs-heading {
    text-align: center;
}
.search-table {
    border-spacing: 0 !important;
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
    min-width: 100%;
    border-bottom: 1px solid #ddd;
}
.search-table thead {
    background-color: transparent;
}
.search-table thead tr th {
    background-color: #000 !important;
    color: #fff !important;
    text-transform: uppercase;
    text-align: center;
    padding: 15px 0px;
}
.search-table tbody tr td {
    border-right: 1px solid #ddd;
    padding: 14px 10px;
    text-align: center;
}
.br-0 {
    border-right: none !important
}
body {
    overflow-x: hidden;
}
.btlr-10{ border-top-left-radius: 10px; }
.btrr-10{ border-top-right-radius: 10px; }
.bl-1{ border-left: 1px solid #ddd; }
/* Special styling for date display */
.cf-result-card .cf-value.date-field {
    font-weight: 600;
    color: #435d7d;
    font-family: monospace;
}

/* Admin table date styling */
.cadt {
    font-weight: 500;
    color: #566787;
    font-family: monospace;
}

/* jQuery UI Datepicker Custom Styles - Admin Only */
.ui-datepicker {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    z-index: 9999 !important;
    padding: 0 !important;
}

.ui-datepicker.ui-datepicker-modal {
    z-index: 100000 !important;
    position: fixed !important;
}

.ui-datepicker .ui-datepicker-header {
    background: #435d7d !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px 6px 0 0 !important;
    padding: 8px 10px !important;
    font-weight: 600 !important;
}

.ui-datepicker .ui-datepicker-title {
    color: #fff !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.ui-datepicker .ui-datepicker-prev, 
.ui-datepicker .ui-datepicker-next {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.ui-datepicker .ui-datepicker-prev:hover, 
.ui-datepicker .ui-datepicker-next:hover {
    background: rgba(255,255,255,0.1) !important;
    border-radius: 3px !important;
}

.ui-datepicker table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
}

.ui-datepicker th {
    background: #f8f9fa !important;
    padding: 8px 4px !important;
    font-weight: 600 !important;
    color: #666 !important;
    font-size: 12px !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

.ui-datepicker td {
    padding: 0 !important;
    border: none !important;
}

.ui-datepicker td a {
    display: block !important;
    padding: 8px !important;
    text-align: center !important;
    text-decoration: none !important;
    color: #333 !important;
    border-radius: 3px !important;
    margin: 1px !important;
    transition: all 0.2s ease !important;
}

.ui-datepicker td a:hover {
    background: #435d7d !important;
    color: #fff !important;
}

.ui-datepicker .ui-state-active {
    background: #27ae60 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.ui-datepicker .ui-state-highlight {
    background: #f8f9fa !important;
    color: #333 !important;
}

.ui-datepicker .ui-datepicker-buttonpane {
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    text-align: center !important;
    padding: 8px !important;
    border-radius: 0 0 6px 6px !important;
}

.ui-datepicker .ui-datepicker-buttonpane button {
    margin: 0 5px !important;
    padding: 6px 12px !important;
    cursor: pointer !important;
    background: #435d7d !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 3px !important;
    font-size: 12px !important;
    transition: all 0.2s ease !important;
}

.ui-datepicker .ui-datepicker-buttonpane button:hover {
    background: #2c3e50 !important;
}

/* Date input field styling */
input[type="text"].hasDatepicker {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 18px 18px !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}

