:root {
    --base-color: #000;
    --before-zindex: 10;
    --mg-top: 30px;
    --div-ht: 40px;
    --large-from-btn-justify: space-between;
    --icon_rot: 0deg;
    --warning: rgb(255, 125, 19);
    --success: rgb(16, 153, 57);
    --danger: rgb(233, 55, 55);
    --processing: #2463c2;
    --deafult-menu: #105f95;
    --task-color: rgb(233, 55, 55);
    --notice-display: none;
    --response-color: #202120;
    --td-text: #222222;
    --status-color: #5581C2;
}

* {
    margin: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    font-family: sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

button,
select,
input[type=date],
input[type=file] {
    cursor: pointer;
}

img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.error {
    color: #ff2929;
    font-size: 13px;
    width: 100%;
    padding: 6px 8px 0;
    display: none;
}

.hide {
    display: none;
}

.container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.container .content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #3331;
    box-shadow: 0 0 20px #3332;
    border: 1px solid #3331;
    border-radius: 10px;
    padding: 50px 0px 40px;
}

.tablet,
.mobile {
    display: none !important;
}

.desktop {
    display: inline-block !important;
}

.container .content ul.menu,
.container .content .footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--base-color);
    display: inline-block;
    padding: 10px;
}

.container .content ul.menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--base-color);
    z-index: var(--before-zindex);
}

.container .content .footer {
    top: unset;
    bottom: 0;
    background-color: #efefef;
    height: 40px;
    padding: 0 10px 0 8px;
}

.container .content .footer .company_info {
    width: auto;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 10px;
    padding: 0 10px;
    height: 100%;
    font-size: 12px;
}

.container .content .footer .menu_head {
    width: auto;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 10px;
    padding: 0 10px;
    height: 100%;
}

.container .content .footer .menu_head label {
    font-size: 13px;
    color: #555;
    letter-spacing: .6px;
}

.container .content ul.menu li {
    float: left;
    width: auto;
    height: 100%;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--deafult-menu);
    color: #fff;
    margin-right: 10px;
    border-radius: 4px;
    cursor: pointer;
    column-gap: 5px;
    transition: all linear .3s;
}

.container .content ul.menu li span {
    letter-spacing: .7px;
    font-size: 12px;
    font-weight: 200;
}

.container .content ul.menu li i {
    font-size: 13px;
}

.container .content ul.menu li.sign_out {
    float: right;
    background-color: #ff6629;
    margin-right: 0;
}

.container .content ul.menu li:nth-last-child(2),
.container .content ul.menu li:last-child {
    float: right;
    margin-right: 10px;
}

.container .content ul.menu li:nth-last-child(2) {
    margin-right: 0;
}

.container .content ul.menu li.sign_out:hover {
    color: #ff6629 !important;
}

.container .content ul.menu li:hover {
    background-color: #eee;
    color: #105f95;
}

.default{
    background-color: var(--deafult-menu) !important;
    color: #fff !important;
}

.hold {
    background-color: var(--warning) !important;
    color: #fff !important;
}

.success {
    background-color: var(--success) !important;
    color: #fff !important;
}

.danger {
    background-color: var(--danger) !important;
    color: #fff !important;
}

.hold i,
.success i,
.danger i,
.default i{
    transition: all linear .2s;
}

.hold:hover,
.success:hover,
.danger:hover,
.default:hover {
    background-color: #fff !important;
}

.default:hover {
    color: var(--deafult-menu) !important;
}

.hold:hover {
    color: var(--warning) !important;
}

.success:hover {
    color: var(--success) !important;
}

.danger:hover {
    color: var(--danger) !important;
}

.hold:hover i,
.success:hover i,
.danger:hover i,
.default:hover i{
    transform: scale(1.5);
}

.container .content ul.menu li.active {
    background-color: #fff !important;
    color: #105f95 !important;
}

.container .content ul.menu li i {
    transform: rotate(var(--icon_rot));
}

.container .content ul.menu li ul.sub_menu {
    width: 180px;
    float: left;
    position: absolute;
    height: 0;
    grid-template-columns: 1fr;
    row-gap: 1px;
    background: #e1edff;
    top: 30px;
    left: 0;
    overflow: hidden;
    border-radius: 3px;
    opacity: 0;
    transition: opacity linear .4s;
    z-index: 99999;
}

.container .content ul.menu li.profile ul.sub_menu {
    left: unset;
    right: 0;
}

.container .content ul.menu li ul.sub_menu li {
    margin: 0;
    float: left;
    border-radius: 2px;
    height: 30px;
    margin-bottom: 2px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    column-gap: 10px;
}

.container .content ul.menu li ul.sub_menu li:last-child {
    margin: 0;
}

.container .content ul.menu li ul.sub_menu li:hover {
    background-color: #eee;
    color: #105f95;
}

.container .content ul.menu li:hover ul.sub_menu,
.container .content ul.menu li ul.sub_menu:hover,
.container .content ul.menu li ul.sub_menu li:hover~ul.sub_menu {
    padding: 3px;
    height: auto;
    opacity: 1;
}

.top-large {
    width: 98%;
}

app-root {
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    scroll-behavior: smooth;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: var(--align-items);
    background-color: #fff;
    padding: var(--app-padding);
    row-gap: 20px;
}

/* width */
app-root::-webkit-scrollbar {
    width: 5px;
}

/* Track */
app-root::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

/* Handle */
app-root::-webkit-scrollbar-thumb {
    background: var(--base-color);
    border-radius: 10px;
}

/* Handle on hover */
app-root::-webkit-scrollbar-thumb:hover {
    background: #1d1d50;
}

app-root fieldset {
    width: 600px;
    border: none;
    border-radius: 7px;
    box-shadow: 0 0 10px #4443;
    padding: 10px 20px 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

app-root fieldset legend {
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #3332;
    letter-spacing: .6px;
    color: #105f95;
    text-transform: lowercase;
    cursor: pointer;
    z-index: 10;
    transition: all ease-in-out .3s;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
}

app-root fieldset legend i {
    transform: rotate(var(--icon_rot));
}

app-root fieldset legend:nth-child(2),
app-root fieldset legend:nth-child(3) {
    position: absolute;
    top: -36px;
    left: 170px;
}

app-root fieldset legend:nth-child(3) {
    right: 20px;
    left: unset;
}

app-root fieldset legend span::first-letter {
    text-transform: uppercase;
}

app-root fieldset legend.active {
    background-color: var(--base-color);
    color: #fff;
    border-color: var(--base-color);
}

app-root fieldset .form,
app-root fieldset #field_content,
app-root fieldset #type_content,
app-root fieldset .form .form-block,
app-root fieldset .form .form-btn {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.top-large .form form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
}

#qr_generate{
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 70px;
}

app-root fieldset .form {
    padding: 5px;
}

app-root fieldset .form .form-block {
    margin-bottom: 8px;
    height: auto;
    float: left;
}

app-root fieldset .form .field_2,
app-root fieldset .form .field_3{
    display: none;
}

app-root fieldset .form .line {
    width: 100%;
    padding-left: 42%;
    height: 30px;
    font-size: 14px;
    color: #5581c1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    letter-spacing: .6px;
}

app-root fieldset .form .line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    height: 2px;
    width: 40%;
    border-radius: 2px;
    background-color: #5581c199;
}

app-root fieldset .form .form-block .multiple_inp {
    width: 100%;
    display: grid;
    column-gap: 10px;
    grid-template-columns: var(--col);
}

app-root fieldset .form .form-block label {
    width: 100%;
    float: left;
    height: 22px;
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: left;
    align-items: flex-end;
}

app-root fieldset .form .form-block label span {
    text-transform: lowercase;
    letter-spacing: 1px;
}

app-root fieldset .form .form-block label span i {
    text-transform: uppercase;
    font-style: normal;
    color: #007cd2;
    font-weight: 600;
}

app-root fieldset .form .form-block label span::first-letter {
    text-transform: uppercase;
}

app-root fieldset .form .form-block label span.req {
    color: #f00;
    margin-left: 20px;
}

app-root fieldset .form .form-block input,
app-root fieldset .form .form-block select,
app-root fieldset .form .form-block textarea {
    float: left;
    width: 100%;
    height: 34px;
    border: 1px solid #3334;
    border-radius: 5px;
    outline: none;
    padding: 5px 7px;
    color: #555;
    font-size: 12px;
    margin-top: 4px;
    letter-spacing: .7px;
}

app-root fieldset .form .form-block input:invalid~.error {
    display: block;
}

app-root fieldset .form .form-block textarea {
    resize: none;
    height: 100px;
    padding: 5px 7px;
}

app-root fieldset .form .form-block select {
    font-size: 13px;
    cursor: pointer;
}

app-root fieldset .form .form-block input:read-only {
    background-color: #3331;
}

app-root fieldset .form .form-block input[type=file] {
    background-color: #fff;
    cursor: pointer;
}

app-root fieldset .form .form-btn {
    float: left;
    margin-top: var(--mg-top);
    height: var(--div-ht);
    display: flex;
    justify-content: var(--large-from-btn-justify);
    column-gap: 20px;
}

app-root fieldset .form .form-btn button {
    border: none;
    border-radius: 5px;
    background-color: #4daf74d2;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all ease-in-out .4s;
    min-width: 100px;
    height: 100%;
    padding: 0 15px;
}

app-root fieldset .form .form-btn button[type=submit] {
    float: right;
}

app-root fieldset .form .form-btn button[type=submit]:disabled {
    cursor: not-allowed;
}

app-root fieldset .form .form-btn button[type=submit]:not(:disabled):hover {
    background-color: #0b873b;
}

app-root fieldset .form .form-btn button[type=reset] {
    background-color: #ff5151c2;
    float: left;
}

app-root fieldset .form .form-btn button[type=reset]:hover {
    background-color: #dd3a25;
}

app-root .search-result {
    float: left;
    width: 100%;
    height: 200px;
    background-color: #fff;
    margin-top: 50px;
    box-shadow: 0 0 10px #3333;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

app-root .search-result p {
    color: #555;
    font-size: 27px;
    letter-spacing: .7px;
}

app-root .table_con {
    float: left;
    width: 100%;
    overflow: hidden;
    height: auto;
    min-height: 100%;
    border-radius: 10px;
}

app-root table {
    width: calc(100% - 20px);
    border-collapse: collapse;
    border-radius: 5px;
    margin: 0 10px;
}

app-root table .tab_head_div {
    width: 100%;
    height: 100%;
    background-color: #fff;
    padding: 2px 3px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    column-gap: 3px;
}

app-root table .tab_head_div select,
app-root table .tab_head_div input {
    height: calc(100% - 1px);
    width: auto;
    min-width: 140px;
    border: 1px solid #dedede;
    border-radius: 3px;
    outline: none;
    padding: 2px 4px;
}

app-root table .tab_head_div select {
    cursor: pointer;
}

app-root table .tab_head_div input[type=search] {
    margin-right: auto;
    width: 250px;
}

app-root table th,
app-root table td {
    border: 1px solid #3331;
    border-right: 0;
    font-size: 13px;
    font-weight: 300;
    height: 32px;
    text-align: left;
    vertical-align: middle;
    padding: 0 10px;
    letter-spacing: .7px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-x: hidden;
}

app-root table thead {
    background-color: #105f95;
    color: #fff;
}

app-root table th:last-child,
app-root table td:last-child {
    border-right: 1px solid #3331;
    text-align: center;
}

app-root table th:first-child,
app-root table td:first-child {
    width: 40px;
    text-align: center;
}

app-root table th.search_con {
    padding: 1px;
    height: 36px;
}

app-root table th.search_con .date_range {
    margin: 0 12px;
    height: 28px;
    display: flex;
    align-items: center;
    column-gap: 10px;
    padding: 0 10px;
    border-left: 1px solid #3333;
    border-right: 1px solid #3333;
}

app-root table th.search_con .date_range span {
    color: #333;
}

app-root table td {
    font-size: 12px;
    font-weight: 300;
    color: #555;
}

app-root table td:last-child {
    padding: 0;
}

app-root table td .tr_div {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 7px;
    column-gap: 7px;
}

app-root table td .tr_div button {
    padding: 5px 8px;
    border: 0;
    border-radius: 3px;
}

app-root table td .tr_div button.warning {
    background-color: #ff6629 !important;
    color: #fff;
}

app-root table td .tr_div button:last-child {
    background-color: #105f95;
    color: #fff;
}

app-root table.chart thead th.instruction {
    padding: 0;
}

app-root table.chart th.instruction div {
    width: 100%;
    background-color: #fff;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    column-gap: 7px;
    padding: 0 7px;
}

app-root table.chart th.instruction div label {
    font-size: 9px;
    padding: 5px 7px;
    border-radius: 3px;
    pointer-events: none;
}

app-root table.chart th.instruction div label.pending {
    background-color: var(--danger);
}

app-root table.chart th.instruction div label.processing {
    background-color: var(--processing);
}

app-root table.chart tbody tr td {
    text-align: center;
}

app-root table.chart thead tr:nth-child(2) th:not(:nth-child(2)) {
    text-align: center;
}

app-root table.chart tbody tr td:nth-child(2) {
    text-align: left;
}

app-root table.chart td span.dot_border {
    height: 20px;
    width: 20px;
    background-color: #e7eaef;
    float: left;
    border: 5px solid var(--task-color);
    border-radius: 50%;
    margin: 5px calc((100% - 20px) / 2);
    cursor: pointer;
}

/* loader */
.lds-roller {
    display: inline-block;
    position: absolute;
    width: 80px;
    height: 80px;
    inset: calc((100% - 80px) / 2);
    z-index: 9999;

}

.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #083b5f;
    margin: -4px 0 0 -4px;
}

.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
    top: 63px;
    left: 63px;
}

.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
    top: 68px;
    left: 56px;
}

.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
    top: 71px;
    left: 48px;
}

.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
}

.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
    top: 71px;
    left: 32px;
}

.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
    top: 68px;
    left: 24px;
}

.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
    top: 63px;
    left: 17px;
}

.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12px;
}

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Id wise design */
#terms_con input[type=checkbox] {
    height: 15px;
    width: 15px;
    margin-top: 10px;
}

#terms_con label {
    margin-top: 3px;
    float: left;
    font-size: 12px;
    margin-left: 10px;
    width: auto;
    cursor: pointer;
    letter-spacing: 1px;
    color: #ff3e3e;
}

#terms_con input[type=checkbox]:checked~label {
    color: #0b873b;
}

#content {
    width: 100%;
    height: 0;
    background-color: #dedede55;
    color: var(--response-color);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    opacity: 0;
    font-weight: 600;
    letter-spacing: .7px;
    transition: opacity linear .4s;
}

.footer {
    font-size: 13px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #efefef;
    z-index: var(--before-zindex);
}

.footer a,
.footer span {
    color: #555;
    letter-spacing: .6px;
    font-weight: 600;
    font-size: 12px;
}

.footer a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    column-gap: 5px;
}

.footer a img {
    height: 25px;
}

.footer a:nth-child(3) {
    color: #105f95;
    text-decoration: underline;
}

.login {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: var(--align-items);
    inset: 0;
    background-color: #fff;
    z-index: 9999;
    overflow-y: var(--scroll);
    padding: var(--form-pad);
}

.login .logo {
    width: 600px;
    position: absolute;
    top: -150px;
    left: 0;
    display: flex;
    justify-content: center;
}

.login .logo img {
    max-height: 70px;
}

.login button.toggle {
    width: calc(100% - 10px);
    margin-top: 15px;
    height: 35px;
    border: 0;
    border-radius: 5px;
    background-color: #5581c1;
    color: #fff;
    font-size: 15px;
    letter-spacing: .7px;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
}

.login ul {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40px;
    padding-top: 10px;
    padding-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: 15px;
    font-size: 13px;
    letter-spacing: .7px;
    background-color: #fff;
    box-shadow: 0 0 8px #3331;
}

.login ul li {
    padding: 10px;
    cursor: pointer;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: all linear .3s;
}

.login ul li::after {
    content: "";
    position: absolute;
    height: 5px;
    width: 5px;
    border-radius: 50%;
    top: calc((100% - 5px) / 2);
    left: 0;
    background-color: #888;
    transition: all linear .3s;
}

.login ul li::before {
    width: 50%;
    height: 1px;
    content: "";
    position: absolute;
    bottom: 0px;
    left: 20%;
    background-color: #888;
    transition: all linear .3s;
}

.login ul li:hover {
    color: #105f95;
}

.login ul li:hover::after {
    background-color: #105f95;
}

.login ul li:hover::before {
    width: 80%;
    left: 10%;
    background-color: #105f95;
}

input#uname {
    padding-right: 60%;
}

span#uname_ext {
    position: absolute;
    right: 0;
    width: 60%;
    background-color: #fff;
    height: 34px;
    bottom: 0;
    border: 1px solid #3334;
    border-radius: 3px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 5px 7px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 13px;
    color: #5581c1;
}

.notice::after {
    content: attr(data-notice);
    position: absolute;
    top: -7px;
    right: -7px;
    height: 18px;
    width: 18px;
    font-size: 9px;
    background-color: #ff2929;
    color: #fff;
    font-weight: 100;
    display: var(--notice-display);
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: 100;
}

.notice:hover::after {
    background-color: #fff;
    color: #f00;
}
/* card view design */
.view-card{
    max-width: 400px;
    width: 96%;
    height: auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px #3333;
    color: #555;
    overflow: hidden;
}

.view-card h3{
    width: 100%;
    font-size: 20px;
    float: left;
    margin-bottom: 10px;
}

.view-card ul{
    width: 100%;
    float: left;
}

.view-card ul li{
    width: 100%;
    height: 22px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    column-gap: 10px;
    align-items: center;
    font-size: 14px;
}

.qr_images{
    /* min-height: 100%; */
    width: 100%;
    padding: 50px 15px 10px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

#download_all{
    position: fixed;
    bottom: 50px;
    right: 15px;
    width: auto;
    height: 32px;
    border-radius: 3px;
    background-color: #ffeb38;
    color: #000;
    cursor: pointer;
    column-gap: 8px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 12px;
    border: 0;
    letter-spacing: 1px;
    z-index: -9999;
    opacity: 0;
    font-weight: 600;
}

.qr_images .img{
    width: 250px;
    height: auto;
    overflow: hidden;
    padding: 5px 15px;
    box-shadow: 0 0 5px #3332;
    border-radius: 5px;
}

.qr_images .img .status{
    position: absolute;
    right: 5px;
    top: 5px;
    height: 20px;
    width: 20px;
    background-color: #5555;
    border-radius: 50%;
    z-index: 9;
}

.qr_images .img img{
    max-height: 100%;
    max-width: 100%;
    transform: scale(1.2);
    padding: 10px;
}

.qr_images .img .btn{
    width: 100%;
    height: 30px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 10px;
    margin-top: 10px;
}

.qr_images .img .btn button{
    height: 100%;
    border: 0;
    border-radius: 3px;
    background-color: var(--btn-color);
    color: #fff;
    cursor: pointer;
    column-gap: 8px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 12px;
}

.qr_images .img label{
    height: 30px;
    width: 100%;
    font-size: 13px;
    float: left;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 4px;
}

.table_con tr .tr_img{
    height: 70px;
    width: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.table_con tr .tr_img img{
    max-width: 100%;
    max-height: 100%;
    transform: scale(1.1);
}

.table_con #dataList td{
    color: var(--td-text);
    font-size: 14px;
}

.remove_all,
.goto_top{
    border: 0;
    height: 50px;
    width: auto;
    padding: 0 20px;
    border-radius: 5px;
    background-color: var(--danger);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 15px;
    font-size: 16px;
    transition: all linear .4s ;
    align-self: flex-end;
}

.remove_all:hover{
    background-color: #fd5252;
}

.goto_top{
    background-color: var(--deafult-menu);
}

app-root .con_footer{
    width: 100%;
    /* bottom: 0;
    position: absolute;
    left: 0; */
    height: 40px;
    background-color: #3332;
    z-index: 9999;
    padding: 0 40px 0 0;
    display: none;
}

app-root .con_footer .btn{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
}

app-root .con_footer .btn .button{
    width: var(--btn-width);
    height: 30px;
    font-size: 13px;
    letter-spacing: 1.2px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 3px;
    cursor: pointer;
}

app-root .con_footer button.top{
    position: absolute;
    right: 5px;
    top: 5px;
    width: 30px;
    height: 30px;
}

.table_con td.status{
    text-align: center;
}

.table_con td.status span{
    background-color: var(--status-color);
    padding: 3px 5px;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
}

.table_con tr:first-child th button,
.table_con tr:first-child th select{
    height: 25px;
    border: 0;
    border-radius: 3px;
    width: 170px;
    background-color: #fff;
    padding: 0 7px;
    cursor: pointer !important;
    outline: unset;
    position: absolute;
    top: 3px;
    right: 120px;
}

.table_con tr:first-child th select{
    letter-spacing: .7px;
}

.table_con tr:first-child th #total_show{
    left: 3px;
    width: 100px;
}

.table_con tr:first-child th #user_id{
    right: unset;
    left: 513px;
    width: 190px;
}

.table_con tr:first-child th button{
    right: 5px;
    width: auto;
    padding: 0 10px;
    background-color: #fd5252;
    color: #fff;
}

.table_con tfoot tr td div {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    padding: 5px 0 7px;
    height: 50px;
}

.table_con tfoot tr td div button {
    height: 30px;
    width: 30px;
    border: 0;
    border-radius: 50%;
    box-shadow: inset 3px 3px 8px #eee, 3px 3px 8px #eee;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    transition: box-shadow ease-in-out .3s;
}

.table_con tfoot tr td div button.act,
.table_con tfoot tr td div button:hover {
    background-color: var(--deafult-menu);
    box-shadow: 2px 2px 8px #aaa;
    color: #fff;
}

.table_con tfoot tr td div button:first-child,
.table_con tfoot tr td div button.end-btn{
    width: 50px;
    border-radius: 20px;
}

.table_con thead input#instant_search{
    position: absolute;
    left: 107px;
    top: 3px;
    border: 0;
    border-radius: 3px;
    height: 25px;
    padding: 3px 7px;
    outline: unset;
    width: 250px;
    font-size: 12px;
    letter-spacing: .7px;
}

#page_list span{
    position: absolute;
    right: 20px;
    border: 0;
    border-radius: 30px;
    background-color: #105f95;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    transition: box-shadow ease-in-out .3s;
    height: 30px;
    width: auto;
    color: #fff;
    padding: 0 20px;
}

input#month_wise{
    position: absolute;
    left: 361px;
    top: 3px;
    border: 0;
    border-radius: 3px;
    height: 25px;
    padding: 3px 7px;
    outline: unset;
    width: auto;
    font-size: 12px;
    letter-spacing: .7px;
}

.qr-list-grid{
    width: 100%;
    display: grid;
    grid-template-columns: 200px calc(100% - 210px);
    column-gap: 10px;
    grid-template-rows: 100%;
    padding: 10px 17px;
}

.qr-list-grid ul{
    height: 100%;
    overflow-y: auto;
    background-color: #fff;
}

.qr-list-grid ul li{
    width: 100%;
    height: 30px;
    margin-bottom: 7px;
    background-color: #efefef;
    display: flex;
    align-items: center;
    padding: 0 10px;
    cursor: pointer;
    transition: all ease-in-out .3s;
    font-size: 14px;
    letter-spacing: .7px;
}

.qr-list-grid ul li.active,
.qr-list-grid ul li:hover{
    background-color: #083b5f;
    color: #fff;
    border-radius: 5px;
}

.qr-list-grid ul li:last-child{
    margin-bottom: 0;
}

.qr-list-grid .qr{
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.qr-list-grid .qr label.time_log{
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-style: italic;
    font-size: 14px;
}

.qr-list-grid .qr .img-con{
    width: 200px;
    border: 1px solid blanchedalmond;
    border-radius: 3px;
    overflow: hidden;
}

.qr-list-grid .qr img{
    height: 200px;
    width: 200px;
}

.qr-list-grid .qr .img-con label{
    width: 100%;
    height: 30px;
    font-size: 15px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: antiquewhite;
}

.qr-list-grid .qr .img-con .btn-action{
    width: 100%;
    height: 38px;
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    align-items: center;
}

.qr-list-grid .qr .img-con .btn-action button{
    height: 28px;
    border: 0;
    padding: 0 10px;
    letter-spacing: .5px;
    font-size: 12px;
    border-radius: 3px;
}

.qr-list-grid .qr .img-con .btn-action button.download{
    background-color: #083b5f;
    color: #fff;
}

.qr-list-grid .qr .img-con .btn-action button.ready-print,
.qr-list-grid .qr .img-con .btn-action button.print-accept,
.qr-list-grid .qr .img-con .btn-action button.print-again,
.qr-list-grid .qr .img-con .btn-action button.ready-to-go{
    background-color: #0b873b;
    color: #fff;
}

.qr-list-grid .qr .img-con .btn-action button.print-cancel{
    background-color: #ff3e3e;
    color: #fff;
}

.qr-list-grid .qr .img-con .btn-action button.ready-to-go{
    width: 100%;
}

ul.instruction li{
    font-size: 11px;
    letter-spacing: 1px;
    color: #f00;
    padding: 3px 0;
    font-style: italic;
}

table td .card-block {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    gap: 10px;
}

table td .card-block .card {
    width: 300px;
    display: grid;
    grid-template-rows: 30px 120px 35px;
    row-gap: 7px;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(51, 51, 51, 0.133);
    border-image: initial;
    overflow: hidden;
    border-radius: 6px;
}

table td .card-block .card .card_head, table td .card-block .card .card_foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(8, 59, 95);
    color: rgb(255, 255, 255);
    padding: 0px 7px;
}

table td .card-block .card .card_foot {
    background-color: rgb(239, 239, 239);
    padding: 0px 3px;
}

table td .card-block .card .card_body ul {
    width: 100%;
}

table td .card-block .card .card_body ul li {
    width: 100%;
    height: 20px;
    margin-bottom: 5px;
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: center;
    font-size: 12px;
    padding: 0px 10px;
}

table td .card-block .card .card_body ul li span {
    text-align: left;
    letter-spacing: 0.7px;
}

table td .card-block .card .card_body ul li span:last-child {
    text-align: right;
}

table td .card-block .card .card_foot {
    background-color: rgb(239, 239, 239);
    padding: 0px 3px;
}

table td .card-block .card .card_foot button {
    height: 28px;
    background-color: rgb(0, 50, 96);
    color: rgb(255, 255, 255);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 5px;
    letter-spacing: 1px;
    padding: 0px 7px;
    border-width: 0px;
    border-style: initial;
    border-color: initial;
    border-image: initial;
    border-radius: 5px;
}

table td .card-block .card .card_foot .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
}

table td .card-block .card .card_foot .switch input {
    opacity: 0;
    width: 0px;
    height: 0px;
}

table td .card-block .card .card_foot .slider {
    position: absolute;
    cursor: pointer;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: rgb(204, 204, 204);
    transition: 0.4s;
}

table td .card-block .card .card_foot .slider.round {
    border-radius: 28px;
}

table td .card-block .card .card_foot input:checked + .slider {
    background-color: rgb(83, 185, 95);
}

table td .card-block .card .card_foot .slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: rgb(216, 55, 55);
    transition: 0.4s;
}

table td .card-block .card .card_foot .slider.round::before {
    border-radius: 50%;
}

table td .card-block .card .card_foot input:checked + .slider::before {
    transform: translateX(32px);
    background-color: rgb(255, 255, 255);
}

/* ---- QR selection toolbar + ticks (generate and stage pages) ---- */
.qr-toolbar{
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 4px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
}

.qr_images .qr-toolbar{
    margin: 0 17px 8px;
    width: calc(100% - 34px);
}

.qr-toolbar .qr-pick-all{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    letter-spacing: .5px;
    cursor: pointer;
    margin-right: 6px;
}

.qr-toolbar .qr-count{
    font-size: 13px;
    color: #666;
    margin-right: auto;
}

.qr-toolbar button{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 3px;
    font-size: 12px;
    letter-spacing: .5px;
    cursor: pointer;
    background: #083b5f;
    color: #fff;
}

.qr-toolbar button.qr-zip-all{
    background: var(--success, #109939);
}

.qr-toolbar button.qr-bulk.danger{
    background: #c0392b;
}

.qr-toolbar button:disabled{
    opacity: .45;
    cursor: not-allowed;
}

.qr-list-grid .qr .img-con,
.qr_images .img{
    position: relative;
}

.qr-pick{
    position: absolute;
    top: 6px;
    left: 6px;
    width: 20px;
    height: 20px;
    margin: 0;
    z-index: 2;
    cursor: pointer;
    accent-color: #083b5f;
}

.img-con.picked,
.qr_images .img.picked{
    outline: 2px solid #083b5f;
    outline-offset: -2px;
}

.qr_images .img label{
    padding-left: 30px;
}

/* ---- bottom-right pop-up messages ---- */
#toast_box{
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}

.toast{
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    max-width: 380px;
    padding: 12px 12px 12px 14px;
    border-radius: 6px;
    border-left: 5px solid #083b5f;
    background: #fff;
    color: #222;
    font-size: 14px;
    letter-spacing: .4px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .22);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .3s ease, transform .3s ease;
}

.toast.show{
    opacity: 1;
    transform: translateX(0);
}

.toast .toast-msg{
    flex: 1;
    word-break: break-word;
}

.toast .toast-x{
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0 4px;
}

.toast-success{ border-left-color: #13a234; }
.toast-success > i{ color: #13a234; }
.toast-error{ border-left-color: #e03a3a; }
.toast-error > i{ color: #e03a3a; }
.toast-warning{ border-left-color: #ff7d13; }
.toast-warning > i{ color: #ff7d13; }
.toast-info > i{ color: #083b5f; }

@media (max-width: 799px){
    #toast_box{
        right: 8px;
        left: 8px;
        bottom: 70px;
        align-items: stretch;
        max-width: none;
    }
    .toast{
        max-width: none;
        min-width: 0;
    }
}

/* ---- confirm pop-up ---- */
.cbox-wrap{
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(8, 20, 33, .55);
    opacity: 0;
    transition: opacity .2s ease;
}

.cbox-wrap.show{ opacity: 1; }

.cbox{
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
    transform: translateY(14px) scale(.97);
    transition: transform .2s ease;
}

.cbox-wrap.show .cbox{ transform: none; }

.cbox-head{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #083b5f;
    color: #fff;
}

.cbox-head h3{
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .5px;
}

.cbox-head i{ font-size: 18px; }

.cbox-msg{
    margin: 0;
    padding: 18px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: .3px;
    color: #333;
    word-break: break-word;
}

.cbox-btn{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 18px 16px;
}

.cbox-btn button{
    height: 34px;
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: .5px;
    cursor: pointer;
}

.cbox-cancel{ background: #e6e6e6; color: #333; }
.cbox-ok{ background: #109939; color: #fff; }
.cbox-ok.danger{ background: #d33b3b; }
.cbox-btn button:focus-visible{ outline: 2px solid #083b5f; outline-offset: 2px; }

@media (max-width: 799px){
    .cbox-btn{ flex-direction: column-reverse; }
    .cbox-btn button{ width: 100%; height: 40px; }
}

/* ---- Card Done: richer card, on / off, static QR window ---- */
table td .card-block .card{
    grid-template-rows: 30px auto 42px;
    width: 310px;
}

table td .card-block .card .card_head .card-title{
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

table td .card-block .card .card_body ul{
    padding-top: 6px;
}

table td .card-block .card .card_body ul li{
    height: auto;
    min-height: 20px;
    column-gap: 8px;
}

table td .card-block .card .card_body ul li span:last-child{
    overflow-wrap: anywhere;
}

.card .st{ font-weight: 600; }
.card .st-on{ color: #109939; }
.card .st-off{ color: #d33b3b; }
.card .st-none{ color: #d33b3b; }
.card .exp .exp-date{ display: inline-block; }
.card .exp em{
    display: block;
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
}
.card .exp .exp-bad{ color: #d33b3b; }
.card .exp .exp-warn{ color: #ff7d13; }
.card .exp .exp-none{ color: #888; }

table td .card-block .card .card_foot{
    gap: 4px;
}

table td .card-block .card .card_foot .static_qr_btn{
    background-color: #109939;
}

table td .card-block .card .card_foot .switch input:disabled + .slider{
    cursor: not-allowed;
    opacity: .5;
}

.card-empty{
    width: 100%;
    padding: 30px 10px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

#instant_search{ min-width: 260px; }

/* static QR window */
.cbox.sqr{
    max-width: 880px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
}

.sqr .cbox-head{ position: relative; }
.sqr .sqr-close{
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.sqr-body{
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 18px;
    padding: 16px 18px 18px;
    overflow-y: auto;
}

.sqr-note{ margin: 0 0 10px; font-size: 12px; color: #666; letter-spacing: .3px; }
.sqr-field, .sqr-group{ display: block; margin-bottom: 10px; }
.sqr-field > span, .sqr-label{ display: block; font-size: 12px; color: #444; margin-bottom: 4px; letter-spacing: .4px; }
.sqr-label small{ color: #888; }
.sqr-form input[type=text], .sqr-form input[type=tel], .sqr-form input[type=email]{
    width: 100%;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}
.sqr-form input:focus{ outline: 2px solid #083b5f33; border-color: #083b5f; }
.sqr-row{ display: flex; gap: 6px; margin-bottom: 6px; }
.sqr-rm{ width: 34px; border: 0; border-radius: 4px; background: #e6e6e6; cursor: pointer; font-size: 18px; }
.sqr-add{
    border: 0; background: transparent; color: #083b5f; font-size: 12px; cursor: pointer; padding: 2px 0;
}
.sqr-add:disabled{ opacity: .4; cursor: not-allowed; }
.sqr-socials{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.sqr-socials .sqr-field{ margin-bottom: 0; }
.sqr-actions{ display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.sqr-actions button{ height: 36px; padding: 0 18px; border: 0; border-radius: 4px; font-size: 13px; cursor: pointer; letter-spacing: .5px; }
.sqr-cancel{ background: #e6e6e6; color: #333; }
.sqr-go{ background: #109939; color: #fff; }

.sqr-out{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    border: 1px dashed #c9c9c9;
    border-radius: 6px;
    padding: 14px;
    align-self: start;
    position: sticky;
    top: 0;
}
.sqr-out img{ width: 100%; max-width: 300px; height: auto; image-rendering: pixelated; background: #fff; }
.sqr-empty{ text-align: center; color: #999; padding: 40px 10px; }
.sqr-empty i{ font-size: 54px; margin-bottom: 8px; }
.sqr-empty p{ margin: 0; font-size: 13px; }
.sqr-dl{
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px;
    background: #083b5f; color: #fff; border-radius: 4px; font-size: 13px; text-decoration: none;
}

@media (max-width: 799px){
    table td .card-block .card{ width: 100%; }
    table td .card-block{ padding: 6px; }
    .sqr-body{ grid-template-columns: 100%; }
    .sqr-out{ position: static; order: -1; }
    .sqr-body:not(.has-qr) .sqr-out{ display: none; }
    .sqr-socials{ grid-template-columns: 100%; }
    .cbox.sqr{ max-height: calc(100vh - 16px); }
    .sqr-actions button{ flex: 1; }
    #instant_search{ min-width: 0; width: 100%; }
}

/* Card Done: stop long values stretching a card, and lay the search row out with flex */
table td .card-block .card{ grid-template-columns: minmax(0, 1fr); }
table td .card-block .card > *{ min-width: 0; }
table td .card-block .card .card_body ul li{ grid-template-columns: minmax(0, 38%) minmax(0, 62%); }
table td .card-block .card .card_head .card-title{ flex: 1 1 auto; min-width: 0; }
table td .card-block .card .card_head > span:last-child{ flex: 0 0 auto; margin-left: 8px; }
table td .card-block .card .card_foot > *{ flex: 0 0 auto; }

.table_con thead th:has(#instant_search){
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 6px;
}

.table_con thead th:has(#instant_search) > *{
    position: static !important;
    inset: auto !important;
    height: 30px !important;
    width: auto;
    margin: 0;
}

.table_con thead th:has(#instant_search) #total_show{ width: 80px; }
.table_con thead th:has(#instant_search) #instant_search{ flex: 1 1 260px; min-width: 200px; width: auto; border: 1px solid #ddd; font-size: 13px; }
.table_con thead th:has(#instant_search) #month_wise{ border: 1px solid #ddd; }
.table_con thead th:has(#instant_search) #exp_to_excel{ margin-left: auto; }

.table_con thead th:has(#instant_search){
    flex-direction: row !important;
    height: auto !important;
    min-height: 32px;
    overflow: visible !important;
    white-space: normal;
}

table td .card-block .card .card_body ul li span{ white-space: normal; text-overflow: clip; }
table td .card-block .card .card_head .card-title{ text-align: left; }

/* Card Done header: keep it a table cell (a flex th shrinks to nothing), controls sit inline */
.table_con thead th:has(#instant_search){
    display: table-cell !important;
    text-align: left;
    padding: 6px !important;
}

.table_con thead th:has(#instant_search) > *{
    display: inline-block;
    vertical-align: middle;
    margin: 2px 6px 2px 0;
}

.table_con thead th:has(#instant_search) #instant_search{
    flex: none;
    width: 300px;
    max-width: 100%;
}

.table_con thead th:has(#instant_search) #exp_to_excel{
    float: right;
    margin: 2px 0;
}

@media (max-width: 799px){
    .table_con thead th:has(#instant_search) #instant_search{ width: 100%; }
    .table_con thead th:has(#instant_search) #reg_check{ width: 100%; }
    .table_con thead th:has(#instant_search) #month_wise{ width: 100%; }
    .table_con thead th:has(#instant_search) #exp_to_excel{ float: none; width: 100%; }
}

/* Card Done: wider, fluid cards that fill the row, tidier rows */
table td .card-block{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 14px;
    padding: 12px;
}

table td .card-block .card{
    width: 100%;
    font-size: 13px;
}

table td .card-block .card .card_head{ padding: 0 12px; font-size: 14px; }

table td .card-block .card .card_body ul{ padding: 8px 0 2px; }

table td .card-block .card .card_body ul li{
    grid-template-columns: 130px minmax(0, 1fr);
    padding: 0 14px;
    margin-bottom: 0;
    min-height: 30px;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

table td .card-block .card .card_body ul li:last-child{ border-bottom: 0; }
table td .card-block .card .card_body ul li span:first-child{ color: #666; }
table td .card-block .card .card_body ul li span:last-child{ font-weight: 500; }

.card .exp em{
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 10px;
    background: #fdeaea;
    font-size: 11px;
}
.card .exp .exp-warn{ background: #fff1e3; }

table td .card-block .card .card_foot{ padding: 0 10px; gap: 8px; }

@media (max-width: 799px){
    table td .card-block{ grid-template-columns: 100%; padding: 8px; }
    table td .card-block .card .card_body ul li{ grid-template-columns: 110px minmax(0, 1fr); }
}

/* ---- Package update (request boxes + package modal) ---- */
table td .card-block .card .card_foot.pk_foot{ justify-content: flex-end; flex-wrap: wrap; padding: 6px 10px; }
table td .card-block .card .card_foot.pk_foot button{ height: 32px; padding: 0 12px; background: #0a6cbd; font-size: 13px; cursor: pointer; }
table td .card-block .card .card_foot.pk_foot button i{ font-size: 13px; }
table td .card-block .card .card_foot.pk_foot button:disabled{ background: #b9b9b9; cursor: not-allowed; }
table td .card-block .card .card_foot.pk_foot .pr-approve{ background: #109939; }
table td .card-block .card .card_foot.pk_foot .pr-reject, table td .card-block .card .card_foot.pk_foot .pr-cancel{ background: #d33b3b; }

.pr-summary{ margin-left: 10px; font-size: 12px; color: #555; }
.pr-badge{ display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.pr-badge.pr-wait{ background: #fff1e3; color: #c25e00; }
.pr-badge.pr-ok{ background: #e3f6ea; color: #0d7a31; }
.pr-badge.pr-no{ background: #fdeaea; color: #c22a2a; }
.pr-badge.pr-off{ background: #eee; color: #666; }
.pr-card .card_body ul li i{ font-size: 10px; margin: 0 4px; color: #888; }

.cbox.pk-modal{ max-width: 920px; max-height: 92vh; display: flex; flex-direction: column; }
.pk-modal .cbox-head{ flex: 0 0 auto; }
.pk-modal .cbox-head h3{ flex: 1 1 auto; min-width: 0; }
.pk-modal .pk-x{ background: transparent; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.pk-modal .pk-form{ display: flex; flex-direction: column; min-height: 0; padding: 14px 18px 16px; gap: 12px; overflow-y: auto; }
.pk-list{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pk-opt{ display: block; cursor: pointer; position: relative; min-width: 0; }
.pk-opt input{ position: absolute; opacity: 0; pointer-events: none; }
.pk-box{ display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 12px; border: 2px solid #d5dde5; border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pk-opt:hover .pk-box{ border-color: #7aa9d2; }
.pk-opt input:checked + .pk-box{ border-color: #0a6cbd; box-shadow: 0 0 0 3px rgba(10, 108, 189, .18); background: #f3f9ff; }
.pk-opt input:focus-visible + .pk-box{ outline: 2px solid #0a6cbd; outline-offset: 2px; }
.pk-opt.is-lower, .pk-opt.is-current{ cursor: not-allowed; }
.pk-opt.is-lower .pk-box{ opacity: .45; }
.pk-opt.is-current .pk-box{ background: #f2f2f2; }
.pk-title{ display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 700; color: #083b5f; }
.pk-title em{ font-style: normal; font-size: 11px; font-weight: 600; background: #083b5f; color: #fff; padding: 2px 8px; border-radius: 10px; }
.pk-cost{ font-size: 13px; font-weight: 600; color: #109939; }
.pk-feat{ font-size: 12px; line-height: 1.45; color: #444; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.pk-feat h5{ margin: 8px 0 3px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #0a6cbd; }
.pk-feat ul{ margin: 0; padding-left: 16px; }
.pk-feat li{ margin-bottom: 2px; }
.pk-none{ margin: 0; font-size: 13px; color: #c25e00; }
.pk-form textarea{ width: 100%; box-sizing: border-box; resize: vertical; padding: 8px 10px; font: inherit; font-size: 13px; border: 1px solid #c9d3dd; border-radius: 6px; }
.pk-actions{ display: flex; justify-content: flex-end; gap: 10px; }
.pk-actions button{ height: 36px; padding: 0 20px; border: 0; border-radius: 4px; font-size: 13px; letter-spacing: .5px; cursor: pointer; }
.pk-actions .pk-cancel{ background: #e5e5e5; color: #333; }
.pk-actions .pk-send{ background: #0a6cbd; color: #fff; }
.pk-actions .pk-send:disabled{ background: #b9b9b9; cursor: not-allowed; }

@media (max-width: 799px){
    .cbox-wrap.pk-wrap{ padding: 8px; align-items: flex-end; }
    .cbox.pk-modal{ max-height: 94vh; }
    .pk-list{ grid-template-columns: minmax(0, 1fr); }
    .pk-feat{ max-height: 160px; }
    .pk-actions button{ flex: 1 1 0; }
}
.pk-actions{ position: sticky; bottom: -16px; background: #fff; padding: 8px 0 2px; }

/* Send Offer modal, request details */
.of-lead{ margin: 0; font-size: 13px; color: #333; }
.of-chs{ display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.of-ch{ display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 2px solid #d5dde5; border-radius: 8px; cursor: pointer; font-size: 13px; min-width: 0; }
.of-ch span{ display: flex; flex-direction: column; min-width: 0; }
.of-ch small{ color: #777; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.of-ch i{ margin-right: 4px; }
.of-ch:has(input:checked){ border-color: #0a6cbd; background: #f3f9ff; }
.of-ch.off{ opacity: .5; cursor: not-allowed; }
.of-prev summary{ cursor: pointer; font-size: 13px; color: #0a6cbd; }
.of-prev pre{ white-space: pre-wrap; word-break: break-word; max-height: 240px; overflow: auto; margin: 8px 0 0; padding: 10px; background: #f6f8fa; border-radius: 6px; font: inherit; font-size: 12px; line-height: 1.5; }
.pk-opt input[type=checkbox]:checked + .pk-box::after{ content: "\2713"; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: #0a6cbd; color: #fff; font-size: 13px; line-height: 20px; text-align: center; }
.pk-opt .pk-box{ position: relative; }
.pr-pay{ font-weight: 600; }
.pr-pay.ok{ color: #0d7a31; }
.pr-pay.no{ color: #c22a2a; }
table td .card-block .card .card_foot.pk_foot .pr-revert{ background: #c25e00; }
#pr_status{ width: auto; max-width: 100%; }
@media (max-width: 799px){
    .pr-summary{ display: block; margin: 8px 0 0; }
    #pr_status{ width: 100%; }
}
.table_con tr:first-child th #pr_status{ position: static; display: inline-block; width: 220px; height: 28px; }
@media (max-width: 799px){
    .table_con tr:first-child th #pr_status{ width: 100%; }
}

/* Send Offer: language switch and contact list */
.of-top{ display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.of-lang{ display: inline-flex; border: 2px solid #0a6cbd; border-radius: 8px; overflow: hidden; }
.of-lang button{ border: 0; background: #fff; color: #0a6cbd; padding: 6px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.of-lang button.act{ background: #0a6cbd; color: #fff; }
.of-chs{ display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.of-grp{ min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.of-grp h5{ margin: 0; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: #0a6cbd; }
.of-grp .of-ch{ padding: 8px 10px; }
.of-ch span b{ font-weight: 600; word-break: break-all; }

/* ---- Billing tables, pricing, collect bill ---- */
.bill-con{ overflow-x: auto; }
.bill-table{ width: 100%; }
.bill-table tbody td{ padding: 8px 10px; font-size: 13px; vertical-align: middle; }
.bill-table tbody td small{ color: #777; }
.bill-table input[type=number], .bill-table select{ width: 100%; min-width: 90px; max-width: 170px; height: 32px; box-sizing: border-box; padding: 0 8px; border: 1px solid #c9d3dd; border-radius: 4px; background: #fff; font-size: 13px; position: static; }
.bill-sum{ display: inline-block; margin-left: 10px; font-size: 12px; color: #444; }
.bill-empty{ text-align: center; color: #777; padding: 22px 10px !important; }
.bill-bad{ color: #c22a2a; font-weight: 600; }
.bill-ok{ color: #0d7a31; font-weight: 600; }
.bill-new{ margin-left: 6px; font-style: normal; font-size: 11px; background: #fff1e3; color: #c25e00; padding: 1px 7px; border-radius: 10px; }
.bill-act{ white-space: nowrap; }
.bill-btn{ height: 28px; padding: 0 10px; margin-right: 4px; border: 0; border-radius: 5px; background: #0a6cbd; color: #fff; font-size: 12px; cursor: pointer; }
.bill-btn.ok{ background: #109939; }
.bill-save{ height: 36px; padding: 0 22px; border: 0; border-radius: 6px; background: #0a6cbd; color: #fff; font-size: 14px; cursor: pointer; }
.bill-collect{ display: flex; flex-direction: column; gap: 14px; }
.bc-form{ background: #fff; border: 1px solid #d5dde5; border-radius: 10px; padding: 16px; max-width: 980px; }
.bc-form h3{ margin: 0 0 4px; font-size: 17px; color: #083b5f; }
.bc-hint{ margin: 0 0 12px; font-size: 12.5px; color: #555; }
.bc-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.bc-f{ display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #333; min-width: 0; }
.bc-f input, .bc-f select{ height: 36px; box-sizing: border-box; padding: 0 10px; border: 1px solid #c9d3dd; border-radius: 6px; font-size: 13px; background: #fff; width: 100%; }
.bc-wide{ grid-column: 1 / -1; }
.bc-info{ margin: 12px 0; font-size: 13px; color: #333; min-height: 18px; }
@media (max-width: 799px){
    .bill-table thead tr:nth-child(2){ display: none; }
    .bill-table, .bill-table tbody, .bill-table tfoot{ display: block; }
    .bill-table tbody tr{ display: block; margin: 8px; border: 1px solid #d5dde5; border-radius: 8px; overflow: hidden; background: #fff; }
    .bill-table tbody td{ display: flex; justify-content: space-between; gap: 12px; text-align: right; border: 0; border-bottom: 1px solid #eef1f4; }
    .bill-table tbody td::before{ content: attr(data-label); flex: 0 0 auto; color: #666; text-align: left; font-weight: 600; }
    .bill-table tbody td.bill-empty::before{ content: none; }
    .bill-table tbody td.bill-empty{ display: block; }
    .bill-table input[type=number], .bill-table select{ max-width: 150px; }
    .bill-act{ justify-content: flex-end !important; }
    .bc-form{ padding: 12px; }
}
.bill-table thead th{ padding: 8px 8px; font-size: 12px; white-space: nowrap; }
.bill-table tbody td{ padding: 6px 8px; font-size: 12.5px; white-space: nowrap; }
.bill-table tbody td[data-label="Business"]{ max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.bill-btn{ padding: 0 8px; margin-right: 3px; }
@media (max-width: 799px){
    .bill-table tbody td{ white-space: normal; }
    .bill-table tbody td[data-label="Business"]{ max-width: none; }
}
@media (max-width: 799px){
    .bill-table tbody td[data-label="Sl."]{ display: none; }
    .bill-table thead tr:first-child, .bill-table thead tr:first-child th{ display: block; width: 100%; box-sizing: border-box; }
    .bill-table thead tr:first-child th #instant_search{ width: 100%; box-sizing: border-box; }
    .bill-table thead tr:first-child th #total_show{ margin-bottom: 6px; }
}
@media (max-width: 799px){ .bill-table thead tr:first-child th #instant_search{ width: calc(100% - 20px); } }
#price_add{ height: 30px; padding: 0 14px; font-size: 13px; background: #109939; position: static; }

/* billing toolbar (outside the table, so it never scrolls or overlaps) */
.bill-wrap{ display: flex; flex-direction: column; gap: 10px; width: 100%; box-sizing: border-box; padding: 0 10px; }
.bill-bar{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; background: #efefef; border-radius: 8px; }
.bill-bar select, .bill-bar input[type=search]{ position: static !important; height: 34px; box-sizing: border-box; padding: 0 10px; border: 1px solid #c9d3dd; border-radius: 6px; background: #fff; font-size: 13px; width: auto; }
.bill-bar select{ width: 90px; }
.bill-bar input[type=search]{ flex: 1 1 260px; min-width: 0; max-width: 420px; }
.bill-bar .bill-sum{ margin: 0; font-size: 13px; }
.bill-bar .bill-save{ position: static; }
.bill-sub{ margin: 6px 0 0; font-size: 14px; color: #083b5f; }
.bill-wrap .table_con, .bill-collect .table_con{ position: static; width: 100%; margin: 0; padding: 0; }
.bill-table tbody td[data-label="Business"]{ max-width: 150px; }
.bill-table tfoot td{ padding: 8px; }
@media (max-width: 799px){
    .bill-wrap{ padding: 0 6px; }
    .bill-bar input[type=search], .bill-bar select{ width: 100%; max-width: none; flex: 1 1 100%; }
}
.bill-table tbody td{ white-space: normal; }
.bill-table tbody td[data-label="Invoice No."], .bill-table tbody td[data-label="Card"], .bill-table tbody td[data-label$="Amount"], .bill-table tbody td[data-label="Pay By"], .bill-table tbody td[data-label="Paid On"], .bill-table tbody td[data-label="Next Billing Date"]{ white-space: nowrap; }
.bill-table tbody td[data-label="Billing Period"]{ min-width: 120px; }
.bill-table tbody td[data-label="Business"]{ max-width: 140px; white-space: normal; overflow: visible; text-overflow: clip; word-break: break-word; }
.bill-table thead th{ white-space: normal; }
.bill-table tfoot .paging{ justify-content: flex-start; }
.bill-act{ white-space: nowrap; }
.bill-table tbody td[data-label="Paid"]{ white-space: nowrap; }

/* mobile billing tables: no header block, full-width first cell */
@media (max-width: 799px){
    .bill-table thead{ display: none; }
    .bill-table tbody td{ height: auto; line-height: 1.35; }
    .bill-table tbody td:first-child, .bill-table tbody td.bill-empty{ width: auto !important; min-width: 0; }
    .bill-table tbody td.bill-empty{ display: block; text-align: center; }
}

/* Sent Notice page */
.nt-grid{ display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.nt-list, .nt-form{ background: #fff; border: 1px solid #d5dde5; border-radius: 10px; padding: 12px; min-width: 0; }
.nt-head{ display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 4px 10px; border-bottom: 1px solid #eef1f4; flex-wrap: wrap; }
.nt-all{ display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.nt-picked{ font-size: 13px; color: #0a6cbd; font-weight: 600; }
.nt-row{ display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid #f1f3f5; cursor: pointer; min-width: 0; }
.nt-row:hover{ background: #f6f9fc; }
.nt-main{ display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.nt-main b{ font-size: 13.5px; color: #083b5f; }
.nt-main small{ color: #666; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-pkg{ font-size: 12px; color: #0d7a31; font-weight: 600; text-align: right; flex: 0 0 auto; max-width: 40%; }
.nt-form{ display: flex; flex-direction: column; gap: 10px; }
.nt-form h3{ margin: 0; font-size: 16px; color: #083b5f; }
.nt-form textarea{ width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #c9d3dd; border-radius: 6px; font-size: 13px; resize: vertical; font-family: inherit; }
.nt-form .bc-f em{ font-style: normal; float: right; color: #888; }
.nt-ch{ display: flex; gap: 18px; font-size: 13.5px; }
.nt-ch label{ display: flex; gap: 6px; align-items: center; cursor: pointer; }
.nt-note{ margin: 0; font-size: 12.5px; color: #444; min-height: 16px; }
@media (max-width: 799px){ .nt-grid{ grid-template-columns: 1fr; } }

/* Sent Notice: paging and total under the list (the page has no table, so the table paging rules do not apply) */
.nt-wrap #page_list{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef1f4; }
.nt-wrap #page_list button{ height: 30px; min-width: 30px; padding: 0 9px; border: 1px solid #c9d3dd; border-radius: 6px; background: #fff; color: #105f95; font-size: 12px; cursor: pointer; }
.nt-wrap #page_list button.act{ background: #105f95; border-color: #105f95; color: #fff; }
.nt-wrap #page_list span{ position: static; right: auto; margin-left: auto; height: 30px; display: inline-flex; border-radius: 15px; font-size: 12px; padding: 0 14px; }
.nt-wrap #page_list .end-btn{ font-weight: 600; }

/* Toolbar above the Card Done / Card Rejected / Package Update lists: one flex row inside the header cell */
.table_con > .tb-bar{ display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; width: 100% !important; box-sizing: border-box; padding: 8px 10px; height: auto !important; min-height: 0 !important; max-height: none !important; }
.table_con > .tb-bar > *{ position: static !important; left: auto !important; right: auto !important; top: auto !important; margin: 0 !important; height: 32px !important; box-sizing: border-box; }
.table_con > .tb-bar > select{ flex: 0 0 auto !important; width: auto !important; min-width: 96px !important; padding: 0 8px; border: 1px solid #c9d3dd; border-radius: 6px; background: #fff; font-size: 13px; color: #333; }
.table_con > .tb-bar > #instant_search{ flex: 1 1 280px !important; min-width: 200px !important; max-width: 460px !important; width: auto !important; padding: 0 10px; border: 1px solid #c9d3dd; border-radius: 6px; background: #fff; font-size: 13px; color: #333; }
.table_con > .tb-bar > #month_wise{ width: auto !important; padding: 0 8px; border: 1px solid #c9d3dd; border-radius: 6px; background: #fff; font-size: 13px; }
.table_con > .tb-bar > button{ margin-left: auto; padding: 0 14px; border: 0; border-radius: 6px; background: #ff5a4d; color: #fff; font-size: 13px; cursor: pointer; }
.table_con > .tb-bar > .tb-note{ flex: 1 1 240px; height: auto !important; min-height: 32px; display: flex; align-items: center; font-size: 13px; color: #444; line-height: 1.4; }
@media (max-width: 799px){
    .table_con > .tb-bar > #instant_search{ flex: 1 1 100% !important; max-width: none !important; min-width: 0 !important; }
    .table_con > .tb-bar > select{ flex: 1 1 calc(50% - 8px) !important; min-width: 0 !important; }
    .table_con > .tb-bar > #month_wise{ flex: 1 1 calc(50% - 8px) !important; min-width: 0 !important; }
    .table_con > .tb-bar > button{ margin-left: 0; flex: 1 1 100%; }
}

/* phone billing cards: the business name gets the full row (the desktop width limits made it wrap letter by letter) */
@media (max-width: 799px){
    .bill-table tbody td[data-label="Business"]{ max-width: none !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; word-break: normal; overflow-wrap: anywhere; text-align: right; }
}

/* ---- Messages to the customer's app inbox: offer / notice link and files, card lookup ---- */
.of-extra{display:grid;gap:10px;margin:10px 0 4px}
.of-extra label{display:flex;flex-direction:column;gap:4px;font-size:13px;min-width:0}
.of-extra label > span{font-weight:600;color:#444}
.of-extra input[type=url]{font:inherit;border:1px solid #cfc3ec;border-radius:8px;padding:8px 10px;min-width:0;width:100%;box-sizing:border-box}
.of-extra input[type=file]{font:inherit;max-width:100%;min-width:0}
.nt-form input[type=file]{font:inherit;max-width:100%;min-width:0}
.cm-box{margin-top:18px;border:1px solid #e3dcf5;border-radius:12px;background:#fff;padding:14px 16px;min-width:0}
.cm-box h3{margin:0 0 6px;font-size:16px}
.cm-find{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.cm-find input{flex:1 1 220px;min-width:0;border:1px solid #cfc3ec;border-radius:8px;padding:8px 10px;font:inherit}
.cm-list{display:flex;flex-direction:column;gap:10px;min-width:0}
.cm-msg{border:1px solid #eee;border-radius:10px;padding:10px 12px;min-width:0;overflow-wrap:anywhere}
.cm-head{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.cm-head small{color:#888}
.cm-tag{display:inline-block;font-size:11px;font-weight:700;border-radius:20px;padding:2px 8px;background:#eee;color:#444;text-transform:uppercase}
.cm-tag.offer{background:#e8f8ee;color:#0d7a31}
.cm-tag.notice{background:#e8f1ff;color:#0b4a9b}
.cm-body{white-space:pre-line;margin:6px 0;font-size:13px}
.cm-link,.cm-files,.cm-state,.cm-noreply{font-size:12.5px;color:#555;margin:4px 0}
.cm-replies{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.cm-reply{background:#f7f5fc;border-radius:8px;padding:6px 9px;font-size:13px}
.cm-reply small{color:#888}
.cm-empty{color:#777;font-size:13px;padding:8px 0}
@media (max-width:799px){ .cm-find input{flex-basis:100%} }

/* Payment reports: summary cards and the details panel on the right */
.rp-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; width: 100%; }
.rp-grid .rp-card{ display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; height: auto; margin: 0; padding: 14px; text-align: left; background: #fff; border: 1px solid #d5dde5; border-top: 4px solid #d5dde5; border-radius: 10px; cursor: pointer; font: inherit; color: #222; box-shadow: 0 1px 3px rgba(8, 20, 33, .06); }
.rp-grid .rp-card:hover, .rp-grid .rp-card:focus-visible{ box-shadow: 0 6px 18px rgba(8, 20, 33, .14); outline: 2px solid #0a6cbd; outline-offset: 1px; }
.rp-grid .rp-is-pending{ border-top-color: #e08a00; }
.rp-grid .rp-is-confirmed{ border-top-color: #109939; }
.rp-grid .rp-is-rejected{ border-top-color: #c22a2a; }
.rp-row{ display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rp-name{ font-size: 14px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-sub{ font-size: 12px; color: #666; }
.rp-amount{ font-size: 22px; font-weight: 800; color: #083b5f; }
.rp-foot{ margin-top: 6px; padding-top: 8px; border-top: 1px solid #eef1f4; font-size: 12px; color: #777; }
.rp-badge{ flex: 0 0 auto; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; background: #eef1f4; color: #444; }
.rp-badge.rp-pending{ background: #fff1d6; color: #8a5200; }
.rp-badge.rp-confirmed{ background: #e0f4e6; color: #0d6b2b; }
.rp-badge.rp-rejected{ background: #fbe3e3; color: #a31f1f; }
.rp-empty{ grid-column: 1 / -1; padding: 30px 10px; text-align: center; color: #777; background: #fff; border: 1px dashed #d5dde5; border-radius: 10px; }
body.rp-lock{ overflow: hidden; }
.rp-wrap{ position: fixed; inset: 0; z-index: 9999; background: rgba(8, 20, 33, 0); transition: background .2s ease; }
.rp-wrap.show{ background: rgba(8, 20, 33, .5); }
.rp-wrap .rp-panel{ position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: 420px; max-width: 100%; height: 100%; background: #fff; box-shadow: -10px 0 30px rgba(8, 20, 33, .25); transform: translateX(100%); transition: transform .22s ease; }
.rp-wrap.show .rp-panel{ transform: none; }
.rp-head{ flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: #083b5f; color: #fff; }
.rp-head div{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rp-head strong{ font-size: 16px; }
.rp-head span{ font-size: 12px; opacity: .8; }
.rp-head .rp-x{ flex: 0 0 auto; width: auto; background: transparent; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.rp-body{ flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 18px; text-align: left; }
.rp-top{ display: flex; justify-content: space-between; align-items: center; }
.rp-body h4{ margin: 18px 0 6px; padding-bottom: 5px; border-bottom: 2px solid #eef1f4; font-size: 12px; text-transform: uppercase; color: #083b5f; }
.rp-body dl{ margin: 0; }
.rp-line{ display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid #f2f4f6; }
.rp-line dt{ color: #666; }
.rp-line dd{ margin: 0; overflow-wrap: anywhere; }
.rp-proof{ display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 9px 14px; border: 1px solid #0a6cbd; border-radius: 6px; color: #0a6cbd; font-size: 13px; text-decoration: none; }
.rp-none{ margin: 4px 0; font-size: 13px; color: #777; }
.rp-reply{ margin: 8px 0 0; padding: 10px 12px; background: #f6f8fa; border-radius: 8px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.rp-actions{ flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 18px; border-top: 1px solid #d5dde5; }
.rp-actions .rp-btn{ flex: 1 1 auto; width: auto; height: 40px; margin: 0; padding: 0 14px; border: 0; border-radius: 6px; color: #fff; font-size: 13px; cursor: pointer; }
.rp-actions .rp-btn.ok{ background: #109939; flex-grow: 2; }
.rp-actions .rp-btn.no{ background: #c22a2a; }
.bill-btn.no{ background: #c22a2a; }
.pk-form .bc-f{ display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.pk-form .bc-f select, .pk-form .bc-f input{ position: static; width: 100%; height: 36px; box-sizing: border-box; padding: 0 8px; border: 1px solid #c9d3dd; border-radius: 6px; background: #fff; font-size: 13px; }
.pay-result{ margin: 0; font-size: 13px; font-weight: 600; color: #0d7a31; }
.pay-result.bad, .pay-warn{ color: #a15c00; font-weight: 600; font-size: 13px; }
.pay-send{ display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13px; }
.pay-send label{ display: inline-flex; gap: 5px; align-items: center; }
.pk-actions .pk-send.danger{ background: #c22a2a; }
.pay-fixed{ display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px; background: #f2f4f6; border-radius: 6px; font-size: 13px; }
.pay-fixed span{ flex: 0 0 auto; color: #666; }
.pay-fixed b{ text-align: right; }
.pay-send > span, .pay-send > small{ flex: 1 1 100%; }
.pay-send > small{ color: #777; font-size: 11px; }
.pay-send .pay-ch{ flex: 1 1 150px; min-width: 0; gap: 8px; padding: 8px 10px; border: 2px solid #d5dde5; border-radius: 8px; cursor: pointer; }
.pay-ch span{ display: flex; flex-direction: column; min-width: 0; }
.pay-ch small{ color: #777; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-ch:has(input:checked){ border-color: #0a6cbd; background: #f3f9ff; }
.pay-ch.off{ opacity: .55; cursor: not-allowed; }
/* Collect Bill: attachment and buttons */
.bc-attach{ display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 12px; }
.bc-attach .bc-f{ flex: 1 1 280px; }
.bc-attach .bc-f input[type=file]{ position: static; height: auto; padding: 8px; border: 1px dashed #9fb0c0; }
.bc-preview a{ display: flex; align-items: center; gap: 8px; max-width: 260px; font-size: 12px; color: #0a6cbd; text-decoration: none; }
.bc-preview img{ width: 56px; height: 56px; object-fit: cover; border: 1px solid #d5dde5; border-radius: 6px; }
.bc-preview i{ font-size: 34px; color: #c22a2a; }
.bc-preview span{ min-width: 0; overflow-wrap: anywhere; }
.bc-btns{ display: flex; flex-wrap: wrap; gap: 10px; }
.bc-btns button{ position: static; width: auto; margin: 0; }
.bc-btns .bc-clear{ height: 36px; padding: 0 22px; border: 0; border-radius: 6px; background: #c22a2a; color: #fff; font-size: 14px; cursor: pointer; }

/* ---------- Billing > Collect Bill ---------- */
app-root .bill-collect{ width: calc(100% - 24px); max-width: 1080px; margin: 0 auto; gap: 18px; box-sizing: border-box; align-self: flex-start; }
.bill-collect *{ box-sizing: border-box; }
.bill-collect .bc-form, .bill-collect .bc-latest{ width: 100%; max-width: none; background: #fff; border: 1px solid #d5dde5; border-radius: 12px; box-shadow: 0 2px 10px #0000000d; }
.bill-collect .bc-form{ padding: 0; }
.bill-collect .bc-head{ display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #e6ebf0; }
.bill-collect .bc-head > i{ flex: 0 0 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #e8f2fb; color: #105f95; font-size: 20px; }
.bill-collect .bc-head h3{ margin: 0 0 2px; font-size: 18px; }
.bill-collect .bc-head .bc-hint{ margin: 0; line-height: 1.45; }
.bill-collect .bc-sec{ padding: 14px 20px 16px; border-bottom: 1px solid #e6ebf0; }
.bill-collect .bc-sec h5{ display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13.5px; color: #083b5f; }
.bill-collect .bc-sec h5 span{ width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #105f95; color: #fff; font-size: 11px; }
.bill-collect .bc-sec h5 small{ font-weight: 400; color: #888; }
.bill-collect .bc-grid{ gap: 14px; align-items: start; }
.bill-collect .bc-g-card{ grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.bill-collect .bc-g-pay{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bill-collect .bc-g-extra{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bill-collect .bc-f input, .bill-collect .bc-f select, .bill-collect .bc-f textarea{ position: static; width: 100%; max-width: 100%; min-width: 0; height: 40px; margin: 0; font-family: inherit; font-size: 13.5px; text-overflow: ellipsis; }
.bill-collect .bc-f textarea{ height: 68px; padding: 9px 10px; border: 1px solid #c9d3dd; border-radius: 6px; resize: vertical; }
.bill-collect .bc-f input:focus, .bill-collect .bc-f select:focus, .bill-collect .bc-f textarea:focus{ outline: 2px solid #105f9555; border-color: #105f95; }
.bill-collect .bc-f select:disabled{ background: #f3f5f7; color: #777; }
.bill-collect .bc-info{ min-height: 0; margin: 12px 0 0; padding: 9px 12px; border-radius: 8px; background: #f2f7fb; line-height: 1.5; overflow-wrap: anywhere; }
.bill-collect .bc-info:empty{ display: none; }
.bill-collect .bc-attach{ display: block; margin: 0; min-width: 0; }
.bill-collect .bc-attach .bc-f input[type=file]{ height: auto; padding: 18px 10px; }
.bill-collect .bc-preview{ margin-top: 10px; }
.bill-collect .bc-btns{ justify-content: flex-end; padding: 14px 20px; background: #f8fafb; border-radius: 0 0 12px 12px; }
.bill-collect .bc-btns button{ height: 40px; min-width: 130px; }
.bill-collect .bc-latest{ padding: 14px 0 6px; overflow: hidden; }
.bill-collect .bc-latest .bill-sub{ margin: 0 14px 10px; }
app-root .bill-collect .bill-table{ width: calc(100% - 28px); margin: 0 14px 8px; }
@media (max-width: 900px){
    .bill-collect .bc-g-pay{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 799px){
    app-root .bill-collect .bill-table{ width: 100%; margin: 0; }
    app-root .bill-collect .bill-table tbody td:last-child{ padding: 6px 8px; text-align: right; }
    app-root .bill-collect .bill-table tbody td.bill-empty:last-child{ text-align: center; padding: 18px 8px; }
    .bill-collect .bill-table thead{ display: none; }
}
@media (max-width: 600px){
    app-root .bill-collect{ width: calc(100% - 12px); gap: 12px; }
    .bill-collect .bc-head, .bill-collect .bc-sec, .bill-collect .bc-btns{ padding-left: 12px; padding-right: 12px; }
    .bill-collect .bc-head > i{ display: none; }
    .bill-collect .bc-g-card, .bill-collect .bc-g-pay, .bill-collect .bc-g-extra{ grid-template-columns: minmax(0, 1fr); }
    .bill-collect .bc-f input, .bill-collect .bc-f select, .bill-collect .bc-f textarea{ font-size: 16px; }   /* no zoom on iPhone */
    .bill-collect .bc-btns{ flex-direction: column-reverse; }
    .bill-collect .bc-btns button{ width: 100%; height: 44px; }
}

/* ---------- Billing > Pricing: reset test data ---------- */
.bill-reset{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: calc(100% - 20px); margin: 18px 10px; box-sizing: border-box; padding: 14px 16px; border: 1px solid #e7b4b4; border-radius: 10px; background: #fff6f6; }
.bill-reset > div{ flex: 1 1 320px; min-width: 0; }
.bill-reset h4{ margin: 0 0 4px; font-size: 14px; color: #a51f1f; }
.bill-reset p{ margin: 0; font-size: 12.5px; line-height: 1.5; color: #444; }
.bill-reset button{ position: static; width: auto; height: 38px; margin: 0; padding: 0 18px; border: 0; border-radius: 6px; background: #c22a2a; color: #fff; font-size: 13.5px; cursor: pointer; }
.reset-list{ margin: 0 0 10px; padding-left: 20px; font-size: 13px; line-height: 1.6; color: #333; }
.reset-list li{ list-style: disc; }
#reset_go:disabled{ opacity: .5; cursor: not-allowed; }
@media (max-width: 600px){ .bill-reset button{ width: 100%; height: 44px; } }

/* ---------- roles: the data reset is for the admin only ---------- */
body:not([data-role="1"]) .bill-reset{ display: none !important; }
.role-help{ margin-top: 4px; font-size: 11.5px; line-height: 1.45; color: #666; }

/* ---------- SMS & Email Setup ---------- */
.msg-setup{ width: calc(100% - 24px); max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; align-self: flex-start; box-sizing: border-box; }
.msg-setup *{ box-sizing: border-box; }
.ms-head h3{ margin: 0 0 4px; font-size: 18px; color: #083b5f; }
.ms-head p{ margin: 0; font-size: 13px; line-height: 1.5; color: #555; }
.ms-card{ background: #fff; border: 1px solid #d5dde5; border-radius: 12px; padding: 16px 18px; box-shadow: 0 2px 10px #0000000d; }
.ms-card h4{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; color: #083b5f; }
.ms-state{ margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 2px 10px; border-radius: 12px; background: #eef1f4; color: #555; }
.ms-state.own{ background: #e3f5e8; color: #0d7a31; }
.ms-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ms-wide{ grid-column: 1 / -1; }
.msg-setup label{ display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12.5px; color: #333; }
.msg-setup input, .msg-setup select{ position: static; width: 100%; min-width: 0; height: 38px; margin: 0; padding: 0 10px; border: 1px solid #c9d3dd; border-radius: 6px; background: #fff; font-size: 13.5px; }
.msg-setup button{ position: static; width: auto; height: 38px; margin: 0; padding: 0 18px; border: 0; border-radius: 6px; background: #0a6cbd; color: #fff; font-size: 13.5px; cursor: pointer; }
.ms-btns{ display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.msg-setup .ms-cancel{ background: #e8ebee; color: #333; }
.ms-list{ display: flex; flex-direction: column; gap: 10px; }
.ms-item{ display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #d5dde5; border-radius: 10px; }
.ms-item.on{ border-color: #109939; background: #f4fbf6; }
.ms-info{ flex: 1 1 260px; min-width: 0; }
.ms-info p{ margin: 0; overflow-wrap: anywhere; }
.ms-name{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #083b5f; }
.ms-badge{ padding: 1px 10px; border-radius: 10px; background: #109939; color: #fff; font-size: 11px; font-weight: 600; }
.ms-info .ms-detail{ margin-top: 3px; font-size: 12.5px; color: #444; }
.ms-info .ms-dates{ display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px; font-size: 11.5px; color: #777; }
.ms-acts{ display: flex; gap: 8px; margin-left: auto; }
.msg-setup .ms-acts button{ height: 32px; padding: 0 14px; font-size: 12.5px; }
.msg-setup .ms-acts .ms-edit, .msg-setup .ms-add{ border: 1px solid #0a6cbd; background: #fff; color: #0a6cbd; }
.msg-setup .ms-acts .ms-del{ border: 1px solid #c62828; background: #fff; color: #c62828; }
.msg-setup .ms-add{ margin-top: 12px; }
.ms-form{ margin-top: 14px; padding-top: 14px; border-top: 1px dashed #d5dde5; }
.ms-form-title{ margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #083b5f; }
.ms-note{ margin: 10px 0 0; font-size: 12px; color: #666; }
.ms-test{ display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #d5dde5; }
.ms-test label{ flex: 1 1 240px; }
.msg-setup .ms-test button{ background: #109939; }
@media (max-width: 800px){ .ms-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px){
    .msg-setup{ width: calc(100% - 12px); }
    .ms-card{ padding: 14px 12px; }
    .ms-grid{ grid-template-columns: minmax(0, 1fr); }
    .msg-setup input, .msg-setup select{ font-size: 16px; }
    .ms-btns button, .ms-test button, .msg-setup .ms-add{ width: 100%; height: 44px; }
    .ms-acts{ width: 100%; }
    .msg-setup .ms-acts button{ flex: 1 1 0; height: 40px; }
}

/* ---------- Export to Excel buttons ---------- */
.xl-btn:not(#_a){ position: static; width: auto; height: 34px; margin: 0; padding: 0 14px; border: 0; border-radius: 6px; background: #1d7044; color: #fff; font-size: 13px; white-space: nowrap; cursor: pointer; }
.xl-btn:disabled{ opacity: .6; cursor: wait; }
.bill-bar > .xl-btn{ margin-left: auto !important; }
.table_con > .tb-bar > .xl-btn{ margin-left: auto !important; height: 32px !important; background: #1d7044 !important; }
.bc-latest-head{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 14px 10px; }
.bc-latest-head .bill-sub{ margin: 0 !important; }
@media (max-width: 600px){ .bill-bar > .xl-btn, .table_con > .tb-bar > .xl-btn{ flex: 1 1 100% !important; height: 40px !important; } }

/* ---------- Collect Bill: today's list and its attachment button ---------- */
.bc-latest-head .bill-sum{ margin: 0; font-size: 13px; color: #444; }
.bill-collect a.bc-view{ display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 82px; height: 30px; margin: 3px 0; padding: 0 14px; box-sizing: border-box; border: 1px solid #0a6cbd; border-radius: 6px; background: #fff; color: #0a6cbd; font-size: 12.5px; font-weight: 600; line-height: 1; letter-spacing: normal; text-decoration: none; vertical-align: middle; transition: background .15s, color .15s; }
.bill-collect a.bc-view:hover, .bill-collect a.bc-view:focus-visible{ background: #0a6cbd; color: #fff; }

/* ---------- Deactivate card window ---------- */
#card_deactivate > *{ flex: 0 0 auto; margin: 0; }
.dc-who{ margin: 0; font-size: 14px; color: #083b5f; }
.dc-due{ display: flex; gap: 8px; padding: 10px 12px; border: 1px solid #f0c36d; border-radius: 8px; background: #fff7e6; font-size: 13px; line-height: 1.5; color: #6b4a00; }
.dc-due i{ margin-top: 3px; }
.dc-top{ display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; font-size: 13px; color: #333; }
.dc-top em{ font-style: normal; color: #888; font-size: 12px; margin-left: 6px; }
.dc-lang{ display: inline-flex; border: 2px solid #0a6cbd; border-radius: 8px; overflow: hidden; }
.dc-lang button{ position: static; width: auto; margin: 0; border: 0; background: #fff; color: #0a6cbd; padding: 4px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.dc-lang button.act{ background: #0a6cbd; color: #fff; }
#dc_msg{ position: static; width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #c9d3dd; border-radius: 6px; font: inherit; font-size: 13.5px; line-height: 1.5; resize: vertical; }
#card_deactivate > .dc-hint{ margin-top: -6px; }
.dc-hint{ font-size: 12px; color: #666; }
.dc-chs{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.dc-ch{ display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #d5dde5; border-radius: 8px; cursor: pointer; }
.dc-ch input{ position: static; width: 16px; height: 16px; margin: 0; }
.dc-ch span{ display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.dc-ch small{ color: #666; overflow-wrap: anywhere; }
.dc-ch.off{ opacity: .55; cursor: default; }
@media (max-width: 600px){ #dc_msg{ font-size: 16px; } }

/* activation code of a card nobody has registered yet (admin only) */
table td .card-block .card .card_body ul li span.act-code { font-family: monospace; font-weight: 700; letter-spacing: 3px; color: #0b5ed7; user-select: all; }

/* ---------- Add User (Role Setup): fits phones and tablets ---------- */
app-root fieldset.user-add{ width: min(800px, calc(100% - 12px)); min-width: 0; box-sizing: border-box; align-self: flex-start; }
.user-add .form{ min-width: 0; box-sizing: border-box; }
.user-add .form input, .user-add .form select{ max-width: 100%; box-sizing: border-box; }
@media (max-width: 799px){ .table_con.user-list{ overflow-x: auto; } }
@media (max-width: 600px){
    app-root fieldset.user-add{ padding: 8px 10px 14px; }
    .top-large.user-add .form form{ grid-template-columns: minmax(0, 1fr); }
    .user-add .form input, .user-add .form select{ font-size: 16px; }
}

/* ---------- Pricing table: column sizes, package details window ---------- */
#bill_price_save .bill-table th:nth-child(1), #bill_price_save .bill-table td:nth-child(1){ width: 150px; text-align: left; }
#bill_price_save .bill-table th:nth-child(2), #bill_price_save .bill-table td:nth-child(2){ min-width: 200px; text-align: left; }
#bill_price_save .bill-table td:nth-child(3) input, #bill_price_save .bill-table td:nth-child(4) input{ width: 110px; max-width: 100%; }
#bill_price_save .bill-table td:nth-child(5) select{ width: 120px; max-width: 100%; }
#bill_price_save .bill-table td:nth-child(6) input{ width: 70px; max-width: 100%; }
#bill_price_save .bill-table th:nth-child(7), #bill_price_save .bill-table td:nth-child(7){ width: 110px; white-space: normal; }
.pkd-open{ display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #0a6cbd; cursor: pointer; font: inherit; text-align: left; padding: 4px 0; }
.pkd-open b{ text-decoration: underline; text-underline-offset: 3px; }
.pkd-open i{ font-size: 12px; opacity: .8; }
.pkd-modal{ max-width: 760px !important; width: calc(100% - 16px); max-height: calc(100vh - 24px); display: flex; flex-direction: column; }
.pkd-modal .pk-form{ overflow-y: auto; }
.pkd-grid{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 6px 0 4px; }
.pkd-sec{ display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pkd-h{ display: flex; flex-direction: column; gap: 1px; color: #083b5f; font-size: 13.5px; }
.pkd-h small{ color: #777; font-size: 11.5px; font-weight: 400; }
.pkd-sec textarea{ width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #c9d3dc; border-radius: 8px; font: 13px/1.5 inherit; resize: vertical; }
@media (max-width: 799px){
    .pkd-grid{ grid-template-columns: minmax(0, 1fr); }
    .pkd-sec textarea{ font-size: 16px; }
    #bill_price_save .bill-table th:nth-child(n), #bill_price_save .bill-table td:nth-child(n){ width: auto; min-width: 0; }
    #bill_price_save .bill-table td input, #bill_price_save .bill-table td select{ width: 100%; }
}

/* ---------- Website editor ---------- */
.site-ed{ width: min(980px, calc(100% - 12px)); display: flex; flex-direction: column; gap: 14px; margin: 0 auto 30px; }
.site-ed #site_draft{ display: flex; flex-direction: column; gap: 14px; }
.se-state{ margin: 6px 0 0; font-size: 12.5px; color: #555; }
.se-modes{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.se-modes label{ display: inline-flex; }
.se-modes input{ position: absolute; opacity: 0; }
.se-modes label span{ display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border: 1px solid #c9d3dc; border-radius: 20px; cursor: pointer; font-size: 13px; }
.se-modes input:checked + span{ border-color: #0a6cbd; background: #e8f2fb; color: #0a4f8c; font-weight: 600; }
.se-modes input:focus-visible + span{ outline: 2px solid #0a6cbd; outline-offset: 2px; }
.se-modes small{ color: #777; font-size: 11.5px; }
.se-colors{ display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.se-colors label{ display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #333; }
.se-colors input[type=color]{ width: 100%; height: 38px; padding: 2px; border: 1px solid #c9d3dc; border-radius: 6px; background: #fff; cursor: pointer; }
.se-slides{ display: flex; flex-direction: column; gap: 12px; }
.se-slide{ padding: 12px; border: 1px solid #d5dde5; border-radius: 10px; }
.se-slide-h{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: #083b5f; }
.site-ed .se-slide-del{ height: 30px; padding: 0 12px; border: 1px solid #c62828; border-radius: 6px; background: #fff; color: #c62828; font-size: 12px; cursor: pointer; }
.site-ed .se-slide-del:disabled{ opacity: .4; cursor: not-allowed; }
.se-secs{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.se-sec{ display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #d5dde5; border-radius: 8px; font-size: 13px; cursor: pointer; }
.se-sec input{ width: 18px; height: 18px; }
.site-ed textarea{ width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #c9d3dc; border-radius: 6px; font: 13px/1.5 inherit; resize: vertical; }
.se-bar{ position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 12px; border-radius: 10px; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.se-bar button{ height: 40px; padding: 0 16px; border: 0; border-radius: 8px; font-size: 13.5px; cursor: pointer; color: #fff; }
.se-bar .se-discard{ background: #e8ebee; color: #333; margin-right: auto; }
.se-bar .se-save{ background: #0a6cbd; }
.se-bar .se-prev{ background: #5b4bc4; }
.se-bar .se-pub{ background: #109939; }
.se-bar .se-pub:disabled{ background: #9cc8a8; cursor: not-allowed; }
@media (max-width: 600px){
    .site-ed input, .site-ed textarea, .site-ed select{ font-size: 16px; }
    .se-bar button{ flex: 1 1 calc(50% - 10px); }
    .se-bar .se-discard{ margin-right: 0; }
}
.site-ed .se-top{ margin: -6px 0 12px; }
.site-ed .se-modes input{ position: absolute; width: 1px; height: 1px; }
.site-ed .se-colors input[type=color]{ height: 38px; padding: 2px; }
.site-ed .se-sec input{ width: 18px; height: 18px; flex: none; }
.site-ed .se-sec, .site-ed .se-modes label{ flex-direction: row; }
.site-ed .se-sec{ font-size: 13px; }
/* website editor: section rows with their content */
.site-ed .se-secs{ display: flex; flex-direction: column; gap: 8px; }
.se-secrow{ border: 1px solid #d5dde5; border-radius: 10px; }
.se-secrow.open{ border-color: #0a6cbd; }
.se-sechead{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 8px 4px 4px; }
.site-ed .se-sechead .se-sec{ flex: 1; border: 0; padding: 8px; }
.site-ed .se-secedit{ display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid #0a6cbd; border-radius: 6px; background: #fff; color: #0a6cbd; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.se-secedit .fa-chevron-down{ font-size: 10px; transition: transform .2s; }
.se-secrow.open .se-secedit{ background: #e8f2fb; }
.se-secrow.open .se-secedit .fa-chevron-down{ transform: rotate(180deg); }
.se-secbody{ display: none; padding: 12px; border-top: 1px dashed #d5dde5; background: #fafcfe; border-radius: 0 0 10px 10px; }
.se-secrow.open .se-secbody{ display: block; }
.se-list-h{ display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: #083b5f; margin-bottom: 8px; }
.se-items{ display: flex; flex-direction: column; gap: 10px; }
.se-item{ padding: 10px 12px; border: 1px solid #d5dde5; border-radius: 8px; background: #fff; }
.site-ed label small{ color: #777; }
@media (max-width: 600px){
    .se-sechead{ flex-wrap: wrap; padding: 4px 8px 8px; }
    .site-ed .se-secedit{ flex: 1 1 100%; justify-content: center; }
}
.site-ed .se-add{ display: inline-flex; align-items: center; gap: 6px; height: 36px; margin-top: 12px; padding: 0 14px; border: 1px solid #0a6cbd; border-radius: 6px; background: #fff; color: #0a6cbd; font-size: 13px; cursor: pointer; }
@media (max-width: 600px){ .site-ed .se-add{ width: 100%; height: 44px; justify-content: center; } }
/* ---------- Feedback (vcbd.info contact messages) ---------- */
.fb-badge{ display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: #e53935; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.fb-bar{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.fb-tabs{ display: flex; flex-wrap: wrap; gap: 6px; }
.fb-page .fb-tab{ height: 36px; padding: 0 14px; border: 1px solid #c9d3dc; border-radius: 18px; background: #fff; color: #333; font-size: 13px; }
.fb-page .fb-tab.on{ border-color: #0a6cbd; background: #e8f2fb; color: #0a4f8c; font-weight: 600; }
.fb-search{ display: flex; flex: 1 1 260px; max-width: 420px; gap: 6px; }
.fb-page .fb-search input{ flex: 1; }
.fb-page .fb-go{ width: 42px; padding: 0; }
.fb-list{ display: flex; flex-direction: column; gap: 12px; }
.fb-empty{ margin: 0; padding: 30px 16px; border: 1px dashed #c9d3dc; border-radius: 12px; background: #fff; color: #666; text-align: center; font-size: 13.5px; }
.fb-item{ display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid #d5dde5; border-left: 4px solid #9aa7b3; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px #0000000d; }
.fb-item.st-new{ border-left-color: #e53935; }
.fb-item.st-read{ border-left-color: #f0a020; }
.fb-item.st-done{ border-left-color: #109939; }
.fb-top{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.fb-who{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; }
.fb-who b{ font-size: 14.5px; color: #083b5f; }
.fb-who a{ color: #0a6cbd; overflow-wrap: anywhere; }
.fb-meta{ display: flex; align-items: center; gap: 10px; font-size: 12px; color: #666; }
.fb-st{ padding: 2px 10px; border-radius: 12px; font-weight: 600; font-size: 11.5px; background: #eef1f4; }
.st-new .fb-st{ background: #fdecea; color: #c62828; }
.st-read .fb-st{ background: #fff4e0; color: #9a5b00; }
.st-done .fb-st{ background: #e3f5e8; color: #0d7a31; }
.fb-msg{ margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.55; color: #222; }
.fb-note{ display: flex; gap: 8px; }
.fb-page .fb-note input{ flex: 1; }
.fb-acts{ display: flex; flex-wrap: wrap; gap: 8px; }
.fb-page .fb-act{ display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid #0a6cbd; border-radius: 6px; background: #fff; color: #0a6cbd; font-size: 12.5px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.fb-page .fb-act:disabled{ opacity: .4; cursor: not-allowed; }
.fb-page .fb-del{ border-color: #c62828; color: #c62828; margin-left: auto; }
.fb-upd{ color: #888; font-size: 11.5px; }
.fb-pager{ display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: #555; }
@media (max-width: 600px){
    .fb-search{ max-width: none; }
    .fb-page .fb-search input, .fb-page .fb-note input{ font-size: 16px; }
    .fb-note{ flex-direction: column; }
    .fb-page .fb-act{ flex: 1 1 calc(50% - 8px); justify-content: center; height: 40px; }
    .fb-page .fb-del{ margin-left: 0; }
}
@media (max-width: 600px){
    .fb-page .fb-note input{ flex: none; }
    .fb-page .fb-note .fb-act{ flex: none; width: 100%; }
}
/* top menu: tighter on narrower screens so every item stays on one line */
@media (max-width: 1440px){
    .container .content ul.menu > li{ padding: 0 7px; margin-right: 6px; column-gap: 4px; }
    .container .content ul.menu > li > span{ letter-spacing: .2px; }
    .container .content ul.menu > li.sign_out{ margin-right: 0; }
}
@media (max-width: 1000px) and (min-width: 800px){
    .container .content ul.menu > li:not(.profile):not(.sign_out) > i{ display: none; }
}

/* ---------- Market Place (Website > Market Place) ---------- */
.mp-admin{ width: min(980px, calc(100% - 12px)); display: flex; flex-direction: column; gap: 14px; margin: 0 auto 30px; }
.mp-admin #mp_save{ display: flex; flex-direction: column; gap: 14px; }
.mp-admin #mp_page_link{ color: #0a6cbd; font-weight: 600; }
.mp-stats{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mp-stat{ display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid #d5dde5; border-radius: 12px; background: #fff; }
.mp-stat i{ color: #0a6cbd; }
.mp-stat b{ font-size: 22px; color: #083b5f; }
.mp-stat span{ font-size: 12px; color: #666; }
.mp-tabs{ margin-bottom: 12px; }
.mp-admin .mp-tab{ height: 34px; padding: 0 12px; border: 1px solid #c9d3dc; border-radius: 18px; background: #fff; color: #333; font-size: 12.5px; cursor: pointer; }
.mp-admin .mp-tab.on{ border-color: #0a6cbd; background: #e8f2fb; color: #0a4f8c; font-weight: 600; }
.mp-ads{ display: flex; flex-direction: column; gap: 12px; }
.mp-ad{ display: flex; gap: 14px; padding: 14px; border: 1px solid #d5dde5; border-left: 4px solid #9aa7b3; border-radius: 12px; background: #fff; }
.mp-ad.st-pending{ border-left-color: #f0a020; }
.mp-ad.st-approved{ border-left-color: #109939; }
.mp-ad.st-rejected, .mp-ad.st-cancelled{ border-left-color: #c62828; }
.mp-ad.st-pending .fb-st{ background: #fff4e0; color: #9a5b00; }
.mp-ad.st-approved .fb-st{ background: #e3f5e8; color: #0d7a31; }
.mp-ad.st-rejected .fb-st, .mp-ad.st-cancelled .fb-st{ background: #fdecea; color: #c62828; }
.mp-ad-img{ flex: none; width: 180px; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; background: #eef1f4; color: #9aa7b3; font-size: 28px; }
.mp-ad-img a, .mp-ad-img img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.mp-ad-body{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mp-ad-body .fb-who span{ color: #555; }
.mp-facts{ display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: #333; }
.mp-facts i{ color: #0a6cbd; margin-right: 4px; }
.mp-admin .fb-act{ display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid #0a6cbd; border-radius: 6px; background: #fff; color: #0a6cbd; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.mp-admin .mp-bad{ border-color: #c62828; color: #c62828; }
.mp-admin .fb-note input, .mp-admin .mp-paynote{ flex: 1; }
.mp-admin .fb-acts{ align-items: flex-end; }
.mp-date{ display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: #555; }
.mp-admin .mp-date input{ width: 160px; height: 34px; }
.mp-pay{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed #d5dde5; }
.mp-paid{ font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mp-paid.yes{ color: #0d7a31; }
.mp-paid.no{ color: #9a5b00; }
.mp-admin .mp-on{ display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; margin-bottom: 12px; font-size: 13.5px; text-align: left; cursor: pointer; }
.mp-admin .mp-on input{ width: 20px; height: 20px; flex: none; padding: 0; }
.mp-admin .se-add{ display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 12px 0; padding: 0 14px; border: 1px solid #0a6cbd; border-radius: 6px; background: #fff; color: #0a6cbd; font-size: 13px; cursor: pointer; }
.mp-admin .mp-slide-del{ height: 30px; padding: 0 12px; border: 1px solid #c62828; border-radius: 6px; background: #fff; color: #c62828; font-size: 12px; cursor: pointer; }
.mp-places{ display: flex; flex-direction: column; gap: 10px; }
.mp-place{ display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 104px 104px 40px; align-items: end; gap: 10px; padding: 12px; border: 1px solid #d5dde5; border-radius: 10px; background: #f7f9fb; }
.mp-place label{ display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12.5px; color: #333; }
.mp-place input, .mp-place select{ width: 100%; height: 38px; box-sizing: border-box; padding: 0 10px; border: 1px solid #c9d3dc; border-radius: 8px; background: #fff; font-size: 14px; }
.mp-ptab-wrap{ width: 100%; overflow: visible; }
.mp-ptab{ width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0 6px; }
.mp-ptab th{ padding: 0 4px 2px; text-align: left; font-size: 12px; font-weight: 600; color: #444; white-space: nowrap; }
.mp-ptab td{ padding: 0 3px; vertical-align: middle; }
.mp-ptab td input[type=number]{ -moz-appearance: textfield; appearance: textfield; }
.mp-ptab td input[type=number]::-webkit-inner-spin-button, .mp-ptab td input[type=number]::-webkit-outer-spin-button{ -webkit-appearance: none; margin: 0; }
.mp-ptab td input{ width: 100%; height: 38px; box-sizing: border-box; padding: 0 10px; border: 1px solid #c9d3dc; border-radius: 8px; background: #fff; font-size: 14px; }
.mp-ptab td.mp-x, .mp-ptab th.mp-x{ width: 44px; padding: 0 0 0 4px; text-align: right; }
.mp-hint{ font-size: 11.5px; color: #666; font-weight: 400; }
.sr-only{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mp-price-del{ width: 38px; height: 38px; border: 1px solid #c62828; border-radius: 8px; background: #fff; color: #c62828; cursor: pointer; }
.mp-price-del:disabled{ opacity: .4; cursor: not-allowed; }
@media (max-width: 860px){
    .mp-place{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 96px 96px 40px; }
}
@media (max-width: 600px){
    .mp-place{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .mp-place .mp-pl-name{ grid-column: 1 / -1; }
    .mp-place .mp-pl-kind{ grid-column: 1 / -1; }
    .mp-place .mp-place-del{ grid-column: 1 / -1; width: 100%; }
    .mp-place .mp-place-del{ height: 40px; }
    .mp-ptab-wrap{ overflow: visible; }
    .mp-ptab{ min-width: 0; border-spacing: 0; }
    .mp-ptab thead{ display: none; }
    .mp-ptab tbody tr{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 10px; margin-bottom: 10px; border: 1px solid #d5dde5; border-radius: 10px; background: #f7f9fb; }
    .mp-ptab td{ padding: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
    .mp-ptab td::before{ content: attr(data-label); font-size: 12px; color: #444; font-weight: 600; }
    .mp-ptab td:first-child, .mp-ptab td.mp-x{ grid-column: auto; }
    .mp-ptab td.mp-x{ grid-column: 1 / -1; }
    .mp-ptab td.mp-x::before{ content: none; }
    .mp-ptab td.mp-x .mp-price-del{ width: 100%; height: 40px; }
    .mp-ptab td input{ font-size: 16px; }
    .mp-admin .mp-place input, .mp-admin .mp-place select{ font-size: 16px; }
}
.mp-admin .se-bar{ align-items: center; }
.mp-admin .se-bar .se-state{ margin: 0 auto 0 0; }
@media (max-width: 800px){
    .mp-stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mp-ad{ flex-direction: column; }
    .mp-ad-img{ width: 100%; max-height: 220px; }
}
@media (max-width: 600px){
    .mp-admin .se-add{ width: 100%; height: 44px; justify-content: center; }
    .mp-admin .fb-note, .mp-pay{ flex-direction: column; align-items: stretch; }
    .mp-admin .fb-note input, .mp-admin .mp-paynote{ flex: none; font-size: 16px; }
    .mp-admin .fb-act{ flex: 1 1 calc(50% - 8px); justify-content: center; height: 40px; }
    .mp-date{ flex: 1 1 100%; }
    .mp-admin .mp-date input{ width: 100%; }
    .mp-admin .se-bar .se-state{ flex: 1 1 100%; }
    .mp-admin .fb-note .fb-act, .mp-pay .fb-act{ flex: none; width: 100%; }
}

/* ---- secret login codes (Card Manage) ---- */
.table_con > .tb-bar > .lc-open{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border:1px solid #c7d2fe;border-radius:8px;background:#eef2ff;color:#3730a3;font-weight:600;cursor:pointer;white-space:nowrap}
.table_con > .tb-bar > .lc-open:hover{background:#e0e7ff}
.table_con > .tb-bar > .lc-open[hidden]{display:none}
li.lc-row .lc-val{display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:6px}
li.lc-row .lc-sent{font-size:11px;color:#64748b;white-space:nowrap}
li.lc-row .lc-send,li.lc-row .lc-new{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155;cursor:pointer;font-size:12px;padding:0}
li.lc-row .lc-send:hover{background:#eef2ff;color:#3730a3;border-color:#c7d2fe}
li.lc-row .lc-new:hover{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
li.lc-row button:disabled{opacity:.5;cursor:wait}
.cbox.lc-box{max-width:520px;width:calc(100% - 24px);max-height:calc(100vh - 24px);overflow:auto}
.lc-box .lc-step{border:1px solid #e2e8f0;border-radius:10px;padding:12px;margin:10px 0;display:flex;flex-direction:column;gap:8px}
.lc-box .lc-step[hidden]{display:none}
.lc-box .lc-step p{margin:0;font-size:13px;color:#475569}
.lc-box .lc-act{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border:0;border-radius:8px;background:#4f46e5;color:#fff;font-weight:600;cursor:pointer}
.lc-box .lc-act:disabled{opacity:.6;cursor:wait}
.lc-box .lc-opts{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:13px}
.lc-box .lc-opts label{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.lc-box .lc-out{font-size:13px;color:#0f172a;word-break:break-word}
.lc-box .lc-out:empty{display:none}
.lc-box .lc-bar{height:6px;border-radius:6px;background:#e2e8f0;overflow:hidden}
.lc-box .lc-bar[hidden]{display:none}
.lc-box .lc-bar span{display:block;height:100%;width:0;background:#4f46e5;transition:width .3s}
@media (max-width:600px){.lc-box .lc-act{align-self:stretch;justify-content:center}}
@media (max-width:600px){li.lc-row .lc-sent{flex-basis:100%;text-align:right;order:3}}

/* ---- Market Place: ad places and price table (beats the panel's table styles) ---- */
app-root .mp-admin .mp-ptab{ min-width: 0; table-layout: fixed; }
app-root .mp-admin .mp-ptab thead{ background: transparent; color: #444; }
app-root .mp-admin .mp-ptab th{ border: 0; height: auto; padding: 0 4px 2px; font-size: 12px; font-weight: 600; letter-spacing: 0; white-space: normal; overflow: visible; color: #444; }
app-root .mp-admin .mp-ptab td{ border: 0; height: auto; padding: 0 4px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: #222; white-space: normal; overflow: visible; background: transparent; }
app-root .mp-admin .mp-ptab td:first-child{ width: 84px; }
app-root .mp-admin .mp-ptab td input{ width: 100%; min-width: 0; height: 38px; margin: 0; padding: 0 8px; font-size: 14px; border: 1px solid #c9d3dc; border-radius: 8px; background: #fff; color: #222; }
app-root .mp-admin .mp-ptab tbody tr{ height: auto; }
app-root .mp-admin .mp-ptab td.mp-x, app-root .mp-admin .mp-ptab th.mp-x{ width: 44px; padding: 0 0 0 4px; }
app-root .mp-admin .mp-price-del{ width: 36px; height: 38px; margin: 0; padding: 0; background: #fff; color: #c62828; border: 1px solid #c62828; border-radius: 8px; }
app-root .mp-admin .mp-place-del{ background: #fff; color: #c62828; border: 1px solid #c62828; border-radius: 8px; }
app-root .mp-admin .mp-place input, app-root .mp-admin .mp-place select{ height: 38px; font-size: 14px; }
@media (max-width: 600px){
    app-root .mp-admin .mp-ptab tbody tr{ height: auto; }
    app-root .mp-admin .mp-ptab td{ height: auto; padding: 0; }
    app-root .mp-admin .mp-ptab td:first-child{ width: auto; }
    app-root .mp-admin .mp-ptab td input{ height: 40px; font-size: 16px; }
    app-root .mp-admin .mp-ptab td.mp-x .mp-price-del{ width: 100%; height: 40px; }
    app-root .mp-admin .mp-place-del{ height: 40px; width: 100%; }
}
app-root .mp-admin .mp-ptab td::before{ text-align: left; }
/* price table: sits inside its box, no sideways scroll, Days column wide enough */
app-root .mp-admin .mp-ptab{ margin: 0; width: 100%; }
@media (min-width: 601px){
    app-root .mp-admin .mp-ptab th:first-child, app-root .mp-admin .mp-ptab td:first-child{ width: 84px; min-width: 84px; }
    app-root .mp-admin .mp-ptab th.mp-x, app-root .mp-admin .mp-ptab td.mp-x{ width: 44px; min-width: 44px; }
}
/* Market Place form: text boxes match the other fields (padding, border, font, width) */
app-root .mp-admin textarea{ display: block; width: 100%; box-sizing: border-box; min-height: 64px; margin: 0; padding: 8px 10px; border: 1px solid #c9d3dc; border-radius: 8px; background: #fff; color: #222; font-family: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
app-root .mp-admin textarea:focus{ outline: 2px solid #0a6cbd55; border-color: #0a6cbd; }
@media (max-width: 600px){ app-root .mp-admin textarea{ font-size: 16px; } }
