@font-face {
    src: url('/ui/font/iran-sans.ttf');
    font-family: 'iran-sans';
}

body {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-family: 'iran-sans', sans-serif;
    background: #fefefe;
    direction: rtl;
}

* {
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

a {
    color: #000;
    text-decoration: underline;
}

.button {
    padding: 10px 15px;
    border-radius: 10px;
    background: #b0b0b0;
    color: #fff;
    text-align: center;
    overflow: hidden;
    transition: 0.3s ease-in-out all 0s;
}

.button img {
    height: 24px;
    margin: auto;
    display: block;
}

.button.enabled {
    background: #0054b1;
}

.button.enabled.hover:is(:hover, :focus) {
    background: #0044a1;
    cursor: pointer;
}

.popup {
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 9;
    background: #fefefe;
    overflow-y: auto;
    text-align: center;
    position: fixed;
    display: none;
}

.popup .top{
    padding: 20px 20px;
    text-align: center;
    display: flex;
}

.popup .top .section {
    width: 30%;
    display: flex;
    flex-grow: 1;
}

.popup .top .section.right {

}

.popup .top .section.center img{
    width: 65px;
    margin: 0 auto;
}

.popup .top .section.left i {
    margin: auto auto auto 0;
    font-size: 26px;
    cursor: pointer;
    transition: 0.3s ease-in-out all 0s;
}

.popup .top .section.left i.fa-xmark:is(:hover, :focus) {
    /* font-size: 31px; */
}

.popup .top .section.left i.fa-arrow-left:is(:hover, :focus) {
    /* margin-left: -3px; */
}

.popup.help .attention {
    margin: 10px 25px 20px 25px;
}

.popup.help img.sample {
    width: calc(100% - 52px);
    max-width: 700px;
    margin: 0 25px 45px 25px;
    border-radius: 10px;
    border: solid 1px #ddd;
    /*cursor: pointer;*/
}

.popup.table {
    display: none;
}

.popup.table .table-zone {
    padding: 0 10px 5px 10px;
    text-align: center;
    overflow-x: auto;
    display: flex;
}

.popup.table .table-zone .table-frame {
    margin: 0 auto;
    padding: 10px;
    background: #fefefe;
    display: inline-block;
}

.popup.table .table-zone .table-frame .table-outer-border {
    border-radius: 10px;
    border: solid 1px #ddd;
    overflow: hidden;
}

.popup.table .table-zone .table-frame table {
    border-collapse: collapse;
}

.popup.table .table-zone .table-frame table tr {
    border-bottom: solid 1px #ddd;
}

.popup.table .table-zone .table-frame table tr:last-child {
    border-bottom: none;
}

.popup.table .table-zone .table-frame table td {
    border-inline-end: solid 1px #ddd;
}

.popup.table .table-zone .table-frame table td:last-child {
    border-inline-end: none;
}

.popup.table .table-zone .table-frame table{
    min-width: 500px;
    background: #f6f6f6;
}

.popup.table .table-zone .table-frame table tr:nth-of-type(odd){
    background: #fefefe;
}

.popup.table .table-zone .table-frame table td{
    height: 45px;
    padding: 5px 15px;
    white-space: nowrap;
}

.popup.table .table-zone .table-frame table tr.vertical td.empty{
    min-width: 170px;
}

.popup.table .table-zone .table-frame table tr.vertical td.weekday{
    min-width: 100px;
}

.popup.table .table-zone .table-frame table td.weekday,
.popup.table .table-zone .table-frame table td .lesson {
    font-weight: bold;
}

.popup.table .table-zone .table-frame table td .master,
.popup.table .table-zone .table-frame table td .class {
    font-size: 13px;
    color: #c0c0c0;
    direction: ltr;
}

.popup.table .table-zone .table-frame table td span[contenteditable=true]{
    text-align: right;
}

.popup.table .hint {
    padding: 2px 20px 10px 20px;
    color: #b0b0b0;
}

.popup.table .color-zone {
    padding: 0 20px;
    display: none;
}

.popup.table .color-zone .color-frame {
    margin: 10px auto;
    padding: 0 15px;
    border-radius: 10px;
    border: solid 1px #ddd;
    display: inline-flex;
}

.popup.table .color-zone .color-frame .fa-arrows-rotate {
    margin: auto 9px auto 0;
    font-size: 20px;
    color: #b0b0b0;
    vertical-align: middle;
    transition: 0.3s ease-in-out all 0s;
}

.popup.table .color-zone .color-frame .fa-arrows-rotate.enabled {
    color: #505050;
    cursor: pointer;
}

.popup.table .color-zone .color-frame .all {
    padding: 10px 0;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

.popup.table .color-zone .color-frame .all .color-picker {
    margin: 4px;
    direction: ltr;
}

.popup.table .color-zone .color-frame .all .color-picker input {
    padding-top: 3px;
    padding-bottom: 3px;
    border-radius: 5px;
    outline: 0;
    border: solid 1px #ddd;
    transition: 0.3s ease-in-out all 0s;
}

.popup.table .color-zone .color-frame .all .color-picker input:is(:hover, :focus-within) {
    background: #fafafa;
}

.popup.table .color-zone .color-frame .all .color-picker .minicolors-panel {
    right: 0;
}

.popup.table .personalize {
    margin: 8px 20px 17px 20px;
    display: flex;
    justify-content: center;
}

.popup.table .personalize i {
    font-size: 20px;
    color: #b0b0b0;
    cursor: pointer;
    vertical-align: middle;
    transition: 0.3s ease-in-out all 0s;
}

.popup.table .personalize i:is(:hover, :focus) {
    color: #505050;
}

.popup.table .personalize i.enabled {
    color: #0054b1;
}

.popup.table .personalize i.enabled:hover {
    color: #0044a1;
}

.popup.table .personalize .fa-palette {
    margin: auto 10px auto 5px;
}

.popup.table .personalize .fa-table-list {
    margin: auto 5px auto 10px;
    transform: rotate(90deg);
}

.popup.table .download-zone {
    margin: 5px auto 45px auto;
    white-space: nowrap;
    display: inline-flex;
}

.popup.table .download-zone .button.download {
    padding: 10px 20px;
    display: inline-flex;
}

.zone {
    max-width: 430px;
    margin: 0 auto;
}

.zone .container {
    margin: 30px 10px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.zone .container img {
    width: 85px;
    margin: 0 auto;
}

.zone .container .hint {
    margin: 20px 0;
}

.zone .container .hint div {
    margin: 8px 0 7px 0;
    padding: 5px 15px;
    border-radius: 10px;
    background: #f8f8f8;
    display: flex;
    white-space: nowrap;
    overflow: auto;
}

.zone .container .hint div span {
    margin: 0 auto;
}

.zone .container .hint div i {
    margin: auto 0;
    padding: 0 5px;
    color: #0044a1;
    vertical-align: middle;
}

.zone .container textarea {
    height: 200px;
    padding: 10px;
    outline: 0;
    border-radius: 10px;
    border: solid 1px #ddd;
    background: #fdfdfd;
    font: inherit;
    resize: none;
    transition: 0.3s ease-in-out all 0s;
}

.zone .container textarea:is(:hover, :focus-within) {
    background: #f6f6f6;
}

.zone .container .response {
    margin: 10px 0 2px 0;
    font-size: 14px;
    color: #f44336;
}

.zone .container .help {
    margin: 2px auto 15px auto;
    color: #b0b0b0;
    cursor: pointer;
    transition: 0.3s ease-in-out all 0s;
}

.zone .container .help:is(:hover, :focus) {
    color: #505050;
}

.zone .container .back {
    margin: 23px auto 0 auto;
}

.zone .container .back a {
    color: #b0b0b0;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s ease-in-out all 0s;
}

.zone .container .back a:is(:hover, :focus) {
    color: #505050;
}

.zone .container .back a span {
    white-space: nowrap;
    display: inline-flex;
}

.zone .container .back a i {
    margin: auto 0;
    padding: 0 7px 0 3px;
    vertical-align: middle;
    transition: 0.3s ease-in-out all 0s;
}

.zone .container .back a:is(:hover, :focus) i {
    padding: 0 9px 0 1px;
    color: #505050;
}
