        :root {
            --border-radius: 5px;
        }




        .type-minipog {
            color: #e74c3c;
            font-weight: 500;
        }

        .type-fura {
            color: #f39c12;
            font-weight: 500;
        }

        .type-truck {
            color: #3498db;
            font-weight: 500;
        }

        .type-manik {
            color: #9b59b6;
            font-weight: 500;
        }

        .type-ep {
            color: #1abc9c;
            font-weight: 500;
        }

        .type-special {
            color: #e67e22;
            font-weight: 500;
        }




        .stat-card {
            background: white;
            padding: 25px;
            border-radius: var(--border-radius);
            box-shadow: 0 3px 15px rgba(0,0,0,0.08);
            text-align: center;
        }

        .stat-label {
            font-size: 0.95em;
            color: #7f8c8d;
            font-weight: 500;
        }



        /* Модальное окно */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(17, 24, 39, .9);
            z-index: 1010;
            align-items: center;
            justify-content: center;
        }
        .modal-content {
            background: #eeeeee;
            border-radius: var(--border-radius);
            width: 90vw;max-width:1200px;
            overflow-y:auto;
            min-height: 70vh;
            max-height:95vh;
            box-shadow: 0 5px 25px rgba(255,255,255,.9);
            animation: modalAppear .5s ease-out;
        }
        
        #formModal .modal-content {max-width:800px;animation: graphAppear .4s ease-in;}
        body.dark-theme .modal-content {background:#2c3e50;box-shadow:0px 0px 15px #111827;}
        body.dark-theme .modal-content h2 {color:#ffffff70;}
        .modal-body { height:84%; }
        .modal-body h2 {font-size:1.3em;color:#11182770;}
        .modal-body iframe { width:100%;height:100%; }
        .modal-content.calendar { width:90%; }

        @keyframes modalAppear {
            0% { opacity: 0; transform: scale(0); }
            100% { opacity: 1; transform: scale(1); }
        }

        .modal-header {
            position:relative;
            padding: 20px 25px 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 { color: #2c3e50; margin:0 20px 0 0;padding:0;display: flex;align-items: center;}
        .modal-header h3 span {display:inline-block;margin-left:20px;white-space:nowrap;max-width:300px;overflow:hidden;text-overflow:ellipsis;}
        .modal-header h3 span.error {color:#c0392b;}

        .close-btn {
            position:fixed;bottom:50px;right:3%;
            background: none;
            border: none;
            font-size:3em;
            font-weight:400;
            transform:scale(3);
            cursor: pointer;
            color: #ffffff70;
        }

        .modal-body {
            padding: 0 25px 25px;
        }

        .unit-details {display: flex; flex-wrap:wrap;align-items:flex-start;justify-content:space-between;max-height:560px;}
        .unit-details h2 {width:100%;font-size:1.2em;color:var(--secondary-color);border-bottom:solid 1px var(--secondary-color);margin:40px auto 20px;} 
        .unit-details h4 {width:100%;font-size:1em;color:var(--secondary-color);border-bottom:solid 1px var(--secondary-color);margin:20px auto 20px;} 

        .detail-item {width:24%;margin: 5px;}
        #modal-salary {font-size:1.5em;color:#27ae60;}
        .detail-item select {margin-bottom:10px;}
        .detail-item img {width:100%;max-width:300px;border-radius: var(--border-radius);box-shadow:0px 0px 1px #00000070;}
        .detail-item.w-100 {width:100%;margin-top:20px;}
        .detail-item.w-30 {width:30%;}
        .detail-item.w-40 {width:45%;}
        .detail-item.w-50 {width:62%;}
        .detail-item.pl-30 {padding-left:30px;}
        .detail-item.w-50 aside {display:flex;align-items:center;}
        .detail-item.w-50 aside img {width:50px;margin-right:10px;}
        .detail-label { font-weight: 600; color: #7f8c8d; font-size: 0.75em;margin-bottom: 1px;}

        .detail-value {font-size: 1em;font-weight:600;line-height:100%;color: #2c3e50;margin-bottom:25px;}
        body.dark-theme .detail-value {color: #ffffff90;}
        .modal-tbl {width:100%;color:#11182790;}
        .modal-tbl th {text-align:left;font-size:.9em;text-align:center;border-bottom:groove .6px #2c3e5040;}
        .modal-tbl td {font-size:.9em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:solid 1px #7f8c8d30;padding:12px 3px 3px;}
        .modal-tbl td:nth-child(1) aside {display:flex;justify-content:space-between;align-items:center;width:120px;}
        .modal-tbl td:nth-child(2) {width:20%;text-align:center;}
        .modal-tbl td:nth-child(3) {font-weight:600;text-align:center;}
        .modal-tbl td:nth-child(4) {text-align:center;}
        .modal-tbl td:nth-child(5) {text-align:center;}
        .modal-tbl td:nth-child(6) {text-align:center;}
        .modal-tbl td.units {min-width:40%;}
        .modal-tbl td.success div {margin-right:10px;min-width:12px;height:12px;border-radius:50%;background:#acffee;}
        .modal-tbl td.warning div {margin-right:10px;min-width:12px;height:12px;border-radius:50%;background:#e67e22;}
        .modal-tbl td.units aside {display:flex;flex-wrap:wrap;justify-content:flex-start;}
        .modal-tbl td.units aside p {line-height:105%;font-size:.9em;text-align:left;}
        .modal-tbl td img {max-width:60px;}
        .modal-tbl td.date {width:100px;font-weight:500;}
        .modal-tbl td.status {width:50px;font-size:.8em;font-weight:600;}
        .modal-tbl td.title {width:90px;font-size:.9em;text-align:center;}
        .modal-tbl td.price {width:130px;padding-right:15px;text-align:center;text-align:right;font-size:.9em;font-weight:600;line-height:105%;}
        .modal-tbl td.price span {display:block;}
        .modal-tbl td.price span.future {font-size:.75em;}
        .modal-tbl figure {display:flex;align-items:center;max-width:27%;margin-right:10px;overflow:hidden;}
        .modal-tbl figure span {width:100%;opacity:.7;}
        .modal-tbl figure img {width:30px;height:30px;object-fit:scale-down;border-radius:50%;margin-right:5px;}
        #unit-serv {margin:30px 10px 20px auto;}
        #unit-form section.dates {width:95%;margin:20px auto 30px;}
        #unit-form section.dates .modal-tbl {margin:20px 30px 40px;box-sizing:margin-box;}
        #unit-form section.dates .modal-tbl th {font-weight:500;}
        #unit-form section.dates .modal-tbl td:nth-child(1) {position:relative;width:80px;overflow:visible;}
        #unit-form section.dates .modal-tbl td:nth-child(2) {width:100px;}
        #unit-form section.dates .modal-tbl td:nth-child(2),
        #unit-form section.dates .modal-tbl td:nth-child(3) {text-align:center;}
        #unit-form section.dates .modal-tbl td:nth-child(7),
        #unit-form section.dates .modal-tbl td:nth-child(8) {width:120px;text-align:center;}
        #unit-form section.dates .modal-tbl a {font-size:.9em;display:flex;align-items:center;}
        #unit-form section.dates .modal-tbl a img {margin:0 5px -2px 5px;padding:0;width:16px;height:16px;}
        #unit-form section.dates .modal-tbl svg {cursor:pointer;}
        #unit-form section.dates .modal-tbl span.book {position:absolute;left:-11px;bottom:11px;display:block;width:10px;height:10px;border-radius:50%;}
        #unit-form section.dates .modal-tbl span.book.warning {background:#f39c12;} 
        #unit-form section.dates .modal-tbl span.book.success {background:#27ae60;} 
        body.dark-theme .modal-tbl {color:#ffffff90;} 

        .unit-image {
            width: 100%;
            height: 300px;
            background: #ecf0f1;
            border-radius: var(--border-radius);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5em;
            margin-bottom: 20px;
        }
        .unit-image img, .unit-image a {width:100%;height:100%;overflow:hidden;object-fit:cover;}
        .document-section {
            width:100%;
            background: #f8f9fa;
            padding: 20px;
            border-radius: var(--border-radius);
            margin-bottom: 20px;
        }
        body.dark-theme .document-section {background: #111827;}
        .document-section h4 {
            color: #2c3e50;
            margin-bottom: 15px;
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 10px;
        }
        body.dark-theme .document-section h4 {color:#ffffff80;}
        .document-photo {
            width: 100%;
            max-width: 200px;
            height: 120px;
            background: #ecf0f1;
            border: 1px dashed #bdc3c7;
            border-radius: var(--border-radius);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #7f8c8d;
            font-size: 0.9em;
            margin-top: 10px;
            cursor: pointer;
        }

        .document-photo:hover {
            background: #e0e0e0;
        }
        .document-photo a, .document-photo img {width:100%;height:100%;object-fit:cover;}


        .form-group {
            margin-bottom: 15px;
        }

        .form-label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: #2c3e50;
            white-space:nowrap;
        }

        .form-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #dcdfe6;
            border-radius: var(--border-radius);
            font-size: 0.95em;
        }
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr;
            gap: 10px;
        }


        .form-section {
            background: #f8f9fa;
            padding: 20px;
            border-radius: var(--border-radius);
            margin-bottom: 20px;
        }

        .form-section h4 {
            display:flex;justify-content: space-between;
            color: #2c3e50;
            margin-bottom: 15px;
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 10px;
        }
        .form-section h4 a {display:flex;align-items:center;}
        .form-section h4 a svg.svg-action {width:22px;margin-left:12px;}


        .checkbox-group {
            display: flex;
            gap: 20px;
            margin-top: 10px;
        }

        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 5px;
            margin-right:20px;
        }

        .checkbox-item input {
            margin: 0;
        }
        .checkbox-item label {
            white-space:nowrap;
        }
        .tab-navigation {
            width:100%;
            display: flex;
        }

        .tab-btn {
            padding: 12px 20px;
            background: none;
            border: none;
            cursor: pointer;
            font-weight: 500;
            color: #7f8c8d;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
        }

        .tab-btn.active {color: #2C5530;border-bottom-color: #2C5530;}

        body.dark-theme .tab-btn.active {color: #27ae60;border-bottom-color: #27ae60;}

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* Стили для переключателя администратора */
        .admin-toggle {
            display: flex;
            align-items: center;
            margin-left: 20px;
            padding: 8px 15px;
            background: #f8f9fa;
            border-radius: var(--border-radius);
            border: 1px solid #e0e0e0;
        }

        .admin-toggle label {
            margin-left: 8px;
            font-size: 0.9em;
            color: #2c3e50;
            cursor: pointer;
        }

        .admin-toggle input { cursor: pointer; }


        table.alert-table {width: 100%; border-collapse: collapse;font-size: 0.9em;margin-top:40px;}
        table.alert-table th {text-align:left;background: #34495e20;color:#c0392b;padding: 3px 8px;font-weight: 600;white-space: nowrap;}
        table.alert-table td {white-space:nowrap;border-bottom: 1px solid #e0e0e0;vertical-align: middle;line-height:95%;padding:2px;}
        table.alert-table td.img {text-align:center;width:50px}
        table.alert-table td.img img {width:100%;object-fit:cover;}
        table.alert-table td:nth-child(2) {padding-left:20px;}


        .graph-header {display: flex;justify-content: space-between;justify-content: space-between;align-items:flex-end;padding:10px;width:100%;}
        .graph-header table.tbl-colors {margin-bottom:-5px;}
        .graph-header table.tbl-colors td {padding-right:20px;font-size:.9em;}
        .graph-header table.tbl-colors div {width:15px;height:15px;margin:0 10px;}
        .graph-header table.tbl-colors div.btn-success {background:#10B98150;}
        .graph-header table.tbl-colors div.btn-warning {background:#F59E0B60;}
        .graph-header h3 {color: #2c3e50;font-weight: 600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
        .graph-header h3 input {display:block;width:100%;}
        .graph-header h3 select {display:block;width:120px;padding:1px;}
        .graph-navigation { display:flex;align-items:center; gap:5px;}
        #graph-period {background:#34495e;color:#fff;white-space:nowrap;min-width:190px;min-height:40px;padding: 7px 16px;border-radius: var(--border-radius);font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,0.1);}
        
        div.graph-div {background:var(--surface-white);width:100%;min-width:800px;margin:0 auto;border-radius: var(--border-radius);border-collapse:collapse;border-spacing:0;font-size:.9em;}
        div.graph-div div.row {display:flex;justify-content:flex-start;overflow:hidden;overflow-x:auto;}
        div.graph-div div.row::-webkit-scrollbar {width:auto;height:3px;}
        div.graph-div div.unit {min-width:16vw;max-width:16vw;padding:5px;display:flex;padding-right:20px;box-sizing:border-box;border-right:solid 1px #7f8c8d50;border-bottom:solid 1px #7f8c8d50;}
        div.graph-div div.unit div {display:flex;align-items:center;}
        div.graph-div div.unit figure {min-width:90px;display:flex;flex-wrap:wrap;}
        div.graph-div div.unit figure img {width:90px;height:68px;object-fit:contain;border-radius:0px  var(--border-radius) 0 0;}
        div.graph-div div.unit figure span {width:100%;margin:0px auto;text-align:center;}
        div.graph-div div.unit figcaption {display:flex;flex-wrap:wrap;padding-left:10px;line-height:105%;}
        div.graph-div div.unit figcaption span {width:100%;margin:0px auto;font-size:.9em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
        div.graph-div div.unit figcaption span:first-child {margin-bottom:0px;}
        div.graph-div div.cell {position:relative;max-width:9vw;min-width:9vw;overflow:hidden;padding:10px 20px;box-sizing:border-box;font-size:.85em;border-right:solid 1px #7f8c8d50;border-bottom:solid 1px #7f8c8d50;vertical-align:top;}
        div.graph-div div.cell h4 {font-size:1.2em;font-weight:600;text-align:center;}
        div.graph-div div.cell h3 {font-size:1.1em;font-weight:400;text-align:center;}
        div.graph-div div.cell h3 span {font-weight:700;}

        table.graph-tbl {background:var(--surface-white);width:100%;min-width:800px;margin:0 auto;border-radius: var(--border-radius);border-collapse:collapse;border-spacing:0;font-size:.9em;}
        table.graph-tbl h4 {font-weight:400;font-size:1em;}
        table.graph-tbl th {text-align:center;background:#34495e90;color:#fff;padding: 12px 8px;text-align:center;font-weight: 600;border-right: 1px solid #bdc3c7;white-space: nowrap;}
        table.graph-tbl th.left {text-align:left;}
        table.graph-tbl th.today {background:#3498db;}
        table.graph-tbl th:first-child { border-radius: var(--border-radius) 0 0 0;}
        table.graph-tbl th:last-child { border-radius:0  var(--border-radius) 0 0;border-right: none;}
        table.graph-tbl td {min-width:130px;white-space:nowrap;border-bottom: 1px solid #e0e0e0;vertical-align: middle;line-height:105%;padding:0px 2px;}
        table.graph-tbl td.unit {width:16%;padding:5px;}
        table.graph-tbl td.unit div {display:flex;align-items:center;}
        table.graph-tbl td.unit figure {min-width:90px;display:flex;flex-wrap:wrap;}
        table.graph-tbl td.unit figure img {width:90px;height:68px;object-fit:contain;border-radius:0px  var(--border-radius) 0 0;}
        table.graph-tbl td.unit figure span {width:100%;margin:0px auto;text-align:center;}
        table.graph-tbl td.unit figcaption {display:flex;flex-wrap:wrap;padding-left:5px;}
        table.graph-tbl td.unit figcaption span {width:100%;margin:1px auto;font-size:.9em;}
        table.graph-tbl td.unit figcaption span:first-child {margin-bottom:0px;}
        table.graph-tbl td.cell {position:relative;width:11%;border-left:solid 1px #7f8c8d50;vertical-align:top;padding:0;font-size:.85em;}
        table.graph-tbl td.cell section {height:120px;width:100%;margin:auto;overflow:hidden;overflow-y:visible;display:flex;flex-wrap:wrap;}
        table.graph-tbl td.cell section div.remove {animation: removeCell 0.5s ease forwards;transform: scale(0);opacity: 0;}
        @keyframes removeCell {
            from {
                opacity: 1;
                rotate:360deg;
                transform: scale(1.6);
            }
            to {
                opacity: 0;
                transform: scale(0);
            }
        }
        table.graph-tbl td.cell section::-webkit-scrollbar {width:1px;height:auto;}
        table.graph-tbl td.cell section::-webkit-scrollbar-track {background-color:#7f8c8d50;}
        table.graph-tbl td.cell section::-webkit-scrollbar-thumb {background:#2C5530;}
        table.graph-tbl td.cell div {position:relative;height:100%;width:100%;border-bottom:solid 1px #7f8c8d50;display:flex;flex-wrap:wrap;align-content:flex-start;padding:5px 5px 5px 8px;box-sizing:border-box;overflow:hidden;}
        table.graph-tbl td.cell section div aside.refresh {width:100%;margin:10px auto;text-align:center;white-space:normal;}
        table.graph-tbl td.cell section div aside.refresh svg {width:20%;fill:#3498db;}
        table.graph-tbl td.cell div:last-child {border-bottom:none;}
        table.graph-tbl td.cell div span {width:100%;margin:1px 0;font-size:1em;}
        table.graph-tbl td.cell div span b {font-weight:500;}
        table.graph-tbl td.cell div a {width:100%;font-size:.9em;margin-bottom:2px;display:flex;align-items:center;}
        table.graph-tbl td.cell div a svg {width:10px;margin-right:5px;transform:scale(1.3);}
        table.graph-tbl td.cell div.works span,
        table.graph-tbl td.cell div.works a.pers,
        table.graph-tbl td.cell div.works a.edit,
        table.graph-tbl td.cell div.works a.oper {display:none;}
        table.graph-tbl td.cell:hover div.works {height:100% !important;}
        table.graph-tbl td.cell:hover div.works span,
        table.graph-tbl td.cell:hover div.works a.pers,
        table.graph-tbl td.cell:hover div.works a.edit,
        table.graph-tbl td.cell:hover div.works a.oper {display:block;}
        table.graph-tbl td.cell div.primary {background:#10B98110;}
        table.graph-tbl td.cell div.secondary {background:#6B728020;}
        table.graph-tbl td.cell div.warning {background:#F59E0B20;}
        table.graph-tbl td.cell div.warning span {display:none;}
        table.graph-tbl td.cell div div.tools {position:absolute;bottom:2px;left:0;right:0;height:20px;border-bottom:0;display:flex;justify-content:space-between;align-items:flex-start;}
        table.graph-tbl td.cell div div.tools svg {width:12px;transform:scale(1);margin:0;}
        table.graph-tbl td.cell div div.tools svg.stamp {width:15px;margin:-1px 3px 1px auto;fill:#5f646480;}
        table.graph-tbl td.cell div div.tools a {width:12px;transform:scale(1);margin:0;}
        table.graph-tbl td.cell div div.tools i {margin:4px auto -4px;width:8px;height:8px;border-radius:50%;background:#27ae60;border:ridge 1px #11182750;cursor:pointer;}
        table.graph-tbl span.balance {width:18px !important;margin:auto 5px 10px auto;}
        table.graph-tbl span.balance b {display:none;z-index:2;position:absolute;bottom:1px;right:40px;padding:0px 5px 5px 0;background:var(--background-light);}
        table.graph-tbl span.balance svg {width:100%;cursor:pointer;}
        table.graph-tbl span.balance.red svg {fill:#e74c3c;width:16px;transform:scale(1.3) !important;}
        table.graph-tbl span.balance.green svg {fill:#27ae60;width:13px;}
        table.graph-tbl span.balance:hover b {display:block;}
        table.graph-tbl td.cell svg.desc {z-index:2;position:absolute;right:5px; top:5px;width:12px;fill:#40566b;cursor:pointer;}
        table.graph-tbl td.cell aside.desc {z-index:2;display:none;position:absolute;right:5px; left:5px;top:15px; padding:8px;white-space:normal;background:#fff;font-size:1.1em;}
        table.graph-tbl td.cell svg.desc:hover + aside.desc {display:block;}
        table.graph-tbl td.cell.today {background:#3498db10;}
        body.dark-theme table.graph-tbl td {border-bottom: 1px solid #e0e0e060;color:#ffffff90;}
        body.dark-theme table.graph-tbl th {color:#ffffff80;}
        body.dark-theme #graph-period {color:#ffffff80;}

        table.units-tbl {display:none;width:100%;min-width:700px;margin:40px auto 20px 0;border-radius: var(--border-radius);corner-shape:bevel;border-collapse:collapse;border-spacing:0;font-size: 0.9em;}
        table.units-tbl th {text-align:center;background:#34495e90;color: white;padding: 12px 8px;text-align:center;font-weight: 600;border-right: 1px solid #bdc3c7;white-space: nowrap;}
        table.units-tbl th.left {text-align:left;}
        table.units-tbl th svg {width:22px;fill:#fff;}
        table.units-tbl tr.disabled {opacity:.8;}
        table.units-tbl tr.disabled:hover {opacity:1;}
        table.units-tbl tr.active {background:#3498db20;}
        table.units-tbl th {position:relative;}
        table.units-tbl th:first-child { border-radius:var(--border-radius) 0 0 0;}
        table.units-tbl th:last-child { border-radius:0 var(--border-radius) 0 0;border-right:none;width:80px;}
        table.units-tbl th aside.help {display:none;z-index:2;position:absolute;top:-60px;left:-30px;width:180px;white-space:normal;color:#11182780;background:#fff;box-shadow:1px 1px 6px #11182760;padding:10px;font-size:.9em;border-radius:var(--border-radius);}
        table.units-tbl th:hover aside.help {display:block;}
        table.units-tbl td {background:#fff;white-space:nowrap;border-bottom: 1px solid #e0e0e060;vertical-align:middle;line-height:95%;padding:0px 2px;}
        body.dark-theme table.units-tbl td {background:transparent;}
        table.units-tbl.pb-0 td {padding-bottom:0;}
        table.units-tbl td.work-title {text-align:center;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
        table.units-tbl td.active {font-weight:700;}
        table.units-tbl td.left {padding-left:20px;}
        table.units-tbl td.kpd {width:70px;}
        table.units-tbl td.kpd aside {position:relative;transform:scale(.9);border-radius:var(--border-radius);margin:14px;height:20px;width:50px;margin:auto;background:#bdc3c770;box-shadow:1px 1px 5px #11182780 inset;}
        table.units-tbl td.kpd aside b {color:#11182780;position:absolute;right:5px;top:3px;font-weight:400;}
        body.dark-theme table.units-tbl td.kpd aside b {color:#ffffff90;}
        table.units-tbl td.kpd aside span {border-radius:var(--border-radius);display:inline-block;height:20px;background:#1abc9c;}
        table.units-tbl td.kpd aside.red span {background:#c0392b;}
        table.units-tbl td.kpd aside.green b {color:#11182780 !important;}
        body.dark-theme table.units-tbl td.kpd aside.green b {color:#ffffff90 !important;}
        table.units-tbl td.td-btn {padding:8px 8px 12px;}
        table.units-tbl td.td-btn button {margin:0 10px -6px 0;}
        table.units-tbl td.img {position:relative;width:90px;padding:0;}
        table.units-tbl td.img img {z-index:1;border:2px solid transparent;width:80px;height:75px;object-fit:cover;border-radius:0 5px 0 20px;cursor:pointer;corner-bottom-left-shape:bevel;transition:all .3s ease 0s;}
        table.units-tbl td.img:hover img {border:2px solid #e0e0e0;}
        table.units-tbl td.img aside {z-index:0;position:absolute;left:0px;bottom:0px;width:20px;height:20px;border-radius:0 100% 0 0;corner-top-right-shape:bevel;}
        table.units-tbl td.img aside span {display:none;z-index:10;position:absolute;top:20px;padding:3px;background:#34495e;color:#fff;border-radius:0px var(--border-radius) var(--border-radius);}
        table.units-tbl td.img:hover aside span {display:block;background:#27ae60;}
        table.units-tbl td.img aside.online {background:#27ae60;}
        table.units-tbl td.img aside.offline {background:#7f8c8d80;}
        table.units-tbl td.comps {line-height:120%;}
        table.units-tbl td.comps div {max-width:160px;overflow:hidden;text-overflow:ellipsis;}
        table.units-tbl td.links a {display:inline-block;margin-bottom:12px;}
        table.units-tbl td.links a:last-child {margin-bottom:0px;}
        table.units-tbl td.title {font-weight:500;position:relative;padding:5px 0px 5px 20px;}
        table.units-tbl td.title aside.fines {position:absolute;right:0px;top:20px;cursor:pointer;}
        table.units-tbl td.title aside.fines svg {fill:#e74c3c;width:25px;}
        table.units-tbl td.oper-name {position:relative;}
        table.units-tbl aside.creds {position:absolute;right:10px;top:22px;cursor:pointer;}
        table.units-tbl aside.creds svg {fill:#e74c3c;width:20px;}
        table.units-tbl aside.auto-fines {position:absolute;right:10px;top:22px;}
        table.units-tbl aside.auto-fines svg {fill:#34495e90;width:20px;}
        table.units-tbl td.price {font-weight:400;}
        table.units-tbl td.oper {text-align:center;}
        table.units-tbl td span.leasing {display:block;margin-top:7px;color:#34495e90;cursor:pointer;}
        table.units-tbl td span.license {display:inline-block;margin:10px auto 10px 0;text-transform:lowercase;font-weight:500;font-size:1.1em;color:#34495e;background:#fff;border:solid 1px #34495e;border-radius:3px;padding:2px 3px 3px;}
        table.units-tbl td span.license img {height:13px;opacity:.8;}
        table.units-tbl td span.green, table.units-tbl td b.green, table.units-tbl td span.red {font-size:.9em;font-weight:500;}
        table.units-tbl td.foto aside a {display:flex;align-items:center;border-radius:5px;}
        table.units-tbl td.foto img {display:none;width:40px;height:40px;object-fit:cover;border-radius:50%;margin-right:5px;}
        table.units-tbl td.btn aside {margin:auto;display:flex;justify-content:space-around;align-items:center;}
        table.units-tbl td.btn {position:relative;}
        table.units-tbl td.btn ul {display:none;z-index:10;position:absolute;top:80%;left:-100px;font-size:.9em;background:#ecf0f1;box-shadow:1px 1px 5px #40566b;border-radius:var(--border-radius);padding:5px;margin:0;}
        table.units-tbl td.btn ul li {cursor:pointer;margin:10px 5px 10px 20px;color:#2c3e50;}
        table.units-tbl td.unit-multi {padding:0;}
        table.units-tbl td.unit-multi div {min-height:90px;}
        table.units-tbl td.unit-dates {padding:0;border:none;cursor:pointer;}
        table.units-tbl td.unit-dates table {opacity:.6;margin:0;border:0;width:100%;border-spacing:0;height:2px;}
        table.units-tbl td.unit-dates table td {padding:0;border:0;}
        table.units-tbl td.unit-dates table td.btn-secondary {background:#e0e0e0;}
        table.units-tbl td.unit-dates table td.btn-primary {background:#3498db;}
        table.units-tbl td.unit-dates table td.btn-warning {background:#e67e22;}
        table.units-tbl td.unit-dates table td.btn-error {background:#e74c3c;}
        table.units-tbl td.unit-dates table td.btn-success {background:#27ae60;}
        table.units-tbl td.unit-leasing {padding:0;border:none;cursor:pointer;}
        table.units-tbl td.unit-leasing table {margin:0;border:0;width:100%;border-spacing:2px 0;height:8px;}
        table.units-tbl td.unit-leasing table td {padding:0;border:0;cursor:pointer;}
        table.units-tbl td.unit-leasing table td.btn-secondary {background:#e0e0e0;}
        body.dark-theme table.units-tbl td.unit-leasing table td.btn-secondary {background:#e0e0e070;}
        table.units-tbl td.unit-leasing table td.btn-success {background:#27ae60;}
        table.units-tbl td.unit-leasing table td.btn-error {background:#e74c3c;}
        table.units-tbl td.date {position:relative;text-align:center;}
        table.units-tbl td small {color:var(--secondary-color);}
        table.units-tbl td.date small.pers {position:absolute;bottom:5px;left:0;right:0;text-align:center;overflow:hidden;text-overflow:ellipsis;}
        table.units-tbl td.mobile small {color:var(--secondary-color);transform:scale(.9);}
        table.units-tbl td.red {font-weight:600;}
        table.units-tbl td.green {font-weight:600;}
        table.units-tbl span.future {display:block;width:100%;color:#3498db;font-weight:700;font-size:.7em;}
        table.units-tbl button.leasing {padding:5px 3px;font-size:.8em;}
        table.units-tbl td.sep {background:transparent;height:4vw;}
        table.units-tbl td.sep aside {margin:0px auto 25px auto;width:100%;display:flex;align-items:flex-start;justify-content:space-between;}
        table.units-tbl td.sep span.price {}
        table.units-tbl td.sep span.future {width:200px;text-align:right;font-size:.9em;font-weight:500;}
        table.units-tbl a {font-size:.9em;}
        table.units-tbl span.alert-info {display:inline-block;width:auto;cursor:pointer;}
        table.units-tbl span.alert-info aside {display:none;z-index:3;position:absolute;left:-60px;top:20px;background:#f39c12; color:#fff;padding:5px;border-radius:var(--border-radius);}
        table.units-tbl span.alert-info:hover aside {display:block;}
        table.units-tbl div.to {opacity:.2;display:flex;width:45px;height:45px;border-radius:50%;background:conic-gradient(#27ae60 var(--progress), #7f8c8d50 0deg);font-size: 0;cursor:pointer;}
        table.units-tbl div.to.active {opacity:1;}
        table.units-tbl div.to.warning {color:#f39c12;background:conic-gradient(#f39c12 var(--progress), #e0e0e0 0deg);}
        table.units-tbl div.to.error {color:#e74c3c;background:conic-gradient(#e74c3c var(--progress), #e0e0e0 0deg);}
        table.units-tbl div.to.falsed {color:#fff;border-radius:50%;background:#e74c3c;transform:scale(.9);}
        table.units-tbl div.to::after {content: attr(data-progress);display: flex;justify-content: center;flex-direction: column;width: 100%;margin: 2px; border-radius: 50%;background: var(--background-light);font-size: .9rem;font-weight:500;text-align: center;}
        table.units-tbl div.to.falsed::after {content:'!';background:#e74c3c;font-size:1.6rem;font-weight:600;}
        table.units-tbl span.remain {display:block;color:#e74c3c;font-weight:600;font-size:1.1em;margin-bottom:8px;}
        div.pages {position:relative;width:95%;min-height:36px;display:flex;justify-content:flex-start;margin:20px auto 10px 0px;}
        div.pages ul {display:flex;max-width:300px;overflow:hidden;}
        div.pages div {border-radius:3px;corner-shape:bevel;color:#fff;text-align:center;background:#bdc3c7;box-shadow:0px 1px 2px #11182730;padding:3px 10px;margin:5px;min-width:36px;font-size:1em;cursor:pointer;}
        /*div.pages div.page:nth-child(n+7) {display:none;}*/
        div.pages div:hover {background:#7f8c8d;box-shadow:0px 1px 1px #111827;color:#fff;transition:all .3s ease 0s;}
        div.pages div.active {background:#27ae60;color:#fff;font-weight:600;}
        div.pages aside {position:absolute;right:0;width:30%;display:flex;justify-content:flex-end;border-radius:5px;}
        div.pages aside span.tools {display:flex;margin-right:50px;}
        div.pages aside span.tools svg {width:32px;margin-right:15px;fill:#7f8c8d;cursor:pointer;}
        div.pages aside span.tools svg.active {fill:#27ae60;transition:all .5s ease 0s;}

        body.dark-theme div.pages div {background:#34495e;color:#ffffff90;}
        body.dark-theme div.pages div.active {background:#27ae60;}
        body.dark-theme table.units-tbl tr {background:#2c3e50;}
        body.dark-theme table.units-tbl th {color:#ffffff90;}
        body.dark-theme table.units-tbl th svg {width:22px;fill:#ffffff90;}
        body.dark-theme table.units-tbl td.img img {opacity:.8;}
        body.dark-theme table.units-tbl td.unit-multi div {background:#40566b;} 
        body.dark-theme table.units-tbl td.unit-dates .btn-secondary {background:#ffffff30;}
        body.dark-theme table.units-tbl td {border-radius:none;border-color:#ffffff30;}
        body.dark-theme table.units-tbl td span.license {opacity:.9;background:#5f6464;color:#ffffff90;}
        body.dark-theme table.units-tbl td span.stat {background:none !important;font-size:1em;}
        body.dark-theme table.units-tbl td span.leasing {color:#ffffff90;}
        
        div#work-unite {z-index:3000;position:fixed;bottom:0px;right:0px;opacity:.3;padding:10px;background:#eff0f0;box-shadow:-1px -1px 13px #11182780;border-radius:20px 0 0 0;corner-top-left-shape:notch;transition:all 1s ease-in .5s;}
        div#work-unite svg {width:6vw;}
        div#work-unite.active {opacity:1;transition:none;}
        div#work-unite.active svg {width:9vw;}
        div#work-unite.active svg:hover {transform:rotate(-6deg);transition:all .6s ease-out .2s;}
        div#work-unite.active.reload svg {animation: reloadUnite .3s ease-in forwards;opacity:1;}
        @keyframes reloadUnite {
            0% { transform:rotate(-3deg); }
            25% { transform:rotate(6deg); }
            50% { transform:rotate(3deg); }
            75% { transform:rotate(-3deg); }
            100% { transform:rotate(0deg); }
        }
        div#work-unite div#work-unite-price {display:none;}
        div#work-unite.active div#work-unite-price {display:block;position:absolute;top:-40px;right:5px;color:#27ae60;font-weight:600;font-size:1.3em;}
        div#work-unite aside {z-index:10;opacity:0;position:absolute;top:-40px;right:0;font-weight:600;background:var(--background-light);padding:5px 10px;line-height:105%;}
        div#work-unite:hover aside {opacity:1;}
        
        div.unite-price {display:none;position:absolute;bottom:64px;left:0;right:0;text-align:center;font-weight:600;color:#27ae60;background:var(--background-light);font-size:1.2em;}
        section#works-unite {z-index:2999;position:fixed;right:10vw;bottom:0;max-width:89vw;background:#eff0f0;display:flex;overflow:hidden;overflow-y:auto;box-shadow:-1px -1px 13px #11182780;}
        section#works-unite p {margin:15px 10px 20px 20px;cursor:pointer;line-height:105%;display:flex;flex-wrap:wrap;}
        section#works-unite p b {color:#3498db;width:100%;}
        section#works-unite p:hover b {color:#c0392b;}
        section#works-unite p span.price {width:100%;font-weight:600;color:#27ae60;}
        
        div.units-cell {position:relative;width:100%;margin:20px auto 20px 0;padding:12px 0px 36px;transform:translate(0px);box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:space-evenly;align-items:flex-start;transition:all .3s ease-in 0s;}
        div.units-cell.next {transform:translateX(700px);}
        div.units-cell.prev {transform:translateX(-700px);}
        
        div.units-cell div.unit-cell {width:208px;margin:0 16px 48px;background: url('/stat/img/bg-card.jpg') repeat left top;background-size:100% 100%;}
        div.units-cell div.unit-cell section {min-height:140px;margin:auto;display:flex;flex-wrap:wrap;padding:10px;background:var(--background-light);border-top:solid 1px #2c3e5020;box-shadow:1px 1px 3px #2c3e5030;border-radius:5px;corner-shape:bevel;}
        div.units-cell div aside {display:none;width:100%;cursor:pointer;}
        div.units-cell div.selected {z-index:300;}
        div.units-cell div.selected.remove section {animation:removeSelected 0.8s ease forwards;transform:scale(0);opacity: 0;}
        @keyframes removeSelected {
            from {
                opacity: 1;
                transform: scale(1);
            }
            to {
                opacity: 0;
                transform: scale(0);
            }
        }
        div.units-cell div.selected section {width:95%;min-width:700px;max-width:840px;z-index:10;position:absolute;top:0;right:6%;left:6%;flex-wrap:nowrap;background:#fffbf3;border:groove 1px #2c3e5090;box-shadow:1px 2px 36px #2c3e5070;justify-content:space-between;align-items:center;box-sizing: border-box;transition:all .5s ease-out 0s;}
        div.units-cell div.selected aside {order:2;display:block;width:auto;padding:0px 10px;}
        div.units-cell div.last {background:#fffbf3;}
        div.units-cell div aside span {width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
        div.units-cell div aside span date {font-weight:500;font-size:.95em;color:#5f6464;}
        div.units-cell div aside.work-title {position:relative;max-width:220px;display:flex;flex-wrap:wrap;}
        div.units-cell div aside.work-title span.title {font-size:.9em;}
        div.units-cell div aside.work-title button.doc {position:absolute;right:-10px; top:-15px;}
        div.units-cell div aside.work-title button.copy {position:absolute;right:12px; top:-15px;}
        div.units-cell div aside.work-title button.copy svg {width: 21px;margin-top:0px;}
        div.units-cell div aside.unit-multi {display:flex;overflow:hidden;min-width:180px;max-width:190px;}
        div.units-cell div aside.unit-multi h5 {margin:8px auto;text-align:center;color:#5f6464;}
        div.units-cell div aside.prices {font-size:.9em;font-weight:600;text-align:center;margin:auto 20px;}
        div.units-cell div aside.status {display:flex;justify-content:center;margin:auto 10px;}
        div.units-cell div aside.status span.stat {text-align:center;}
        body.dark-theme div.units-cell div aside.status span.stat {background:none !important;}
        div.units-cell div.selected aside.status {position:absolute;left:152px;top:4px;}
        div.units-cell div.selected aside.unit-multi {flex-wrap:wrap;max-width:250px;}
        div.units-cell div aside.unit-multi aside {width:40px;display:flex;flex-wrap:wrap;margin:2px 10px 2px 2px;}
        div.units-cell div aside.unit-multi aside a span {display:none;}
        div.units-cell div aside.unit-multi aside a span.unit {display:block;font-size:.8em;margin-top:-5px;width:62px;background:var(--background-light);}
        div.units-cell div aside.unit-multi aside a span.unit:hover {overflow:visible;}
        div.units-cell div aside.unit-multi aside img {width:60px;height:50px;object-fit:contain;border-radius:5px;corner-shape:bevel;margin:5px 5px 0;box-sizing:border-box;}
        div.units-cell div.selected aside.unit-multi aside {width:60px;}
        div.units-cell div.selected aside.unit-multi aside img {width:60px;height:50px;}
        div.units-cell div aside span.remain {color:#e74c3c;font-weight:600;font-size:1.1em;}
        div.units-cell div aside span.location {font-size:.9em;}
        div.units-cell div aside.unit-img {z-index:200;display:flex;justify-content:center;position:relative;width:55%;max-width:80px;}
        div.units-cell div aside.unit-img img {z-index:0;border:2px solid transparent;width:90px;height:80px;object-fit:contain;border-radius:5px;corner-shape:bevel;cursor:pointer;transition:all .3s ease 0s;}
        div.units-cell div aside.unit-img:hover img {border:2px solid #e0e0e0;}
        div.units-cell div aside.unit-img img.robo {width:120px;height:120px;margin-left:40px;}
        div.units-cell div.selected aside.unit-img img.robo {width:90px;height:90px;margin:auto;}
        div.units-cell div aside.unit-img aside {z-index:2;display:block;position:absolute;right:-140%;top:-2px;width:16px;height:16px;border-radius:50%;}
        div.units-cell div.selected aside.unit-img aside {right:-30px;}
        div.units-cell div aside.unit-img aside span {z-index:10;display:none;position:absolute;top:20px;right:10px;width:160px;text-align:center;padding:3px;background:#34495e;color:#fff;font-size:.9em;border-radius:0px 3px 3px;}
        div.units-cell div aside.unit-img:hover aside span {display:block;background:#27ae60;}
        div.units-cell div aside.unit-img aside.online {background:#27ae60;}
        div.units-cell div aside.unit-img aside.offline {background:#7f8c8d80;}
        div.units-cell div aside.unit-img aside.fines {position:absolute;right:-80px;top:25px;}
        div.units-cell div aside.unit-img aside.fines svg {fill:#e74c3c;width:30px;}
        div.units-cell div aside.unit-img aside.creds {position:absolute;right:-80px;top:60px;}
        div.units-cell div aside.unit-img aside.creds svg {fill:#e74c3c;width:30px;}
        div.units-cell div aside.unit-img aside.auto-fines {position:absolute;right:-135%;top:60px;}
        div.units-cell div aside.unit-img aside.auto-fines svg {fill:#34495e90;width:20px;}
        aside.auto-fines p {display:none;white-space:nowrap;background:#27ae60;color:#fff;padding:5px;position:absolute;right:0;top:20px;font-size:.9em;}
        aside.auto-fines:hover p {z-index:1000;display:block;}
        div.units-cell div aside.unit-to {display:flex;width:42%;max-width:90px;margin-left:20px;}
        div.units-cell div aside.unit-to div.to {margin:16px 30px -16px auto;transform:scale(1.2);opacity:.2;display:flex;justify-content:center;width:42px;height:42px;border-radius:50%;corner-shape:round;background:conic-gradient(#27ae60 var(--progress), #7f8c8d50 0deg);font-size: 0;cursor:pointer;}
        div.units-cell div aside.unit-to div.to.active {opacity:1;}
        div.units-cell div aside.unit-to div.to.warning {color:#f39c12;background:conic-gradient(#f39c12 var(--progress), #e0e0e0 0deg);}
        div.units-cell div aside.unit-to div.to.error {color:#e74c3c;background:conic-gradient(#e74c3c var(--progress), #e0e0e0 0deg);}
        div.units-cell div aside.unit-to div.to.falsed {color:#fff;border-radius:50%;background:#e74c3c;transform:scale(.9);}
        div.units-cell div aside.unit-to div.to::after {content: attr(data-progress);display: flex;justify-content: center;flex-direction: column;width: 100%;margin:3px; border-radius: 50%;background: var(--background-light);font-size: 1rem;font-weight:500;text-align: center;}
        div.units-cell div aside.unit-to div.to.falsed::after {content:'!';background:#e74c3c;font-size:1.6rem;font-weight:600;}
        div.units-cell div aside.unit-title {display:flex;flex-wrap:wrap;width:100%;max-width:250px;margin:10px auto;}
        div.units-cell div.selected aside.unit-title {display:flex;flex-wrap:wrap;width:25%;margin:10px 10px;}
        div.units-cell div aside.unit-title span {position:relative;width:100%;overflow:visible;}
        div.units-cell div aside.unit-title span.title {z-index:5;width:100%;font-weight:600;}
        div.units-cell div aside.unit-title span.title span.alert-info {transform:scale(1.3);display:inline-block;width:auto;cursor:pointer;}
        div.units-cell div aside.unit-title span.title span.alert-info aside {display:none;z-index:3;position:absolute;left:-60px;top:20px;background:#f39c12; color:#fff;padding:5px;border-radius:5px;}
        div.units-cell div aside.unit-title span.title span.alert-info:hover aside {transform:scale(.7);display:block;width:260px;font-size:.95em;overflow:hidden;text-overflow:ellipsis;}
        div.units-cell div aside.unit-title span.license {display:inline-block;width:90%;max-width:130px;margin:20px auto 20px;text-transform:lowercase;text-align:center;font-weight:500;font-size:1em;color:#34495e;background:var(--background-light);border:solid 1px #34495e70;border-radius:3px;padding:2px 3px 3px;}
        body.dark-theme div.units-cell div aside.unit-title span.license {color:#ffffff90;}
        div.units-cell div aside.unit-title span.license img {height:13px;opacity:.8;}
        div.units-cell div aside.unit-title span.sub-title {width:100%;color:#5f6464;font-size:.8em;font-weight:600;}
        div.units-cell div aside.unit-price {padding:0px;}
        div.units-cell div aside.unit-price span.price {display:block;width:100%;min-width:120px;font-weight:600;color:#27ae60;margin:auto;}
        div.units-cell div aside.unit-price span.leasing {display:block;width:100%;}
        div.units-cell div aside.oper-licenses {flex-wrap:wrap;max-width:200px;}
        div.units-cell div aside.oper-licenses span {width:100%;font-size:.9em;font-weight:600;}
        div.units-cell div aside.unit-works {width:80px;}
        div.units-cell div aside.btn {position:relative;min-width:120px;width:120px;display:none;flex-wrap:wrap;justify-content:space-around;align-items:center;}    
        div.units-cell div aside.btn button {margin:10px 6px 5px;border:ridge 1px #2c3e5040;padding:3px 5px 1px 5px;background:var(--background-light);}
        div.units-cell div aside.btn button:hover {background:#fffbf3;border:ridge 1px #2c3e5070;box-shadow:0px 0px 1px #34495e90;}
        div.units-cell div aside.btn ul {display:none;z-index:10;position:absolute;top:50%;left:-30px;font-size:.9em;background:#ecf0f1;box-shadow:1px 1px 5px #40566b;border-radius:5px;padding:5px;margin:0;}
        div.units-cell div aside.btn ul li {cursor:pointer;margin:10px 5px 10px 20px;color:#2c3e50;}
        div.units-cell div aside.pers {display:block;margin-top:10px;font-size:.8em;font-weight:600;text-align:center;color:#5f6464;}
        div.units-cell div.selected aside {}
        div.units-cell div.selected aside.btn {order:1;display:flex;margin:auto 10px auto 0px;flex-direction:row-reverse;}
        div.units-cell div.selected aside.pers {display:none;}
        div.units-cell div.selected aside.unit-price {}
        div.units-cell div.unit-cell div.unite {z-index:500;position:absolute;bottom:0px;left:5px;cursor:pointer;}
        div.units-cell div.unit-cell div.unite svg {width:28px;fill:#5f646490;}
        div.units-cell div.unit-cell div.unite:hover svg {fill:#c0392b;}
        div.units-cell div.selected div.unite {display:none;}
        body.dark-theme div.units-cell div {background:#11182780;}
        body.dark-theme div.units-cell div.active {background:#111827;}



        div.plotly-graph-div {padding:0;margin:0;height:600px;}
        div.plotly-graph-div div {transform:scale(1);}
        .units-btn { background: none; border: none;cursor: pointer;padding: 0px;margin: 10px 4px;transform:scale(1.2);border-radius: 4px;transition: background 0.3s;}
        .units-btn:hover { background: #ecf0f1; }
        .units-btn img {width:16px;margin-bottom:-2px;}
        .set-active {background:#7f8c8d;border-radius:50%;width:16px;height:16px;margin:0px auto;box-shadow:0px 0px 2px #000;}
        .set-active:hover {background:#27ae6080;}
        .set-active.active {background:#27ae60;}
        /* Предпросмотр договора */
        .contract-preview {
            background: white;
            border: none;
            border-radius: 8px;
            padding: 30px;
            margin-bottom: 20px;
            line-height: 1.6;
        }
        .contract-preview h3 {margin-top:60px;}

        .contract-header {
            text-align: center;
            margin-bottom: 30px;
            border-bottom: 2px solid #2c3e50;
            padding-bottom: 20px;
        }

        .contract-title {
            font-size: 1.5em;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .contract-subtitle {
            font-size: 1.1em;
            color: #7f8c8d;
        }

        .contract-section {
            margin-bottom: 20px;
        }

        .contract-section h3 {
            color: #2c3e50;
            margin-bottom: 10px;
            font-size: 1.2em;
        }

        .contract-clause {
            margin-bottom: 15px;
        }

        .contract-clause p {
            margin-bottom: 5px;
        }

        .contract-signatures {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 50px;
        }

        .signature-block {
            position:relative;
            border-top: 1px solid #e0e0e0;
            padding: 10px 20px 30px 0px;
        }
        .signature-block p:last-child {position:absolute;bottom:0px;left:0px;right:0px;}



        