/*!
 * @package   yii2-detail-view
 * @author    Kartik Visweswaran <kartikv2@gmail.com>
 * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2022
 * @version   1.8.7
 *
 * Styles for yii2-detail-view extension 
 * 
 * Author: Kartik Visweswaran
 * Copyright: 2014 - 2022, Kartik Visweswaran, Krajee.com
 * For more JQuery plugins visit http://plugins.krajee.com
 * For more Yii related demos visit http://demos.krajee.com
 */
.kv-container-bs4 .table {
    margin: 0;
}

.kv-container-bs4 .table-bordered .kv-child-table-cell th,
.kv-container-bs4 .table-bordered .kv-child-table-cell td {
    border-top: none;
    border-bottom: none;
}

.kv-container-bs4 .card > .kv-detail-view > .table-bordered > tbody > tr > td:first-child,
.panel > .kv-detail-view > .table-bordered > tbody > tr > td:first-child {
    border-left: 0;
}

.kv-container-bs4 .card > .kv-detail-view > .table-bordered > tbody > tr > td:last-child,
.panel > .kv-detail-view > .table-bordered > tbody > tr > td:last-child {
    border-right: 0;
}

.kv-flat-b .panel > .kv-detail-view:last-child,
.kv-flat-b .card > .kv-detail-view:last-child {
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.kv-form-attribute .form-group, .kv-form-attribute .help-block {
    margin-bottom: 0;
}

.kv-form-attribute > div:not(.has-error) .help-block,
.kv-edit-mode .kv-edit-hidden,
.kv-view-mode .kv-view-hidden {
    display: none;
}

.kv-edit-mode .kv-view-hidden,
.kv-view-mode .kv-edit-hidden {
    display: table-row;
}

.kv-edit-hidden.kv-view-hidden {
    display: none;
}

.kv-detail-loading {
    opacity: 0.3;
    background: #ffffff url('../img/loading.gif') top 15px right 15px no-repeat;
}

.kv-detail-loading * {
    background: transparent !important;
}

.kv-detail-loading td {
    border-color: #efefef !important;
}

.kv-edit-mode .kv-detail-view {
    overflow-y: hidden;
}

.kv-edit-mode table {
    overflow: hidden;
}

.kv-child-table {
    width: 100%;
}

.kv-child-table-row, .kv-child-table-row > td {
    vertical-align: middle;
    padding: 0 !important;
    margin: 0 !important;
}

.kv-child-table-cell {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.kv-child-table-row th {
    border-left: 1px #ddd solid;
    border-right: 1px #ddd solid;
}

.kv-child-table td, .kv-child-table th {
    margin: 0;
    background: transparent;

}

.kv-container-bs3 .table .kv-child-table > tbody > tr > td, .kv-container-bs3 .table .kv-child-table > tbody > tr > th {
    padding: 8px;
}

.kv-container-bs3 .table-condensed .kv-child-table > tbody > tr > td, .kv-container-bs3 .table-condensed .kv-child-table > tbody > tr > th {
    padding: 5px;
}

.kv-action-btn {
    color: inherit;
    margin: 0 2px;
    padding: 0 5px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.kv-action-btn[disabled],
.kv-action-btn.disabled {
    cursor: not-allowed;
}

.kv-action-btn[disabled],
.kv-action-btn.disabled {
    cursor: not-allowed;
}

.kv-action-btn:focus,
.kv-action-btn:hover {
    color: inherit;
    outline: 0;
    opacity: 0.7;
}

.card.border-default .kv-action-btn {
    color: #333;
}

.card.border-default .kv-action-btn:focus,
.card.border-default .kv-action-btn:hover {
    color: #333;
}