.tf-folder-page{background:var(--bg)}.tf-folder-page .doc-type-tabs-inner-wrap{max-width:none;width:100%;margin:0}.tf-folder-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.tf-folder-heading>div:first-child{min-width:0}.tf-folder-heading p{color:var(--t2);font-size:12px;line-height:1.7;margin:4px 0 0}.tf-folder-page #folder-home{padding:12px 16px 16px;min-width:0}.tf-folder-page #doc-type-tabs{flex-shrink:0}.tf-home{min-width:0;color:var(--t1);background:var(--surface);border:1px solid var(--bdr);border-radius:var(--r-md,5px);box-shadow:var(--sh-card,none)}.tf-toolbar{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--bdr-l);flex-wrap:wrap}.tf-toolbar h2{display:flex;gap:8px;align-items:center;margin:0;font-size:14px;font-weight:600;white-space:nowrap}.tf-count{background:var(--surface-3);color:var(--t2);border-radius:var(--r-sm,4px);padding:2px 7px;font-size:11px;font-weight:600}.tf-search{display:flex;align-items:center;gap:8px;border:1px solid var(--bdr);border-radius:var(--r-md,5px);background:var(--surface);min-height:36px;padding:0 12px;flex:1 1 220px;max-width:360px;min-width:0;color:var(--t3)}.tf-search input{width:100%;min-width:0;min-height:34px;border:0;background:transparent;font:inherit;font-size:13px;color:var(--t1);outline:none}.tf-search:focus-within{outline:3px solid #80a9e9;outline-offset:2px}.tf-toolbar-actions{min-width:0;display:flex;align-items:center;gap:8px;margin-left:auto}.tf-toolbar select{min-height:36px;max-width:100%;min-width:0;border:1px solid var(--bdr);border-radius:var(--r-md,5px);background:var(--surface);padding:6px 10px;color:var(--t1);font:inherit;font-size:12px}.tf-switch{display:flex;border:1px solid var(--bdr);border-radius:var(--r-md,5px)}.tf-switch button{width:36px;min-height:34px;color:var(--t2);background:transparent;font-size:14px;border:0;border-radius:var(--r-sm,4px)}.tf-switch button[aria-pressed=true]{background:var(--primary-l);color:var(--primary)}.tf-button{border:1px solid var(--bdr);border-radius:var(--r-md,5px);background:var(--surface);color:var(--primary);min-height:36px;padding:7px 12px;font:inherit;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}.tf-button:hover:not(:disabled){background:var(--primary-xl);border-color:#94afd9}.tf-primary{background:var(--primary);color:#fff;border-color:var(--primary)}.tf-primary:hover:not(:disabled){background:var(--primary-h);border-color:var(--primary-h)}.tf-button:disabled{opacity:.5;cursor:default}.tf-home button,.tf-home summary{cursor:pointer;font-family:inherit}.tf-home :is(button,summary,select):focus-visible,.tf-dialog :is(button,input,select):focus-visible{outline:3px solid #80a9e9;outline-offset:2px}.tf-shortcuts{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px 0}.tf-shortcuts button{display:flex;align-items:center;gap:8px;font:inherit;font-size:12px;color:var(--t2);background:var(--surface-2);border:1px solid var(--bdr-l);border-radius:var(--r-sm,4px);min-height:36px;padding:6px 10px}.tf-shortcuts button:hover{color:var(--primary);background:var(--primary-l);border-color:var(--bdr)}.tf-shortcuts span{font-size:11px;font-variant-numeric:tabular-nums}.tf-items{padding:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:12px;align-content:start}.tf-item{min-width:0;position:relative;border:1px solid var(--bdr);border-radius:var(--r-md,5px);background:var(--surface)}.tf-item:focus-within,.tf-item:has(.tf-open:hover){background:var(--primary-xl);border-color:#94afd9}.tf-open{width:100%;height:100%;min-height:104px;padding:16px 52px 16px 16px;display:grid;grid-template-columns:36px minmax(0,1fr);gap:2px 12px;align-content:center;align-items:center;border:0;border-radius:inherit;background:transparent;color:var(--t1);text-align:left}.tf-icon{width:36px;height:36px;object-fit:contain;flex-shrink:0;grid-row:1 / span 2}.tf-name{min-width:0;grid-column:2;font-size:15px;font-weight:600;line-height:1.6;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tf-doc-count{grid-column:2;font-size:12px;color:var(--t3);font-variant-numeric:tabular-nums}.tf-menu{position:absolute;right:8px;top:8px;z-index:2}.tf-menu[open]{z-index:5}.tf-menu summary{list-style:none;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--t2);border-radius:var(--r-sm,4px)}.tf-menu summary::-webkit-details-marker{display:none}.tf-menu summary:hover,.tf-menu[open] summary{background:var(--primary-l)}.tf-menu>div{position:absolute;right:0;top:38px;width:190px;padding:6px;background:var(--surface);border:1px solid var(--bdr);box-shadow:var(--sh-md);border-radius:var(--r-md,5px)}.tf-menu button{border:0;background:transparent;color:var(--t1);min-height:36px;padding:8px 10px;text-align:left;display:flex;gap:10px;align-items:center;font-size:12px;width:100%;border-radius:var(--r-sm,4px)}.tf-menu button:hover{background:var(--primary-xl)}.tf-menu button[data-delete]{color:var(--red)}.tf-footer{margin:0 16px;padding:12px 0;border-top:1px solid var(--bdr-l);display:flex;flex-wrap:wrap;gap:8px 20px;font-size:12px;line-height:1.7;color:var(--t3)}.tf-result{color:var(--t2)}.tf-list{display:flex;flex-direction:column;gap:0}.tf-list .tf-item{border:0;border-bottom:1px solid var(--bdr-l);border-radius:0}.tf-list .tf-item:last-child{border-bottom:0}.tf-list .tf-open{min-height:72px;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;padding:12px 52px 12px 8px}.tf-list .tf-icon{width:32px;height:32px;grid-row:1}.tf-list .tf-name{grid-row:1}.tf-list .tf-doc-count{grid-column:3;grid-row:1}.tf-list .tf-menu{top:18px;right:4px}.tf-empty{grid-column:1/-1;padding:44px 16px;text-align:center;min-width:0}.tf-empty>i{font-size:32px;color:var(--t3);margin-bottom:12px}.tf-empty h3{font-size:16px;color:var(--t1)}.tf-empty p{margin:10px 0 18px;font-size:13px;color:var(--t2);line-height:1.7}.tf-loading{padding:44px 16px;text-align:center;color:var(--t2);font-size:13px}.tf-dialog{margin:auto;font-family:inherit;color:var(--t1);background:var(--surface);border:1px solid var(--bdr);border-radius:var(--r-lg,6px);width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;box-shadow:var(--sh-md)}.tf-dialog::backdrop{background:#1023487a}.tf-dialog-inner{padding:24px}.tf-dialog header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.tf-dialog h2{font-size:20px;line-height:1.5;margin:0}.tf-close{border:0;background:none;min-width:36px;height:36px;font-size:18px;color:var(--t2);flex-shrink:0}.tf-dialog form>p{overflow-wrap:anywhere}.tf-field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600}.tf-field+.tf-field{margin-top:16px}.tf-field :is(input,select){width:100%;min-width:0;max-width:100%;border:1px solid var(--bdr);border-radius:var(--r-md,5px);min-height:44px;padding:10px;font:inherit;font-size:16px;color:var(--t1);background:var(--surface)}.tf-field select{text-overflow:ellipsis}.tf-hint{font-size:13px;color:var(--t2);line-height:1.8;margin:12px 0}.tf-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:24px;padding-top:16px;border-top:1px solid var(--bdr-l)}.tf-dialog .tf-button{min-height:44px;font-size:13px}.tf-error{color:var(--red);font-size:13px;line-height:1.7;margin:12px 0 0}.tf-error:empty{display:none}.tf-destinations{max-height:400px;overflow:auto;display:flex;flex-direction:column;gap:8px}.tf-destinations label{display:flex;align-items:center;gap:12px;min-height:52px;border:1px solid var(--bdr);border-radius:var(--r-md,5px);padding:10px;cursor:pointer;overflow-wrap:anywhere;font-size:13px}.tf-destinations label:has(:checked){background:var(--primary-l);border-color:#7fa4d4}.tf-destinations .tf-icon{width:28px;height:28px}.tf-destinations input{flex-shrink:0;accent-color:var(--primary)}.tf-breadcrumb{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--bdr);color:var(--primary);font-size:13px;flex-wrap:wrap}.tf-breadcrumb button{background:none;border:0;color:var(--primary);cursor:pointer;padding:4px 0;text-decoration:underline;text-underline-offset:3px;font:inherit}.tf-breadcrumb strong{overflow-wrap:anywhere}.tf-selection{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-block:1px solid var(--bdr-l);font-size:12px}.tf-selection label{display:flex;align-items:center;gap:6px;min-width:0}.tf-selection .tf-button{font-size:11px;padding:6px 8px;min-height:34px}.tf-selection input,.tf-row-check{accent-color:var(--primary);width:17px;height:17px}.document-list-row:has(.tf-row-check),.ctr-card:has(.tf-row-check){position:relative;padding-left:34px!important}.tf-row-check{position:absolute;left:9px;top:20px;z-index:2;margin:0}.tf-contract-home .tf-folder-heading{padding:0 0 16px}.tf-contract-home .tf-folder-heading h1{font-size:22px;line-height:1.4;margin:0}.tf-contract-home{padding-bottom:24px}.tf-contract-folderbar{margin-bottom:12px}.document-folder-actions{display:flex;gap:8px;margin-left:auto;flex-wrap:wrap;align-items:center}.document-folder-actions .header-action{margin-left:0}.document-delete-button{color:var(--red)!important}.document-trash-dialog{width:min(760px,calc(100vw - 32px))}.document-trash-row{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--bdr-l)}.document-trash-row>div{min-width:0;overflow-wrap:anywhere}.document-trash-row h3{font-size:16px;line-height:1.5;margin:0 0 6px}.document-trash-row p{margin:4px 0;color:var(--t2);font-size:13px;line-height:1.6}.document-trash-row>button{flex-shrink:0}.document-trash-empty{padding:36px 0;text-align:center;color:var(--t2)}.document-trash-dialog .document-trash-pagination{align-items:center;justify-content:center;font-size:13px;flex-wrap:wrap}@media(max-width:959px){.tf-folder-page .page-header{align-items:flex-start}.tf-folder-page #folder-home{padding:12px 16px 16px}.tf-toolbar{gap:12px}.tf-toolbar h2{flex:1}.tf-search{order:3;max-width:none;flex-basis:100%;min-height:44px}.tf-search input{min-height:42px;font-size:16px}.tf-toolbar-actions{display:contents}.tf-toolbar-actions select{order:4;flex:1;min-height:44px}.tf-switch{order:5}.tf-switch button{width:44px;min-height:44px}.tf-toolbar [data-new],.tf-shortcuts button{min-height:44px}.tf-items{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}.tf-open{min-height:88px}.tf-menu{right:4px;top:4px}.tf-menu summary,.tf-menu button{min-height:44px}.tf-menu summary{width:44px}.tf-menu>div{top:46px}.tf-list .tf-menu{top:14px;right:0}.tf-close{min-width:44px;height:44px}.tf-selection .tf-button{min-height:44px}.tf-contract-home .tf-folder-heading h1{font-size:21px}}@media(max-width:480px){.tf-folder-heading .document-folder-actions{margin-left:0;width:100%}.tf-folder-heading .document-folder-actions .header-action{margin-left:auto}.tf-folder-heading .document-folder-actions button{min-height:44px}.tf-toolbar,.tf-items{padding:12px}.tf-items{gap:8px}.tf-shortcuts{padding:12px 12px 0;gap:6px}.tf-shortcuts button{font-size:11px;gap:6px;padding:6px 8px}.tf-footer{margin-inline:12px;font-size:11px}.tf-footer span:last-child{flex-basis:100%}.tf-dialog-inner{padding:16px}.tf-dialog h2{font-size:17px}.tf-dialog .tf-button{font-size:12px;padding:8px 10px}.tf-breadcrumb{font-size:12px}.document-trash-row{align-items:flex-start;gap:8px}.document-trash-row h3{font-size:14px}.document-trash-row p{font-size:12px}.document-folder-actions{gap:6px}.document-folder-actions .btn-outline{font-size:12px;min-height:44px;padding:8px}}@media(min-width:960px)and (pointer:coarse){.tf-toolbar :is(button,select),.tf-search,.tf-search input,.tf-shortcuts button,.tf-menu summary{min-height:44px}.tf-switch button,.tf-menu summary{width:44px}}
