/* MAIN */
.container-app .box-app main.main-container {
    grid-area: main;
    overflow: auto;
}

.container-app .box-app main.main-container .box-main {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 1em;
    width: calc(100% - 3em);
    height: 100%;
    margin: auto;
}

.container-app .box-app main.main-container .box-main .top-box-main {
    padding-top: 1em;
    box-sizing: border-box;
}

/* alert */
.container-app .box-app main.main-container .box-main .top-box-main .alert {
    background-color: limeg;
    padding-right: 0;
    padding-left: 0;
    margin: 0 !important;
}

.container-app .box-app main.main-container .box-main .top-box-main .alert .box-alert {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 0 1.5em;
    box-sizing: border-box;
}

.container-app .box-app main.main-container .box-main .top-box-main .alert .text {
    display: flex;
    align-items: center;
}

.container-app .box-app main.main-container .box-main .top-box-main .alert .text p {
    font-family: "Poppins-Regular";
    font-size: 0.85rem;
    color: #333;
}

.container-app .box-app main.main-container .box-main .top-box-main .alert .box-btn {
    display: flex;
    justify-content: center;
}

.container-app .box-app main.main-container .box-main .top-box-main .alert button {
    background-color: transparent;
    border: none;
}

/* alert */

.container-app .box-app main.main-container .box-main .middle-box-main {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 1em;
}

.container-app .box-app main.main-container .box-main .middle-box-main .top-box {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr auto;
    gap: 1em;
}

.container-app .box-app main.main-container .box-main .middle-box-main .top-box .left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* background-color: red; */
}

.container-app .box-app main.main-container .box-main .middle-box-main .top-box .left h1 {
    font-family: 'Poppins-Regular';
    font-size: 1rem;
    color: #333;
}

.container-app .box-app main.main-container .box-main .middle-box-main .top-box .right {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 1em;
    /* background-color: blue; */
}

.container-app .box-app main.main-container .box-main .middle-box-main .top-box .right.dashboard-filter .box-input {
    display: flex;
    flex-direction: column;
    gap: 1em;
    font-family: "Poppins-Regular";
    font-size: 0.55rem;
    color: #333;
}

.container-app .box-app main.main-container .box-main .middle-box-main .top-box .right.dashboard-filter .box-input label {
    font-family: "Poppins-Regular";
    font-size: 0.75rem;
    color: #333;
}

.container-app .box-app main.main-container .box-main .middle-box-main .top-box .right.dashboard-filter .box-input input {
    font-family: "Poppins-Regular";
    font-size: 0.75rem;
    color: #333;
    border: none;
    padding: 0;
    border-bottom: 0.5px solid #333;
    border-radius: 0;
    box-sizing: border-box;
    cursor: pointer;
}

.container-app .box-app main.main-container .box-main .middle-box-main .top-box .right.dashboard-filter .box-input input:focus {
    box-shadow: none;
}

.container-app .box-app main.main-container .box-main .middle-box-main .top-box .right.dashboard-filter .box-input a.btn_filter {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0.65em;
    font-family: 'Poppins-Regular';
    font-size: 0.7rem;
    text-decoration: none;
    color: #696cff;
    border: none;
    padding: 0.65em 3.5em;
    border: 1px solid #696cff;
    box-sizing: border-box;
    border-radius: 0.35em;
    background-color: transparent;
    transition: background-color 0.40s ease-in;
}

.container-app .box-app main.main-container .box-main .middle-box-main .top-box .right.dashboard-filter .box-input a.btn_filter:hover {
    background-color: #696cff;
    color: #fff;
}

/* ! */
.middle-box {
    width: 100%;
    margin-bottom: 20px;
}

.middle-box .summary-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: "Poppins-Regular";
    font-size: 1rem;
    color: #696cff;
    cursor: pointer;
    padding: 1em;
    border-top: 0.5px solid #696cff;
    border-bottom: 0.5px solid #696cff;
    box-sizing: border-box;
}

.middle-box .summary-accordion-header span {
    display: flex;
    align-items: center;
    gap: 1em;
    font-family: "Poppins-Regular";
    font-size: 0.85rem;
    color: #696cff;
}

.middle-box .summary-accordion-header .summary-icon {
    transition: 0.3s;
}

.middle-box .summary-accordion-header.closed .summary-icon {
    transform: rotate(180deg);
}

.middle-box .summary-accordion-body {
    display: block;
    margin-top: 15px;
}

.middle-box .summary-accordion-body.hide {
    display: none;
}

.middle-box .summary-accordion-body .row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.middle-box .summary-accordion-body .row .box-row .sum_info {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    background-color: #696cff;
    border-radius: 10px;
    padding: 1em;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
    cursor: pointer;
}

.middle-box .summary-accordion-body .row .box-row .sum_info .top h1 {
    font-family: "Poppins-Regular";
    font-size: 0.8rem;
    color: #fff;
}

.middle-box .summary-accordion-body .row .box-row .sum_info .bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25em;
}

.middle-box .summary-accordion-body .row .box-row .sum_info .bottom span {
    font-family: "Poppins-Regular";
    font-size: 1.15rem;
    color: #fff;
}

/* ==========================================================
   BARAK TOOLBAR
========================================================== */

.barak-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}


/* ==========================================================
   FILTER BOX
========================================================== */

.barak-filter-wrapper {
    width: 100%;
    margin-bottom: 16px;
}

.barak-filter-box {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 18px;

    width: fit-content;
    padding: 1em 0;
    /* border-bottom: 0.5px solid #333; */
    box-sizing: border-box;
}

.barak-filter-box .row-barak-box {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    /* background-color: red; */
}

.barak-filter-box .row-barak-box .barak-filter-title {
    display: flex;
    gap: 0;
}

.barak-filter-box .row-barak-box .barak-filter-title h3 {
    color: #333;
    font-size: 0.85rem;
    font-family: "Poppins-Regular";
}

.barak-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg,
            #009dff,
            #2563eb);
}

.barak-filter-control {
    display: flex;
    align-items: center;
}

.barak-filter-control select {
    color: #333;
    font-size: 0.75rem;
    font-family: "Poppins-Regular";
    text-align: center;
    outline: none;
    padding: 0.35em;
    border: 0.5px solid #696cff;
    border-radius: 4.5px 0 0 4.5px;
    border-right: none;
    box-sizing: border-box;
    background: #fff;
    cursor: pointer;
}

.barak-filter-control select:focus {
    box-shadow: none;
}

.barak-switch-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border: none;
    padding: 0.3em;
    box-sizing: border-box;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    background-color: #696cff;
    transition: all 0.25s ease;
}

.barak-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.barak-toggle input {
    display: none;
}

.toggle-slider {
    position: relative;
    display: inline-block;

    width: 56px;
    height: 30.65px;

    background: #fff;
    border: 1px solid #333;
    border-radius: 100px;

    box-sizing: border-box;
    transition: all .3s ease;
    cursor: pointer;
}

.toggle-slider::before {
    content: "";

    position: absolute;
    top: 2.5px;
    left: 3px;

    width: 24px;
    height: 24px;

    background: #333;
    border-radius: 50%;

    transition: all .3s ease;
}

/* ACTIVE */
.barak-toggle input:checked+.toggle-slider {
    background: #fff;
    border-color: #696cff;
}

.barak-toggle input:checked+.toggle-slider::before {
    transform: translateX(24px);

    background: #696cff;
    border: 1px solid #696cff;
}

.toggle-text {
    color: #333;
    font-size: 0.85rem;
    font-family: "Poppins-Regular";
}

/* ==========================================================
   ACTION BUTTONS
========================================================== */

.barak-action-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;

    color: #fff;
    text-decoration: none;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 600;

    transition: all 0.25s ease;
}

.btn-action svg {
    flex-shrink: 0;
}

.btn-action:hover {
    color: #fff;
    text-decoration: none;

    transform: translateY(-3px);

    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-schedule {
    background: linear-gradient(135deg,
            #2563eb,
            #1d4ed8);
}

.btn-room-table {
    background: linear-gradient(135deg,
            #f59e0b,
            #d97706);
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 768px) {

    .barak-filter-box {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .barak-filter-control {
        width: 100%;
    }

    .barak-filter-control select {
        width: 100%;
    }

    .barak-toggle {
        justify-content: space-between;
    }

    .barak-action-group {
        width: 100%;
    }

    .btn-action {
        justify-content: center;
        width: 100%;
    }
}

/* ! */

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    /* background-color: brown; */
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 0.5em;
    /* background-color: green; */
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .table-kota-requisition {
    width: 100%;
    overflow: auto;
    /* background-color: #4d96ff; */
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .table-kota-requisition .box-table {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .table-kota-requisition .box-table .thead {
    width: 100%;
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .table-kota-requisition .box-table .thead .tr {
    width: 100%;
    display: grid;
    grid-template-columns: 50px 1fr 1fr 1fr 1fr 100px;
    grid-template-rows: 1fr;
    justify-content: space-between;
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .table-kota-requisition .box-table .thead .tr p.item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins-Regular';
    font-size: 0.8rem;
    color: #fff;
    text-align: center;
    /* border-radius: 10px; */
    padding: 10px;
    box-sizing: border-box;
    border: 0.5px solid #fff;
    background-color: tomato;
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .table-kota-requisition .box-table .tbody {
    width: 100%;
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .table-kota-requisition .box-table .tbody .tr {
    width: 100%;
    display: grid;
    grid-template-columns: 50px 1fr 1fr 1fr 1fr 100px;
    grid-template-rows: 1fr;
    justify-content: space-between;
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .table-kota-requisition .box-table .tbody .tr p.item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins-Regular';
    font-size: 0.8rem;
    color: #333;
    text-align: center;
    line-height: 1.35em;
    padding: 10px;
    box-sizing: border-box;
    border: 0.5px solid #dedede;
    /* border-bottom: 0.5px solid rgba(51, 51, 51, 0.3); */
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .table-kota-requisition .box-table .tbody .tr:first-child p.item {
    border-top: none;
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .table-kota-requisition .box-table .tbody .tr p.item.action {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: 1fr;
    align-items: center;
    gap: 1em;
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .table-kota-requisition .box-table .tbody .tr p.item.action a {
    text-decoration: none;
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .table-kota-requisition .box-table .tbody .tr form {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .pagination-kota-requisition {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr auto;
    justify-items: start;
    gap: 0.5em;
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .pagination-kota-requisition .link-back {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .pagination-kota-requisition .link-back a.link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-family: 'Poppins-Regular';
    font-size: 0.8rem;
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    box-sizing: border-box;
    border-radius: 4.5px;
    background-color: tomato;
}

.container-app .box-app main.main-container .box-main .middle-box-main .bottom-kota .box-table-pagination .pagination-kota-requisition nav ul.pagination li a.page-link {
    font-family: 'Poppins-Regular';
    font-size: 0.8rem;
    color: #333;
    border: 0.5px solid rgba(51, 51, 51, 0.3);
}

.container-app .box-app main.main-container .box-main .bottom-dashboard {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1em 0;
    box-sizing: border-box;
}

.container-app .box-app main.main-container .box-main .bottom-dashboard p {
    font-family: "Poppins-Regular";
    font-size: 0.8rem;
    color: #333;
}

/* MAIN */