* {
   font-family: "Montserrat";
}

body p,
body span,
body a,
body h1 {
   margin: 0;
   padding: 0;
}

body {
   font-family: "Montserrat";
   overflow: hidden;
}

.tlpl-body-layout {
   background-color: #fff;
}

.enterprise-document-container-layout {
   container-type: inline-size;
   overflow-y: auto;
   flex: 2;
   padding: 1rem;
   font-family: "Montserrat", sans-serif;
}

.calendar-head {
   display: flex;
   /* align-items: center; */
   justify-content: space-between;
   border-bottom: 1px solid rgba(0, 0, 0, 0.08);
   padding: 1rem 0;
   margin-bottom: 10px;
}

.home-enterprise-logo {
   text-decoration: none !important;
   font-family: "Bruno Ace";
   font-weight: 400;
   font-size: 20px;
   color: #060047 !important;
}

.home-enterprise-logo span {
   font-weight: 400;
   font-size: 20px;
   color: #e90064;
   font-family: "Bruno Ace";
}

.logo-sub {
   background-color: #e90064;
   color: white;
   width: fit-content;
   font-weight: 500;
   font-size: 7px;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 5px;
   margin-left: auto;
   padding: 5px;
   border-radius: 3px;
}

.sub-logo-img {
   width: 9px !important;
   height: 9px !important;
}

.logo-sub span {
   line-height: 1;
}

.head-right {
   display: flex;
   justify-content: end;
   /* width: 100%; */
}

.calendar-search-box {
   width: 100%;
   max-width: 42.875rem;
}

.head-right .calendar-search-box form {
   display: flex;
   align-items: center;
   height: 2rem;
   border: 0.6px solid #e2e8f0;
   border-radius: 12px;
   background-color: #f5f6fa;
   padding: 0.5rem;
   gap: 0.3rem;
}

.calendar-search-input {
   border: none !important;
   outline: none !important;
   height: 100%;
   background-color: #f5f6fa;
}

.calendar-search-input:focus {
   border: none !important;
   outline: none !important;
}

.calendar-search-icon {
   height: 100%;
   width: auto;
}

.calendar-clear-search {
   height: 100%;
   width: auto;
   display: none;
}

.enterprise-document-container-content {
   width: 100%;
   height: 100%;
   /* display: flex;
   flex-direction: column;
   gap: 0.5rem; */
}

.enterprise-document-header {
   display: flex;
   align-items: center;
   margin-bottom: 1rem;
   margin-top: 1rem;
   gap: 0.5rem;
}

.enterprise-document-header div {
   width: 6px;
   height: 18px;
   border-radius: 10px;
   background-color: #e90064;
}

.enterprise-document-header-text {
   font-weight: 800 !important;
   font-size: 15px !important;
   color: #e90064 !important;
   font-family: "Montserrat" !important;
}

#enterprise-files {
   opacity: 0;
   position: absolute;
   width: 100%;
   height: 100%;
}

.enterprise-document-upload-content {
   display: flex;
   flex-direction: column;
   gap: 0.5rem;
   margin-bottom: 1rem;
}

.enterprise-document-upload-content label {
   position: relative;
   border: 1px dashed #e90064;
   border-radius: 6px;
   min-height: 200px;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 48px;
   text-align: center;
}

.enterprise-document-file-text {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 0.8rem;
}

.upload-document-img {
   width: 42px;
   height: 42px;
}

.enterprise-document-drop-file {
   /* display: block; */
   font-weight: 400;
   color: #060047;
   font-size: 14px;
   margin-bottom: 8px;
   font-family: "Montserrat";
}

.enterprise-document-or {
   font-family: "Montserrat" !important;
   font-weight: 400;
   font-size: 12px;
   color: #6d6d6d;
   /* display: block; */
   margin-bottom: 8px;
   display: flex;
   align-items: center;
   gap: 1.5rem;
}

.enterprise-document-or div {
   height: 1px;
   width: 73.5px;
   background-color: #e7e7e7;
}

.enterprise-document-browse {
   border: 1px solid #e90064;
   background-color: #ffffff;
   color: #e90064;
   font-family: "Montserrat";
   font-weight: 600;
   font-size: 12px;
   border-radius: 8px;
   width: 5.4rem;
   height: 2rem;
   outline: none;
}

.enterprise-document-upload-notify {
   font-weight: 400;
   font-size: 14px;
   color: #060047;
}

.enterprise-document-upload-progress {
   width: 100%;
   height: fit-content;
   padding: 1rem;
   background-color: #ffffff;
   border: 1px solid #e7e7e7;
   display: flex;
   flex-direction: column;
   gap: 1rem;
   display: none;
   border-radius: 12px;
}

.enterprise-document-upload-infor {
   display: flex;
   justify-content: space-between;
}

.enterprise-document-upload-infor-detail {
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.enterprise-document-upload-avatar {
   width: 2.5rem;
   height: 2.5rem;
   border-radius: 50%;
   background-color: #e90064;
   font-family: "Manrope";
   font-weight: 700;
   font-size: 16px;
   color: #ffffff;
   display: flex;
   align-items: center;
   justify-content: center;
}

.enterprise-document-upload-name {
   font-weight: 600;
   font-family: "Montserrat";
   font-size: 12px;
   color: #0b0b0b;
}

.enterprise-document-upload-progress-time {
   font-family: "Montserrat";
   font-weight: 400;
   font-size: 12px;
   color: #6d6d6d;
}

.enterprise-document-upload-control {
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.control-btn {
   width: 24px;
   height: auto;
   cursor: pointer;
}

.cancel-upload-btn {
   width: 28px;
   height: auto;
}

#enterprise-document-file-type {
   border: 1px solid #e90064;
   border-radius: 3px;
   color: #e90064 !important;
   width: 6.5rem;
   height: 1.5rem;
   font-weight: 500;
   font-size: 12px;
}

#enterprise-document-file-type:focus {
   outline: none;
}

.enterprise-document-upload-progress-bar {
   width: 100%;
   height: 8px;
   background-color: #fafafa;
   /* background-color: black; */
   border-radius: 8px;
}

.progress-done {
   height: 100%;
   width: 0%;
   background-color: #e90064;
   border-radius: 8px;
   transition: width 0.5s ease-in-out;
}

.view-all {
   margin-left: auto;
   text-decoration: underline;
   font-weight: 800 !important;
   font-size: 14px !important;
   font-family: "Montserrat" !important;
   color: #e90064 !important;
}

.enterprise-document-near-list {
   display: flex;
   gap: 2rem;
   overflow-x: auto;
}

.enterprise-document-near-item {
   height: 20rem;
   width: 20rem;
   background-image: url("../../imgs/enterprise-document.png");
   background-size: contain;
   background-position: center;
   background-repeat: no-repeat;
   position: relative;
   /* box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25); */
}

.enterprise-document-near-item-infor {
   display: flex;
   flex-direction: column;
   gap: 0.5rem;
   padding: 1.5rem;
}

.enterprise-document-name {
   font-family: "Montserrat" !important;
   font-weight: 700 !important;
   font-size: 18px !important;
   color: #060047 !important;
   margin-top: 20%;
   text-wrap: nowrap !important;
   overflow: hidden !important;
   text-overflow: ellipsis !important;
}

.enterprise-document-near-item-infor p {
   font-weight: 700;
   font-size: 12px;
   font-family: "Montserrat";
   color: #a0a0a0;
}

.enterprise-document-dot {
   width: 34px;
   height: 34px;
   background-color: #060047;
   border-radius: 50%;
   color: white;
   font-weight: 700;
   display: flex;
   justify-content: center;
   position: absolute;
   right: 10px;
   top: 10%;
}

.enterprise-document-near-img {
   width: 17rem;
   height: 8.5rem;
   background-color: #ffffff;
   box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.04);
   padding: 0.8rem;
   border-radius: 10px;
   display: flex;
   flex-direction: column;
   gap: 0.8rem;
}

.enterprise-document-bar {
   height: 25px;
   width: 100%;
   background-color: #f1f1f1;
   border-radius: 3px;
}

.manage-file-content-control-bar {
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.manage-file-search {
   width: 50%;
   border: 0.6px solid #e2e8f0;
   border-radius: 30px;
   padding: 0.3rem 0.5rem;
   display: flex;
   align-items: center;
   gap: 0.5rem;
   background-color: #f5f6fa;
}

.manage-file-search-bar {
   width: 100% !important;
   border: none !important;
   outline: none !important;
   background-color: #f5f6fa;
}

.manage-file-search-icon {
   height: 20px;
   width: auto;
}

.manage-file-clear-icon {
   height: 15px;
   width: auto;
   display: none;
}

.manage-file-sort {
   display: flex;
}

.delete-sort-btn {
   border: 0.6px solid #e2e8f0;
   background-color: #f5f6fa;
   border-top-right-radius: 8px;
   border-bottom-right-radius: 8px;
   color: #e90064;
   font-size: 14px;
   font-weight: 600;
   padding: 0.5rem;
   padding-left: 1rem;
   width: 9rem;
   display: flex;
   align-items: center;
   gap: 0.3rem;
}

.delete-sort-btn img {
   height: 15px;
   width: auto;
}

.delete-sort-btn div {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 0.5rem;
}

#sort-type {
   padding: 0.5rem;
   background-color: #f5f6fa;
   border: 0.6px solid #e2e8f0;
   border-top-left-radius: 8px;
   border-bottom-left-radius: 8px;
   width: 8rem;
   color: #060047 !important;
   font-weight: 500 !important;
   font-size: 14px !important;
   font-family: "Montserrat" !important;
}

#sort-type:focus {
   outline: none;
}

.manage-file-number {
   font-family: "Montserrat";
   font-weight: 500;
   font-size: 14px;
   color: #060047;
   margin-top: 15px;
}

.archive-title-col {
   width: unset;
}

.permision-icon {
   width: 20px;
   height: auto;
}

.file-type div {
   width: fit-content;
   height: fit-content;
   border: 1px solid #e90064;
   padding: 0.5rem 1rem;
   color: #e90064;
   border-radius: 23px;
}

.upload-error-list {
   margin: 0;
   padding: 0;
}

.archive-table thead {
   position: sticky;
   top: 0;
}

.archive-table th {
   color: #060047 !important;
   font-weight: 600 !important;
}

.archive-title-col a {
   color: #060047 !important;
   cursor: pointer !important;
}

.archive-title-col a:hover {
   text-decoration: underline !important;
}

.archive-table td {
   color: #060047 !important;
   font-weight: 500 !important;
   min-width: 50px !important;
   max-width: 250px !important;
   word-wrap: break-word;
}

.archive-table-layout {
   max-height: 20rem;
}

.file-name-link {
   text-decoration: none !important;
   color: #060047;
}

.archive-table-layout::-webkit-scrollbar {
   width: 5px;
   height: 5px;
}

.archive-table-layout::-webkit-scrollbar-thumb {
   background: #c1c1c1;
   border-radius: 10px;
}

.archive-table-layout::-webkit-scrollbar-thumb:hover {
   background: #a9a9a9;
   border-radius: 10px;
}

.archive-table-layout::-webkit-scrollbar-track {
   box-shadow: inset 0 0 5px #ddd;
   border-radius: 10px;
}

.enterprise-document-near-list::-webkit-scrollbar {
   width: 5px;
   height: 5px;
}

.enterprise-document-near-list::-webkit-scrollbar-thumb {
   background: #c1c1c1;
   border-radius: 10px;
}

.enterprise-document-near-list::-webkit-scrollbar-thumb:hover {
   background: #a9a9a9;
   border-radius: 10px;
}

.enterprise-document-near-list::-webkit-scrollbar-track {
   box-shadow: inset 0 0 5px #ddd;
   border-radius: 10px;
}

#view-document-loading {
   display: none;
   justify-content: center;
   align-items: center;
   height: 100%;
   width: 100%;
   position: absolute;
   top: 0;
   left: 0;
   background-color: rgba(255, 255, 255, 0.5);
   z-index: 4;
}

#enterprise-document-loading {
   display: none;
   justify-content: center;
   align-items: center;
   height: 100%;
   width: 100%;
   position: absolute;
   top: 0;
   left: 0;
   background-color: rgba(255, 255, 255, 0.5);
   z-index: 4;
}

#search-document-loading {
   display: none;
   justify-content: center;
   align-items: center;
   background-color: rgba(255, 255, 255, 0.5);
}

.loading {
   border: 8px solid #f3f3f3;
   border-top: 8px solid #e90064;
   border-radius: 50%;
   width: 50px;
   height: 50px;
   animation: spin 2s linear infinite;
}

.search-loading {
   border: 8px solid #f3f3f3;
   border-top: 8px solid #e90064;
   border-radius: 50%;
   width: 30px;
   height: 30px;
   animation: spin 2s linear infinite;
}

.edit-role-display {
   background-color: rgba(3, 1, 23, 0.85);
   position: fixed;
   width: 100%;
   height: 100%;
   z-index: 2;
   top: 0;
   left: 0;
   display: none;
   align-items: center;
   justify-content: center;
}

.edit-role-main {
   height: fit-content;
   width: 40rem;
   background-color: white;
   border-radius: 8px;
   padding: 1rem;
}

.edit-role-content {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 1rem;
   position: relative;
   padding: 1rem;
}

.edit-role-header {
   font-family: "Montserrat";
   color: #060047;
   font-size: 30px;
   font-weight: 700;
}

.enterprise-members {
   width: 70%;
   height: 3rem;
   border-radius: 8px;
   outline: none;
   border: 1px solid #060047;
}

.role-group {
   display: flex;
   flex-direction: row;
   gap: 2rem;
}

.role-list-item {
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

input[type="checkbox"] {
   position: absolute;
   opacity: 0;
   width: 0;
   height: 0;
}

.role-list-custom-checkbox {
   display: inline-block;
   width: 40px;
   height: 40px;
   background-color: #fff;
   border: 1px solid #d1d5db;
   border-radius: 8px;
   position: relative;
   cursor: pointer;
   vertical-align: middle;
}

input[type="checkbox"]:checked + .role-list-custom-checkbox {
   background-color: #e90064;
   border: none;
   outline: none;
}

.role-list-custom-checkbox:after {
   content: "";
   position: absolute;
   display: none;
   left: 50%;
   top: 50%;
   width: 12px;
   height: 24px;
   border: solid white;
   border-width: 0 4px 4px 0;
   transform: translate(-50%, -60%) rotate(45deg);
}

input[type="checkbox"]:checked + .role-list-custom-checkbox:after {
   display: block;
}

.close-role-popup {
   position: absolute;
   top: 10px;
   right: 10px;
   cursor: pointer;
}

.role-valid-button {
   width: 30%;
   padding: 0.5rem;
   font-family: "Montserrat";
   font-size: 18px;
   font-weight: 500;
   color: white;
   background-color: #e90064;
   border: 1px solid #e90064;
   outline: none;
   border-radius: 8px;
   text-align: center !important;
}

.near-list-content {
   display: none;
}

.manage-file-content {
   display: none;
}

.view-all {
   cursor: pointer;
}

.show-all-file {
   display: none;
   position: fixed;
   width: 100%;
   height: 100%;
   z-index: 2;
   background-color: rgba(3, 1, 23, 0.85);
   align-items: center;
   justify-content: center;
}

.show-all-file-content {
   background-color: white;
   width: 90%;
   height: 80%;
   border-radius: 8px;
   padding: 2rem;
   position: relative;
}

.close-all-file-icon {
   position: absolute;
   top: 8px;
   right: 8px;
   cursor: pointer;
}

.archive-all-table-layout {
   position: relative;
   margin-top: 0.9375rem;
   height: 100%;
   overflow: auto !important;
}

.archive-all-table-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(255, 255, 255, 0.7);
   z-index: 999;
   display: none;
}

.archive-all-table {
   width: 100%;
   font-size: 0.875rem;
   border: none;
}

.archive-all-table thead {
   height: 3.75rem;
}

.archive-all-table thead .archive-all-action-head {
   width: 9rem;
}

.archive-all-table th {
   background-color: #f1f4f9;
   padding-left: 1rem;
   border: none;
   color: #202224;
}

.archive-all-table th:first-child {
   border-top-left-radius: 0.75em;
   border-bottom-left-radius: 0.75em;
}

.archive-all-table th:last-child {
   border-top-right-radius: 0.75em;
   border-bottom-right-radius: 0.75em;
}

.archive-all-table tbody tr {
   border-bottom: 1px solid #d8d8d8;
}

.archive-all-table td {
   color: #202224;
   line-height: 121.5%;
   padding: 1.5rem 0 1.5rem 1rem;
   border: none;
}

.archive-all-table td a:hover {
   color: #e90064;
   text-decoration: underline;
}

.archive-all-index-head {
   font-size: 14px;
}

.archive-all-title-head {
   font-size: 14px;
}

.archive-all-time-head {
   font-size: 14px;
}

.archive-all-action-head {
   font-size: 14px;
}

.archive-all-index-col {
   width: fit-content;
}

.archive-all-title-col {
   /* width: 60%; */
}

.archive-all-title-col a {
   color: #202224;
}

.archive-all-action-col .archive-all-action {
   display: flex;
   justify-content: left;
   max-width: 6rem;
   width: 100%;
}

.archive-all-action-col .archive-all-edit {
   display: flex;
   justify-content: space-around;
   align-items: center;
   width: 50%;
   padding: 0.375rem 0.25rem;
   border: 1px solid #d5d5d5;
   border-top-left-radius: 0.625rem;
   border-bottom-left-radius: 0.625rem;
   background-color: #f1f4f9;
   cursor: pointer;
}

.archive-all-action-col .archive-all-delete {
   display: flex;
   justify-content: space-around;
   align-items: center;
   width: 50%;
   padding: 0.375rem 0.25rem;
   border-top: 1px solid #d5d5d5;
   border-right: 1px solid #d5d5d5;
   border-bottom: 1px solid #d5d5d5;
   border-left: none;
   border-top-right-radius: 0.625rem;
   border-bottom-right-radius: 0.625rem;
   background-color: #f1f4f9;
   cursor: pointer;
}

.archive-all-action-col img {
   width: 1rem;
   margin-bottom: 0.125rem;
}

.procedure-editor-layout {
   position: fixed;
   height: 100%;
   width: 100%;
   z-index: 3;
   align-items: center;
   justify-content: center;
   background-color: rgba(3, 1, 23, 0.85);
   display: none;
}

.procedure-editor-layout-content {
   width: 80%;
   height: 80%;
}

#procedure-editor {
   overflow-y: auto;
   height: 100%;
}

canvas {
   width: 100%;
   height: auto;
}

.view-file-main {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 100%;
   height: 100%;
   position: relative;
}

.close-view-file-icon {
   position: absolute;
   top: 10px;
   right: 10px;
}

.delete-document-popup {
   position: fixed;
   width: 100%;
   height: 100%;
   top: 0;
   left: 0;
   background-color: rgba(3, 1, 23, 0.87);
   z-index: 3;
   display: none;
   align-items: center;
   justify-content: center;
}

.delete-popup-content {
   height: fit-content;
   width: 50%;
   background-color: white;
   border-radius: 8px;
   padding: 1rem;
}

.delete-popup-content-title {
   text-align: center !important;
   font-weight: 700;
   font-size: 24px;
   color: #060047;
   margin-bottom: 20px;
}

.delete-popup-content-subtitle {
   text-align: center !important;
   font-weight: 400;
   font-size: 14px;
   color: #060047;
}

.delete-popup-action-button {
   margin-top: 30px;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 20px;
}

.delete-popup-btn {
   width: 40%;
   padding: 1rem;
   height: 10%;
   font-family: "Montserrat";
   text-align: center !important;
   font-size: 16px;
   font-weight: 700;
   border-radius: 11px;
}

.delete-popup-confirm-button {
   color: white;
   background-color: #e90064;
   border: 1px solid #e90064;
   box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
   outline: none !important;
}

.delete-popup-cancel-button {
   color: #060047;
   background-color: #e2e8f0;
   outline: none !important;
   box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
   border: none !important;
}

@container (max-width: 480px) {
   .manage-file-content-control-bar {
      gap: 0.5rem;
   }

   .delete-sort-btn {
      padding-left: 0.5rem;
   }
}

@media only screen and (max-width: 480px) {
   .delete-popup-content {
      width: 80%;
   }

   .delete-popup-btn {
      text-wrap: nowrap;
   }
}
